Spaces:
Running
Running
var dp=Object.defineProperty;var fp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>(fp(e,typeof t!="symbol"?t+"":t,n),n);function pp(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uc={exports:{}},ci={},sc={exports:{}},A={};/** | |
* @license React | |
* react.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/var Br=Symbol.for("react.element"),hp=Symbol.for("react.portal"),yp=Symbol.for("react.fragment"),gp=Symbol.for("react.strict_mode"),vp=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),Sp=Symbol.for("react.context"),kp=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),xp=Symbol.for("react.memo"),Cp=Symbol.for("react.lazy"),Fs=Symbol.iterator;function Tp(e){return e===null||typeof e!="object"?null:(e=Fs&&e[Fs]||e["@@iterator"],typeof e=="function"?e:null)}var ac={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cc=Object.assign,dc={};function bn(e,t,n){this.props=e,this.context=t,this.refs=dc,this.updater=n||ac}bn.prototype.isReactComponent={};bn.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")};bn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fc(){}fc.prototype=bn.prototype;function Nu(e,t,n){this.props=e,this.context=t,this.refs=dc,this.updater=n||ac}var Pu=Nu.prototype=new fc;Pu.constructor=Nu;cc(Pu,bn.prototype);Pu.isPureReactComponent=!0;var js=Array.isArray,pc=Object.prototype.hasOwnProperty,Ru={current:null},mc={key:!0,ref:!0,__self:!0,__source:!0};function hc(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)pc.call(t,r)&&!mc.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:Br,type:e,key:i,ref:l,props:o,_owner:Ru.current}}function Np(e,t){return{$$typeof:Br,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Br}function Pp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var As=/\/+/g;function Di(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pp(""+e.key):t.toString(36)}function vo(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Br:case hp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Di(l,0):r,js(o)?(n="",e!=null&&(n=e.replace(As,"$&/")+"/"),vo(o,t,n,"",function(a){return a})):o!=null&&(Lu(o)&&(o=Np(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(As,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",js(e))for(var u=0;u<e.length;u++){i=e[u];var s=r+Di(i,u);l+=vo(i,t,n,s,o)}else if(s=Tp(e),typeof s=="function")for(e=s.call(e),u=0;!(i=e.next()).done;)i=i.value,s=r+Di(i,u++),l+=vo(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Jr(e,t,n){if(e==null)return e;var r=[],o=0;return vo(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Rp(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 ye={current:null},wo={transition:null},Lp={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:wo,ReactCurrentOwner:Ru};A.Children={map:Jr,forEach:function(e,t,n){Jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jr(e,function(){t++}),t},toArray:function(e){return Jr(e,function(t){return t})||[]},only:function(e){if(!Lu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=bn;A.Fragment=yp;A.Profiler=vp;A.PureComponent=Nu;A.StrictMode=gp;A.Suspense=Ep;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lp;A.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=cc({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Ru.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)pc.call(t,s)&&!mc.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:Br,type:e.type,key:o,ref:i,props:r,_owner:l}};A.createContext=function(e){return e={$$typeof:Sp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wp,_context:e},e.Consumer=e};A.createElement=hc;A.createFactory=function(e){var t=hc.bind(null,e);return t.type=e,t};A.createRef=function(){return{current:null}};A.forwardRef=function(e){return{$$typeof:kp,render:e}};A.isValidElement=Lu;A.lazy=function(e){return{$$typeof:Cp,_payload:{_status:-1,_result:e},_init:Rp}};A.memo=function(e,t){return{$$typeof:xp,type:e,compare:t===void 0?null:t}};A.startTransition=function(e){var t=wo.transition;wo.transition={};try{e()}finally{wo.transition=t}};A.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};A.useCallback=function(e,t){return ye.current.useCallback(e,t)};A.useContext=function(e){return ye.current.useContext(e)};A.useDebugValue=function(){};A.useDeferredValue=function(e){return ye.current.useDeferredValue(e)};A.useEffect=function(e,t){return ye.current.useEffect(e,t)};A.useId=function(){return ye.current.useId()};A.useImperativeHandle=function(e,t,n){return ye.current.useImperativeHandle(e,t,n)};A.useInsertionEffect=function(e,t){return ye.current.useInsertionEffect(e,t)};A.useLayoutEffect=function(e,t){return ye.current.useLayoutEffect(e,t)};A.useMemo=function(e,t){return ye.current.useMemo(e,t)};A.useReducer=function(e,t,n){return ye.current.useReducer(e,t,n)};A.useRef=function(e){return ye.current.useRef(e)};A.useState=function(e){return ye.current.useState(e)};A.useSyncExternalStore=function(e,t,n){return ye.current.useSyncExternalStore(e,t,n)};A.useTransition=function(){return ye.current.useTransition()};A.version="18.2.0";sc.exports=A;var v=sc.exports;const j=mp(v),Er=pp({__proto__:null,default:j},[v]);/** | |
* @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 _p=v,Up=Symbol.for("react.element"),Op=Symbol.for("react.fragment"),Fp=Object.prototype.hasOwnProperty,jp=_p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ap={key:!0,ref:!0,__self:!0,__source:!0};function yc(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Fp.call(t,r)&&!Ap.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Up,type:e,key:i,ref:l,props:o,_owner:jp.current}}ci.Fragment=Op;ci.jsx=yc;ci.jsxs=yc;uc.exports=ci;var S=uc.exports,kl={},gc={exports:{}},Ue={},vc={exports:{}},wc={};/** | |
* @license React | |
* scheduler.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/(function(e){function t(R,O){var F=R.length;R.push(O);e:for(;0<F;){var I=F-1>>>1,X=R[I];if(0<o(X,O))R[I]=O,R[F]=X,F=I;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var O=R[0],F=R.pop();if(F!==O){R[0]=F;e:for(var I=0,X=R.length,Se=X>>>1;I<Se;){var lt=2*(I+1)-1,qn=R[lt],ut=lt+1,Gt=R[ut];if(0>o(qn,F))ut<X&&0>o(Gt,qn)?(R[I]=Gt,R[ut]=F,I=ut):(R[I]=qn,R[lt]=F,I=lt);else if(ut<X&&0>o(Gt,F))R[I]=Gt,R[ut]=F,I=ut;else break e}}return O}function o(R,O){var F=R.sortIndex-O.sortIndex;return F!==0?F:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var s=[],a=[],d=1,c=null,m=3,w=!1,g=!1,y=!1,x=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 h(R){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=R)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function E(R){if(y=!1,h(R),!g)if(n(s)!==null)g=!0,xt(P);else{var O=n(a);O!==null&&Ve(E,O.startTime-R)}}function P(R,O){g=!1,y&&(y=!1,p(L),L=-1),w=!0;var F=m;try{for(h(O),c=n(s);c!==null&&(!(c.expirationTime>O)||R&&!z());){var I=c.callback;if(typeof I=="function"){c.callback=null,m=c.priorityLevel;var X=I(c.expirationTime<=O);O=e.unstable_now(),typeof X=="function"?c.callback=X:c===n(s)&&r(s),h(O)}else r(s);c=n(s)}if(c!==null)var Se=!0;else{var lt=n(a);lt!==null&&Ve(E,lt.startTime-O),Se=!1}return Se}finally{c=null,m=F,w=!1}}var N=!1,T=null,L=-1,D=5,U=-1;function z(){return!(e.unstable_now()-U<D)}function ve(){if(T!==null){var R=e.unstable_now();U=R;var O=!0;try{O=T(!0,R)}finally{O?we():(N=!1,T=null)}}else N=!1}var we;if(typeof f=="function")we=function(){f(ve)};else if(typeof MessageChannel<"u"){var mn=new MessageChannel,hn=mn.port2;mn.port1.onmessage=ve,we=function(){hn.postMessage(null)}}else we=function(){x(ve,0)};function xt(R){T=R,N||(N=!0,we())}function Ve(R,O){L=x(function(){R(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){g||w||(g=!0,xt(P))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var F=m;m=O;try{return R()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,O){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var F=m;m=R;try{return O()}finally{m=F}},e.unstable_scheduleCallback=function(R,O,F){var I=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?I+F:I):F=I,R){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=F+X,R={id:d++,callback:O,priorityLevel:R,startTime:F,expirationTime:X,sortIndex:-1},F>I?(R.sortIndex=F,t(a,R),n(s)===null&&R===n(a)&&(y?(p(L),L=-1):y=!0,Ve(E,F-I))):(R.sortIndex=X,t(s,R),g||w||(g=!0,xt(P))),R},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(R){var O=m;return function(){var F=m;m=O;try{return R.apply(this,arguments)}finally{m=F}}}})(wc);vc.exports=wc;var Dp=vc.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 Sc=v,_e=Dp;function C(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 kc=new Set,xr={};function dn(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(xr[e]=t,e=0;e<t.length;e++)kc.add(t[e])}var vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),El=Object.prototype.hasOwnProperty,Mp=/^[: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]*$/,Ds={},Ms={};function $p(e){return El.call(Ms,e)?!0:El.call(Ds,e)?!1:Mp.test(e)?Ms[e]=!0:(Ds[e]=!0,!1)}function zp(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 Ip(e,t,n,r){if(t===null||typeof t>"u"||zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ge(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){se[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var _u=/[\-:]([a-z])/g;function Uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_u,Uu);se[t]=new ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_u,Uu);se[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_u,Uu);se[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ou(e,t,n,r){var o=se.hasOwnProperty(t)?se[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ip(t,n,o,r)&&(n=null),r||o===null?$p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=Sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zr=Symbol.for("react.element"),gn=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),Fu=Symbol.for("react.strict_mode"),xl=Symbol.for("react.profiler"),Ec=Symbol.for("react.provider"),xc=Symbol.for("react.context"),ju=Symbol.for("react.forward_ref"),Cl=Symbol.for("react.suspense"),Tl=Symbol.for("react.suspense_list"),Au=Symbol.for("react.memo"),Pt=Symbol.for("react.lazy"),Cc=Symbol.for("react.offscreen"),$s=Symbol.iterator;function Yn(e){return e===null||typeof e!="object"?null:(e=$s&&e[$s]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,Mi;function sr(e){if(Mi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mi=t&&t[1]||""}return` | |
`+Mi+e}var $i=!1;function zi(e,t){if(!e||$i)return"";$i=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(` | |
`),i=r.stack.split(` | |
`),l=o.length-1,u=i.length-1;1<=l&&0<=u&&o[l]!==i[u];)u--;for(;1<=l&&0<=u;l--,u--)if(o[l]!==i[u]){if(l!==1||u!==1)do if(l--,u--,0>u||o[l]!==i[u]){var s=` | |
`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=u);break}}}finally{$i=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Bp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=zi(e.type,!1),e;case 11:return e=zi(e.type.render,!1),e;case 1:return e=zi(e.type,!0),e;default:return""}}function Nl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vn:return"Fragment";case gn:return"Portal";case xl:return"Profiler";case Fu:return"StrictMode";case Cl:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xc:return(e.displayName||"Context")+".Consumer";case Ec:return(e._context.displayName||"Context")+".Provider";case ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nl(t);case 8:return t===Fu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bp(e){var t=Tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=bp(e))}function Nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pl(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zs(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 Pc(e,t){t=t.checked,t!=null&&Ou(e,"checked",t,!1)}function Rl(e,t){Pc(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")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Is(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ll(e,t,n){(t!=="number"||jo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Ln(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _l(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(ar(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bt(n)}}function Rc(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 Hs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Lc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ul(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Lc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var to,_c=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(to=to||document.createElement("div"),to.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vp=["Webkit","ms","Moz","O"];Object.keys(pr).forEach(function(e){Vp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pr[t]=pr[e]})});function Uc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pr.hasOwnProperty(e)&&pr[e]?(""+t).trim():t+"px"}function Oc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Uc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wp=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ol(e,t){if(t){if(Wp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jl=null;function Du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Al=null,_n=null,Un=null;function bs(e){if(e=Vr(e)){if(typeof Al!="function")throw Error(C(280));var t=e.stateNode;t&&(t=hi(t),Al(e.stateNode,e.type,t))}}function Fc(e){_n?Un?Un.push(e):Un=[e]:_n=e}function jc(){if(_n){var e=_n,t=Un;if(Un=_n=null,bs(e),t)for(e=0;e<t.length;e++)bs(t[e])}}function Ac(e,t){return e(t)}function Dc(){}var Ii=!1;function Mc(e,t,n){if(Ii)return e(t,n);Ii=!0;try{return Ac(e,t,n)}finally{Ii=!1,(_n!==null||Un!==null)&&(Dc(),jc())}}function Tr(e,t){var n=e.stateNode;if(n===null)return null;var r=hi(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(C(231,t,typeof n));return n}var Dl=!1;if(vt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){Dl=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{Dl=!1}function Qp(e,t,n,r,o,i,l,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var mr=!1,Ao=null,Do=!1,Ml=null,Kp={onError:function(e){mr=!0,Ao=e}};function Gp(e,t,n,r,o,i,l,u,s){mr=!1,Ao=null,Qp.apply(Kp,arguments)}function qp(e,t,n,r,o,i,l,u,s){if(Gp.apply(this,arguments),mr){if(mr){var a=Ao;mr=!1,Ao=null}else throw Error(C(198));Do||(Do=!0,Ml=a)}}function fn(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 $c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vs(e){if(fn(e)!==e)throw Error(C(188))}function Xp(e){var t=e.alternate;if(!t){if(t=fn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Vs(o),e;if(i===r)return Vs(o),t;i=i.sibling}throw Error(C(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function zc(e){return e=Xp(e),e!==null?Ic(e):null}function Ic(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ic(e);if(t!==null)return t;e=e.sibling}return null}var Bc=_e.unstable_scheduleCallback,Ws=_e.unstable_cancelCallback,Yp=_e.unstable_shouldYield,Jp=_e.unstable_requestPaint,J=_e.unstable_now,Zp=_e.unstable_getCurrentPriorityLevel,Mu=_e.unstable_ImmediatePriority,Hc=_e.unstable_UserBlockingPriority,Mo=_e.unstable_NormalPriority,em=_e.unstable_LowPriority,bc=_e.unstable_IdlePriority,di=null,rt=null;function tm(e){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(di,e,void 0,(e.current.flags&128)===128)}catch{}}var qe=Math.clz32?Math.clz32:om,nm=Math.log,rm=Math.LN2;function om(e){return e>>>=0,e===0?32:31-(nm(e)/rm|0)|0}var no=64,ro=4194304;function cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $o(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~o;u!==0?r=cr(u):(i&=l,i!==0&&(r=cr(i)))}else l=n&~o,l!==0?r=cr(l):i!==0&&(r=cr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qe(t),o=1<<n,r|=e[n],t&=~o;return r}function im(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 lm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-qe(i),u=1<<l,s=o[l];s===-1?(!(u&n)||u&r)&&(o[l]=im(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}function $l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vc(){var e=no;return no<<=1,!(no&4194240)&&(no=64),e}function Bi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function um(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-qe(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function $u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var B=0;function Wc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qc,zu,Kc,Gc,qc,zl=!1,oo=[],At=null,Dt=null,Mt=null,Nr=new Map,Pr=new Map,Lt=[],sm="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 Qs(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pr.delete(t.pointerId)}}function Zn(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Vr(t),t!==null&&zu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function am(e,t,n,r,o){switch(t){case"focusin":return At=Zn(At,e,t,n,r,o),!0;case"dragenter":return Dt=Zn(Dt,e,t,n,r,o),!0;case"mouseover":return Mt=Zn(Mt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nr.set(i,Zn(Nr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pr.set(i,Zn(Pr.get(i)||null,e,t,n,r,o)),!0}return!1}function Xc(e){var t=Jt(e.target);if(t!==null){var n=fn(t);if(n!==null){if(t=n.tag,t===13){if(t=$c(n),t!==null){e.blockedOn=t,qc(e.priority,function(){Kc(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 So(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Il(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jl=r,n.target.dispatchEvent(r),jl=null}else return t=Vr(n),t!==null&&zu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ks(e,t,n){So(e)&&n.delete(t)}function cm(){zl=!1,At!==null&&So(At)&&(At=null),Dt!==null&&So(Dt)&&(Dt=null),Mt!==null&&So(Mt)&&(Mt=null),Nr.forEach(Ks),Pr.forEach(Ks)}function er(e,t){e.blockedOn===t&&(e.blockedOn=null,zl||(zl=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,cm)))}function Rr(e){function t(o){return er(o,e)}if(0<oo.length){er(oo[0],e);for(var n=1;n<oo.length;n++){var r=oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(At!==null&&er(At,e),Dt!==null&&er(Dt,e),Mt!==null&&er(Mt,e),Nr.forEach(t),Pr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)Xc(n),n.blockedOn===null&&Lt.shift()}var On=Et.ReactCurrentBatchConfig,zo=!0;function dm(e,t,n,r){var o=B,i=On.transition;On.transition=null;try{B=1,Iu(e,t,n,r)}finally{B=o,On.transition=i}}function fm(e,t,n,r){var o=B,i=On.transition;On.transition=null;try{B=4,Iu(e,t,n,r)}finally{B=o,On.transition=i}}function Iu(e,t,n,r){if(zo){var o=Il(e,t,n,r);if(o===null)Yi(e,t,r,Io,n),Qs(e,r);else if(am(o,e,t,n,r))r.stopPropagation();else if(Qs(e,r),t&4&&-1<sm.indexOf(e)){for(;o!==null;){var i=Vr(o);if(i!==null&&Qc(i),i=Il(e,t,n,r),i===null&&Yi(e,t,r,Io,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Yi(e,t,r,null,n)}}var Io=null;function Il(e,t,n,r){if(Io=null,e=Du(r),e=Jt(e),e!==null)if(t=fn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Io=e,null}function Yc(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 Mu:return 1;case Hc:return 4;case Mo:case em:return 16;case bc:return 536870912;default:return 16}default:return 16}}var Ot=null,Bu=null,ko=null;function Jc(){if(ko)return ko;var e,t=Bu,n=t.length,r,o="value"in Ot?Ot.value:Ot.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return ko=o.slice(e,1<r?1-r:void 0)}function Eo(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 io(){return!0}function Gs(){return!1}function Oe(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?io:Gs,this.isPropagationStopped=Gs,this}return q(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=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=Oe(Vn),br=q({},Vn,{view:0,detail:0}),pm=Oe(br),Hi,bi,tr,fi=q({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,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!==tr&&(tr&&e.type==="mousemove"?(Hi=e.screenX-tr.screenX,bi=e.screenY-tr.screenY):bi=Hi=0,tr=e),Hi)},movementY:function(e){return"movementY"in e?e.movementY:bi}}),qs=Oe(fi),mm=q({},fi,{dataTransfer:0}),hm=Oe(mm),ym=q({},br,{relatedTarget:0}),Vi=Oe(ym),gm=q({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),vm=Oe(gm),wm=q({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sm=Oe(wm),km=q({},Vn,{data:0}),Xs=Oe(km),Em={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xm={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"},Cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cm[e])?!!t[e]:!1}function bu(){return Tm}var Nm=q({},br,{key:function(e){if(e.key){var t=Em[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pm=Oe(Nm),Rm=q({},fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ys=Oe(Rm),Lm=q({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),_m=Oe(Lm),Um=q({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Om=Oe(Um),Fm=q({},fi,{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}),jm=Oe(Fm),Am=[9,13,27,32],Vu=vt&&"CompositionEvent"in window,hr=null;vt&&"documentMode"in document&&(hr=document.documentMode);var Dm=vt&&"TextEvent"in window&&!hr,Zc=vt&&(!Vu||hr&&8<hr&&11>=hr),Js=" ",Zs=!1;function ed(e,t){switch(e){case"keyup":return Am.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function Mm(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Zs=!0,Js);case"textInput":return e=t.data,e===Js&&Zs?null:e;default:return null}}function $m(e,t){if(wn)return e==="compositionend"||!Vu&&ed(e,t)?(e=Jc(),ko=Bu=Ot=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zc&&t.locale!=="ko"?null:t.data;default:return null}}var zm={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 ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zm[e.type]:t==="textarea"}function nd(e,t,n,r){Fc(r),t=Bo(t,"onChange"),0<t.length&&(n=new Hu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yr=null,Lr=null;function Im(e){pd(e,0)}function pi(e){var t=En(e);if(Nc(t))return e}function Bm(e,t){if(e==="change")return t}var rd=!1;if(vt){var Wi;if(vt){var Qi="oninput"in document;if(!Qi){var ta=document.createElement("div");ta.setAttribute("oninput","return;"),Qi=typeof ta.oninput=="function"}Wi=Qi}else Wi=!1;rd=Wi&&(!document.documentMode||9<document.documentMode)}function na(){yr&&(yr.detachEvent("onpropertychange",od),Lr=yr=null)}function od(e){if(e.propertyName==="value"&&pi(Lr)){var t=[];nd(t,Lr,e,Du(e)),Mc(Im,t)}}function Hm(e,t,n){e==="focusin"?(na(),yr=t,Lr=n,yr.attachEvent("onpropertychange",od)):e==="focusout"&&na()}function bm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pi(Lr)}function Vm(e,t){if(e==="click")return pi(t)}function Wm(e,t){if(e==="input"||e==="change")return pi(t)}function Qm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:Qm;function _r(e,t){if(Ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!El.call(t,o)||!Ye(e[o],t[o]))return!1}return!0}function ra(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oa(e,t){var n=ra(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=ra(n)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ld(){for(var e=window,t=jo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jo(e.document)}return t}function Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Km(e){var t=ld(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&id(n.ownerDocument.documentElement,n)){if(r!==null&&Wu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=oa(n,i);var l=oa(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gm=vt&&"documentMode"in document&&11>=document.documentMode,Sn=null,Bl=null,gr=null,Hl=!1;function ia(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hl||Sn==null||Sn!==jo(r)||(r=Sn,"selectionStart"in r&&Wu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gr&&_r(gr,r)||(gr=r,r=Bo(Bl,"onSelect"),0<r.length&&(t=new Hu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sn)))}function lo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kn={animationend:lo("Animation","AnimationEnd"),animationiteration:lo("Animation","AnimationIteration"),animationstart:lo("Animation","AnimationStart"),transitionend:lo("Transition","TransitionEnd")},Ki={},ud={};vt&&(ud=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);function mi(e){if(Ki[e])return Ki[e];if(!kn[e])return e;var t=kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ud)return Ki[e]=t[n];return e}var sd=mi("animationend"),ad=mi("animationiteration"),cd=mi("animationstart"),dd=mi("transitionend"),fd=new Map,la="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 Wt(e,t){fd.set(e,t),dn(t,[e])}for(var Gi=0;Gi<la.length;Gi++){var qi=la[Gi],qm=qi.toLowerCase(),Xm=qi[0].toUpperCase()+qi.slice(1);Wt(qm,"on"+Xm)}Wt(sd,"onAnimationEnd");Wt(ad,"onAnimationIteration");Wt(cd,"onAnimationStart");Wt("dblclick","onDoubleClick");Wt("focusin","onFocus");Wt("focusout","onBlur");Wt(dd,"onTransitionEnd");An("onMouseEnter",["mouseout","mouseover"]);An("onMouseLeave",["mouseout","mouseover"]);An("onPointerEnter",["pointerout","pointerover"]);An("onPointerLeave",["pointerout","pointerover"]);dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dr="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(" "),Ym=new Set("cancel close invalid load scroll toggle".split(" ").concat(dr));function ua(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,qp(r,t,void 0,e),e.currentTarget=null}function pd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var u=r[l],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;ua(o,u,a),i=s}else for(l=0;l<r.length;l++){if(u=r[l],s=u.instance,a=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;ua(o,u,a),i=s}}}if(Do)throw e=Ml,Do=!1,Ml=null,e}function b(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(md(t,e,2,!1),n.add(r))}function Xi(e,t,n){var r=0;t&&(r|=4),md(n,e,r,t)}var uo="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[uo]){e[uo]=!0,kc.forEach(function(n){n!=="selectionchange"&&(Ym.has(n)||Xi(n,!1,e),Xi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uo]||(t[uo]=!0,Xi("selectionchange",!1,t))}}function md(e,t,n,r){switch(Yc(t)){case 1:var o=dm;break;case 4:o=fm;break;default:o=Iu}n=o.bind(null,t,n,e),o=void 0,!Dl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Yi(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;l=l.return}for(;u!==null;){if(l=Jt(u),l===null)return;if(s=l.tag,s===5||s===6){r=i=l;continue e}u=u.parentNode}}r=r.return}Mc(function(){var a=i,d=Du(n),c=[];e:{var m=fd.get(e);if(m!==void 0){var w=Hu,g=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":w=Pm;break;case"focusin":g="focus",w=Vi;break;case"focusout":g="blur",w=Vi;break;case"beforeblur":case"afterblur":w=Vi;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":w=qs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=hm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=_m;break;case sd:case ad:case cd:w=vm;break;case dd:w=Om;break;case"scroll":w=pm;break;case"wheel":w=jm;break;case"copy":case"cut":case"paste":w=Sm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Ys}var y=(t&4)!==0,x=!y&&e==="scroll",p=y?m!==null?m+"Capture":null:m;y=[];for(var f=a,h;f!==null;){h=f;var E=h.stateNode;if(h.tag===5&&E!==null&&(h=E,p!==null&&(E=Tr(f,p),E!=null&&y.push(Or(f,E,h)))),x)break;f=f.return}0<y.length&&(m=new w(m,g,null,n,d),c.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",m&&n!==jl&&(g=n.relatedTarget||n.fromElement)&&(Jt(g)||g[wt]))break e;if((w||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,w?(g=n.relatedTarget||n.toElement,w=a,g=g?Jt(g):null,g!==null&&(x=fn(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(w=null,g=a),w!==g)){if(y=qs,E="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ys,E="onPointerLeave",p="onPointerEnter",f="pointer"),x=w==null?m:En(w),h=g==null?m:En(g),m=new y(E,f+"leave",w,n,d),m.target=x,m.relatedTarget=h,E=null,Jt(d)===a&&(y=new y(p,f+"enter",g,n,d),y.target=h,y.relatedTarget=x,E=y),x=E,w&&g)t:{for(y=w,p=g,f=0,h=y;h;h=yn(h))f++;for(h=0,E=p;E;E=yn(E))h++;for(;0<f-h;)y=yn(y),f--;for(;0<h-f;)p=yn(p),h--;for(;f--;){if(y===p||p!==null&&y===p.alternate)break t;y=yn(y),p=yn(p)}y=null}else y=null;w!==null&&sa(c,m,w,y,!1),g!==null&&x!==null&&sa(c,x,g,y,!0)}}e:{if(m=a?En(a):window,w=m.nodeName&&m.nodeName.toLowerCase(),w==="select"||w==="input"&&m.type==="file")var P=Bm;else if(ea(m))if(rd)P=Wm;else{P=bm;var N=Hm}else(w=m.nodeName)&&w.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=Vm);if(P&&(P=P(e,a))){nd(c,P,n,d);break e}N&&N(e,m,a),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Ll(m,"number",m.value)}switch(N=a?En(a):window,e){case"focusin":(ea(N)||N.contentEditable==="true")&&(Sn=N,Bl=a,gr=null);break;case"focusout":gr=Bl=Sn=null;break;case"mousedown":Hl=!0;break;case"contextmenu":case"mouseup":case"dragend":Hl=!1,ia(c,n,d);break;case"selectionchange":if(Gm)break;case"keydown":case"keyup":ia(c,n,d)}var T;if(Vu)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else wn?ed(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Zc&&n.locale!=="ko"&&(wn||L!=="onCompositionStart"?L==="onCompositionEnd"&&wn&&(T=Jc()):(Ot=d,Bu="value"in Ot?Ot.value:Ot.textContent,wn=!0)),N=Bo(a,L),0<N.length&&(L=new Xs(L,e,null,n,d),c.push({event:L,listeners:N}),T?L.data=T:(T=td(n),T!==null&&(L.data=T)))),(T=Dm?Mm(e,n):$m(e,n))&&(a=Bo(a,"onBeforeInput"),0<a.length&&(d=new Xs("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:a}),d.data=T))}pd(c,t)})}function Or(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Tr(e,n),i!=null&&r.unshift(Or(e,i,o)),i=Tr(e,t),i!=null&&r.push(Or(e,i,o))),e=e.return}return r}function yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sa(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,o?(s=Tr(n,i),s!=null&&l.unshift(Or(n,s,u))):o||(s=Tr(n,i),s!=null&&l.push(Or(n,s,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Jm=/\r\n?/g,Zm=/\u0000|\uFFFD/g;function aa(e){return(typeof e=="string"?e:""+e).replace(Jm,` | |
`).replace(Zm,"")}function so(e,t,n){if(t=aa(t),aa(e)!==t&&n)throw Error(C(425))}function Ho(){}var bl=null,Vl=null;function Wl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ql=typeof setTimeout=="function"?setTimeout:void 0,eh=typeof clearTimeout=="function"?clearTimeout:void 0,ca=typeof Promise=="function"?Promise:void 0,th=typeof queueMicrotask=="function"?queueMicrotask:typeof ca<"u"?function(e){return ca.resolve(null).then(e).catch(nh)}:Ql;function nh(e){setTimeout(function(){throw e})}function Ji(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Rr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Rr(t)}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function da(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),tt="__reactFiber$"+Wn,Fr="__reactProps$"+Wn,wt="__reactContainer$"+Wn,Kl="__reactEvents$"+Wn,rh="__reactListeners$"+Wn,oh="__reactHandles$"+Wn;function Jt(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=da(e);e!==null;){if(n=e[tt])return n;e=da(e)}return t}e=n,n=e.parentNode}return null}function Vr(e){return e=e[tt]||e[wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function hi(e){return e[Fr]||null}var Gl=[],xn=-1;function Qt(e){return{current:e}}function V(e){0>xn||(e.current=Gl[xn],Gl[xn]=null,xn--)}function H(e,t){xn++,Gl[xn]=e.current,e.current=t}var Vt={},pe=Qt(Vt),xe=Qt(!1),ln=Vt;function Dn(e,t){var n=e.type.contextTypes;if(!n)return Vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ce(e){return e=e.childContextTypes,e!=null}function bo(){V(xe),V(pe)}function fa(e,t,n){if(pe.current!==Vt)throw Error(C(168));H(pe,t),H(xe,n)}function hd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,Hp(e)||"Unknown",o));return q({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,ln=pe.current,H(pe,e),H(xe,xe.current),!0}function pa(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=hd(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,V(xe),V(pe),H(pe,e)):V(xe),H(xe,n)}var ct=null,yi=!1,Zi=!1;function yd(e){ct===null?ct=[e]:ct.push(e)}function ih(e){yi=!0,yd(e)}function Kt(){if(!Zi&&ct!==null){Zi=!0;var e=0,t=B;try{var n=ct;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ct=null,yi=!1}catch(o){throw ct!==null&&(ct=ct.slice(e+1)),Bc(Mu,Kt),o}finally{B=t,Zi=!1}}return null}var Cn=[],Tn=0,Wo=null,Qo=0,Ae=[],De=0,un=null,ft=1,pt="";function qt(e,t){Cn[Tn++]=Qo,Cn[Tn++]=Wo,Wo=e,Qo=t}function gd(e,t,n){Ae[De++]=ft,Ae[De++]=pt,Ae[De++]=un,un=e;var r=ft;e=pt;var o=32-qe(r)-1;r&=~(1<<o),n+=1;var i=32-qe(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ft=1<<32-qe(t)+o|n<<o|r,pt=i+e}else ft=1<<i|n<<o|r,pt=e}function Qu(e){e.return!==null&&(qt(e,1),gd(e,1,0))}function Ku(e){for(;e===Wo;)Wo=Cn[--Tn],Cn[Tn]=null,Qo=Cn[--Tn],Cn[Tn]=null;for(;e===un;)un=Ae[--De],Ae[De]=null,pt=Ae[--De],Ae[De]=null,ft=Ae[--De],Ae[De]=null}var Le=null,Re=null,W=!1,Ge=null;function vd(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 ma(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Le=e,Re=$t(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,Re=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:ft,overflow:pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Me(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,Re=null,!0):!1;default:return!1}}function ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xl(e){if(W){var t=Re;if(t){var n=t;if(!ma(e,t)){if(ql(e))throw Error(C(418));t=$t(n.nextSibling);var r=Le;t&&ma(e,t)?vd(r,n):(e.flags=e.flags&-4097|2,W=!1,Le=e)}}else{if(ql(e))throw Error(C(418));e.flags=e.flags&-4097|2,W=!1,Le=e}}}function ha(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function ao(e){if(e!==Le)return!1;if(!W)return ha(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wl(e.type,e.memoizedProps)),t&&(t=Re)){if(ql(e))throw wd(),Error(C(418));for(;t;)vd(e,t),t=$t(t.nextSibling)}if(ha(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Re=$t(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Re=null}}else Re=Le?$t(e.stateNode.nextSibling):null;return!0}function wd(){for(var e=Re;e;)e=$t(e.nextSibling)}function Mn(){Re=Le=null,W=!1}function Gu(e){Ge===null?Ge=[e]:Ge.push(e)}var lh=Et.ReactCurrentBatchConfig;function Qe(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ko=Qt(null),Go=null,Nn=null,qu=null;function Xu(){qu=Nn=Go=null}function Yu(e){var t=Ko.current;V(Ko),e._currentValue=t}function Yl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fn(e,t){Go=e,qu=Nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(qu!==e)if(e={context:e,memoizedValue:t,next:null},Nn===null){if(Go===null)throw Error(C(308));Nn=e,Go.dependencies={lanes:0,firstContext:e}}else Nn=Nn.next=e;return t}var Zt=null;function Ju(e){Zt===null?Zt=[e]:Zt.push(e)}function Sd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ju(t)):(n.next=o.next,o.next=n),t.interleaved=n,St(e,r)}function St(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kd(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,$&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,St(e,n)}return o=r.interleaved,o===null?(t.next=t,Ju(r)):(t.next=o.next,o.next=t),r.interleaved=t,St(e,n)}function xo(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 ya(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var o=e.updateQueue;Rt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,a=s.next;s.next=null,l===null?i=a:l.next=a,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==l&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;l=0,d=a=s=null,u=i;do{var m=u.lane,w=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,y=u;switch(m=t,w=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){c=g.call(w,c,m);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,m=typeof g=="function"?g.call(w,c,m):g,m==null)break e;c=q({},c,m);break e;case 2:Rt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=w,s=c):d=d.next=w,l|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(s=c),o.baseState=s,o.firstBaseUpdate=a,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);an|=l,e.lanes=l,e.memoizedState=c}}function ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(C(191,o));o.call(r)}}}var Ed=new Sc.Component().refs;function Jl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gi={isMounted:function(e){return(e=e._reactInternals)?fn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=he(),o=Bt(e),i=mt(r,o);i.payload=t,n!=null&&(i.callback=n),t=zt(e,i,o),t!==null&&(Xe(t,e,o,r),xo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=he(),o=Bt(e),i=mt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=zt(e,i,o),t!==null&&(Xe(t,e,o,r),xo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=he(),r=Bt(e),o=mt(n,r);o.tag=2,t!=null&&(o.callback=t),t=zt(e,o,r),t!==null&&(Xe(t,e,r,n),xo(t,e,r))}};function va(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!_r(n,r)||!_r(o,i):!0}function xd(e,t,n){var r=!1,o=Vt,i=t.contextType;return typeof i=="object"&&i!==null?i=Ie(i):(o=Ce(t)?ln:pe.current,r=t.contextTypes,i=(r=r!=null)?Dn(e,o):Vt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wa(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&&gi.enqueueReplaceState(t,t.state,null)}function Zl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ed,Zu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ie(i):(i=Ce(t)?ln:pe.current,o.context=Dn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jl(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),qo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function nr(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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var u=o.refs;u===Ed&&(u=o.refs={}),l===null?delete u[i]:u[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function co(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sa(e){var t=e._init;return t(e._payload)}function Cd(e){function t(p,f){if(e){var h=p.deletions;h===null?(p.deletions=[f],p.flags|=16):h.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 o(p,f){return p=Ht(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags|=2,f):h):(p.flags|=2,f)):(p.flags|=1048576,f)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function u(p,f,h,E){return f===null||f.tag!==6?(f=ll(h,p.mode,E),f.return=p,f):(f=o(f,h),f.return=p,f)}function s(p,f,h,E){var P=h.type;return P===vn?d(p,f,h.props.children,E,h.key):f!==null&&(f.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Pt&&Sa(P)===f.type)?(E=o(f,h.props),E.ref=nr(p,f,h),E.return=p,E):(E=Lo(h.type,h.key,h.props,null,p.mode,E),E.ref=nr(p,f,h),E.return=p,E)}function a(p,f,h,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=ul(h,p.mode,E),f.return=p,f):(f=o(f,h.children||[]),f.return=p,f)}function d(p,f,h,E,P){return f===null||f.tag!==7?(f=rn(h,p.mode,E,P),f.return=p,f):(f=o(f,h),f.return=p,f)}function c(p,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ll(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Zr:return h=Lo(f.type,f.key,f.props,null,p.mode,h),h.ref=nr(p,null,f),h.return=p,h;case gn:return f=ul(f,p.mode,h),f.return=p,f;case Pt:var E=f._init;return c(p,E(f._payload),h)}if(ar(f)||Yn(f))return f=rn(f,p.mode,h,null),f.return=p,f;co(p,f)}return null}function m(p,f,h,E){var P=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return P!==null?null:u(p,f,""+h,E);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Zr:return h.key===P?s(p,f,h,E):null;case gn:return h.key===P?a(p,f,h,E):null;case Pt:return P=h._init,m(p,f,P(h._payload),E)}if(ar(h)||Yn(h))return P!==null?null:d(p,f,h,E,null);co(p,h)}return null}function w(p,f,h,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return p=p.get(h)||null,u(f,p,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Zr:return p=p.get(E.key===null?h:E.key)||null,s(f,p,E,P);case gn:return p=p.get(E.key===null?h:E.key)||null,a(f,p,E,P);case Pt:var N=E._init;return w(p,f,h,N(E._payload),P)}if(ar(E)||Yn(E))return p=p.get(h)||null,d(f,p,E,P,null);co(f,E)}return null}function g(p,f,h,E){for(var P=null,N=null,T=f,L=f=0,D=null;T!==null&&L<h.length;L++){T.index>L?(D=T,T=null):D=T.sibling;var U=m(p,T,h[L],E);if(U===null){T===null&&(T=D);break}e&&T&&U.alternate===null&&t(p,T),f=i(U,f,L),N===null?P=U:N.sibling=U,N=U,T=D}if(L===h.length)return n(p,T),W&&qt(p,L),P;if(T===null){for(;L<h.length;L++)T=c(p,h[L],E),T!==null&&(f=i(T,f,L),N===null?P=T:N.sibling=T,N=T);return W&&qt(p,L),P}for(T=r(p,T);L<h.length;L++)D=w(T,p,L,h[L],E),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?L:D.key),f=i(D,f,L),N===null?P=D:N.sibling=D,N=D);return e&&T.forEach(function(z){return t(p,z)}),W&&qt(p,L),P}function y(p,f,h,E){var P=Yn(h);if(typeof P!="function")throw Error(C(150));if(h=P.call(h),h==null)throw Error(C(151));for(var N=P=null,T=f,L=f=0,D=null,U=h.next();T!==null&&!U.done;L++,U=h.next()){T.index>L?(D=T,T=null):D=T.sibling;var z=m(p,T,U.value,E);if(z===null){T===null&&(T=D);break}e&&T&&z.alternate===null&&t(p,T),f=i(z,f,L),N===null?P=z:N.sibling=z,N=z,T=D}if(U.done)return n(p,T),W&&qt(p,L),P;if(T===null){for(;!U.done;L++,U=h.next())U=c(p,U.value,E),U!==null&&(f=i(U,f,L),N===null?P=U:N.sibling=U,N=U);return W&&qt(p,L),P}for(T=r(p,T);!U.done;L++,U=h.next())U=w(T,p,L,U.value,E),U!==null&&(e&&U.alternate!==null&&T.delete(U.key===null?L:U.key),f=i(U,f,L),N===null?P=U:N.sibling=U,N=U);return e&&T.forEach(function(ve){return t(p,ve)}),W&&qt(p,L),P}function x(p,f,h,E){if(typeof h=="object"&&h!==null&&h.type===vn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Zr:e:{for(var P=h.key,N=f;N!==null;){if(N.key===P){if(P=h.type,P===vn){if(N.tag===7){n(p,N.sibling),f=o(N,h.props.children),f.return=p,p=f;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Pt&&Sa(P)===N.type){n(p,N.sibling),f=o(N,h.props),f.ref=nr(p,N,h),f.return=p,p=f;break e}n(p,N);break}else t(p,N);N=N.sibling}h.type===vn?(f=rn(h.props.children,p.mode,E,h.key),f.return=p,p=f):(E=Lo(h.type,h.key,h.props,null,p.mode,E),E.ref=nr(p,f,h),E.return=p,p=E)}return l(p);case gn:e:{for(N=h.key;f!==null;){if(f.key===N)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=o(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=ul(h,p.mode,E),f.return=p,p=f}return l(p);case Pt:return N=h._init,x(p,f,N(h._payload),E)}if(ar(h))return g(p,f,h,E);if(Yn(h))return y(p,f,h,E);co(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=o(f,h),f.return=p,p=f):(n(p,f),f=ll(h,p.mode,E),f.return=p,p=f),l(p)):n(p,f)}return x}var $n=Cd(!0),Td=Cd(!1),Wr={},ot=Qt(Wr),jr=Qt(Wr),Ar=Qt(Wr);function en(e){if(e===Wr)throw Error(C(174));return e}function es(e,t){switch(H(Ar,t),H(jr,e),H(ot,Wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ul(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ul(t,e)}V(ot),H(ot,t)}function zn(){V(ot),V(jr),V(Ar)}function Nd(e){en(Ar.current);var t=en(ot.current),n=Ul(t,e.type);t!==n&&(H(jr,e),H(ot,n))}function ts(e){jr.current===e&&(V(ot),V(jr))}var K=Qt(0);function Xo(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 el=[];function ns(){for(var e=0;e<el.length;e++)el[e]._workInProgressVersionPrimary=null;el.length=0}var Co=Et.ReactCurrentDispatcher,tl=Et.ReactCurrentBatchConfig,sn=0,G=null,te=null,re=null,Yo=!1,vr=!1,Dr=0,uh=0;function ae(){throw Error(C(321))}function rs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ye(e[n],t[n]))return!1;return!0}function os(e,t,n,r,o,i){if(sn=i,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Co.current=e===null||e.memoizedState===null?dh:fh,e=n(r,o),vr){i=0;do{if(vr=!1,Dr=0,25<=i)throw Error(C(301));i+=1,re=te=null,t.updateQueue=null,Co.current=ph,e=n(r,o)}while(vr)}if(Co.current=Jo,t=te!==null&&te.next!==null,sn=0,re=te=G=null,Yo=!1,t)throw Error(C(300));return e}function is(){var e=Dr!==0;return Dr=0,e}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?G.memoizedState=re=e:re=re.next=e,re}function Be(){if(te===null){var e=G.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=re===null?G.memoizedState:re.next;if(t!==null)re=t,te=e;else{if(e===null)throw Error(C(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},re===null?G.memoizedState=re=e:re=re.next=e}return re}function Mr(e,t){return typeof t=="function"?t(e):t}function nl(e){var t=Be(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=te,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=l=null,s=null,a=i;do{var d=a.lane;if((sn&d)===d)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=c,l=r):s=s.next=c,G.lanes|=d,an|=d}a=a.next}while(a!==null&&a!==i);s===null?l=r:s.next=u,Ye(r,t.memoizedState)||(Ee=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,G.lanes|=i,an|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rl(e){var t=Be(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Ye(i,t.memoizedState)||(Ee=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pd(){}function Rd(e,t){var n=G,r=Be(),o=t(),i=!Ye(r.memoizedState,o);if(i&&(r.memoizedState=o,Ee=!0),r=r.queue,ls(Ud.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,$r(9,_d.bind(null,n,r,o,t),void 0,null),oe===null)throw Error(C(349));sn&30||Ld(n,t,o)}return o}function Ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _d(e,t,n,r){t.value=n,t.getSnapshot=r,Od(t)&&Fd(e)}function Ud(e,t,n){return n(function(){Od(t)&&Fd(e)})}function Od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ye(e,n)}catch{return!0}}function Fd(e){var t=St(e,1);t!==null&&Xe(t,e,1,-1)}function ka(e){var t=et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:e},t.queue=e,e=e.dispatch=ch.bind(null,G,e),[t.memoizedState,e]}function $r(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.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 jd(){return Be().memoizedState}function To(e,t,n,r){var o=et();G.flags|=e,o.memoizedState=$r(1|t,n,void 0,r===void 0?null:r)}function vi(e,t,n,r){var o=Be();r=r===void 0?null:r;var i=void 0;if(te!==null){var l=te.memoizedState;if(i=l.destroy,r!==null&&rs(r,l.deps)){o.memoizedState=$r(t,n,i,r);return}}G.flags|=e,o.memoizedState=$r(1|t,n,i,r)}function Ea(e,t){return To(8390656,8,e,t)}function ls(e,t){return vi(2048,8,e,t)}function Ad(e,t){return vi(4,2,e,t)}function Dd(e,t){return vi(4,4,e,t)}function Md(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 $d(e,t,n){return n=n!=null?n.concat([e]):null,vi(4,4,Md.bind(null,t,e),n)}function us(){}function zd(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Id(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bd(e,t,n){return sn&21?(Ye(n,t)||(n=Vc(),G.lanes|=n,an|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function sh(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=tl.transition;tl.transition={};try{e(!1),t()}finally{B=n,tl.transition=r}}function Hd(){return Be().memoizedState}function ah(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Vd(t,n);else if(n=Sd(e,t,n,r),n!==null){var o=he();Xe(n,e,r,o),Wd(n,t,r)}}function ch(e,t,n){var r=Bt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Vd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.hasEagerState=!0,o.eagerState=u,Ye(u,l)){var s=t.interleaved;s===null?(o.next=o,Ju(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Sd(e,t,o,r),n!==null&&(o=he(),Xe(n,e,r,o),Wd(n,t,r))}}function bd(e){var t=e.alternate;return e===G||t!==null&&t===G}function Vd(e,t){vr=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$u(e,n)}}var Jo={readContext:Ie,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},dh={readContext:Ie,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,Md.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();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=ah.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:ka,useDebugValue:us,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=ka(!1),t=e[0];return e=sh.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,o=et();if(W){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),oe===null)throw Error(C(349));sn&30||Ld(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ea(Ud.bind(null,r,i,e),[e]),r.flags|=2048,$r(9,_d.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=et(),t=oe.identifierPrefix;if(W){var n=pt,r=ft;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=uh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fh={readContext:Ie,useCallback:zd,useContext:Ie,useEffect:ls,useImperativeHandle:$d,useInsertionEffect:Ad,useLayoutEffect:Dd,useMemo:Id,useReducer:nl,useRef:jd,useState:function(){return nl(Mr)},useDebugValue:us,useDeferredValue:function(e){var t=Be();return Bd(t,te.memoizedState,e)},useTransition:function(){var e=nl(Mr)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Pd,useSyncExternalStore:Rd,useId:Hd,unstable_isNewReconciler:!1},ph={readContext:Ie,useCallback:zd,useContext:Ie,useEffect:ls,useImperativeHandle:$d,useInsertionEffect:Ad,useLayoutEffect:Dd,useMemo:Id,useReducer:rl,useRef:jd,useState:function(){return rl(Mr)},useDebugValue:us,useDeferredValue:function(e){var t=Be();return te===null?t.memoizedState=e:Bd(t,te.memoizedState,e)},useTransition:function(){var e=rl(Mr)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Pd,useSyncExternalStore:Rd,useId:Hd,unstable_isNewReconciler:!1};function In(e,t){try{var n="",r=t;do n+=Bp(r),r=r.return;while(r);var o=n}catch(i){o=` | |
Error generating stack: `+i.message+` | |
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mh=typeof WeakMap=="function"?WeakMap:Map;function Qd(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ei||(ei=!0,cu=r),eu(e,t)},n}function Kd(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){eu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){eu(e,t),typeof r!="function"&&(It===null?It=new Set([this]):It.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function xa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Rh.bind(null,e,t,n),t.then(e,e))}function Ca(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ta(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var hh=Et.ReactCurrentOwner,Ee=!1;function me(e,t,n,r){t.child=e===null?Td(t,null,n,r):$n(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return Fn(t,o),r=os(e,t,n,r,i,o),n=is(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kt(e,t,o)):(W&&n&&Qu(t),t.flags|=1,me(e,t,r,o),t.child)}function Pa(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!hs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Gd(e,t,i,r,o)):(e=Lo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:_r,n(l,r)&&e.ref===t.ref)return kt(e,t,o)}return t.flags|=1,e=Ht(i,r),e.ref=t.ref,e.return=t,t.child=e}function Gd(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(_r(i,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,kt(e,t,o)}return tu(e,t,n,r,o)}function qd(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},H(Rn,Ne),Ne|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,H(Rn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,H(Rn,Ne),Ne|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,H(Rn,Ne),Ne|=r;return me(e,t,o,n),t.child}function Xd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tu(e,t,n,r,o){var i=Ce(n)?ln:pe.current;return i=Dn(t,i),Fn(t,o),n=os(e,t,n,r,i,o),r=is(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kt(e,t,o)):(W&&r&&Qu(t),t.flags|=1,me(e,t,n,o),t.child)}function Ra(e,t,n,r,o){if(Ce(n)){var i=!0;Vo(t)}else i=!1;if(Fn(t,o),t.stateNode===null)No(e,t),xd(t,n,r),Zl(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var s=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ie(a):(a=Ce(n)?ln:pe.current,a=Dn(t,a));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||s!==a)&&wa(t,l,r,a),Rt=!1;var m=t.memoizedState;l.state=m,qo(t,r,l,o),s=t.memoizedState,u!==r||m!==s||xe.current||Rt?(typeof d=="function"&&(Jl(t,n,d,r),s=t.memoizedState),(u=Rt||va(t,n,u,r,m,s,a))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=a,r=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,kd(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Qe(t.type,u),l.props=a,c=t.pendingProps,m=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ie(s):(s=Ce(n)?ln:pe.current,s=Dn(t,s));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==c||m!==s)&&wa(t,l,r,s),Rt=!1,m=t.memoizedState,l.state=m,qo(t,r,l,o);var g=t.memoizedState;u!==c||m!==g||xe.current||Rt?(typeof w=="function"&&(Jl(t,n,w,r),g=t.memoizedState),(a=Rt||va(t,n,a,r,m,g,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=s,r=a):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return nu(e,t,n,r,i,o)}function nu(e,t,n,r,o,i){Xd(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&pa(t,n,!1),kt(e,t,i);r=t.stateNode,hh.current=t;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=$n(t,e.child,null,i),t.child=$n(t,null,u,i)):me(e,t,u,i),t.memoizedState=r.state,o&&pa(t,n,!0),t.child}function Yd(e){var t=e.stateNode;t.pendingContext?fa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fa(e,t.context,!1),es(e,t.containerInfo)}function La(e,t,n,r,o){return Mn(),Gu(o),t.flags|=256,me(e,t,n,r),t.child}var ru={dehydrated:null,treeContext:null,retryLane:0};function ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jd(e,t,n){var r=t.pendingProps,o=K.current,i=!1,l=(t.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),H(K,o&1),e===null)return Xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=ki(l,r,0,null),e=rn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ou(n),t.memoizedState=ru,e):ss(t,l));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return yh(e,t,l,r,u,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,u=o.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Ht(o,s),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=Ht(u,i):(i=rn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ou(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ru,r}return i=e.child,e=i.sibling,r=Ht(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ss(e,t){return t=ki({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fo(e,t,n,r){return r!==null&&Gu(r),$n(t,e.child,null,n),e=ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yh(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=ol(Error(C(422))),fo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ki({mode:"visible",children:r.children},o,0,null),i=rn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&$n(t,e.child,null,l),t.child.memoizedState=ou(l),t.memoizedState=ru,i);if(!(t.mode&1))return fo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(C(419)),r=ol(i,r,void 0),fo(e,t,l,r)}if(u=(l&e.childLanes)!==0,Ee||u){if(r=oe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,St(e,o),Xe(r,e,o,-1))}return ms(),r=ol(Error(C(421))),fo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Lh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Re=$t(o.nextSibling),Le=t,W=!0,Ge=null,e!==null&&(Ae[De++]=ft,Ae[De++]=pt,Ae[De++]=un,ft=e.id,pt=e.overflow,un=t),t=ss(t,r.children),t.flags|=4096,t)}function _a(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yl(e.return,t,n)}function il(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Zd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(me(e,t,r.children,n),r=K.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&&_a(e,n,t);else if(e.tag===19)_a(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(H(K,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Xo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),il(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}il(t,!0,n,null,i);break;case"together":il(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function No(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(C(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gh(e,t,n){switch(t.tag){case 3:Yd(t),Mn();break;case 5:Nd(t);break;case 1:Ce(t.type)&&Vo(t);break;case 4:es(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;H(Ko,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(H(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?Jd(e,t,n):(H(K,K.current&1),e=kt(e,t,n),e!==null?e.sibling:null);H(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Zd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,qd(e,t,n)}return kt(e,t,n)}var ef,iu,tf,nf;ef=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};iu=function(){};tf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,en(ot.current);var i=null;switch(n){case"input":o=Pl(e,o),r=Pl(e,r),i=[];break;case"select":o=q({},o,{value:void 0}),r=q({},r,{value:void 0}),i=[];break;case"textarea":o=_l(e,o),r=_l(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ho)}Ol(n,r);var l;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var u=o[a];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(xr.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var s=r[a];if(u=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(l in u)!u.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&u[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(i||(i=[]),i.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(i=i||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(xr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&b("scroll",e),i||u===s||(i=[])):(i=i||[]).push(a,s))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};nf=function(e,t,n,r){n!==r&&(t.flags|=4)};function rr(e,t){if(!W)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 ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vh(e,t,n){var r=t.pendingProps;switch(Ku(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return Ce(t.type)&&bo(),ce(t),null;case 3:return r=t.stateNode,zn(),V(xe),V(pe),ns(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ao(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ge!==null&&(pu(Ge),Ge=null))),iu(e,t),ce(t),null;case 5:ts(t);var o=en(Ar.current);if(n=t.type,e!==null&&t.stateNode!=null)tf(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ce(t),null}if(e=en(ot.current),ao(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[tt]=t,r[Fr]=i,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(o=0;o<dr.length;o++)b(dr[o],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":zs(r,i),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},b("invalid",r);break;case"textarea":Bs(r,i),b("invalid",r)}Ol(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var u=i[l];l==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&so(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&so(r.textContent,u,e),o=["children",""+u]):xr.hasOwnProperty(l)&&u!=null&&l==="onScroll"&&b("scroll",r)}switch(n){case"input":eo(r),Is(r,i,!0);break;case"textarea":eo(r),Hs(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ho)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Lc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[tt]=t,e[Fr]=r,ef(e,t,!1,!1),t.stateNode=e;e:{switch(l=Fl(n,r),n){case"dialog":b("cancel",e),b("close",e),o=r;break;case"iframe":case"object":case"embed":b("load",e),o=r;break;case"video":case"audio":for(o=0;o<dr.length;o++)b(dr[o],e);o=r;break;case"source":b("error",e),o=r;break;case"img":case"image":case"link":b("error",e),b("load",e),o=r;break;case"details":b("toggle",e),o=r;break;case"input":zs(e,r),o=Pl(e,r),b("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=q({},r,{value:void 0}),b("invalid",e);break;case"textarea":Bs(e,r),o=_l(e,r),b("invalid",e);break;default:o=r}Ol(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var s=u[i];i==="style"?Oc(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&_c(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Cr(e,s):typeof s=="number"&&Cr(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xr.hasOwnProperty(i)?s!=null&&i==="onScroll"&&b("scroll",e):s!=null&&Ou(e,i,s,l))}switch(n){case"input":eo(e),Is(e,r,!1);break;case"textarea":eo(e),Hs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ln(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ho)}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 ce(t),null;case 6:if(e&&t.stateNode!=null)nf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=en(Ar.current),en(ot.current),ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[tt]=t,(i=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:so(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&so(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tt]=t,t.stateNode=r}return ce(t),null;case 13:if(V(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Re!==null&&t.mode&1&&!(t.flags&128))wd(),Mn(),t.flags|=98560,i=!1;else if(i=ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(C(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(C(317));i[tt]=t}else Mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),i=!1}else Ge!==null&&(pu(Ge),Ge=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||K.current&1?ne===0&&(ne=3):ms())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return zn(),iu(e,t),e===null&&Ur(t.stateNode.containerInfo),ce(t),null;case 10:return Yu(t.type._context),ce(t),null;case 17:return Ce(t.type)&&bo(),ce(t),null;case 19:if(V(K),i=t.memoizedState,i===null)return ce(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)rr(i,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Xo(e),l!==null){for(t.flags|=128,rr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(K,K.current&1|2),t.child}e=e.sibling}i.tail!==null&&J()>Bn&&(t.flags|=128,r=!0,rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!W)return ce(t),null}else 2*J()-i.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,rr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=K.current,H(K,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function wh(e,t){switch(Ku(t),t.tag){case 1:return Ce(t.type)&&bo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(),V(xe),V(pe),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(V(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(K),null;case 4:return zn(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var po=!1,de=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,_=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function lu(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Ua=!1;function kh(e,t){if(bl=zo,e=ld(),Wu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,u=-1,s=-1,a=0,d=0,c=e,m=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(u=l+o),c!==i||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===n&&++a===o&&(u=l),m===i&&++d===r&&(s=l),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vl={focusedElem:e,selectionRange:n},zo=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Qe(t.type,y),x);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(E){Y(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return g=Ua,Ua=!1,g}function wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&lu(t,n,i)}o=o.next}while(o!==r)}}function wi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rf(e){var t=e.alternate;t!==null&&(e.alternate=null,rf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[Fr],delete t[Kl],delete t[rh],delete t[oh])),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 of(e){return e.tag===5||e.tag===3||e.tag===4}function Oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||of(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function su(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ho));else if(r!==4&&(e=e.child,e!==null))for(su(e,t,n),e=e.sibling;e!==null;)su(e,t,n),e=e.sibling}function au(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}var le=null,Ke=!1;function Ct(e,t,n){for(n=n.child;n!==null;)lf(e,t,n),n=n.sibling}function lf(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(di,n)}catch{}switch(n.tag){case 5:de||Pn(n,t);case 6:var r=le,o=Ke;le=null,Ct(e,t,n),le=r,Ke=o,le!==null&&(Ke?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ke?(e=le,n=n.stateNode,e.nodeType===8?Ji(e.parentNode,n):e.nodeType===1&&Ji(e,n),Rr(e)):Ji(le,n.stateNode));break;case 4:r=le,o=Ke,le=n.stateNode.containerInfo,Ke=!0,Ct(e,t,n),le=r,Ke=o;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&lu(n,t,l),o=o.next}while(o!==r)}Ct(e,t,n);break;case 1:if(!de&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}Ct(e,t,n);break;case 21:Ct(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,Ct(e,t,n),de=r):Ct(e,t,n);break;default:Ct(e,t,n)}}function Fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var o=_h.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 5:le=u.stateNode,Ke=!1;break e;case 3:le=u.stateNode.containerInfo,Ke=!0;break e;case 4:le=u.stateNode.containerInfo,Ke=!0;break e}u=u.return}if(le===null)throw Error(C(160));lf(i,l,o),le=null,Ke=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(a){Y(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uf(t,e),t=t.sibling}function uf(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{wr(3,e,e.return),wi(3,e)}catch(y){Y(e,e.return,y)}try{wr(5,e,e.return)}catch(y){Y(e,e.return,y)}}break;case 1:We(t,e),Ze(e),r&512&&n!==null&&Pn(n,n.return);break;case 5:if(We(t,e),Ze(e),r&512&&n!==null&&Pn(n,n.return),e.flags&32){var o=e.stateNode;try{Cr(o,"")}catch(y){Y(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&Pc(o,i),Fl(u,l);var a=Fl(u,i);for(l=0;l<s.length;l+=2){var d=s[l],c=s[l+1];d==="style"?Oc(o,c):d==="dangerouslySetInnerHTML"?_c(o,c):d==="children"?Cr(o,c):Ou(o,d,c,a)}switch(u){case"input":Rl(o,i);break;case"textarea":Rc(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Ln(o,!!i.multiple,w,!1):m!==!!i.multiple&&(i.defaultValue!=null?Ln(o,!!i.multiple,i.defaultValue,!0):Ln(o,!!i.multiple,i.multiple?[]:"",!1))}o[Fr]=i}catch(y){Y(e,e.return,y)}}break;case 6:if(We(t,e),Ze(e),r&4){if(e.stateNode===null)throw Error(C(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){Y(e,e.return,y)}}break;case 3:if(We(t,e),Ze(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Rr(t.containerInfo)}catch(y){Y(e,e.return,y)}break;case 4:We(t,e),Ze(e);break;case 13:We(t,e),Ze(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ds=J())),r&4&&Fa(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(de=(a=de)||d,We(t,e),de=a):We(t,e),Ze(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(_=e,d=e.child;d!==null;){for(c=_=d;_!==null;){switch(m=_,w=m.child,m.tag){case 0:case 11:case 14:case 15:wr(4,m,m.return);break;case 1:Pn(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){Y(r,n,y)}}break;case 5:Pn(m,m.return);break;case 22:if(m.memoizedState!==null){Aa(c);continue}}w!==null?(w.return=m,_=w):Aa(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,a?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=c.stateNode,s=c.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Uc("display",l))}catch(y){Y(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(y){Y(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:We(t,e),Ze(e),r&4&&Fa(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(of(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Cr(o,""),r.flags&=-33);var i=Oa(e);au(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,u=Oa(e);su(e,u,l);break;default:throw Error(C(161))}}catch(s){Y(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eh(e,t,n){_=e,sf(e)}function sf(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var o=_,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||po;if(!l){var u=o.alternate,s=u!==null&&u.memoizedState!==null||de;u=po;var a=de;if(po=l,(de=s)&&!a)for(_=o;_!==null;)l=_,s=l.child,l.tag===22&&l.memoizedState!==null?Da(o):s!==null?(s.return=l,_=s):Da(o);for(;i!==null;)_=i,sf(i),i=i.sibling;_=o,po=u,de=a}ja(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,_=i):ja(e)}}function ja(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||wi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ga(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ga(t,l,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Rr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}de||t.flags&512&&uu(t)}catch(m){Y(t,t.return,m)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Aa(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function Da(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wi(4,t)}catch(s){Y(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Y(t,o,s)}}var i=t.return;try{uu(t)}catch(s){Y(t,i,s)}break;case 5:var l=t.return;try{uu(t)}catch(s){Y(t,l,s)}}}catch(s){Y(t,t.return,s)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var xh=Math.ceil,Zo=Et.ReactCurrentDispatcher,as=Et.ReactCurrentOwner,$e=Et.ReactCurrentBatchConfig,$=0,oe=null,Z=null,ue=0,Ne=0,Rn=Qt(0),ne=0,zr=null,an=0,Si=0,cs=0,Sr=null,ke=null,ds=0,Bn=1/0,at=null,ei=!1,cu=null,It=null,mo=!1,Ft=null,ti=0,kr=0,du=null,Po=-1,Ro=0;function he(){return $&6?J():Po!==-1?Po:Po=J()}function Bt(e){return e.mode&1?$&2&&ue!==0?ue&-ue:lh.transition!==null?(Ro===0&&(Ro=Vc()),Ro):(e=B,e!==0||(e=window.event,e=e===void 0?16:Yc(e.type)),e):1}function Xe(e,t,n,r){if(50<kr)throw kr=0,du=null,Error(C(185));Hr(e,n,r),(!($&2)||e!==oe)&&(e===oe&&(!($&2)&&(Si|=n),ne===4&&_t(e,ue)),Te(e,r),n===1&&$===0&&!(t.mode&1)&&(Bn=J()+500,yi&&Kt()))}function Te(e,t){var n=e.callbackNode;lm(e,t);var r=$o(e,e===oe?ue:0);if(r===0)n!==null&&Ws(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ws(n),t===1)e.tag===0?ih(Ma.bind(null,e)):yd(Ma.bind(null,e)),th(function(){!($&6)&&Kt()}),n=null;else{switch(Wc(r)){case 1:n=Mu;break;case 4:n=Hc;break;case 16:n=Mo;break;case 536870912:n=bc;break;default:n=Mo}n=yf(n,af.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function af(e,t){if(Po=-1,Ro=0,$&6)throw Error(C(327));var n=e.callbackNode;if(jn()&&e.callbackNode!==n)return null;var r=$o(e,e===oe?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ni(e,r);else{t=r;var o=$;$|=2;var i=df();(oe!==e||ue!==t)&&(at=null,Bn=J()+500,nn(e,t));do try{Nh();break}catch(u){cf(e,u)}while(!0);Xu(),Zo.current=i,$=o,Z!==null?t=0:(oe=null,ue=0,t=ne)}if(t!==0){if(t===2&&(o=$l(e),o!==0&&(r=o,t=fu(e,o))),t===1)throw n=zr,nn(e,0),_t(e,r),Te(e,J()),n;if(t===6)_t(e,r);else{if(o=e.current.alternate,!(r&30)&&!Ch(o)&&(t=ni(e,r),t===2&&(i=$l(e),i!==0&&(r=i,t=fu(e,i))),t===1))throw n=zr,nn(e,0),_t(e,r),Te(e,J()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Xt(e,ke,at);break;case 3:if(_t(e,r),(r&130023424)===r&&(t=ds+500-J(),10<t)){if($o(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ql(Xt.bind(null,e,ke,at),t);break}Xt(e,ke,at);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-qe(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xh(r/1960))-r,10<r){e.timeoutHandle=Ql(Xt.bind(null,e,ke,at),r);break}Xt(e,ke,at);break;case 5:Xt(e,ke,at);break;default:throw Error(C(329))}}}return Te(e,J()),e.callbackNode===n?af.bind(null,e):null}function fu(e,t){var n=Sr;return e.current.memoizedState.isDehydrated&&(nn(e,t).flags|=256),e=ni(e,t),e!==2&&(t=ke,ke=n,t!==null&&pu(t)),e}function pu(e){ke===null?ke=e:ke.push.apply(ke,e)}function Ch(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Ye(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _t(e,t){for(t&=~cs,t&=~Si,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qe(t),r=1<<n;e[n]=-1,t&=~r}}function Ma(e){if($&6)throw Error(C(327));jn();var t=$o(e,0);if(!(t&1))return Te(e,J()),null;var n=ni(e,t);if(e.tag!==0&&n===2){var r=$l(e);r!==0&&(t=r,n=fu(e,r))}if(n===1)throw n=zr,nn(e,0),_t(e,t),Te(e,J()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xt(e,ke,at),Te(e,J()),null}function fs(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(Bn=J()+500,yi&&Kt())}}function cn(e){Ft!==null&&Ft.tag===0&&!($&6)&&jn();var t=$;$|=1;var n=$e.transition,r=B;try{if($e.transition=null,B=1,e)return e()}finally{B=r,$e.transition=n,$=t,!($&6)&&Kt()}}function ps(){Ne=Rn.current,V(Rn)}function nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,eh(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(Ku(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:zn(),V(xe),V(pe),ns();break;case 5:ts(r);break;case 4:zn();break;case 13:V(K);break;case 19:V(K);break;case 10:Yu(r.type._context);break;case 22:case 23:ps()}n=n.return}if(oe=e,Z=e=Ht(e.current,null),ue=Ne=t,ne=0,zr=null,cs=Si=an=0,ke=Sr=null,Zt!==null){for(t=0;t<Zt.length;t++)if(n=Zt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Zt=null}return e}function cf(e,t){do{var n=Z;try{if(Xu(),Co.current=Jo,Yo){for(var r=G.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Yo=!1}if(sn=0,re=te=G=null,vr=!1,Dr=0,as.current=null,n===null||n.return===null){ne=1,zr=t,Z=null;break}e:{var i=e,l=n.return,u=n,s=t;if(t=ue,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,d=u,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var w=Ca(l);if(w!==null){w.flags&=-257,Ta(w,l,u,i,t),w.mode&1&&xa(i,a,t),t=w,s=a;var g=t.updateQueue;if(g===null){var y=new Set;y.add(s),t.updateQueue=y}else g.add(s);break e}else{if(!(t&1)){xa(i,a,t),ms();break e}s=Error(C(426))}}else if(W&&u.mode&1){var x=Ca(l);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ta(x,l,u,i,t),Gu(In(s,u));break e}}i=s=In(s,u),ne!==4&&(ne=2),Sr===null?Sr=[i]:Sr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=Qd(i,s,t);ya(i,p);break e;case 1:u=s;var f=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(It===null||!It.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Kd(i,u,t);ya(i,E);break e}}i=i.return}while(i!==null)}pf(n)}catch(P){t=P,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(!0)}function df(){var e=Zo.current;return Zo.current=Jo,e===null?Jo:e}function ms(){(ne===0||ne===3||ne===2)&&(ne=4),oe===null||!(an&268435455)&&!(Si&268435455)||_t(oe,ue)}function ni(e,t){var n=$;$|=2;var r=df();(oe!==e||ue!==t)&&(at=null,nn(e,t));do try{Th();break}catch(o){cf(e,o)}while(!0);if(Xu(),$=n,Zo.current=r,Z!==null)throw Error(C(261));return oe=null,ue=0,ne}function Th(){for(;Z!==null;)ff(Z)}function Nh(){for(;Z!==null&&!Yp();)ff(Z)}function ff(e){var t=hf(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?pf(e):Z=t,as.current=null}function pf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=wh(n,t),n!==null){n.flags&=32767,Z=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,Z=null;return}}else if(n=vh(n,t,Ne),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);ne===0&&(ne=5)}function Xt(e,t,n){var r=B,o=$e.transition;try{$e.transition=null,B=1,Ph(e,t,n,r)}finally{$e.transition=o,B=r}return null}function Ph(e,t,n,r){do jn();while(Ft!==null);if($&6)throw Error(C(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(um(e,i),e===oe&&(Z=oe=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||mo||(mo=!0,yf(Mo,function(){return jn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=$e.transition,$e.transition=null;var l=B;B=1;var u=$;$|=4,as.current=null,kh(e,n),uf(n,e),Km(Vl),zo=!!bl,Vl=bl=null,e.current=n,Eh(n),Jp(),$=u,B=l,$e.transition=i}else e.current=n;if(mo&&(mo=!1,Ft=e,ti=o),i=e.pendingLanes,i===0&&(It=null),tm(n.stateNode),Te(e,J()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ei)throw ei=!1,e=cu,cu=null,e;return ti&1&&e.tag!==0&&jn(),i=e.pendingLanes,i&1?e===du?kr++:(kr=0,du=e):kr=0,Kt(),null}function jn(){if(Ft!==null){var e=Wc(ti),t=$e.transition,n=B;try{if($e.transition=null,B=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,ti=0,$&6)throw Error(C(331));var o=$;for($|=4,_=e.current;_!==null;){var i=_,l=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(_=a;_!==null;){var d=_;switch(d.tag){case 0:case 11:case 15:wr(8,d,i)}var c=d.child;if(c!==null)c.return=d,_=c;else for(;_!==null;){d=_;var m=d.sibling,w=d.return;if(rf(d),d===a){_=null;break}if(m!==null){m.return=w,_=m;break}_=w}}}var g=i.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}_=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,_=l;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:wr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,_=p;break e}_=i.return}}var f=e.current;for(_=f;_!==null;){l=_;var h=l.child;if(l.subtreeFlags&2064&&h!==null)h.return=l,_=h;else e:for(l=f;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:wi(9,u)}}catch(P){Y(u,u.return,P)}if(u===l){_=null;break e}var E=u.sibling;if(E!==null){E.return=u.return,_=E;break e}_=u.return}}if($=o,Kt(),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(di,e)}catch{}r=!0}return r}finally{B=n,$e.transition=t}}return!1}function $a(e,t,n){t=In(n,t),t=Qd(e,t,1),e=zt(e,t,1),t=he(),e!==null&&(Hr(e,1,t),Te(e,t))}function Y(e,t,n){if(e.tag===3)$a(e,e,n);else for(;t!==null;){if(t.tag===3){$a(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(It===null||!It.has(r))){e=In(n,e),e=Kd(t,e,1),t=zt(t,e,1),e=he(),t!==null&&(Hr(t,1,e),Te(t,e));break}}t=t.return}}function Rh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&n,oe===e&&(ue&n)===n&&(ne===4||ne===3&&(ue&130023424)===ue&&500>J()-ds?nn(e,0):cs|=n),Te(e,t)}function mf(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=he();e=St(e,t),e!==null&&(Hr(e,t,n),Te(e,n))}function Lh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function _h(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),mf(e,n)}var hf;hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,gh(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,W&&t.flags&1048576&&gd(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;No(e,t),e=t.pendingProps;var o=Dn(t,pe.current);Fn(t,n),o=os(null,t,r,e,o,n);var i=is();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ce(r)?(i=!0,Vo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zu(t),o.updater=gi,t.stateNode=o,o._reactInternals=t,Zl(t,r,e,n),t=nu(null,t,r,!0,i,n)):(t.tag=0,W&&i&&Qu(t),me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(No(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Oh(r),e=Qe(r,e),o){case 0:t=tu(null,t,r,e,n);break e;case 1:t=Ra(null,t,r,e,n);break e;case 11:t=Na(null,t,r,e,n);break e;case 14:t=Pa(null,t,r,Qe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qe(r,o),tu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qe(r,o),Ra(e,t,r,o,n);case 3:e:{if(Yd(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,o=i.element,kd(e,t),qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=In(Error(C(423)),t),t=La(e,t,r,n,o);break e}else if(r!==o){o=In(Error(C(424)),t),t=La(e,t,r,n,o);break e}else for(Re=$t(t.stateNode.containerInfo.firstChild),Le=t,W=!0,Ge=null,n=Td(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===o){t=kt(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return Nd(t),e===null&&Xl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Wl(r,o)?l=null:i!==null&&Wl(r,i)&&(t.flags|=32),Xd(e,t),me(e,t,l,n),t.child;case 6:return e===null&&Xl(t),null;case 13:return Jd(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qe(r,o),Na(e,t,r,o,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,H(Ko,r._currentValue),r._currentValue=l,i!==null)if(Ye(i.value,l)){if(i.children===o.children&&!xe.current){t=kt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=mt(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Yl(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(C(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Yl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fn(t,n),o=Ie(o),r=r(o),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,o=Qe(r,t.pendingProps),o=Qe(r.type,o),Pa(e,t,r,o,n);case 15:return Gd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qe(r,o),No(e,t),t.tag=1,Ce(r)?(e=!0,Vo(t)):e=!1,Fn(t,n),xd(t,r,o),Zl(t,r,o,n),nu(null,t,r,!0,e,n);case 19:return Zd(e,t,n);case 22:return qd(e,t,n)}throw Error(C(156,t.tag))};function yf(e,t){return Bc(e,t)}function Uh(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 Uh(e,t,n,r)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oh(e){if(typeof e=="function")return hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ju)return 11;if(e===Au)return 14}return 2}function Ht(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 Lo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")hs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vn:return rn(n.children,o,i,t);case Fu:l=8,o|=8;break;case xl:return e=Me(12,n,t,o|2),e.elementType=xl,e.lanes=i,e;case Cl:return e=Me(13,n,t,o),e.elementType=Cl,e.lanes=i,e;case Tl:return e=Me(19,n,t,o),e.elementType=Tl,e.lanes=i,e;case Cc:return ki(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ec:l=10;break e;case xc:l=9;break e;case ju:l=11;break e;case Au:l=14;break e;case Pt:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Me(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function rn(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function ki(e,t,n,r){return e=Me(22,e,r,t),e.elementType=Cc,e.lanes=n,e.stateNode={isHidden:!1},e}function ll(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ul(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 Fh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bi(0),this.expirationTimes=Bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ys(e,t,n,r,o,i,l,u,s){return e=new Fh(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Me(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zu(i),e}function jh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gf(e){if(!e)return Vt;e=e._reactInternals;e:{if(fn(e)!==e||e.tag!==1)throw Error(C(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(C(171))}if(e.tag===1){var n=e.type;if(Ce(n))return hd(e,n,t)}return t}function vf(e,t,n,r,o,i,l,u,s){return e=ys(n,r,!0,e,o,i,l,u,s),e.context=gf(null),n=e.current,r=he(),o=Bt(n),i=mt(r,o),i.callback=t??null,zt(n,i,o),e.current.lanes=o,Hr(e,o,r),Te(e,r),e}function Ei(e,t,n,r){var o=t.current,i=he(),l=Bt(o);return n=gf(n),t.context===null?t.context=n:t.pendingContext=n,t=mt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zt(o,t,l),e!==null&&(Xe(e,o,l,i),xo(e,o,l)),l}function ri(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 za(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gs(e,t){za(e,t),(e=e.alternate)&&za(e,t)}function Ah(){return null}var wf=typeof reportError=="function"?reportError:function(e){console.error(e)};function vs(e){this._internalRoot=e}xi.prototype.render=vs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ei(e,t,null,null)};xi.prototype.unmount=vs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cn(function(){Ei(null,e,null,null)}),t[wt]=null}};function xi(e){this._internalRoot=e}xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&Xc(e)}};function ws(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ia(){}function Dh(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var a=ri(l);i.call(a)}}var l=vf(t,r,e,0,null,!1,!1,"",Ia);return e._reactRootContainer=l,e[wt]=l.current,Ur(e.nodeType===8?e.parentNode:e),cn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var a=ri(s);u.call(a)}}var s=ys(e,0,!1,null,null,!1,!1,"",Ia);return e._reactRootContainer=s,e[wt]=s.current,Ur(e.nodeType===8?e.parentNode:e),cn(function(){Ei(t,s,n,r)}),s}function Ti(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var u=o;o=function(){var s=ri(l);u.call(s)}}Ei(t,l,e,o)}else l=Dh(n,t,e,o,r);return ri(l)}Qc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cr(t.pendingLanes);n!==0&&($u(t,n|1),Te(t,J()),!($&6)&&(Bn=J()+500,Kt()))}break;case 13:cn(function(){var r=St(e,1);if(r!==null){var o=he();Xe(r,e,1,o)}}),gs(e,1)}};zu=function(e){if(e.tag===13){var t=St(e,134217728);if(t!==null){var n=he();Xe(t,e,134217728,n)}gs(e,134217728)}};Kc=function(e){if(e.tag===13){var t=Bt(e),n=St(e,t);if(n!==null){var r=he();Xe(n,e,t,r)}gs(e,t)}};Gc=function(){return B};qc=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};Al=function(e,t,n){switch(t){case"input":if(Rl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=hi(r);if(!o)throw Error(C(90));Nc(r),Rl(r,o)}}}break;case"textarea":Rc(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}};Ac=fs;Dc=cn;var Mh={usingClientEntryPoint:!1,Events:[Vr,En,hi,Fc,jc,fs]},or={findFiberByHostInstance:Jt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},$h={bundleType:or.bundleType,version:or.version,rendererPackageName:or.rendererPackageName,rendererConfig:or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zc(e),e===null?null:e.stateNode},findFiberByHostInstance:or.findFiberByHostInstance||Ah,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 ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{di=ho.inject($h),rt=ho}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mh;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ws(t))throw Error(C(200));return jh(e,t,null,n)};Ue.createRoot=function(e,t){if(!ws(e))throw Error(C(299));var n=!1,r="",o=wf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ys(e,1,!1,null,null,n,!1,r,o),e[wt]=t.current,Ur(e.nodeType===8?e.parentNode:e),new vs(t)};Ue.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=zc(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return cn(e)};Ue.hydrate=function(e,t,n){if(!Ci(t))throw Error(C(200));return Ti(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!ws(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=wf;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=vf(t,null,e,1,n??null,o,!1,i,l),e[wt]=t.current,Ur(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new xi(t)};Ue.render=function(e,t,n){if(!Ci(t))throw Error(C(200));return Ti(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!Ci(e))throw Error(C(40));return e._reactRootContainer?(cn(function(){Ti(null,null,e,!1,function(){e._reactRootContainer=null,e[wt]=null})}),!0):!1};Ue.unstable_batchedUpdates=fs;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ci(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ti(e,t,n,!1,r)};Ue.version="18.2.0-next-9e3b772b8-20220608";function Sf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sf)}catch(e){console.error(e)}}Sf(),gc.exports=Ue;var kf=gc.exports,Ba=kf;kl.createRoot=Ba.createRoot,kl.hydrateRoot=Ba.hydrateRoot;function Ef(e,t){return function(){return e.apply(t,arguments)}}const{toString:zh}=Object.prototype,{getPrototypeOf:Ss}=Object,Ni=(e=>t=>{const n=zh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>Ni(t)===e),Pi=e=>t=>typeof t===e,{isArray:Qn}=Array,Ir=Pi("undefined");function Ih(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xf=it("ArrayBuffer");function Bh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xf(e.buffer),t}const Hh=Pi("string"),ze=Pi("function"),Cf=Pi("number"),Ri=e=>e!==null&&typeof e=="object",bh=e=>e===!0||e===!1,_o=e=>{if(Ni(e)!=="object")return!1;const t=Ss(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vh=it("Date"),Wh=it("File"),Qh=it("Blob"),Kh=it("FileList"),Gh=e=>Ri(e)&&ze(e.pipe),qh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=Ni(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},Xh=it("URLSearchParams"),Yh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Qn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let u;for(r=0;r<l;r++)u=i[r],t.call(null,e[u],u,e)}}function Tf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Nf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pf=e=>!Ir(e)&&e!==Nf;function mu(){const{caseless:e}=Pf(this)&&this||{},t={},n=(r,o)=>{const i=e&&Tf(t,o)||o;_o(t[i])&&_o(r)?t[i]=mu(t[i],r):_o(r)?t[i]=mu({},r):Qn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Qr(arguments[r],n);return t}const Jh=(e,t,n,{allOwnKeys:r}={})=>(Qr(t,(o,i)=>{n&&ze(o)?e[i]=Ef(o,n):e[i]=o},{allOwnKeys:r}),e),Zh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),e0=(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)},t0=(e,t,n,r)=>{let o,i,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Ss(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},n0=(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},r0=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!Cf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},o0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ss(Uint8Array)),i0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},l0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u0=it("HTMLFormElement"),s0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ha=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),a0=it("RegExp"),Rf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},c0=e=>{Rf(e,(t,n)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ze(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+"'")})}})},d0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},f0=()=>{},p0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),sl="abcdefghijklmnopqrstuvwxyz",ba="0123456789",Lf={DIGIT:ba,ALPHA:sl,ALPHA_DIGIT:sl+sl.toUpperCase()+ba},m0=(e=16,t=Lf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function h0(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const y0=e=>{const t=new Array(10),n=(r,o)=>{if(Ri(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Qn(r)?[]:{};return Qr(r,(l,u)=>{const s=n(l,o+1);!Ir(s)&&(i[u]=s)}),t[o]=void 0,i}}return r};return n(e,0)},g0=it("AsyncFunction"),v0=e=>e&&(Ri(e)||ze(e))&&ze(e.then)&&ze(e.catch),k={isArray:Qn,isArrayBuffer:xf,isBuffer:Ih,isFormData:qh,isArrayBufferView:Bh,isString:Hh,isNumber:Cf,isBoolean:bh,isObject:Ri,isPlainObject:_o,isUndefined:Ir,isDate:Vh,isFile:Wh,isBlob:Qh,isRegExp:a0,isFunction:ze,isStream:Gh,isURLSearchParams:Xh,isTypedArray:o0,isFileList:Kh,forEach:Qr,merge:mu,extend:Jh,trim:Yh,stripBOM:Zh,inherits:e0,toFlatObject:t0,kindOf:Ni,kindOfTest:it,endsWith:n0,toArray:r0,forEachEntry:i0,matchAll:l0,isHTMLForm:u0,hasOwnProperty:Ha,hasOwnProp:Ha,reduceDescriptors:Rf,freezeMethods:c0,toObjectSet:d0,toCamelCase:s0,noop:f0,toFiniteNumber:p0,findKey:Tf,global:Nf,isContextDefined:Pf,ALPHABET:Lf,generateString:m0,isSpecCompliantForm:h0,toJSONObject:y0,isAsyncFn:g0,isThenable:v0};function M(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}k.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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _f=M.prototype,Uf={};["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=>{Uf[e]={value:e}});Object.defineProperties(M,Uf);Object.defineProperty(_f,"isAxiosError",{value:!0});M.from=(e,t,n,r,o,i)=>{const l=Object.create(_f);return k.toFlatObject(e,l,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),M.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const w0=null;function hu(e){return k.isPlainObject(e)||k.isArray(e)}function Of(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Va(e,t,n){return e?e.concat(t).map(function(o,i){return o=Of(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function S0(e){return k.isArray(e)&&!e.some(hu)}const k0=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Li(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!k.isUndefined(x[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,l=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(!s&&k.isBlob(g))throw new M("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,x){let p=g;if(g&&!x&&typeof g=="object"){if(k.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&S0(g)||(k.isFileList(g)||k.endsWith(y,"[]"))&&(p=k.toArray(g)))return y=Of(y),p.forEach(function(h,E){!(k.isUndefined(h)||h===null)&&t.append(l===!0?Va([y],E,i):l===null?y:y+"[]",a(h))}),!1}return hu(g)?!0:(t.append(Va(x,y,i),a(g)),!1)}const c=[],m=Object.assign(k0,{defaultVisitor:d,convertValue:a,isVisitable:hu});function w(g,y){if(!k.isUndefined(g)){if(c.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(g),k.forEach(g,function(p,f){(!(k.isUndefined(p)||p===null)&&o.call(t,p,k.isString(f)?f.trim():f,y,m))===!0&&w(p,y?y.concat(f):[f])}),c.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Wa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ks(e,t){this._pairs=[],e&&Li(e,this,t)}const Ff=ks.prototype;Ff.append=function(t,n){this._pairs.push([t,n])};Ff.toString=function(t){const n=t?function(r){return t.call(this,r,Wa)}:Wa;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function E0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jf(e,t,n){if(!t)return e;const r=n&&n.encode||E0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=k.isURLSearchParams(t)?t.toString():new ks(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class x0{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){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qa=x0,Af={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C0=typeof URLSearchParams<"u"?URLSearchParams:ks,T0=typeof FormData<"u"?FormData:null,N0=typeof Blob<"u"?Blob:null,P0={isBrowser:!0,classes:{URLSearchParams:C0,FormData:T0,Blob:N0},protocols:["http","https","file","blob","url","data"]},Df=typeof window<"u"&&typeof document<"u",R0=(e=>Df&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),L0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Df,hasStandardBrowserEnv:R0,hasStandardBrowserWebWorkerEnv:L0},Symbol.toStringTag,{value:"Module"})),nt={..._0,...P0};function U0(e,t){return Li(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nt.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function O0(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function F0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Mf(e){function t(n,r,o,i){let l=n[i++];const u=Number.isFinite(+l),s=i>=n.length;return l=!l&&k.isArray(o)?o.length:l,s?(k.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!k.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&k.isArray(o[l])&&(o[l]=F0(o[l])),!u)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,o)=>{t(O0(r),o,n,0)}),n}return null}function j0(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Es={transitional:Af,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return o&&o?JSON.stringify(Mf(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U0(t,this.formSerializer).toString();if((u=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Li(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),j0(t)):t}],transformResponse:[function(t){const n=this.transitional||Es.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&k.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?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:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Es.headers[e]={}});const xs=Es,A0=k.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"]),D0=e=>{const t={};let n,r,o;return e&&e.split(` | |
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&A0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ka=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function Uo(e){return e===!1||e==null?e:k.isArray(e)?e.map(Uo):String(e)}function M0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function al(e,t,n,r,o){if(k.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function z0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function I0(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class _i{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,s,a){const d=ir(s);if(!d)throw new Error("header name must be a non-empty string");const c=k.findKey(o,d);(!c||o[c]===void 0||a===!0||a===void 0&&o[c]!==!1)&&(o[c||s]=Uo(u))}const l=(u,s)=>k.forEach(u,(a,d)=>i(a,d,s));return k.isPlainObject(t)||t instanceof this.constructor?l(t,n):k.isString(t)&&(t=t.trim())&&!$0(t)?l(D0(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ir(t),t){const r=k.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return M0(o);if(k.isFunction(n))return n.call(this,o,r);if(k.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ir(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||al(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=ir(l),l){const u=k.findKey(r,l);u&&(!n||al(r,r[u],u,n))&&(delete r[u],o=!0)}}return k.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||al(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return k.forEach(this,(o,i)=>{const l=k.findKey(r,i);if(l){n[l]=Uo(o),delete n[i];return}const u=t?z0(i):String(i).trim();u!==i&&delete n[i],n[u]=Uo(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` | |
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ka]=this[Ka]={accessors:{}}).accessors,o=this.prototype;function i(l){const u=ir(l);r[u]||(I0(o,l),r[u]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}_i.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(_i.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(_i);const ht=_i;function cl(e,t){const n=this||xs,r=t||n,o=ht.from(r.headers);let i=r.data;return k.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function $f(e){return!!(e&&e.__CANCEL__)}function Kr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Kr,M,{__CANCEL__:!0});function B0(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 H0=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),k.isString(r)&&l.push("path="+r),k.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zf(e,t){return e&&!b0(t)?V0(e,t):t}const W0=nt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=k.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Q0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),d=r[i];l||(l=a),n[o]=s,r[o]=a;let c=i,m=0;for(;c!==o;)m+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l<t)return;const w=d&&a-d;return w?Math.round(m*1e3/w):void 0}}function Ga(e,t){let n=0;const r=K0(50,250);return o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,u=i-n,s=r(u),a=i<=l;n=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:s||void 0,estimated:s&&l&&a?(l-i)/s:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const G0=typeof XMLHttpRequest<"u",q0=G0&&function(e){return new Promise(function(n,r){let o=e.data;const i=ht.from(e.headers).normalize();let{responseType:l,withXSRFToken:u}=e,s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let d;if(k.isFormData(o)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[y,...x]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([y||"multipart/form-data",...x].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+x))}const m=zf(e.baseURL,e.url);c.open(e.method.toUpperCase(),jf(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const y=ht.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};B0(function(h){n(h),a()},function(h){r(h),a()},p),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new M("Request aborted",M.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Af;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new M(x,p.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,c)),c=null},nt.hasStandardBrowserEnv&&(u&&k.isFunction(u)&&(u=u(e)),u||u!==!1&&W0(m))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&H0.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(x,p){c.setRequestHeader(p,x)}),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ga(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ga(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=y=>{c&&(r(!y||y.type?new Kr(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=Q0(m);if(g&&nt.protocols.indexOf(g)===-1){r(new M("Unsupported protocol "+g+":",M.ERR_BAD_REQUEST,e));return}c.send(o||null)})},yu={http:w0,xhr:q0};k.forEach(yu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qa=e=>`- ${e}`,X0=e=>k.isFunction(e)||e===null||e===!1,If={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!X0(n)&&(r=yu[(l=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([u,s])=>`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : | |
`+i.map(qa).join(` | |
`):" "+qa(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:yu};function dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function Xa(e){return dl(e),e.headers=ht.from(e.headers),e.data=cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),If.getAdapter(e.adapter||xs.adapter)(e).then(function(r){return dl(e),r.data=cl.call(e,e.transformResponse,r),r.headers=ht.from(r.headers),r},function(r){return $f(r)||(dl(e),r&&r.response&&(r.response.data=cl.call(e,e.transformResponse,r.response),r.response.headers=ht.from(r.response.headers))),Promise.reject(r)})}const Ya=e=>e instanceof ht?e.toJSON():e;function Hn(e,t){t=t||{};const n={};function r(a,d,c){return k.isPlainObject(a)&&k.isPlainObject(d)?k.merge.call({caseless:c},a,d):k.isPlainObject(d)?k.merge({},d):k.isArray(d)?d.slice():d}function o(a,d,c){if(k.isUndefined(d)){if(!k.isUndefined(a))return r(void 0,a,c)}else return r(a,d,c)}function i(a,d){if(!k.isUndefined(d))return r(void 0,d)}function l(a,d){if(k.isUndefined(d)){if(!k.isUndefined(a))return r(void 0,a)}else return r(void 0,d)}function u(a,d,c){if(c in t)return r(a,d);if(c in e)return r(void 0,a)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(a,d)=>o(Ya(a),Ya(d),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(d){const c=s[d]||o,m=c(e[d],t[d],d);k.isUndefined(m)&&c!==u||(n[d]=m)}),n}const Bf="1.6.3",Cs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ja={};Cs.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Bf+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,u)=>{if(t===!1)throw new M(o(l," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ja[l]&&(Ja[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,u):!0}};function Y0(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 o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const u=e[i],s=u===void 0||l(u,i,e);if(s!==!0)throw new M("option "+i+" must be "+s,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const gu={assertOptions:Y0,validators:Cs},Tt=gu.validators;class oi{constructor(t){this.defaults=t,this.interceptors={request:new Qa,response:new Qa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Hn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&gu.assertOptions(r,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),o!=null&&(k.isFunction(o)?n.paramsSerializer={serialize:o}:gu.assertOptions(o,{encode:Tt.function,serialize:Tt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=ht.concat(l,i);const u=[];let s=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(s=s&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const a=[];this.interceptors.response.forEach(function(y){a.push(y.fulfilled,y.rejected)});let d,c=0,m;if(!s){const g=[Xa.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,a),m=g.length,d=Promise.resolve(n);c<m;)d=d.then(g[c++],g[c++]);return d}m=u.length;let w=n;for(c=0;c<m;){const g=u[c++],y=u[c++];try{w=g(w)}catch(x){y.call(this,x);break}}try{d=Xa.call(this,w)}catch(g){return Promise.reject(g)}for(c=0,m=a.length;c<m;)d=d.then(a[c++],a[c++]);return d}getUri(t){t=Hn(this.defaults,t);const n=zf(t.baseURL,t.url);return jf(n,t.params,t.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(t){oi.prototype[t]=function(n,r){return this.request(Hn(r||{},{method:t,url:n,data:(r||{}).data}))}});k.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,u){return this.request(Hn(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}oi.prototype[t]=n(),oi.prototype[t+"Form"]=n(!0)});const Oo=oi;class Ts{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(u=>{r.subscribe(u),i=u}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,u){r.reason||(r.reason=new Kr(i,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ts(function(o){t=o}),cancel:t}}}const J0=Ts;function Z0(e){return function(n){return e.apply(null,n)}}function ey(e){return k.isObject(e)&&e.isAxiosError===!0}const vu={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(vu).forEach(([e,t])=>{vu[t]=e});const ty=vu;function Hf(e){const t=new Oo(e),n=Ef(Oo.prototype.request,t);return k.extend(n,Oo.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Hf(Hn(e,o))},n}const ee=Hf(xs);ee.Axios=Oo;ee.CanceledError=Kr;ee.CancelToken=J0;ee.isCancel=$f;ee.VERSION=Bf;ee.toFormData=Li;ee.AxiosError=M;ee.Cancel=ee.CanceledError;ee.all=function(t){return Promise.all(t)};ee.spread=Z0;ee.isAxiosError=ey;ee.mergeConfig=Hn;ee.AxiosHeaders=ht;ee.formToJSON=e=>Mf(k.isHTMLForm(e)?new FormData(e):e);ee.getAdapter=If.getAdapter;ee.HttpStatusCode=ty;ee.default=ee;const ny=ee;var ry=Object.defineProperty,oy=(e,t,n)=>t in e?ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t,n)=>(oy(e,typeof t!="symbol"?t+"":t,n),n);let iy=class{constructor(){fl(this,"current",this.detect()),fl(this,"handoffState","pending"),fl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},yt=new iy,He=(e,t)=>{yt.isServer?v.useEffect(e,t):v.useLayoutEffect(e,t)};function gt(e){let t=v.useRef(e);return He(()=>{t.current=e},[e]),t}function Ui(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function pn(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ui(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=pn();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ns(){let[e]=v.useState(pn);return v.useEffect(()=>()=>e.dispose(),[e]),e}let Q=function(e){let t=gt(e);return j.useCallback((...n)=>t.current(...n),[t])};function ly(){let e=typeof document>"u";return"useSyncExternalStore"in Er?(t=>t.useSyncExternalStore)(Er)(()=>()=>{},()=>!1,()=>!e):!1}function Kn(){let e=ly(),[t,n]=v.useState(yt.isHandoffComplete);return t&&yt.isHandoffComplete===!1&&n(!1),v.useEffect(()=>{t!==!0&&n(!0)},[t]),v.useEffect(()=>yt.handoff(),[]),e?!1:t}var Za;let Gn=(Za=j.useId)!=null?Za:function(){let e=Kn(),[t,n]=j.useState(e?()=>yt.nextId():null);return He(()=>{t===null&&n(yt.nextId())},[t]),t!=null?""+t:void 0};function fe(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,fe),r}function bf(e){return yt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let wu=["[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 Yt=(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))(Yt||{}),Vf=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Vf||{}),uy=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(uy||{});function sy(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(wu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Wf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Wf||{});function ay(e,t=0){var n;return e===((n=bf(e))==null?void 0:n.body)?!1:fe(t,{0(){return e.matches(wu)},1(){let r=e;for(;r!==null;){if(r.matches(wu))return!0;r=r.parentElement}return!1}})}var cy=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(cy||{});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 on(e){e==null||e.focus({preventScroll:!0})}let dy=["textarea","input"].join(",");function fy(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,dy))!=null?n:!1}function py(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Fo(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?py(e):e:sy(e);o.length>0&&l.length>1&&(l=l.filter(w=>!o.includes(w))),r=r??i.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},d=0,c=l.length,m;do{if(d>=c||d+c<=0)return 0;let w=s+d;if(t&16)w=(w+c)%c;else{if(w<0)return 3;if(w>=c)return 1}m=l[w],m==null||m.focus(a),d+=u}while(m!==i.activeElement);return t&6&&fy(m)&&m.select(),2}function yo(e,t,n){let r=gt(t);v.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Qf(e,t,n){let r=gt(t);v.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function my(e,t,n=!0){let r=v.useRef(!1);v.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,u){if(!r.current||l.defaultPrevented)return;let s=u(l);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let a=function d(c){return typeof c=="function"?d(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let d of a){if(d===null)continue;let c=d instanceof HTMLElement?d:d.current;if(c!=null&&c.contains(s)||l.composed&&l.composedPath().includes(c))return}return!ay(s,Wf.Loose)&&s.tabIndex!==-1&&l.preventDefault(),t(l,s)}let i=v.useRef(null);yo("pointerdown",l=>{var u,s;r.current&&(i.current=((s=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:s[0])||l.target)},!0),yo("mousedown",l=>{var u,s;r.current&&(i.current=((s=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:s[0])||l.target)},!0),yo("click",l=>{i.current&&(o(l,()=>i.current),i.current=null)},!0),yo("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Qf("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let Kf=Symbol();function hy(e,t=!0){return Object.assign(e,{[Kf]:t})}function Je(...e){let t=v.useRef(e);v.useEffect(()=>{t.current=e},[e]);let n=Q(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Kf]))?void 0:n}function ii(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var li=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(li||{}),jt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jt||{});function be({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l}){let u=Gf(t,e);if(i)return go(u,n,r,l);let s=o??0;if(s&2){let{static:a=!1,...d}=u;if(a)return go(d,n,r,l)}if(s&1){let{unmount:a=!0,...d}=u;return fe(a?0:1,{0(){return null},1(){return go({...d,hidden:!0,style:{display:"none"}},n,r,l)}})}return go(u,n,r,l)}function go(e,t={},n,r){let{as:o=n,children:i,refName:l="ref",...u}=pl(e,["unmount","static"]),s=e.ref!==void 0?{[l]:e.ref}:{},a=typeof i=="function"?i(t):i;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let d={};if(t){let c=!1,m=[];for(let[w,g]of Object.entries(t))typeof g=="boolean"&&(c=!0),g===!0&&m.push(w);c&&(d["data-headlessui-state"]=m.join(" "))}if(o===v.Fragment&&Object.keys(ec(u)).length>0){if(!v.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(g=>` - ${g}`).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(g=>` - ${g}`).join(` | |
`)].join(` | |
`));let c=a.props,m=typeof(c==null?void 0:c.className)=="function"?(...g)=>ii(c==null?void 0:c.className(...g),u.className):ii(c==null?void 0:c.className,u.className),w=m?{className:m}:{};return v.cloneElement(a,Object.assign({},Gf(a.props,ec(pl(u,["ref"]))),d,s,yy(a.ref,s.ref),w))}return v.createElement(o,Object.assign({},pl(u,["ref"]),o!==v.Fragment&&s,o!==v.Fragment&&d),a)}function yy(...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 Gf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let u of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;u(o,...i)}}});return t}function Fe(e){var t;return Object.assign(v.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ec(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function pl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function gy(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&&vy(n)?!1:r}function vy(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let wy="div";var ui=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ui||{});function Sy(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return be({ourProps:o,theirProps:r,slot:{},defaultTag:wy,name:"Hidden"})}let Su=Fe(Sy),Ps=v.createContext(null);Ps.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 Rs(){return v.useContext(Ps)}function ky({value:e,children:t}){return j.createElement(Ps.Provider,{value:e},t)}var qf=(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))(qf||{});function Ls(e,t){let n=v.useRef([]),r=Q(e);v.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let u=r(t,o);return n.current=t,u}},[r,...t])}function Ey(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Gr(...e){return v.useMemo(()=>bf(...e),[...e])}var fr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(fr||{});function xy(){let e=v.useRef(0);return Qf("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function qr(){let e=v.useRef(!1);return He(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Xf(e,t,n,r){let o=gt(n);v.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Cy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Yf(e){let t=Q(e),n=v.useRef(!1);v.useEffect(()=>(n.current=!1,()=>{n.current=!0,Ui(()=>{n.current&&t()})}),[t])}function Jf(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 Ty="div";var Zf=(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))(Zf||{});function Ny(e,t){let n=v.useRef(null),r=Je(n,t),{initialFocus:o,containers:i,features:l=30,...u}=e;Kn()||(l=1);let s=Gr(n);Ly({ownerDocument:s},!!(l&16));let a=_y({ownerDocument:s,container:n,initialFocus:o},!!(l&2));Uy({ownerDocument:s,container:n,containers:i,previousActiveElement:a},!!(l&8));let d=xy(),c=Q(y=>{let x=n.current;x&&(p=>p())(()=>{fe(d.current,{[fr.Forwards]:()=>{Fo(x,Yt.First,{skipElements:[y.relatedTarget]})},[fr.Backwards]:()=>{Fo(x,Yt.Last,{skipElements:[y.relatedTarget]})}})})}),m=Ns(),w=v.useRef(!1),g={ref:r,onKeyDown(y){y.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(y){let x=Jf(i);n.current instanceof HTMLElement&&x.add(n.current);let p=y.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(ep(x,p)||(w.current?Fo(n.current,fe(d.current,{[fr.Forwards]:()=>Yt.Next,[fr.Backwards]:()=>Yt.Previous})|Yt.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&on(y.target)))}};return j.createElement(j.Fragment,null,!!(l&4)&&j.createElement(Su,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ui.Focusable}),be({ourProps:g,theirProps:u,defaultTag:Ty,name:"FocusTrap"}),!!(l&4)&&j.createElement(Su,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ui.Focusable}))}let Py=Fe(Ny),lr=Object.assign(Py,{features:Zf}),Ut=[];Cy(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ut[0]!==t.target&&(Ut.unshift(t.target),Ut=Ut.filter(n=>n!=null&&n.isConnected),Ut.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ry(e=!0){let t=v.useRef(Ut.slice());return Ls(([n],[r])=>{r===!0&&n===!1&&Ui(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ut.slice())},[e,Ut,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Ly({ownerDocument:e},t){let n=Ry(t);Ls(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&on(n())},[t]),Yf(()=>{t&&on(n())})}function _y({ownerDocument:e,container:t,initialFocus:n},r){let o=v.useRef(null),i=qr();return Ls(()=>{if(!r)return;let l=t.current;l&&Ui(()=>{if(!i.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}n!=null&&n.current?on(n.current):Fo(l,Yt.First)===Vf.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Uy({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=qr();Xf(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let u=Jf(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=l.target;a&&a instanceof HTMLElement?ep(u,a)?(r.current=a,on(a)):(l.preventDefault(),l.stopPropagation(),on(s)):on(r.current)},!0)}function ep(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let tp=v.createContext(!1);function Oy(){return v.useContext(tp)}function ku(e){return j.createElement(tp.Provider,{value:e.force},e.children)}function Fy(e){let t=Oy(),n=v.useContext(np),r=Gr(e),[o,i]=v.useState(()=>{if(!t&&n!==null||yt.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return v.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),v.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let jy=v.Fragment;function Ay(e,t){let n=e,r=v.useRef(null),o=Je(hy(d=>{r.current=d}),t),i=Gr(r),l=Fy(r),[u]=v.useState(()=>{var d;return yt.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),s=v.useContext(Eu),a=Kn();return He(()=>{!l||!u||l.contains(u)||(u.setAttribute("data-headlessui-portal",""),l.appendChild(u))},[l,u]),He(()=>{if(u&&s)return s.register(u)},[s,u]),Yf(()=>{var d;!l||!u||(u instanceof Node&&l.contains(u)&&l.removeChild(u),l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l)))}),a?!l||!u?null:kf.createPortal(be({ourProps:{ref:o},theirProps:n,defaultTag:jy,name:"Portal"}),u):null}let Dy=v.Fragment,np=v.createContext(null);function My(e,t){let{target:n,...r}=e,o={ref:Je(t)};return j.createElement(np.Provider,{value:n},be({ourProps:o,theirProps:r,defaultTag:Dy,name:"Popover.Group"}))}let Eu=v.createContext(null);function $y(){let e=v.useContext(Eu),t=v.useRef([]),n=Q(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Q(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=v.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,v.useMemo(()=>function({children:i}){return j.createElement(Eu.Provider,{value:o},i)},[o])]}let zy=Fe(Ay),Iy=Fe(My),xu=Object.assign(zy,{Group:Iy}),rp=v.createContext(null);function op(){let e=v.useContext(rp);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,op),t}return e}function By(){let[e,t]=v.useState([]);return[e.length>0?e.join(" "):void 0,v.useMemo(()=>function(n){let r=Q(i=>(t(l=>[...l,i]),()=>t(l=>{let u=l.slice(),s=u.indexOf(i);return s!==-1&&u.splice(s,1),u}))),o=v.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return j.createElement(rp.Provider,{value:o},n.children)},[t])]}let Hy="p";function by(e,t){let n=Gn(),{id:r=`headlessui-description-${n}`,...o}=e,i=op(),l=Je(t);He(()=>i.register(r),[r,i.register]);let u={ref:l,...i.props,id:r};return be({ourProps:u,theirProps:o,slot:i.slot||{},defaultTag:Hy,name:i.name||"Description"})}let Vy=Fe(by),Wy=Object.assign(Vy,{}),_s=v.createContext(()=>{});_s.displayName="StackContext";var Cu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Cu||{});function Qy(){return v.useContext(_s)}function Ky({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=Qy(),l=Q((...u)=>{t==null||t(...u),i(...u)});return He(()=>{let u=o===void 0||o===!0;return u&&l(0,n,r),()=>{u&&l(1,n,r)}},[l,n,r,o]),j.createElement(_s.Provider,{value:l},e)}function Gy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const qy=typeof Object.is=="function"?Object.is:Gy,{useState:Xy,useEffect:Yy,useLayoutEffect:Jy,useDebugValue:Zy}=Er;function e1(e,t,n){const r=t(),[{inst:o},i]=Xy({inst:{value:r,getSnapshot:t}});return Jy(()=>{o.value=r,o.getSnapshot=t,ml(o)&&i({inst:o})},[e,r,t]),Yy(()=>(ml(o)&&i({inst:o}),e(()=>{ml(o)&&i({inst:o})})),[e]),Zy(r),r}function ml(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!qy(n,r)}catch{return!0}}function t1(e,t,n){return t()}const n1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r1=!n1,o1=r1?t1:e1,i1="useSyncExternalStore"in Er?(e=>e.useSyncExternalStore)(Er):o1;function l1(e){return i1(e.subscribe,e.getSnapshot,e.getSnapshot)}function u1(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(u=>u()))}}}function s1(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function a1(){if(!Ey())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(l=>l()).some(l=>l.contains(i))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let l=pn();l.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>l.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let u=l.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!o(a)&&(i=a)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!o(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}}function c1(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function d1(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tn=u1(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:pn(),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:d1(n)},o=[a1(),s1(),c1()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});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",o=n.count!==0;(o&&!r||!o&&r)&&tn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tn.dispatch("TEARDOWN",n)}});function f1(e,t,n){let r=l1(tn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return He(()=>{if(!(!e||!t))return tn.dispatch("PUSH",e,n),()=>tn.dispatch("POP",e,n)},[t,e]),i}let hl=new Map,ur=new Map;function tc(e,t=!0){He(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let u=(l=ur.get(r))!=null?l:1;if(u===1?ur.delete(r):ur.set(r,u-1),u!==1)return;let s=hl.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,hl.delete(r))}let i=(n=ur.get(r))!=null?n:0;return ur.set(r,i+1),i!==0||(hl.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function p1({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=v.useRef((r=n==null?void 0:n.current)!=null?r:null),i=Gr(o),l=Q(()=>{var u;let s=[];for(let a of e)a!==null&&(a instanceof HTMLElement?s.push(a):"current"in a&&a.current instanceof HTMLElement&&s.push(a.current));if(t!=null&&t.current)for(let a of t.current)s.push(a);for(let a of(u=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?u:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(o.current)||s.some(d=>a.contains(d))||s.push(a));return s});return{resolveContainers:l,contains:Q(u=>l().some(s=>s.contains(u))),mainTreeNodeRef:o,MainTreeNode:v.useMemo(()=>function(){return n!=null?null:j.createElement(Su,{features:ui.Hidden,ref:o})},[o,n])}}var m1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(m1||{}),h1=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(h1||{});let y1={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},si=v.createContext(null);si.displayName="DialogContext";function Xr(e){let t=v.useContext(si);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xr),n}return t}function g1(e,t,n=()=>[document.body]){f1(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function v1(e,t){return fe(t.type,y1,e,t)}let w1="div",S1=li.RenderStrategy|li.Static;function k1(e,t){var n;let r=Gn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:l,initialFocus:u,__demoMode:s=!1,...a}=e,[d,c]=v.useState(0),m=Rs();i===void 0&&m!==null&&(i=(m&Pe.Open)===Pe.Open);let w=v.useRef(null),g=Je(w,t),y=Gr(w),x=e.hasOwnProperty("open")||m!==null,p=e.hasOwnProperty("onClose");if(!x&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!x)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 i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let f=i?0:1,[h,E]=v.useReducer(v1,{titleId:null,descriptionId:null,panelRef:v.createRef()}),P=Q(()=>l(!1)),N=Q(ie=>E({type:0,id:ie})),T=Kn()?s?!1:f===0:!1,L=d>1,D=v.useContext(si)!==null,[U,z]=$y(),{resolveContainers:ve,mainTreeNodeRef:we,MainTreeNode:mn}=p1({portals:U,defaultContainers:[(n=h.panelRef.current)!=null?n:w.current]}),hn=L?"parent":"leaf",xt=m!==null?(m&Pe.Closing)===Pe.Closing:!1,Ve=D||xt?!1:T,R=v.useCallback(()=>{var ie,st;return(st=Array.from((ie=y==null?void 0:y.querySelectorAll("body > *"))!=null?ie:[]).find(je=>je.id==="headlessui-portal-root"?!1:je.contains(we.current)&&je instanceof HTMLElement))!=null?st:null},[we]);tc(R,Ve);let O=L?!0:T,F=v.useCallback(()=>{var ie,st;return(st=Array.from((ie=y==null?void 0:y.querySelectorAll("[data-headlessui-portal]"))!=null?ie:[]).find(je=>je.contains(we.current)&&je instanceof HTMLElement))!=null?st:null},[we]);tc(F,O),my(ve,P,!(!T||L));let X=!(L||f!==0);Xf(y==null?void 0:y.defaultView,"keydown",ie=>{X&&(ie.defaultPrevented||ie.key===qf.Escape&&(ie.preventDefault(),ie.stopPropagation(),P()))}),g1(y,!(xt||f!==0||D),ve),v.useEffect(()=>{if(f!==0||!w.current)return;let ie=new ResizeObserver(st=>{for(let je of st){let Yr=je.target.getBoundingClientRect();Yr.x===0&&Yr.y===0&&Yr.width===0&&Yr.height===0&&P()}});return ie.observe(w.current),()=>ie.disconnect()},[f,w,P]);let[lt,qn]=By(),ut=v.useMemo(()=>[{dialogState:f,close:P,setTitleId:N},h],[f,h,P,N]),Gt=v.useMemo(()=>({open:f===0}),[f]),cp={ref:g,id:o,role:"dialog","aria-modal":f===0?!0:void 0,"aria-labelledby":h.titleId,"aria-describedby":lt};return j.createElement(Ky,{type:"Dialog",enabled:f===0,element:w,onUpdate:Q((ie,st)=>{st==="Dialog"&&fe(ie,{[Cu.Add]:()=>c(je=>je+1),[Cu.Remove]:()=>c(je=>je-1)})})},j.createElement(ku,{force:!0},j.createElement(xu,null,j.createElement(si.Provider,{value:ut},j.createElement(xu.Group,{target:w},j.createElement(ku,{force:!1},j.createElement(qn,{slot:Gt,name:"Dialog.Description"},j.createElement(lr,{initialFocus:u,containers:ve,features:T?fe(hn,{parent:lr.features.RestoreFocus,leaf:lr.features.All&~lr.features.FocusLock}):lr.features.None},j.createElement(z,null,be({ourProps:cp,theirProps:a,slot:Gt,defaultTag:w1,features:S1,visible:f===0,name:"Dialog"}))))))))),j.createElement(mn,null))}let E1="div";function x1(e,t){let n=Gn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:l}]=Xr("Dialog.Overlay"),u=Je(t),s=Q(d=>{if(d.target===d.currentTarget){if(gy(d.currentTarget))return d.preventDefault();d.preventDefault(),d.stopPropagation(),l()}}),a=v.useMemo(()=>({open:i===0}),[i]);return be({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:a,defaultTag:E1,name:"Dialog.Overlay"})}let C1="div";function T1(e,t){let n=Gn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},l]=Xr("Dialog.Backdrop"),u=Je(t);v.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let s=v.useMemo(()=>({open:i===0}),[i]);return j.createElement(ku,{force:!0},j.createElement(xu,null,be({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:C1,name:"Dialog.Backdrop"})))}let N1="div";function P1(e,t){let n=Gn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},l]=Xr("Dialog.Panel"),u=Je(t,l.panelRef),s=v.useMemo(()=>({open:i===0}),[i]),a=Q(d=>{d.stopPropagation()});return be({ourProps:{ref:u,id:r,onClick:a},theirProps:o,slot:s,defaultTag:N1,name:"Dialog.Panel"})}let R1="h2";function L1(e,t){let n=Gn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Xr("Dialog.Title"),u=Je(t);v.useEffect(()=>(l(r),()=>l(null)),[r,l]);let s=v.useMemo(()=>({open:i===0}),[i]);return be({ourProps:{ref:u,id:r},theirProps:o,slot:s,defaultTag:R1,name:"Dialog.Title"})}let _1=Fe(k1),U1=Fe(T1),O1=Fe(P1),F1=Fe(x1),j1=Fe(L1),yl=Object.assign(_1,{Backdrop:U1,Panel:O1,Overlay:F1,Title:j1,Description:Wy});function A1(e=0){let[t,n]=v.useState(e),r=qr(),o=v.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),i=v.useCallback(s=>!!(t&s),[t]),l=v.useCallback(s=>{r.current&&n(a=>a&~s)},[n,r]),u=v.useCallback(s=>{r.current&&n(a=>a^s)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:u}}function D1(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function vl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function M1(e,t){let n=pn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,c)=>c-d);return a}),u=i+l;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function $1(e,t,n,r){let o=n?"enter":"leave",i=pn(),l=r!==void 0?D1(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=fe(o,{enter:()=>t.enter,leave:()=>t.leave}),s=fe(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=fe(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return vl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),gl(e,...t.base,...u,...a),i.nextFrame(()=>{vl(e,...t.base,...u,...a),gl(e,...t.base,...u,...s),M1(e,()=>(vl(e,...t.base,...u),gl(e,...t.base,...t.entered),l()))}),i.dispose}function z1({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let l=qr(),u=Ns(),s=gt(n);He(()=>{e&&(s.current="enter")},[e]),He(()=>{let a=pn();u.add(a.dispose);let d=t.current;if(d&&s.current!=="idle"&&l.current)return a.dispose(),o.current(s.current),a.add($1(d,r.current,s.current==="enter",()=>{a.dispose(),i.current(s.current)})),a.dispose},[n])}function Nt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Oi=v.createContext(null);Oi.displayName="TransitionContext";var I1=(e=>(e.Visible="visible",e.Hidden="hidden",e))(I1||{});function B1(){let e=v.useContext(Oi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function H1(){let e=v.useContext(Fi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Fi=v.createContext(null);Fi.displayName="NestingContext";function ji(e){return"children"in e?ji(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ip(e,t){let n=gt(e),r=v.useRef([]),o=qr(),i=Ns(),l=Q((w,g=jt.Hidden)=>{let y=r.current.findIndex(({el:x})=>x===w);y!==-1&&(fe(g,{[jt.Unmount](){r.current.splice(y,1)},[jt.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var x;!ji(r)&&o.current&&((x=n.current)==null||x.call(n))}))}),u=Q(w=>{let g=r.current.find(({el:y})=>y===w);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:w,state:"visible"}),()=>l(w,jt.Unmount)}),s=v.useRef([]),a=v.useRef(Promise.resolve()),d=v.useRef({enter:[],leave:[],idle:[]}),c=Q((w,g,y)=>{s.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([x])=>x!==w)),t==null||t.chains.current[g].push([w,new Promise(x=>{s.current.push(x)})]),t==null||t.chains.current[g].push([w,new Promise(x=>{Promise.all(d.current[g].map(([p,f])=>f)).then(()=>x())})]),g==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(g)):y(g)}),m=Q((w,g,y)=>{Promise.all(d.current[g].splice(0).map(([x,p])=>p)).then(()=>{var x;(x=s.current.shift())==null||x()}).then(()=>y(g))});return v.useMemo(()=>({children:r,register:u,unregister:l,onStart:c,onStop:m,wait:a,chains:d}),[u,l,r,c,m,d,a])}function b1(){}let V1=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nc(e){var t;let n={};for(let r of V1)n[r]=(t=e[r])!=null?t:b1;return n}function W1(e){let t=v.useRef(nc(e));return v.useEffect(()=>{t.current=nc(e)},[e]),t}let Q1="div",lp=li.RenderStrategy;function K1(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:u,enter:s,enterFrom:a,enterTo:d,entered:c,leave:m,leaveFrom:w,leaveTo:g,...y}=e,x=v.useRef(null),p=Je(x,t),f=(n=y.unmount)==null||n?jt.Unmount:jt.Hidden,{show:h,appear:E,initial:P}=B1(),[N,T]=v.useState(h?"visible":"hidden"),L=H1(),{register:D,unregister:U}=L;v.useEffect(()=>D(x),[D,x]),v.useEffect(()=>{if(f===jt.Hidden&&x.current){if(h&&N!=="visible"){T("visible");return}return fe(N,{hidden:()=>U(x),visible:()=>D(x)})}},[N,x,D,U,h,f]);let z=gt({base:Nt(y.className),enter:Nt(s),enterFrom:Nt(a),enterTo:Nt(d),entered:Nt(c),leave:Nt(m),leaveFrom:Nt(w),leaveTo:Nt(g)}),ve=W1({beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:u}),we=Kn();v.useEffect(()=>{if(we&&N==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,N,we]);let mn=P&&!E,hn=E&&h&&P,xt=!we||mn?"idle":h?"enter":"leave",Ve=A1(0),R=Q(Se=>fe(Se,{enter:()=>{Ve.addFlag(Pe.Opening),ve.current.beforeEnter()},leave:()=>{Ve.addFlag(Pe.Closing),ve.current.beforeLeave()},idle:()=>{}})),O=Q(Se=>fe(Se,{enter:()=>{Ve.removeFlag(Pe.Opening),ve.current.afterEnter()},leave:()=>{Ve.removeFlag(Pe.Closing),ve.current.afterLeave()},idle:()=>{}})),F=ip(()=>{T("hidden"),U(x)},L);z1({immediate:hn,container:x,classes:z,direction:xt,onStart:gt(Se=>{F.onStart(x,Se,R)}),onStop:gt(Se=>{F.onStop(x,Se,O),Se==="leave"&&!ji(F)&&(T("hidden"),U(x))})});let I=y,X={ref:p};return hn?I={...I,className:ii(y.className,...z.current.enter,...z.current.enterFrom)}:(I.className=ii(y.className,(r=x.current)==null?void 0:r.className),I.className===""&&delete I.className),j.createElement(Fi.Provider,{value:F},j.createElement(ky,{value:fe(N,{visible:Pe.Open,hidden:Pe.Closed})|Ve.flags},be({ourProps:X,theirProps:I,defaultTag:Q1,features:lp,visible:N==="visible",name:"Transition.Child"})))}function G1(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,l=v.useRef(null),u=Je(l,t);Kn();let s=Rs();if(n===void 0&&s!==null&&(n=(s&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,d]=v.useState(n?"visible":"hidden"),c=ip(()=>{d("hidden")}),[m,w]=v.useState(!0),g=v.useRef([n]);He(()=>{m!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),w(!1))},[g,n]);let y=v.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);v.useEffect(()=>{if(n)d("visible");else if(!ji(c))d("hidden");else{let h=l.current;if(!h)return;let E=h.getBoundingClientRect();E.x===0&&E.y===0&&E.width===0&&E.height===0&&d("hidden")}},[n,c]);let x={unmount:o},p=Q(()=>{var h;m&&w(!1),(h=e.beforeEnter)==null||h.call(e)}),f=Q(()=>{var h;m&&w(!1),(h=e.beforeLeave)==null||h.call(e)});return j.createElement(Fi.Provider,{value:c},j.createElement(Oi.Provider,{value:y},be({ourProps:{...x,as:v.Fragment,children:j.createElement(up,{ref:u,...x,...i,beforeEnter:p,beforeLeave:f})},theirProps:{},defaultTag:v.Fragment,features:lp,visible:a==="visible",name:"Transition"})))}function q1(e,t){let n=v.useContext(Oi)!==null,r=Rs()!==null;return j.createElement(j.Fragment,null,!n&&r?j.createElement(Tu,{ref:t,...e}):j.createElement(up,{ref:t,...e}))}let Tu=Fe(G1),up=Fe(K1),X1=Fe(q1),wl=Object.assign(Tu,{Child:X1,Root:Tu});function Us({show:e,onClose:t,onSubmit:n,title:r,content:o,submitText:i,submitEnabled:l=!0}){return S.jsx(wl,{appear:!0,show:e,as:v.Fragment,children:S.jsxs(yl,{as:"div",className:"relative z-10",onClose:t,children:[S.jsx(wl.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),S.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:S.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:S.jsx(wl.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:S.jsxs(yl.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[S.jsx(yl.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),S.jsx("div",{className:"mt-3 text-sm text-gray-500",children:o}),S.jsxs("div",{className:"mt-4 flex flex-row-reverse",children:[i&&S.jsx("button",{type:"button",disabled:!l,className:`inline-flex ml-4 justify-center rounded-md border border-transparent ${l?"bg-indigo-600":"bg-grey-300"} px-4 py-2 text-sm font-medium text-indigo-100 ${l?"hover:bg-indigo-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2":""} transition-all duration-300`,onClick:n,children:i}),S.jsx("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:t,children:"Close"})]})]})})})})]})})}function Y1(e){return S.jsx("div",{children:S.jsx("input",{...e,type:"url",className:"my-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"www.example.com",required:!0})})}function J1(e){const t=v.useRef(null),n=v.useRef(null);return v.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),S.jsx("div",{className:"flex relative z-10 p-4 w-full",children:S.jsx("audio",{ref:t,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:S.jsx("source",{ref:n,type:e.mimeType})})})}function Z1(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...o}=e;return S.jsx("button",{...o,onClick:i=>{r&&!n&&!t&&r(i)},disabled:n,className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 inline-flex items-center",children:t?S.jsx(rc,{text:"Loading model..."}):n?S.jsx(rc,{text:"Transcribing..."}):"Transcribe Audio"})}function rc(e){return S.jsxs("div",{role:"status",children:[S.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),S.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),e.text]})}function eg(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||("opera"in window&&typeof window.opera=="string"?window.opera:"")),e}eg();const dt={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:"https://huggingface.co/spaces/Sagicc/whisper-web/blob/main/assets/sr-test.wav",DEFAULT_MODEL:"Sagicc/whisper-medium-sr-onnx",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"serbian",DEFAULT_QUANTIZED:!0,DEFAULT_MULTILINGUAL:!0};function tg({text:e,percentage:t}){return t=t??0,S.jsx("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:S.jsxs("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function Sl(e){return String(e).padStart(2,"0")}function sp(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?Sl(t)+":":""}${Sl(n)}:${Sl(r)}`}const ng={172351395:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},190023271:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},139690087:{name:"Segment",type:"Container"},21863284:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},88713574:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},106212971:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"},209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},206814059:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},155296873:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"},9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},39109479:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};class ai{constructor(t="Unknown",n="Unknown"){Xn(this,"source");Xn(this,"data");this.name=t,this.type=n}updateBySource(){}setSource(t){this.source=t,this.updateBySource()}updateByData(){}setData(t){this.data=t,this.updateByData()}}class rg extends ai{constructor(t,n){super(t,n||"Uint")}updateBySource(){this.data="";for(let t=0;t<this.source.length;t++){const n=this.source[t].toString(16);this.data+=oc(n)}}updateByData(){const t=this.data.length/2;this.source=new Uint8Array(t);for(let n=0;n<t;n++){const r=this.data.substr(n*2,2);this.source[n]=parseInt(r,16)}}getValue(){return parseInt(this.data,16)}setValue(t){this.setData(oc(t.toString(16)))}}function oc(e){return e.length%2===1?"0"+e:e}class ap extends ai{constructor(t,n){super(t,n||"Float")}getFloatArrayType(){return this.source&&this.source.length===4?Float32Array:Float64Array}updateBySource(){const t=this.source.reverse(),n=this.getFloatArrayType(),r=new n(t.buffer);this.data=r[0]}updateByData(){const t=this.getFloatArrayType(),n=new t([this.data]),r=new Uint8Array(n.buffer);this.source=r.reverse()}getValue(){return this.data}setValue(t){this.setData(t)}}class Os extends ai{constructor(n,r){super(n,r||"Container");Xn(this,"offset",0);Xn(this,"data",[])}readByte(){return this.source[this.offset++]}readUint(){const n=this.readByte(),r=8-n.toString(2).length;let o=n-(1<<7-r);for(let i=0;i<r;i++)o*=256,o+=this.readByte();return o}updateBySource(){let n;for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=n){const r=this.readUint(),o=this.readUint();n=Math.min(this.offset+o,this.source.length);const i=this.source.slice(this.offset,n),l=ng[r]||{name:"Unknown",type:"Unknown"};let u=ai;switch(l.type){case"Container":u=Os;break;case"Uint":u=rg;break;case"Float":u=ap;break}const s=new u(l.name,l.type);s.setSource(i),this.data.push({id:r,idHex:r.toString(16),data:s})}}writeUint(n,r=!1){for(var o=1,i=128;n>=i&&o<8;o++,i*=128);if(!r){let l=i+n;for(let u=o-1;u>=0;u--){const s=l%256;this.source[this.offset+u]=s,l=(l-s)/256}}this.offset+=o}writeSections(n=!1){this.offset=0;for(let r=0;r<this.data.length;r++){const o=this.data[r],i=o.data.source,l=i.length;this.writeUint(o.id,n),this.writeUint(l,n),n||this.source.set(i,this.offset),this.offset+=l}return this.offset}updateByData(){const n=this.writeSections(!0);this.source=new Uint8Array(n),this.writeSections()}getSectionById(n){for(let r=0;r<this.data.length;r++){const o=this.data[r];if(o.id===n)return o.data}}}class og extends Os{constructor(t){super("File","File"),this.setSource(t)}fixDuration(t){const n=this.getSectionById(139690087);if(!n)return!1;const r=n.getSectionById(88713574);if(!r)return!1;const o=r.getSectionById(710577);if(!o)return!1;let i=r.getSectionById(1161);if(i)if(i.getValue()<=0)i.setValue(t);else return!1;else i=new ap("Duration","Float"),i.setValue(t),r.data.push({id:1161,data:i});return o.setValue(1e6),r.updateByData(),n.updateByData(),this.updateByData(),!0}toBlob(t="video/webm"){return new Blob([this.source.buffer],{type:t})}}const ig=(e,t,n="video/webm")=>new Promise((r,o)=>{try{const i=new FileReader;i.addEventListener("loadend",()=>{try{const l=i.result,u=new og(new Uint8Array(l));u.fixDuration(t)?r(u.toBlob(n)):r(e)}catch(l){o(l)}}),i.addEventListener("error",()=>o()),i.readAsArrayBuffer(e)}catch(i){o(i)}});function lg(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t<e.length;t++)if(MediaRecorder.isTypeSupported(e[t]))return e[t]}function ug(e){const[t,n]=v.useState(!1),[r,o]=v.useState(0),[i,l]=v.useState(null),u=v.useRef(null),s=v.useRef(null),a=v.useRef([]),d=v.useRef(null),c=async()=>{l(null);let g=Date.now();try{u.current||(u.current=await navigator.mediaDevices.getUserMedia({audio:!0}));const y=lg(),x=new MediaRecorder(u.current,{mimeType:y});s.current=x,x.addEventListener("dataavailable",async p=>{if(p.data.size>0&&a.current.push(p.data),x.state==="inactive"){const f=Date.now()-g;let h=new Blob(a.current,{type:y});y==="audio/webm"&&(h=await ig(h,f,h.type)),l(h),e.onRecordingComplete(h),a.current=[]}}),x.start(),n(!0)}catch(y){console.error("Error accessing microphone:",y)}},m=()=>{s.current&&s.current.state==="recording"&&(s.current.stop(),o(0),n(!1))};v.useEffect(()=>{if(t){const g=setInterval(()=>{o(y=>y+1)},1e3);return()=>{clearInterval(g)}}return()=>{}},[t]);const w=()=>{t?m():c()};return S.jsxs("div",{className:"flex flex-col justify-center items-center",children:[S.jsx("button",{type:"button",className:`m-2 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-200 ${t?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,onClick:w,children:t?`Stop Recording (${sp(r)})`:"Start Recording"}),i&&S.jsx("audio",{className:"w-full",ref:d,controls:!0,children:S.jsx("source",{src:URL.createObjectURL(i),type:i.type})})]})}function sg(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const ic={sr:"serbian",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",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 ag(e){const[t,n]=v.useState(void 0),[r,o]=v.useState(void 0),[i,l]=v.useState(void 0),u=t!==void 0,s=()=>{o(void 0),l(void 0)},a=async(m,w)=>{const g=new AudioContext({sampleRate:dt.SAMPLING_RATE}),y=URL.createObjectURL(new Blob([m],{type:"audio/*"})),x=await g.decodeAudioData(m);o({buffer:x,url:y,source:"URL",mimeType:w})},d=async m=>{s(),n(0);const w=URL.createObjectURL(m),g=new FileReader;g.onprogress=y=>{n(y.loaded/y.total||0)},g.onloadend=async()=>{const y=new AudioContext({sampleRate:dt.SAMPLING_RATE}),x=g.result,p=await y.decodeAudioData(x);n(void 0),o({buffer:p,url:w,source:"RECORDING",mimeType:m.type})},g.readAsArrayBuffer(m)},c=async m=>{if(i)try{o(void 0),n(0);const{data:w,headers:g}=await ny.get(i,{signal:m.signal,responseType:"arraybuffer",onDownloadProgress(x){n(x.progress||0)}});let y=g["content-type"];(!y||y==="audio/wave")&&(y="audio/wav"),a(w,y)}catch(w){console.log("Request failed or aborted",w)}finally{n(void 0)}};return v.useEffect(()=>{if(i){const m=new AbortController;return c(m),()=>{m.abort()}}},[i]),S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[S.jsxs("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[S.jsx(mg,{icon:S.jsx(wg,{}),text:"From URL",onUrlUpdate:m=>{e.transcriber.onInputChange(),l(m)}}),S.jsx(lc,{}),S.jsx(yg,{icon:S.jsx(Sg,{}),text:"From file",onFileUpdate:(m,w,g)=>{e.transcriber.onInputChange(),o({buffer:m,url:w,source:"FILE",mimeType:g})}}),navigator.mediaDevices&&S.jsxs(S.Fragment,{children:[S.jsx(lc,{}),S.jsx(gg,{icon:S.jsx(Eg,{}),text:"Record",setAudioData:m=>{e.transcriber.onInputChange(),d(m)}})]})]}),S.jsx(fg,{progress:u?t:+!!r})]}),r&&S.jsxs(S.Fragment,{children:[S.jsx(J1,{audioUrl:r.url,mimeType:r.mimeType}),S.jsxs("div",{className:"relative w-full flex justify-center items-center",children:[S.jsx(Z1,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),S.jsx(cg,{className:"absolute right-4",transcriber:e.transcriber,icon:S.jsx(kg,{})})]}),e.transcriber.progressItems.length>0&&S.jsxs("div",{className:"relative z-10 p-4 w-full",children:[S.jsx("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(m=>S.jsx("div",{children:S.jsx(tg,{text:m.file,percentage:m.progress})},m.file))]})]})]})}function cg(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{o()};return S.jsxs("div",{className:e.className,children:[S.jsx(Ai,{icon:e.icon,onClick:r}),S.jsx(dg,{show:t,onSubmit:i,onClose:o,transcriber:e.transcriber})]})}function dg(e){const t=Object.values(ic).map(sg),n={"Xenova/whisper-tiny":[41,152],"Xenova/whisper-base":[77,291],"Xenova/whisper-small":[249],"Xenova/whisper-medium":[776],"Xenova/whisper-large-v3":[1558],"distil-whisper/distil-medium.en":[402],"distil-whisper/distil-large-v2":[767],"Sagicc/whisper-medium-sr-onnx":[776]};return S.jsx(Us,{show:e.show,title:"Settings",content:S.jsxs(S.Fragment,{children:[S.jsx("label",{children:"Select the model to use."}),S.jsx("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.model,onChange:r=>{e.transcriber.setModel(r.target.value)},children:Object.keys(n).filter(r=>e.transcriber.quantized||n[r].length==2).filter(r=>!e.transcriber.multilingual||!r.startsWith("distil-whisper/")).map(r=>S.jsx("option",{value:r,children:`${r}${e.transcriber.multilingual||r.startsWith("distil-whisper/")?"":".en"} (${n[r][e.transcriber.quantized?0:1]}MB)`},r))}),S.jsxs("div",{className:"flex justify-between items-center mb-3 px-1",children:[S.jsxs("div",{className:"flex",children:[S.jsx("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:r=>{e.transcriber.setMultilingual(r.target.checked)}}),S.jsx("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]}),S.jsxs("div",{className:"flex",children:[S.jsx("input",{id:"quantize",type:"checkbox",checked:e.transcriber.quantized,onChange:r=>{e.transcriber.setQuantized(r.target.checked)}}),S.jsx("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),e.transcriber.multilingual&&S.jsxs(S.Fragment,{children:[S.jsx("label",{children:"Select the source language."}),S.jsx("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.language,onChange:r=>{e.transcriber.setLanguage(r.target.value)},children:Object.keys(ic).map((r,o)=>S.jsx("option",{value:r,children:t[o]},r))}),S.jsx("label",{children:"Select the task to perform."}),S.jsxs("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.subtask,onChange:r=>{e.transcriber.setSubtask(r.target.value)},children:[S.jsx("option",{value:"transcribe",children:"Transcribe"}),S.jsx("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function lc(){return S.jsx("div",{className:"w-[1px] bg-slate-200"})}function fg(e){return S.jsx(pg,{progress:`${Math.round(e.progress*100)}%`})}function pg(e){return S.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-gray-700",children:S.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function mg(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{e.onUrlUpdate(l),o()};return S.jsxs(S.Fragment,{children:[S.jsx(Ai,{icon:e.icon,text:e.text,onClick:r}),S.jsx(hg,{show:t,onSubmit:i,onClose:o})]})}function hg(e){const[t,n]=v.useState(dt.DEFAULT_AUDIO_URL),r=i=>{n(i.target.value)},o=()=>{e.onSubmit(t)};return S.jsx(Us,{show:e.show,title:"From URL",content:S.jsxs(S.Fragment,{children:["Enter the URL of the audio file you want to load.",S.jsx(Y1,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:o})}function yg(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let r=n.target.files;if(!r)return;const o=URL.createObjectURL(r[0]),i=r[0].type,l=new FileReader;l.addEventListener("load",async u=>{var c;const s=(c=u.target)==null?void 0:c.result;if(!s)return;const d=await new AudioContext({sampleRate:dt.SAMPLING_RATE}).decodeAudioData(s);e.onFileUpdate(d,o,i)}),l.readAsArrayBuffer(r[0]),t.value=""},S.jsx(S.Fragment,{children:S.jsx(Ai,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function gg(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{l&&(e.setAudioData(l),o())};return S.jsxs(S.Fragment,{children:[S.jsx(Ai,{icon:e.icon,text:e.text,onClick:r}),S.jsx(vg,{show:t,onSubmit:i,onClose:o})]})}function vg(e){const[t,n]=v.useState(),r=l=>{n(l)},o=()=>{e.onSubmit(t),n(void 0)},i=()=>{e.onClose(),n(void 0)};return S.jsx(Us,{show:e.show,title:"From Recording",content:S.jsxs(S.Fragment,{children:["Record audio using your microphone",S.jsx(ug,{onRecordingComplete:r})]}),onClose:i,submitText:"Load",submitEnabled:t!==void 0,onSubmit:o})}function Ai(e){return S.jsxs("button",{onClick:e.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-blue text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all duration-200",children:[S.jsx("div",{className:"w-7 h-7",children:e.icon}),e.text&&S.jsx("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function wg(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function Sg(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function kg(){return S.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function Eg(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})})}function xg({transcribedData:e}){const t=v.useRef(null),n=(i,l)=>{const u=URL.createObjectURL(i),s=document.createElement("a");s.href=u,s.download=l,s.click(),URL.revokeObjectURL(u)},r=()=>{let l=((e==null?void 0:e.chunks)??[]).map(s=>s.text).join("").trim();const u=new Blob([l],{type:"text/plain"});n(u,"transcript.txt")},o=()=>{let i=JSON.stringify((e==null?void 0:e.chunks)??[],null,2);const l=/( "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;i=i.replace(l,"$1[$2 $3]");const u=new Blob([i],{type:"application/json"});n(u,"transcript.json")};return v.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=64&&(t.current.scrollTop=t.current.scrollHeight)}),S.jsxs("div",{ref:t,className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:[(e==null?void 0:e.chunks)&&e.chunks.map((i,l)=>S.jsxs("div",{className:"w-full flex flex-row mb-2 bg-white rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[S.jsx("div",{className:"mr-5",children:sp(i.timestamp[0])}),i.text]},`${l}-${i.text}`)),e&&!e.isBusy&&S.jsxs("div",{className:"w-full text-right",children:[S.jsx("button",{onClick:r,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export TXT"}),S.jsx("button",{onClick:o,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export JSON"})]})]})}function Cg(e){const[t]=v.useState(()=>Tg(e));return t}function Tg(e){const t=new Worker(new URL("/assets/worker-eoNp0E45.js",import.meta.url),{type:"module"});return t.addEventListener("message",e),t}function Ng(){const[e,t]=v.useState(void 0),[n,r]=v.useState(!1),[o,i]=v.useState(!1),[l,u]=v.useState([]),s=Cg(N=>{const T=N.data;switch(T.status){case"progress":u(U=>U.map(z=>z.file===T.file?{...z,progress:T.progress}:z));break;case"update":const L=T;t({isBusy:!0,text:L.data[0],chunks:L.data[1].chunks});break;case"complete":const D=T;t({isBusy:!1,text:D.data.text,chunks:D.data.chunks}),r(!1);break;case"initiate":i(!0),u(U=>[...U,T]);break;case"ready":i(!1);break;case"error":r(!1),alert(`${T.data.message} This is most likely because you are using Safari on an M1/M2 Mac. Please try again from Chrome, Firefox, or Edge. | |
If this is not the case, please file a bug report.`);break;case"done":u(U=>U.filter(z=>z.file!==T.file));break}}),[a,d]=v.useState(dt.DEFAULT_MODEL),[c,m]=v.useState(dt.DEFAULT_SUBTASK),[w,g]=v.useState(dt.DEFAULT_QUANTIZED),[y,x]=v.useState(dt.DEFAULT_MULTILINGUAL),[p,f]=v.useState(dt.DEFAULT_LANGUAGE),h=v.useCallback(()=>{t(void 0)},[]),E=v.useCallback(async N=>{if(N){t(void 0),r(!0);let T;if(N.numberOfChannels===2){const L=Math.sqrt(2);let D=N.getChannelData(0),U=N.getChannelData(1);T=new Float32Array(D.length);for(let z=0;z<N.length;++z)T[z]=L*(D[z]+U[z])/2}else T=N.getChannelData(0);s.postMessage({audio:T,model:a,multilingual:y,quantized:w,subtask:y?c:null,language:y&&p!=="auto"?p:null})}},[s,a,y,w,c,p]);return v.useMemo(()=>({onInputChange:h,isBusy:n,isModelLoading:o,progressItems:l,start:E,output:e,model:a,setModel:d,multilingual:y,setMultilingual:x,quantized:w,setQuantized:g,subtask:c,setSubtask:m,language:p,setLanguage:f}),[n,o,l,E,e,a,y,w,c,p])}function Pg(){const e=Ng();return S.jsxs("div",{className:"flex justify-center items-center min-h-screen",children:[S.jsxs("div",{className:"container flex flex-col justify-center items-center",children:[S.jsx("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"Whisper Web"}),S.jsx("h2",{className:"mt-3 mb-5 px-4 text-center text-1xl font-semibold tracking-tight text-slate-900 sm:text-2xl",children:"ML-powered speech recognition directly in your browser!"}),S.jsx("p",{className:"text-center",children:"You can test Serbian fine turned Whisper medium model."}),S.jsx("p",{className:"text-center mb-5",children:"NOTE: Medium model runs very slow, waiting for WebGPU support. Please use short clips."}),S.jsx(ag,{transcriber:e}),S.jsx(xg,{transcribedData:e.output})]}),S.jsxs("div",{className:"absolute bottom-4",children:["Made with"," ",S.jsx("a",{className:"underline",href:"https://github.com/xenova/transformers.js",children:"🤗 Transformers.js"})]})]})}kl.createRoot(document.getElementById("root")).render(S.jsx(j.StrictMode,{children:S.jsx(Pg,{})})); | |