@nextclaw/ui 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,240 +0,0 @@
1
- var Vf=r=>{throw TypeError(r)};var uu=(r,s,i)=>s.has(r)||Vf("Cannot "+i);var y=(r,s,i)=>(uu(r,s,"read from private field"),i?i.call(r):s.get(r)),oe=(r,s,i)=>s.has(r)?Vf("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,i),G=(r,s,i,l)=>(uu(r,s,"write to private field"),l?l.call(r,i):s.set(r,i),i),ve=(r,s,i)=>(uu(r,s,"access private method"),i);var ua=(r,s,i,l)=>({set _(c){G(r,s,c,i)},get _(){return y(r,s,l)}});function ag(r,s){for(var i=0;i<s.length;i++){const l=s[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(r,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function Xh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var cu={exports:{}},Do={},du={exports:{}},xe={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Kf;function lg(){if(Kf)return xe;Kf=1;var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.iterator;function j(C){return C===null||typeof C!="object"?null:(C=P&&C[P]||C["@@iterator"],typeof C=="function"?C:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,E={};function _(C,O,X){this.props=C,this.context=O,this.refs=E,this.updater=X||v}_.prototype.isReactComponent={},_.prototype.setState=function(C,O){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,O,"setState")},_.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function A(){}A.prototype=_.prototype;function $(C,O,X){this.props=C,this.context=O,this.refs=E,this.updater=X||v}var V=$.prototype=new A;V.constructor=$,L(V,_.prototype),V.isPureReactComponent=!0;var I=Array.isArray,ee=Object.prototype.hasOwnProperty,se={current:null},ne={key:!0,ref:!0,__self:!0,__source:!0};function ie(C,O,X){var te,de={},ye=null,ce=null;if(O!=null)for(te in O.ref!==void 0&&(ce=O.ref),O.key!==void 0&&(ye=""+O.key),O)ee.call(O,te)&&!ne.hasOwnProperty(te)&&(de[te]=O[te]);var be=arguments.length-2;if(be===1)de.children=X;else if(1<be){for(var Pe=Array(be),Je=0;Je<be;Je++)Pe[Je]=arguments[Je+2];de.children=Pe}if(C&&C.defaultProps)for(te in be=C.defaultProps,be)de[te]===void 0&&(de[te]=be[te]);return{$$typeof:r,type:C,key:ye,ref:ce,props:de,_owner:se.current}}function pe(C,O){return{$$typeof:r,type:C.type,key:O,ref:C.ref,props:C.props,_owner:C._owner}}function ge(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function Ne(C){var O={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(X){return O[X]})}var ae=/\/+/g;function Ae(C,O){return typeof C=="object"&&C!==null&&C.key!=null?Ne(""+C.key):O.toString(36)}function Te(C,O,X,te,de){var ye=typeof C;(ye==="undefined"||ye==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ye){case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case r:case s:ce=!0}}if(ce)return ce=C,de=de(ce),C=te===""?"."+Ae(ce,0):te,I(de)?(X="",C!=null&&(X=C.replace(ae,"$&/")+"/"),Te(de,O,X,"",function(Je){return Je})):de!=null&&(ge(de)&&(de=pe(de,X+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+C)),O.push(de)),1;if(ce=0,te=te===""?".":te+":",I(C))for(var be=0;be<C.length;be++){ye=C[be];var Pe=te+Ae(ye,be);ce+=Te(ye,O,X,Pe,de)}else if(Pe=j(C),typeof Pe=="function")for(C=Pe.call(C),be=0;!(ye=C.next()).done;)ye=ye.value,Pe=te+Ae(ye,be++),ce+=Te(ye,O,X,Pe,de);else if(ye==="object")throw O=String(C),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(C,O,X){if(C==null)return C;var te=[],de=0;return Te(C,te,"","",function(ye){return O.call(X,ye,de++)}),te}function _e(C){if(C._status===-1){var O=C._result;O=O(),O.then(function(X){(C._status===0||C._status===-1)&&(C._status=1,C._result=X)},function(X){(C._status===0||C._status===-1)&&(C._status=2,C._result=X)}),C._status===-1&&(C._status=0,C._result=O)}if(C._status===1)return C._result.default;throw C._result}var we={current:null},H={transition:null},U={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:H,ReactCurrentOwner:se};function W(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:Be,forEach:function(C,O,X){Be(C,function(){O.apply(this,arguments)},X)},count:function(C){var O=0;return Be(C,function(){O++}),O},toArray:function(C){return Be(C,function(O){return O})||[]},only:function(C){if(!ge(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},xe.Component=_,xe.Fragment=i,xe.Profiler=c,xe.PureComponent=$,xe.StrictMode=l,xe.Suspense=w,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,xe.act=W,xe.cloneElement=function(C,O,X){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var te=L({},C.props),de=C.key,ye=C.ref,ce=C._owner;if(O!=null){if(O.ref!==void 0&&(ye=O.ref,ce=se.current),O.key!==void 0&&(de=""+O.key),C.type&&C.type.defaultProps)var be=C.type.defaultProps;for(Pe in O)ee.call(O,Pe)&&!ne.hasOwnProperty(Pe)&&(te[Pe]=O[Pe]===void 0&&be!==void 0?be[Pe]:O[Pe])}var Pe=arguments.length-2;if(Pe===1)te.children=X;else if(1<Pe){be=Array(Pe);for(var Je=0;Je<Pe;Je++)be[Je]=arguments[Je+2];te.children=be}return{$$typeof:r,type:C.type,key:de,ref:ye,props:te,_owner:ce}},xe.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:f,_context:C},C.Consumer=C},xe.createElement=ie,xe.createFactory=function(C){var O=ie.bind(null,C);return O.type=C,O},xe.createRef=function(){return{current:null}},xe.forwardRef=function(C){return{$$typeof:p,render:C}},xe.isValidElement=ge,xe.lazy=function(C){return{$$typeof:N,_payload:{_status:-1,_result:C},_init:_e}},xe.memo=function(C,O){return{$$typeof:x,type:C,compare:O===void 0?null:O}},xe.startTransition=function(C){var O=H.transition;H.transition={};try{C()}finally{H.transition=O}},xe.unstable_act=W,xe.useCallback=function(C,O){return we.current.useCallback(C,O)},xe.useContext=function(C){return we.current.useContext(C)},xe.useDebugValue=function(){},xe.useDeferredValue=function(C){return we.current.useDeferredValue(C)},xe.useEffect=function(C,O){return we.current.useEffect(C,O)},xe.useId=function(){return we.current.useId()},xe.useImperativeHandle=function(C,O,X){return we.current.useImperativeHandle(C,O,X)},xe.useInsertionEffect=function(C,O){return we.current.useInsertionEffect(C,O)},xe.useLayoutEffect=function(C,O){return we.current.useLayoutEffect(C,O)},xe.useMemo=function(C,O){return we.current.useMemo(C,O)},xe.useReducer=function(C,O,X){return we.current.useReducer(C,O,X)},xe.useRef=function(C){return we.current.useRef(C)},xe.useState=function(C){return we.current.useState(C)},xe.useSyncExternalStore=function(C,O,X){return we.current.useSyncExternalStore(C,O,X)},xe.useTransition=function(){return we.current.useTransition()},xe.version="18.3.1",xe}var $f;function Gu(){return $f||($f=1,du.exports=lg()),du.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Gf;function ug(){if(Gf)return Do;Gf=1;var r=Gu(),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(p,w,x){var N,P={},j=null,v=null;x!==void 0&&(j=""+x),w.key!==void 0&&(j=""+w.key),w.ref!==void 0&&(v=w.ref);for(N in w)l.call(w,N)&&!f.hasOwnProperty(N)&&(P[N]=w[N]);if(p&&p.defaultProps)for(N in w=p.defaultProps,w)P[N]===void 0&&(P[N]=w[N]);return{$$typeof:s,type:p,key:j,ref:v,props:P,_owner:c.current}}return Do.Fragment=i,Do.jsx=m,Do.jsxs=m,Do}var qf;function cg(){return qf||(qf=1,cu.exports=ug()),cu.exports}var h=cg(),b=Gu();const Q=Xh(b),Zh=ag({__proto__:null,default:Q},[b]);var ca={},fu={exports:{}},Et={},hu={exports:{}},pu={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Yf;function dg(){return Yf||(Yf=1,(function(r){function s(H,U){var W=H.length;H.push(U);e:for(;0<W;){var C=W-1>>>1,O=H[C];if(0<c(O,U))H[C]=U,H[W]=O,W=C;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var U=H[0],W=H.pop();if(W!==U){H[0]=W;e:for(var C=0,O=H.length,X=O>>>1;C<X;){var te=2*(C+1)-1,de=H[te],ye=te+1,ce=H[ye];if(0>c(de,W))ye<O&&0>c(ce,de)?(H[C]=ce,H[ye]=W,C=ye):(H[C]=de,H[te]=W,C=te);else if(ye<O&&0>c(ce,W))H[C]=ce,H[ye]=W,C=ye;else break e}}return U}function c(H,U){var W=H.sortIndex-U.sortIndex;return W!==0?W:H.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var w=[],x=[],N=1,P=null,j=3,v=!1,L=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(H){for(var U=i(x);U!==null;){if(U.callback===null)l(x);else if(U.startTime<=H)l(x),U.sortIndex=U.expirationTime,s(w,U);else break;U=i(x)}}function I(H){if(E=!1,V(H),!L)if(i(w)!==null)L=!0,_e(ee);else{var U=i(x);U!==null&&we(I,U.startTime-H)}}function ee(H,U){L=!1,E&&(E=!1,A(ie),ie=-1),v=!0;var W=j;try{for(V(U),P=i(w);P!==null&&(!(P.expirationTime>U)||H&&!Ne());){var C=P.callback;if(typeof C=="function"){P.callback=null,j=P.priorityLevel;var O=C(P.expirationTime<=U);U=r.unstable_now(),typeof O=="function"?P.callback=O:P===i(w)&&l(w),V(U)}else l(w);P=i(w)}if(P!==null)var X=!0;else{var te=i(x);te!==null&&we(I,te.startTime-U),X=!1}return X}finally{P=null,j=W,v=!1}}var se=!1,ne=null,ie=-1,pe=5,ge=-1;function Ne(){return!(r.unstable_now()-ge<pe)}function ae(){if(ne!==null){var H=r.unstable_now();ge=H;var U=!0;try{U=ne(!0,H)}finally{U?Ae():(se=!1,ne=null)}}else se=!1}var Ae;if(typeof $=="function")Ae=function(){$(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,Ae=function(){Be.postMessage(null)}}else Ae=function(){_(ae,0)};function _e(H){ne=H,se||(se=!0,Ae())}function we(H,U){ie=_(function(){H(r.unstable_now())},U)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){L||v||(L=!0,_e(ee))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return j},r.unstable_getFirstCallbackNode=function(){return i(w)},r.unstable_next=function(H){switch(j){case 1:case 2:case 3:var U=3;break;default:U=j}var W=j;j=U;try{return H()}finally{j=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,U){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var W=j;j=H;try{return U()}finally{j=W}},r.unstable_scheduleCallback=function(H,U,W){var C=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?C+W:C):W=C,H){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=W+O,H={id:N++,callback:U,priorityLevel:H,startTime:W,expirationTime:O,sortIndex:-1},W>C?(H.sortIndex=W,s(x,H),i(w)===null&&H===i(x)&&(E?(A(ie),ie=-1):E=!0,we(I,W-C))):(H.sortIndex=O,s(w,H),L||v||(L=!0,_e(ee))),H},r.unstable_shouldYield=Ne,r.unstable_wrapCallback=function(H){var U=j;return function(){var W=j;j=U;try{return H.apply(this,arguments)}finally{j=W}}}})(pu)),pu}var Xf;function fg(){return Xf||(Xf=1,hu.exports=dg()),hu.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Zf;function hg(){if(Zf)return Et;Zf=1;var r=Gu(),s=fg();function i(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 l=new Set,c={};function f(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w=Object.prototype.hasOwnProperty,x=/^[: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]*$/,N={},P={};function j(e){return w.call(P,e)?!0:w.call(N,e)?!1:x.test(e)?P[e]=!0:(N[e]=!0,!1)}function v(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,t,n,o){if(t===null||typeof t>"u"||v(e,t,n,o))return!0;if(o)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 E(e,t,n,o,a,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new E(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){_[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function $(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(A,$);_[t]=new E(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(A,$);_[t]=new E(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(A,$);_[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function V(e,t,n,o){var a=_.hasOwnProperty(t)?_[t]:null;(a!==null?a.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L(t,n,a,o)&&(n=null),o||a===null?j(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,o=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ee=Symbol.for("react.element"),se=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),H=Symbol.iterator;function U(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,C;function O(e){if(C===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||""}return`
34
- `+C+e}var X=!1;function te(e,t){if(!e||X)return"";X=!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(T){var o=T}Reflect.construct(e,[],t)}else{try{t.call()}catch(T){o=T}e.call(t.prototype)}else{try{throw Error()}catch(T){o=T}e()}}catch(T){if(T&&o&&typeof T.stack=="string"){for(var a=T.stack.split(`
35
- `),u=o.stack.split(`
36
- `),d=a.length-1,g=u.length-1;1<=d&&0<=g&&a[d]!==u[g];)g--;for(;1<=d&&0<=g;d--,g--)if(a[d]!==u[g]){if(d!==1||g!==1)do if(d--,g--,0>g||a[d]!==u[g]){var S=`
37
- `+a[d].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=d&&0<=g);break}}}finally{X=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function de(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function ye(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 ne:return"Fragment";case se:return"Portal";case pe:return"Profiler";case ie:return"StrictMode";case Ae:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function ce(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 ye(t);case 8:return t===ie?"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 be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=Pe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(d){o=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){e._valueTracker||(e._valueTracker=Je(e))}function Zr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Pe(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Sr(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 qs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qo(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=be(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ys(e,t){t=t.checked,t!=null&&V(e,"checked",t,!1)}function Xs(e,t){Ys(e,t);var n=be(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zs(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jr(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 Zs(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function Ot(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&o&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function on(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(An(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Yo(e,t){var n=be(t.value),o=be(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Xo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ft(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 an(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ft(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ts,Zo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ts=ts||document.createElement("div"),ts.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var br={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},Jo=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(e){Jo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]})});function ns(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,a=ns(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}var ei=W({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 un(e,t){if(t){if(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Js(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 eo=null;function rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ss=null,Un=null,cn=null;function Qt(e){if(e=So(e)){if(typeof ss!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),ss(e.stateNode,e.type,t))}}function ti(e){Un?cn?cn.push(e):cn=[e]:Un=e}function he(){if(Un){var e=Un,t=cn;if(cn=Un=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Ee(e,t){return e(t)}function Oe(){}var ht=!1;function yt(e,t,n){if(ht)return e(t,n);ht=!0;try{return Ee(e,t,n)}finally{ht=!1,(Un!==null||cn!==null)&&(Oe(),he())}}function xt(e,t){var n=e.stateNode;if(n===null)return null;var o=Ci(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Vt=!1;if(p)try{var st={};Object.defineProperty(st,"passive",{get:function(){Vt=!0}}),window.addEventListener("test",st,st),window.removeEventListener("test",st,st)}catch{Vt=!1}function dn(e,t,n,o,a,u,d,g,S){var T=Array.prototype.slice.call(arguments,3);try{t.apply(n,T)}catch(D){this.onError(D)}}var to=!1,ni=null,ri=!1,ja=null,pm={onError:function(e){to=!0,ni=e}};function mm(e,t,n,o,a,u,d,g,S){to=!1,ni=null,dn.apply(pm,arguments)}function vm(e,t,n,o,a,u,d,g,S){if(mm.apply(this,arguments),to){if(to){var T=ni;to=!1,ni=null}else throw Error(i(198));ri||(ri=!0,ja=T)}}function kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function hc(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 pc(e){if(kr(e)!==e)throw Error(i(188))}function gm(e){var t=e.alternate;if(!t){if(t=kr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(o=a.return,o!==null){n=o;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return pc(a),e;if(u===o)return pc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==o.return)n=a,o=u;else{for(var d=!1,g=a.child;g;){if(g===n){d=!0,n=a,o=u;break}if(g===o){d=!0,o=a,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,o=a;break}if(g===o){d=!0,o=u,n=a;break}g=g.sibling}if(!d)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function mc(e){return e=gm(e),e!==null?vc(e):null}function vc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vc(e);if(t!==null)return t;e=e.sibling}return null}var gc=s.unstable_scheduleCallback,yc=s.unstable_cancelCallback,ym=s.unstable_shouldYield,xm=s.unstable_requestPaint,$e=s.unstable_now,wm=s.unstable_getCurrentPriorityLevel,Ra=s.unstable_ImmediatePriority,xc=s.unstable_UserBlockingPriority,si=s.unstable_NormalPriority,Sm=s.unstable_LowPriority,wc=s.unstable_IdlePriority,oi=null,fn=null;function bm(e){if(fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(oi,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Em,km=Math.log,Cm=Math.LN2;function Em(e){return e>>>=0,e===0?32:31-(km(e)/Cm|0)|0}var ii=64,ai=4194304;function no(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 li(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,a=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~a;g!==0?o=no(g):(u&=d,u!==0&&(o=no(u)))}else d=n&~a,d!==0?o=no(d):u!==0&&(o=no(u));if(o===0)return 0;if(t!==0&&t!==o&&(t&a)===0&&(a=o&-o,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-Kt(t),a=1<<n,o|=e[n],t&=~a;return o}function Nm(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 Pm(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-Kt(u),g=1<<d,S=a[d];S===-1?((g&n)===0||(g&o)!==0)&&(a[d]=Nm(g,t)):S<=t&&(e.expiredLanes|=g),u&=~g}}function Ma(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function Ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function jm(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 o=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Kt(n),u=1<<a;t[a]=0,o[a]=-1,e[a]=-1,n&=~u}}function _a(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-Kt(n),a=1<<o;a&t|e[o]&t&&(e[o]|=t),n&=~a}}var Re=0;function bc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var kc,Oa,Cc,Ec,Nc,za=!1,ui=[],Bn=null,Wn=null,Hn=null,so=new Map,oo=new Map,Qn=[],Rm="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 Pc(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":so.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oo.delete(t.pointerId)}}function io(e,t,n,o,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[a]},t!==null&&(t=So(t),t!==null&&Oa(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Mm(e,t,n,o,a){switch(t){case"focusin":return Bn=io(Bn,e,t,n,o,a),!0;case"dragenter":return Wn=io(Wn,e,t,n,o,a),!0;case"mouseover":return Hn=io(Hn,e,t,n,o,a),!0;case"pointerover":var u=a.pointerId;return so.set(u,io(so.get(u)||null,e,t,n,o,a)),!0;case"gotpointercapture":return u=a.pointerId,oo.set(u,io(oo.get(u)||null,e,t,n,o,a)),!0}return!1}function jc(e){var t=Cr(e.target);if(t!==null){var n=kr(t);if(n!==null){if(t=n.tag,t===13){if(t=hc(n),t!==null){e.blockedOn=t,Nc(e.priority,function(){Cc(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 ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Da(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);eo=o,n.target.dispatchEvent(o),eo=null}else return t=So(n),t!==null&&Oa(t),e.blockedOn=n,!1;t.shift()}return!0}function Rc(e,t,n){ci(e)&&n.delete(t)}function Tm(){za=!1,Bn!==null&&ci(Bn)&&(Bn=null),Wn!==null&&ci(Wn)&&(Wn=null),Hn!==null&&ci(Hn)&&(Hn=null),so.forEach(Rc),oo.forEach(Rc)}function ao(e,t){e.blockedOn===t&&(e.blockedOn=null,za||(za=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Tm)))}function lo(e){function t(a){return ao(a,e)}if(0<ui.length){ao(ui[0],e);for(var n=1;n<ui.length;n++){var o=ui[n];o.blockedOn===e&&(o.blockedOn=null)}}for(Bn!==null&&ao(Bn,e),Wn!==null&&ao(Wn,e),Hn!==null&&ao(Hn,e),so.forEach(t),oo.forEach(t),n=0;n<Qn.length;n++)o=Qn[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)jc(n),n.blockedOn===null&&Qn.shift()}var os=I.ReactCurrentBatchConfig,di=!0;function _m(e,t,n,o){var a=Re,u=os.transition;os.transition=null;try{Re=1,Ia(e,t,n,o)}finally{Re=a,os.transition=u}}function Om(e,t,n,o){var a=Re,u=os.transition;os.transition=null;try{Re=4,Ia(e,t,n,o)}finally{Re=a,os.transition=u}}function Ia(e,t,n,o){if(di){var a=Da(e,t,n,o);if(a===null)Ja(e,t,o,fi,n),Pc(e,o);else if(Mm(a,e,t,n,o))o.stopPropagation();else if(Pc(e,o),t&4&&-1<Rm.indexOf(e)){for(;a!==null;){var u=So(a);if(u!==null&&kc(u),u=Da(e,t,n,o),u===null&&Ja(e,t,o,fi,n),u===a)break;a=u}a!==null&&o.stopPropagation()}else Ja(e,t,o,null,n)}}var fi=null;function Da(e,t,n,o){if(fi=null,e=rs(o),e=Cr(e),e!==null)if(t=kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hc(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 fi=e,null}function Mc(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(wm()){case Ra:return 1;case xc:return 4;case si:case Sm:return 16;case wc:return 536870912;default:return 16}default:return 16}}var Vn=null,La=null,hi=null;function Tc(){if(hi)return hi;var e,t=La,n=t.length,o,a="value"in Vn?Vn.value:Vn.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var d=n-e;for(o=1;o<=d&&t[n-o]===a[u-o];o++);return hi=a.slice(e,1<o?1-o:void 0)}function pi(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 mi(){return!0}function _c(){return!1}function Rt(e){function t(n,o,a,u,d){this._reactName=n,this._targetInst=a,this.type=o,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:_c,this.isPropagationStopped=_c,this}return W(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=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=Rt(is),uo=W({},is,{view:0,detail:0}),zm=Rt(uo),Aa,Ua,co,vi=W({},uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,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!==co&&(co&&e.type==="mousemove"?(Aa=e.screenX-co.screenX,Ua=e.screenY-co.screenY):Ua=Aa=0,co=e),Aa)},movementY:function(e){return"movementY"in e?e.movementY:Ua}}),Oc=Rt(vi),Im=W({},vi,{dataTransfer:0}),Dm=Rt(Im),Lm=W({},uo,{relatedTarget:0}),Ba=Rt(Lm),Fm=W({},is,{animationName:0,elapsedTime:0,pseudoElement:0}),Am=Rt(Fm),Um=W({},is,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bm=Rt(Um),Wm=W({},is,{data:0}),zc=Rt(Wm),Hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qm={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"},Vm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Km(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vm[e])?!!t[e]:!1}function Wa(){return Km}var $m=W({},uo,{key:function(e){if(e.key){var t=Hm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gm=Rt($m),qm=W({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=Rt(qm),Ym=W({},uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Xm=Rt(Ym),Zm=W({},is,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=Rt(Zm),ev=W({},vi,{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}),tv=Rt(ev),nv=[9,13,27,32],Ha=p&&"CompositionEvent"in window,fo=null;p&&"documentMode"in document&&(fo=document.documentMode);var rv=p&&"TextEvent"in window&&!fo,Dc=p&&(!Ha||fo&&8<fo&&11>=fo),Lc=" ",Fc=!1;function Ac(e,t){switch(e){case"keyup":return nv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function sv(e,t){switch(e){case"compositionend":return Uc(t);case"keypress":return t.which!==32?null:(Fc=!0,Lc);case"textInput":return e=t.data,e===Lc&&Fc?null:e;default:return null}}function ov(e,t){if(as)return e==="compositionend"||!Ha&&Ac(e,t)?(e=Tc(),hi=La=Vn=null,as=!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 Dc&&t.locale!=="ko"?null:t.data;default:return null}}var iv={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 Bc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iv[e.type]:t==="textarea"}function Wc(e,t,n,o){ti(o),t=Si(t,"onChange"),0<t.length&&(n=new Fa("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var ho=null,po=null;function av(e){id(e,0)}function gi(e){var t=fs(e);if(Zr(t))return e}function lv(e,t){if(e==="change")return t}var Hc=!1;if(p){var Qa;if(p){var Va="oninput"in document;if(!Va){var Qc=document.createElement("div");Qc.setAttribute("oninput","return;"),Va=typeof Qc.oninput=="function"}Qa=Va}else Qa=!1;Hc=Qa&&(!document.documentMode||9<document.documentMode)}function Vc(){ho&&(ho.detachEvent("onpropertychange",Kc),po=ho=null)}function Kc(e){if(e.propertyName==="value"&&gi(po)){var t=[];Wc(t,po,e,rs(e)),yt(av,t)}}function uv(e,t,n){e==="focusin"?(Vc(),ho=t,po=n,ho.attachEvent("onpropertychange",Kc)):e==="focusout"&&Vc()}function cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gi(po)}function dv(e,t){if(e==="click")return gi(t)}function fv(e,t){if(e==="input"||e==="change")return gi(t)}function hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:hv;function mo(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var a=n[o];if(!w.call(t,a)||!$t(e[a],t[a]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gc(e,t){var n=$c(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yc(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sr(e.document)}return t}function Ka(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 pv(e){var t=Yc(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qc(n.ownerDocument.documentElement,n)){if(o!==null&&Ka(n)){if(t=o.start,e=o.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 a=n.textContent.length,u=Math.min(o.start,a);o=o.end===void 0?u:Math.min(o.end,a),!e.extend&&u>o&&(a=o,o=u,u=a),a=Gc(n,u);var d=Gc(n,o);a&&d&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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 mv=p&&"documentMode"in document&&11>=document.documentMode,ls=null,$a=null,vo=null,Ga=!1;function Xc(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ga||ls==null||ls!==Sr(o)||(o=ls,"selectionStart"in o&&Ka(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vo&&mo(vo,o)||(vo=o,o=Si($a,"onSelect"),0<o.length&&(t=new Fa("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=ls)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var us={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},qa={},Zc={};p&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete us.animationend.animation,delete us.animationiteration.animation,delete us.animationstart.animation),"TransitionEvent"in window||delete us.transitionend.transition);function xi(e){if(qa[e])return qa[e];if(!us[e])return e;var t=us[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zc)return qa[e]=t[n];return e}var Jc=xi("animationend"),ed=xi("animationiteration"),td=xi("animationstart"),nd=xi("transitionend"),rd=new Map,sd="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 Kn(e,t){rd.set(e,t),f(t,[e])}for(var Ya=0;Ya<sd.length;Ya++){var Xa=sd[Ya],vv=Xa.toLowerCase(),gv=Xa[0].toUpperCase()+Xa.slice(1);Kn(vv,"on"+gv)}Kn(Jc,"onAnimationEnd"),Kn(ed,"onAnimationIteration"),Kn(td,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(nd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var go="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(" "),yv=new Set("cancel close invalid load scroll toggle".split(" ").concat(go));function od(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,vm(o,t,void 0,e),e.currentTarget=null}function id(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],a=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var d=o.length-1;0<=d;d--){var g=o[d],S=g.instance,T=g.currentTarget;if(g=g.listener,S!==u&&a.isPropagationStopped())break e;od(a,g,T),u=S}else for(d=0;d<o.length;d++){if(g=o[d],S=g.instance,T=g.currentTarget,g=g.listener,S!==u&&a.isPropagationStopped())break e;od(a,g,T),u=S}}}if(ri)throw e=ja,ri=!1,ja=null,e}function De(e,t){var n=t[ol];n===void 0&&(n=t[ol]=new Set);var o=e+"__bubble";n.has(o)||(ad(t,e,2,!1),n.add(o))}function Za(e,t,n){var o=0;t&&(o|=4),ad(n,e,o,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[wi]){e[wi]=!0,l.forEach(function(n){n!=="selectionchange"&&(yv.has(n)||Za(n,!1,e),Za(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,Za("selectionchange",!1,t))}}function ad(e,t,n,o){switch(Mc(t)){case 1:var a=_m;break;case 4:a=Om;break;default:a=Ia}n=a.bind(null,t,n,e),a=void 0,!Vt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ja(e,t,n,o,a){var u=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var g=o.stateNode.containerInfo;if(g===a||g.nodeType===8&&g.parentNode===a)break;if(d===4)for(d=o.return;d!==null;){var S=d.tag;if((S===3||S===4)&&(S=d.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;d=d.return}for(;g!==null;){if(d=Cr(g),d===null)return;if(S=d.tag,S===5||S===6){o=u=d;continue e}g=g.parentNode}}o=o.return}yt(function(){var T=u,D=rs(n),F=[];e:{var z=rd.get(e);if(z!==void 0){var q=Fa,Z=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":q=Gm;break;case"focusin":Z="focus",q=Ba;break;case"focusout":Z="blur",q=Ba;break;case"beforeblur":case"afterblur":q=Ba;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":q=Oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Xm;break;case Jc:case ed:case td:q=Am;break;case nd:q=Jm;break;case"scroll":q=zm;break;case"wheel":q=tv;break;case"copy":case"cut":case"paste":q=Bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Ic}var J=(t&4)!==0,Ge=!J&&e==="scroll",R=J?z!==null?z+"Capture":null:z;J=[];for(var k=T,M;k!==null;){M=k;var B=M.stateNode;if(M.tag===5&&B!==null&&(M=B,R!==null&&(B=xt(k,R),B!=null&&J.push(xo(k,B,M)))),Ge)break;k=k.return}0<J.length&&(z=new q(z,Z,null,n,D),F.push({event:z,listeners:J}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",z&&n!==eo&&(Z=n.relatedTarget||n.fromElement)&&(Cr(Z)||Z[kn]))break e;if((q||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,q?(Z=n.relatedTarget||n.toElement,q=T,Z=Z?Cr(Z):null,Z!==null&&(Ge=kr(Z),Z!==Ge||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(q=null,Z=T),q!==Z)){if(J=Oc,B="onMouseLeave",R="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(J=Ic,B="onPointerLeave",R="onPointerEnter",k="pointer"),Ge=q==null?z:fs(q),M=Z==null?z:fs(Z),z=new J(B,k+"leave",q,n,D),z.target=Ge,z.relatedTarget=M,B=null,Cr(D)===T&&(J=new J(R,k+"enter",Z,n,D),J.target=M,J.relatedTarget=Ge,B=J),Ge=B,q&&Z)t:{for(J=q,R=Z,k=0,M=J;M;M=cs(M))k++;for(M=0,B=R;B;B=cs(B))M++;for(;0<k-M;)J=cs(J),k--;for(;0<M-k;)R=cs(R),M--;for(;k--;){if(J===R||R!==null&&J===R.alternate)break t;J=cs(J),R=cs(R)}J=null}else J=null;q!==null&&ld(F,z,q,J,!1),Z!==null&&Ge!==null&&ld(F,Ge,Z,J,!0)}}e:{if(z=T?fs(T):window,q=z.nodeName&&z.nodeName.toLowerCase(),q==="select"||q==="input"&&z.type==="file")var re=lv;else if(Bc(z))if(Hc)re=fv;else{re=cv;var le=uv}else(q=z.nodeName)&&q.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(re=dv);if(re&&(re=re(e,T))){Wc(F,re,n,D);break e}le&&le(e,z,T),e==="focusout"&&(le=z._wrapperState)&&le.controlled&&z.type==="number"&&Zs(z,"number",z.value)}switch(le=T?fs(T):window,e){case"focusin":(Bc(le)||le.contentEditable==="true")&&(ls=le,$a=T,vo=null);break;case"focusout":vo=$a=ls=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,Xc(F,n,D);break;case"selectionchange":if(mv)break;case"keydown":case"keyup":Xc(F,n,D)}var ue;if(Ha)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else as?Ac(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Dc&&n.locale!=="ko"&&(as||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&as&&(ue=Tc()):(Vn=D,La="value"in Vn?Vn.value:Vn.textContent,as=!0)),le=Si(T,fe),0<le.length&&(fe=new zc(fe,e,null,n,D),F.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Uc(n),ue!==null&&(fe.data=ue)))),(ue=rv?sv(e,n):ov(e,n))&&(T=Si(T,"onBeforeInput"),0<T.length&&(D=new zc("onBeforeInput","beforeinput",null,n,D),F.push({event:D,listeners:T}),D.data=ue))}id(F,t)})}function xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",o=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=xt(e,n),u!=null&&o.unshift(xo(e,u,a)),u=xt(e,t),u!=null&&o.push(xo(e,u,a))),e=e.return}return o}function cs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ld(e,t,n,o,a){for(var u=t._reactName,d=[];n!==null&&n!==o;){var g=n,S=g.alternate,T=g.stateNode;if(S!==null&&S===o)break;g.tag===5&&T!==null&&(g=T,a?(S=xt(n,u),S!=null&&d.unshift(xo(n,S,g))):a||(S=xt(n,u),S!=null&&d.push(xo(n,S,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var xv=/\r\n?/g,wv=/\u0000|\uFFFD/g;function ud(e){return(typeof e=="string"?e:""+e).replace(xv,`
38
- `).replace(wv,"")}function bi(e,t,n){if(t=ud(t),ud(e)!==t&&n)throw Error(i(425))}function ki(){}var el=null,tl=null;function nl(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 rl=typeof setTimeout=="function"?setTimeout:void 0,Sv=typeof clearTimeout=="function"?clearTimeout:void 0,cd=typeof Promise=="function"?Promise:void 0,bv=typeof queueMicrotask=="function"?queueMicrotask:typeof cd<"u"?function(e){return cd.resolve(null).then(e).catch(kv)}:rl;function kv(e){setTimeout(function(){throw e})}function sl(e,t){var n=t,o=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(o===0){e.removeChild(a),lo(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=a}while(n);lo(t)}function $n(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 dd(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 ds=Math.random().toString(36).slice(2),hn="__reactFiber$"+ds,wo="__reactProps$"+ds,kn="__reactContainer$"+ds,ol="__reactEvents$"+ds,Cv="__reactListeners$"+ds,Ev="__reactHandles$"+ds;function Cr(e){var t=e[hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dd(e);e!==null;){if(n=e[hn])return n;e=dd(e)}return t}e=n,n=e.parentNode}return null}function So(e){return e=e[hn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[wo]||null}var il=[],hs=-1;function Gn(e){return{current:e}}function Le(e){0>hs||(e.current=il[hs],il[hs]=null,hs--)}function Ie(e,t){hs++,il[hs]=e.current,e.current=t}var qn={},at=Gn(qn),wt=Gn(!1),Er=qn;function ps(e,t){var n=e.type.contextTypes;if(!n)return qn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function St(e){return e=e.childContextTypes,e!=null}function Ei(){Le(wt),Le(at)}function fd(e,t,n){if(at.current!==qn)throw Error(i(168));Ie(at,t),Ie(wt,n)}function hd(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return W({},n,o)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Er=at.current,Ie(at,e),Ie(wt,wt.current),!0}function pd(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=hd(e,t,Er),o.__reactInternalMemoizedMergedChildContext=e,Le(wt),Le(at),Ie(at,e)):Le(wt),Ie(wt,n)}var Cn=null,Pi=!1,al=!1;function md(e){Cn===null?Cn=[e]:Cn.push(e)}function Nv(e){Pi=!0,md(e)}function Yn(){if(!al&&Cn!==null){al=!0;var e=0,t=Re;try{var n=Cn;for(Re=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),gc(Ra,Yn),a}finally{Re=t,al=!1}}return null}var ms=[],vs=0,ji=null,Ri=0,zt=[],It=0,Nr=null,En=1,Nn="";function Pr(e,t){ms[vs++]=Ri,ms[vs++]=ji,ji=e,Ri=t}function vd(e,t,n){zt[It++]=En,zt[It++]=Nn,zt[It++]=Nr,Nr=e;var o=En;e=Nn;var a=32-Kt(o)-1;o&=~(1<<a),n+=1;var u=32-Kt(t)+a;if(30<u){var d=a-a%5;u=(o&(1<<d)-1).toString(32),o>>=d,a-=d,En=1<<32-Kt(t)+a|n<<a|o,Nn=u+e}else En=1<<u|n<<a|o,Nn=e}function ll(e){e.return!==null&&(Pr(e,1),vd(e,1,0))}function ul(e){for(;e===ji;)ji=ms[--vs],ms[vs]=null,Ri=ms[--vs],ms[vs]=null;for(;e===Nr;)Nr=zt[--It],zt[It]=null,Nn=zt[--It],zt[It]=null,En=zt[--It],zt[It]=null}var Mt=null,Tt=null,Ue=!1,Gt=null;function gd(e,t){var n=At(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 yd(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,Mt=e,Tt=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mt=e,Tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Mt=e,Tt=null,!0):!1;default:return!1}}function cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(Ue){var t=Tt;if(t){var n=t;if(!yd(e,t)){if(cl(e))throw Error(i(418));t=$n(n.nextSibling);var o=Mt;t&&yd(e,t)?gd(o,n):(e.flags=e.flags&-4097|2,Ue=!1,Mt=e)}}else{if(cl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,Mt=e}}}function xd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function Mi(e){if(e!==Mt)return!1;if(!Ue)return xd(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nl(e.type,e.memoizedProps)),t&&(t=Tt)){if(cl(e))throw wd(),Error(i(418));for(;t;)gd(e,t),t=$n(t.nextSibling)}if(xd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Tt=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Tt=null}}else Tt=Mt?$n(e.stateNode.nextSibling):null;return!0}function wd(){for(var e=Tt;e;)e=$n(e.nextSibling)}function gs(){Tt=Mt=null,Ue=!1}function fl(e){Gt===null?Gt=[e]:Gt.push(e)}var Pv=I.ReactCurrentBatchConfig;function bo(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(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var a=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var g=a.refs;d===null?delete g[u]:g[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sd(e){var t=e._init;return t(e._payload)}function bd(e){function t(R,k){if(e){var M=R.deletions;M===null?(R.deletions=[k],R.flags|=16):M.push(k)}}function n(R,k){if(!e)return null;for(;k!==null;)t(R,k),k=k.sibling;return null}function o(R,k){for(R=new Map;k!==null;)k.key!==null?R.set(k.key,k):R.set(k.index,k),k=k.sibling;return R}function a(R,k){return R=sr(R,k),R.index=0,R.sibling=null,R}function u(R,k,M){return R.index=M,e?(M=R.alternate,M!==null?(M=M.index,M<k?(R.flags|=2,k):M):(R.flags|=2,k)):(R.flags|=1048576,k)}function d(R){return e&&R.alternate===null&&(R.flags|=2),R}function g(R,k,M,B){return k===null||k.tag!==6?(k=ru(M,R.mode,B),k.return=R,k):(k=a(k,M),k.return=R,k)}function S(R,k,M,B){var re=M.type;return re===ne?D(R,k,M.props.children,B,M.key):k!==null&&(k.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===_e&&Sd(re)===k.type)?(B=a(k,M.props),B.ref=bo(R,k,M),B.return=R,B):(B=ta(M.type,M.key,M.props,null,R.mode,B),B.ref=bo(R,k,M),B.return=R,B)}function T(R,k,M,B){return k===null||k.tag!==4||k.stateNode.containerInfo!==M.containerInfo||k.stateNode.implementation!==M.implementation?(k=su(M,R.mode,B),k.return=R,k):(k=a(k,M.children||[]),k.return=R,k)}function D(R,k,M,B,re){return k===null||k.tag!==7?(k=Ir(M,R.mode,B,re),k.return=R,k):(k=a(k,M),k.return=R,k)}function F(R,k,M){if(typeof k=="string"&&k!==""||typeof k=="number")return k=ru(""+k,R.mode,M),k.return=R,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ee:return M=ta(k.type,k.key,k.props,null,R.mode,M),M.ref=bo(R,null,k),M.return=R,M;case se:return k=su(k,R.mode,M),k.return=R,k;case _e:var B=k._init;return F(R,B(k._payload),M)}if(An(k)||U(k))return k=Ir(k,R.mode,M,null),k.return=R,k;Ti(R,k)}return null}function z(R,k,M,B){var re=k!==null?k.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return re!==null?null:g(R,k,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:return M.key===re?S(R,k,M,B):null;case se:return M.key===re?T(R,k,M,B):null;case _e:return re=M._init,z(R,k,re(M._payload),B)}if(An(M)||U(M))return re!==null?null:D(R,k,M,B,null);Ti(R,M)}return null}function q(R,k,M,B,re){if(typeof B=="string"&&B!==""||typeof B=="number")return R=R.get(M)||null,g(k,R,""+B,re);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case ee:return R=R.get(B.key===null?M:B.key)||null,S(k,R,B,re);case se:return R=R.get(B.key===null?M:B.key)||null,T(k,R,B,re);case _e:var le=B._init;return q(R,k,M,le(B._payload),re)}if(An(B)||U(B))return R=R.get(M)||null,D(k,R,B,re,null);Ti(k,B)}return null}function Z(R,k,M,B){for(var re=null,le=null,ue=k,fe=k=0,nt=null;ue!==null&&fe<M.length;fe++){ue.index>fe?(nt=ue,ue=null):nt=ue.sibling;var Ce=z(R,ue,M[fe],B);if(Ce===null){ue===null&&(ue=nt);break}e&&ue&&Ce.alternate===null&&t(R,ue),k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce,ue=nt}if(fe===M.length)return n(R,ue),Ue&&Pr(R,fe),re;if(ue===null){for(;fe<M.length;fe++)ue=F(R,M[fe],B),ue!==null&&(k=u(ue,k,fe),le===null?re=ue:le.sibling=ue,le=ue);return Ue&&Pr(R,fe),re}for(ue=o(R,ue);fe<M.length;fe++)nt=q(ue,R,fe,M[fe],B),nt!==null&&(e&&nt.alternate!==null&&ue.delete(nt.key===null?fe:nt.key),k=u(nt,k,fe),le===null?re=nt:le.sibling=nt,le=nt);return e&&ue.forEach(function(or){return t(R,or)}),Ue&&Pr(R,fe),re}function J(R,k,M,B){var re=U(M);if(typeof re!="function")throw Error(i(150));if(M=re.call(M),M==null)throw Error(i(151));for(var le=re=null,ue=k,fe=k=0,nt=null,Ce=M.next();ue!==null&&!Ce.done;fe++,Ce=M.next()){ue.index>fe?(nt=ue,ue=null):nt=ue.sibling;var or=z(R,ue,Ce.value,B);if(or===null){ue===null&&(ue=nt);break}e&&ue&&or.alternate===null&&t(R,ue),k=u(or,k,fe),le===null?re=or:le.sibling=or,le=or,ue=nt}if(Ce.done)return n(R,ue),Ue&&Pr(R,fe),re;if(ue===null){for(;!Ce.done;fe++,Ce=M.next())Ce=F(R,Ce.value,B),Ce!==null&&(k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return Ue&&Pr(R,fe),re}for(ue=o(R,ue);!Ce.done;fe++,Ce=M.next())Ce=q(ue,R,fe,Ce.value,B),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(ig){return t(R,ig)}),Ue&&Pr(R,fe),re}function Ge(R,k,M,B){if(typeof M=="object"&&M!==null&&M.type===ne&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:e:{for(var re=M.key,le=k;le!==null;){if(le.key===re){if(re=M.type,re===ne){if(le.tag===7){n(R,le.sibling),k=a(le,M.props.children),k.return=R,R=k;break e}}else if(le.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===_e&&Sd(re)===le.type){n(R,le.sibling),k=a(le,M.props),k.ref=bo(R,le,M),k.return=R,R=k;break e}n(R,le);break}else t(R,le);le=le.sibling}M.type===ne?(k=Ir(M.props.children,R.mode,B,M.key),k.return=R,R=k):(B=ta(M.type,M.key,M.props,null,R.mode,B),B.ref=bo(R,k,M),B.return=R,R=B)}return d(R);case se:e:{for(le=M.key;k!==null;){if(k.key===le)if(k.tag===4&&k.stateNode.containerInfo===M.containerInfo&&k.stateNode.implementation===M.implementation){n(R,k.sibling),k=a(k,M.children||[]),k.return=R,R=k;break e}else{n(R,k);break}else t(R,k);k=k.sibling}k=su(M,R.mode,B),k.return=R,R=k}return d(R);case _e:return le=M._init,Ge(R,k,le(M._payload),B)}if(An(M))return Z(R,k,M,B);if(U(M))return J(R,k,M,B);Ti(R,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,k!==null&&k.tag===6?(n(R,k.sibling),k=a(k,M),k.return=R,R=k):(n(R,k),k=ru(M,R.mode,B),k.return=R,R=k),d(R)):n(R,k)}return Ge}var ys=bd(!0),kd=bd(!1),_i=Gn(null),Oi=null,xs=null,hl=null;function pl(){hl=xs=Oi=null}function ml(e){var t=_i.current;Le(_i),e._currentValue=t}function vl(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function ws(e,t){Oi=e,hl=xs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(bt=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(hl!==e)if(e={context:e,memoizedValue:t,next:null},xs===null){if(Oi===null)throw Error(i(308));xs=e,Oi.dependencies={lanes:0,firstContext:e}}else xs=xs.next=e;return t}var jr=null;function gl(e){jr===null?jr=[e]:jr.push(e)}function Cd(e,t,n,o){var a=t.interleaved;return a===null?(n.next=n,gl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,o)}function Pn(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 Xn=!1;function yl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ed(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 jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ke&2)!==0){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,Pn(e,n)}return a=o.interleaved,a===null?(t.next=t,gl(o)):(t.next=a.next,a.next=t),o.interleaved=t,Pn(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,_a(e,n)}}function Nd(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,o){var a=e.updateQueue;Xn=!1;var u=a.firstBaseUpdate,d=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var S=g,T=S.next;S.next=null,d===null?u=T:d.next=T,d=S;var D=e.alternate;D!==null&&(D=D.updateQueue,g=D.lastBaseUpdate,g!==d&&(g===null?D.firstBaseUpdate=T:g.next=T,D.lastBaseUpdate=S))}if(u!==null){var F=a.baseState;d=0,D=T=S=null,g=u;do{var z=g.lane,q=g.eventTime;if((o&z)===z){D!==null&&(D=D.next={eventTime:q,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var Z=e,J=g;switch(z=t,q=n,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){F=Z.call(q,F,z);break e}F=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,z=typeof Z=="function"?Z.call(q,F,z):Z,z==null)break e;F=W({},F,z);break e;case 2:Xn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,z=a.effects,z===null?a.effects=[g]:z.push(g))}else q={eventTime:q,lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},D===null?(T=D=q,S=F):D=D.next=q,d|=z;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;z=g,g=z.next,z.next=null,a.lastBaseUpdate=z,a.shared.pending=null}}while(!0);if(D===null&&(S=F),a.baseState=S,a.firstBaseUpdate=T,a.lastBaseUpdate=D,t=a.shared.interleaved,t!==null){a=t;do d|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Tr|=d,e.lanes=d,e.memoizedState=F}}function Pd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=n,typeof a!="function")throw Error(i(191,a));a.call(o)}}}var ko={},pn=Gn(ko),Co=Gn(ko),Eo=Gn(ko);function Rr(e){if(e===ko)throw Error(i(174));return e}function xl(e,t){switch(Ie(Eo,t),Ie(Co,e),Ie(pn,ko),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:an(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=an(t,e)}Le(pn),Ie(pn,t)}function Ss(){Le(pn),Le(Co),Le(Eo)}function jd(e){Rr(Eo.current);var t=Rr(pn.current),n=an(t,e.type);t!==n&&(Ie(Co,e),Ie(pn,n))}function wl(e){Co.current===e&&(Le(pn),Le(Co))}var We=Gn(0);function Di(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)!==0)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 Sl=[];function bl(){for(var e=0;e<Sl.length;e++)Sl[e]._workInProgressVersionPrimary=null;Sl.length=0}var Li=I.ReactCurrentDispatcher,kl=I.ReactCurrentBatchConfig,Mr=0,He=null,Ye=null,et=null,Fi=!1,No=!1,Po=0,jv=0;function lt(){throw Error(i(321))}function Cl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$t(e[n],t[n]))return!1;return!0}function El(e,t,n,o,a,u){if(Mr=u,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?_v:Ov,e=n(o,a),No){u=0;do{if(No=!1,Po=0,25<=u)throw Error(i(301));u+=1,et=Ye=null,t.updateQueue=null,Li.current=zv,e=n(o,a)}while(No)}if(Li.current=Bi,t=Ye!==null&&Ye.next!==null,Mr=0,et=Ye=He=null,Fi=!1,t)throw Error(i(300));return e}function Nl(){var e=Po!==0;return Po=0,e}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?He.memoizedState=et=e:et=et.next=e,et}function Lt(){if(Ye===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=et===null?He.memoizedState:et.next;if(t!==null)et=t,Ye=e;else{if(e===null)throw Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},et===null?He.memoizedState=et=e:et=et.next=e}return et}function jo(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=Ye,a=o.baseQueue,u=n.pending;if(u!==null){if(a!==null){var d=a.next;a.next=u.next,u.next=d}o.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,o=o.baseState;var g=d=null,S=null,T=u;do{var D=T.lane;if((Mr&D)===D)S!==null&&(S=S.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),o=T.hasEagerState?T.eagerState:e(o,T.action);else{var F={lane:D,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};S===null?(g=S=F,d=o):S=S.next=F,He.lanes|=D,Tr|=D}T=T.next}while(T!==null&&T!==u);S===null?d=o:S.next=g,$t(o,t.memoizedState)||(bt=!0),t.memoizedState=o,t.baseState=d,t.baseQueue=S,n.lastRenderedState=o}if(e=n.interleaved,e!==null){a=e;do u=a.lane,He.lanes|=u,Tr|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var d=a=a.next;do u=e(u,d.action),d=d.next;while(d!==a);$t(u,t.memoizedState)||(bt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function Rd(){}function Md(e,t){var n=He,o=Lt(),a=t(),u=!$t(o.memoizedState,a);if(u&&(o.memoizedState=a,bt=!0),o=o.queue,Rl(Od.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Ro(9,_d.bind(null,n,o,a,t),void 0,null),tt===null)throw Error(i(349));(Mr&30)!==0||Td(n,t,a)}return a}function Td(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _d(e,t,n,o){t.value=n,t.getSnapshot=o,zd(t)&&Id(e)}function Od(e,t,n){return n(function(){zd(t)&&Id(e)})}function zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$t(e,n)}catch{return!0}}function Id(e){var t=Pn(e,1);t!==null&&Zt(t,e,1,-1)}function Dd(e){var t=mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t.queue=e,e=e.dispatch=Tv.bind(null,He,e),[t.memoizedState,e]}function Ro(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Ld(){return Lt().memoizedState}function Ai(e,t,n,o){var a=mn();He.flags|=e,a.memoizedState=Ro(1|t,n,void 0,o===void 0?null:o)}function Ui(e,t,n,o){var a=Lt();o=o===void 0?null:o;var u=void 0;if(Ye!==null){var d=Ye.memoizedState;if(u=d.destroy,o!==null&&Cl(o,d.deps)){a.memoizedState=Ro(t,n,u,o);return}}He.flags|=e,a.memoizedState=Ro(1|t,n,u,o)}function Fd(e,t){return Ai(8390656,8,e,t)}function Rl(e,t){return Ui(2048,8,e,t)}function Ad(e,t){return Ui(4,2,e,t)}function Ud(e,t){return Ui(4,4,e,t)}function Bd(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 Wd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Bd.bind(null,t,e),n)}function Ml(){}function Hd(e,t){var n=Lt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Cl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Qd(e,t){var n=Lt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Cl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Vd(e,t,n){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n):($t(n,t)||(n=Sc(),He.lanes|=n,Tr|=n,e.baseState=!0),t)}function Rv(e,t){var n=Re;Re=n!==0&&4>n?n:4,e(!0);var o=kl.transition;kl.transition={};try{e(!1),t()}finally{Re=n,kl.transition=o}}function Kd(){return Lt().memoizedState}function Mv(e,t,n){var o=nr(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},$d(e))Gd(t,n);else if(n=Cd(e,t,n,o),n!==null){var a=mt();Zt(n,e,o,a),qd(n,t,o)}}function Tv(e,t,n){var o=nr(e),a={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if($d(e))Gd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(a.hasEagerState=!0,a.eagerState=g,$t(g,d)){var S=t.interleaved;S===null?(a.next=a,gl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=Cd(e,t,a,o),n!==null&&(a=mt(),Zt(n,e,o,a),qd(n,t,o))}}function $d(e){var t=e.alternate;return e===He||t!==null&&t===He}function Gd(e,t){No=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qd(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,_a(e,n)}}var Bi={readContext:Dt,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},_v={readContext:Dt,useCallback:function(e,t){return mn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:Fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4194308,4,Bd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=mn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Mv.bind(null,He,e),[o.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:Dd,useDebugValue:Ml,useDeferredValue:function(e){return mn().memoizedState=e},useTransition:function(){var e=Dd(!1),t=e[0];return e=Rv.bind(null,e[1]),mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=He,a=mn();if(Ue){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),tt===null)throw Error(i(349));(Mr&30)!==0||Td(o,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Fd(Od.bind(null,o,u,e),[e]),o.flags|=2048,Ro(9,_d.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=mn(),t=tt.identifierPrefix;if(Ue){var n=Nn,o=En;n=(o&~(1<<32-Kt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Po++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=jv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ov={readContext:Dt,useCallback:Hd,useContext:Dt,useEffect:Rl,useImperativeHandle:Wd,useInsertionEffect:Ad,useLayoutEffect:Ud,useMemo:Qd,useReducer:Pl,useRef:Ld,useState:function(){return Pl(jo)},useDebugValue:Ml,useDeferredValue:function(e){var t=Lt();return Vd(t,Ye.memoizedState,e)},useTransition:function(){var e=Pl(jo)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Rd,useSyncExternalStore:Md,useId:Kd,unstable_isNewReconciler:!1},zv={readContext:Dt,useCallback:Hd,useContext:Dt,useEffect:Rl,useImperativeHandle:Wd,useInsertionEffect:Ad,useLayoutEffect:Ud,useMemo:Qd,useReducer:jl,useRef:Ld,useState:function(){return jl(jo)},useDebugValue:Ml,useDeferredValue:function(e){var t=Lt();return Ye===null?t.memoizedState=e:Vd(t,Ye.memoizedState,e)},useTransition:function(){var e=jl(jo)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Rd,useSyncExternalStore:Md,useId:Kd,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tl(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=mt(),a=nr(e),u=jn(o,a);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Zt(t,e,a,o),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=mt(),a=nr(e),u=jn(o,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Zt(t,e,a,o),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),o=nr(e),a=jn(n,o);a.tag=2,t!=null&&(a.callback=t),t=Zn(e,a,o),t!==null&&(Zt(t,e,o,n),zi(t,e,o))}};function Yd(e,t,n,o,a,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,d):t.prototype&&t.prototype.isPureReactComponent?!mo(n,o)||!mo(a,u):!0}function Xd(e,t,n){var o=!1,a=qn,u=t.contextType;return typeof u=="object"&&u!==null?u=Dt(u):(a=St(t)?Er:at.current,o=t.contextTypes,u=(o=o!=null)?ps(e,a):qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Zd(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function _l(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},yl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=Dt(u):(u=St(t)?Er:at.current,a.context=ps(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Tl(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function bs(e,t){try{var n="",o=t;do n+=de(o),o=o.return;while(o);var a=n}catch(u){a=`
39
- Error generating stack: `+u.message+`
40
- `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Iv=typeof WeakMap=="function"?WeakMap:Map;function Jd(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){qi||(qi=!0,ql=o),zl(e,t)},n}function ef(e,t,n){n=jn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;n.payload=function(){return o(a)},n.callback=function(){zl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){zl(e,t),typeof o!="function"&&(er===null?er=new Set([this]):er.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function tf(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new Iv;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(n)||(a.add(n),e=qv.bind(null,e,t,n),t.then(e,e))}function nf(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 rf(e,t,n,o,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Dv=I.ReactCurrentOwner,bt=!1;function pt(e,t,n,o){t.child=e===null?kd(t,null,n,o):ys(t,e.child,n,o)}function sf(e,t,n,o,a){n=n.render;var u=t.ref;return ws(t,a),o=El(e,t,n,o,u,a),n=Nl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&n&&ll(t),t.flags|=1,pt(e,t,o,a),t.child)}function of(e,t,n,o,a){if(e===null){var u=n.type;return typeof u=="function"&&!nu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,af(e,t,u,o,a)):(e=ta(n.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:mo,n(d,o)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=sr(u,o),e.ref=t.ref,e.return=t,t.child=e}function af(e,t,n,o,a){if(e!==null){var u=e.memoizedProps;if(mo(u,o)&&e.ref===t.ref)if(bt=!1,t.pendingProps=o=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,Rn(e,t,a)}return Il(e,t,n,o,a)}function lf(e,t,n){var o=t.pendingProps,a=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(Cs,_t),_t|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(Cs,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,Ie(Cs,_t),_t|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,Ie(Cs,_t),_t|=o;return pt(e,t,a,n),t.child}function uf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,o,a){var u=St(n)?Er:at.current;return u=ps(t,u),ws(t,a),n=El(e,t,n,o,u,a),o=Nl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&o&&ll(t),t.flags|=1,pt(e,t,n,a),t.child)}function cf(e,t,n,o,a){if(St(n)){var u=!0;Ni(t)}else u=!1;if(ws(t,a),t.stateNode===null)Qi(e,t),Xd(t,n,o),_l(t,n,o,a),o=!0;else if(e===null){var d=t.stateNode,g=t.memoizedProps;d.props=g;var S=d.context,T=n.contextType;typeof T=="object"&&T!==null?T=Dt(T):(T=St(n)?Er:at.current,T=ps(t,T));var D=n.getDerivedStateFromProps,F=typeof D=="function"||typeof d.getSnapshotBeforeUpdate=="function";F||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==o||S!==T)&&Zd(t,d,o,T),Xn=!1;var z=t.memoizedState;d.state=z,Ii(t,o,d,a),S=t.memoizedState,g!==o||z!==S||wt.current||Xn?(typeof D=="function"&&(Tl(t,n,D,o),S=t.memoizedState),(g=Xn||Yd(t,n,g,o,z,S,T))?(F||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),d.props=o,d.state=S,d.context=T,o=g):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Ed(e,t),g=t.memoizedProps,T=t.type===t.elementType?g:qt(t.type,g),d.props=T,F=t.pendingProps,z=d.context,S=n.contextType,typeof S=="object"&&S!==null?S=Dt(S):(S=St(n)?Er:at.current,S=ps(t,S));var q=n.getDerivedStateFromProps;(D=typeof q=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==F||z!==S)&&Zd(t,d,o,S),Xn=!1,z=t.memoizedState,d.state=z,Ii(t,o,d,a);var Z=t.memoizedState;g!==F||z!==Z||wt.current||Xn?(typeof q=="function"&&(Tl(t,n,q,o),Z=t.memoizedState),(T=Xn||Yd(t,n,T,o,z,Z,S)||!1)?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,Z,S),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,Z,S)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=Z),d.props=o,d.state=Z,d.context=S,o=T):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),o=!1)}return Dl(e,t,n,o,u,a)}function Dl(e,t,n,o,a,u){uf(e,t);var d=(t.flags&128)!==0;if(!o&&!d)return a&&pd(t,n,!1),Rn(e,t,u);o=t.stateNode,Dv.current=t;var g=d&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=ys(t,e.child,null,u),t.child=ys(t,null,g,u)):pt(e,t,g,u),t.memoizedState=o.state,a&&pd(t,n,!0),t.child}function df(e){var t=e.stateNode;t.pendingContext?fd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fd(e,t.context,!1),xl(e,t.containerInfo)}function ff(e,t,n,o,a){return gs(),fl(a),t.flags|=256,pt(e,t,n,o),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function hf(e,t,n){var o=t.pendingProps,a=We.current,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(a&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ie(We,a&1),e===null)return dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=o.children,e=o.fallback,u?(o=t.mode,u=t.child,d={mode:"hidden",children:d},(o&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=na(d,o,0,null),e=Ir(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Fl(n),t.memoizedState=Ll,e):Al(t,d));if(a=e.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return Lv(e,t,d,o,g,a,n);if(u){u=o.fallback,d=t.mode,a=e.child,g=a.sibling;var S={mode:"hidden",children:o.children};return(d&1)===0&&t.child!==a?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=sr(a,S),o.subtreeFlags=a.subtreeFlags&14680064),g!==null?u=sr(g,u):(u=Ir(u,d,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,d=e.child.memoizedState,d=d===null?Fl(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return u=e.child,e=u.sibling,o=sr(u,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Al(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hi(e,t,n,o){return o!==null&&fl(o),ys(t,e.child,null,n),e=Al(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lv(e,t,n,o,a,u,d){if(n)return t.flags&256?(t.flags&=-257,o=Ol(Error(i(422))),Hi(e,t,d,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,a=t.mode,o=na({mode:"visible",children:o.children},a,0,null),u=Ir(u,a,d,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,(t.mode&1)!==0&&ys(t,e.child,null,d),t.child.memoizedState=Fl(d),t.memoizedState=Ll,u);if((t.mode&1)===0)return Hi(e,t,d,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var g=o.dgst;return o=g,u=Error(i(419)),o=Ol(u,o,void 0),Hi(e,t,d,o)}if(g=(d&e.childLanes)!==0,bt||g){if(o=tt,o!==null){switch(d&-d){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(o.suspendedLanes|d))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),Zt(o,e,a,-1))}return tu(),o=Ol(Error(i(421))),Hi(e,t,d,o)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Yv.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Tt=$n(a.nextSibling),Mt=t,Ue=!0,Gt=null,e!==null&&(zt[It++]=En,zt[It++]=Nn,zt[It++]=Nr,En=e.id,Nn=e.overflow,Nr=t),t=Al(t,o.children),t.flags|=4096,t)}function pf(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),vl(e.return,t,n)}function Ul(e,t,n,o,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=a)}function mf(e,t,n){var o=t.pendingProps,a=o.revealOrder,u=o.tail;if(pt(e,t,o.children,n),o=We.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pf(e,n,t);else if(e.tag===19)pf(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}o&=1}if(Ie(We,o),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Di(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ul(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Di(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ul(t,!0,n,null,u);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fv(e,t,n){switch(t.tag){case 3:df(t),gs();break;case 5:jd(t);break;case 1:St(t.type)&&Ni(t);break;case 4:xl(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,a=t.memoizedProps.value;Ie(_i,o._currentValue),o._currentValue=a;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ie(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?hf(e,t,n):(Ie(We,We.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);Ie(We,We.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&128)!==0){if(o)return mf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ie(We,We.current),o)break;return null;case 22:case 23:return t.lanes=0,lf(e,t,n)}return Rn(e,t,n)}var vf,Bl,gf,yf;vf=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}},Bl=function(){},gf=function(e,t,n,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,Rr(pn.current);var u=null;switch(n){case"input":a=qs(e,a),o=qs(e,o),u=[];break;case"select":a=W({},a,{value:void 0}),o=W({},o,{value:void 0}),u=[];break;case"textarea":a=es(e,a),o=es(e,o),u=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ki)}un(n,o);var d;n=null;for(T in a)if(!o.hasOwnProperty(T)&&a.hasOwnProperty(T)&&a[T]!=null)if(T==="style"){var g=a[T];for(d in g)g.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(c.hasOwnProperty(T)?u||(u=[]):(u=u||[]).push(T,null));for(T in o){var S=o[T];if(g=a!=null?a[T]:void 0,o.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))if(T==="style")if(g){for(d in g)!g.hasOwnProperty(d)||S&&S.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in S)S.hasOwnProperty(d)&&g[d]!==S[d]&&(n||(n={}),n[d]=S[d])}else n||(u||(u=[]),u.push(T,n)),n=S;else T==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,g=g?g.__html:void 0,S!=null&&g!==S&&(u=u||[]).push(T,S)):T==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(T,""+S):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(c.hasOwnProperty(T)?(S!=null&&T==="onScroll"&&De("scroll",e),u||g===S||(u=[])):(u=u||[]).push(T,S))}n&&(u=u||[]).push("style",n);var T=u;(t.updateQueue=T)&&(t.flags|=4)}},yf=function(e,t,n,o){n!==o&&(t.flags|=4)};function Mo(e,t){if(!Ue)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Av(e,t,n){var o=t.pendingProps;switch(ul(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return St(t.type)&&Ei(),ut(t),null;case 3:return o=t.stateNode,Ss(),Le(wt),Le(at),bl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gt!==null&&(Zl(Gt),Gt=null))),Bl(e,t),ut(t),null;case 5:wl(t);var a=Rr(Eo.current);if(n=t.type,e!==null&&t.stateNode!=null)gf(e,t,n,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ut(t),null}if(e=Rr(pn.current),Mi(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[hn]=t,o[wo]=u,e=(t.mode&1)!==0,n){case"dialog":De("cancel",o),De("close",o);break;case"iframe":case"object":case"embed":De("load",o);break;case"video":case"audio":for(a=0;a<go.length;a++)De(go[a],o);break;case"source":De("error",o);break;case"img":case"image":case"link":De("error",o),De("load",o);break;case"details":De("toggle",o);break;case"input":qo(o,u),De("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},De("invalid",o);break;case"textarea":on(o,u),De("invalid",o)}un(n,u),a=null;for(var d in u)if(u.hasOwnProperty(d)){var g=u[d];d==="children"?typeof g=="string"?o.textContent!==g&&(u.suppressHydrationWarning!==!0&&bi(o.textContent,g,e),a=["children",g]):typeof g=="number"&&o.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&bi(o.textContent,g,e),a=["children",""+g]):c.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&De("scroll",o)}switch(n){case"input":sn(o),Jr(o,u,!0);break;case"textarea":sn(o),Xo(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=ki)}o=a,t.updateQueue=o,o!==null&&(t.flags|=4)}else{d=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ft(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[hn]=t,e[wo]=o,vf(e,t,!1,!1),t.stateNode=e;e:{switch(d=Js(n,o),n){case"dialog":De("cancel",e),De("close",e),a=o;break;case"iframe":case"object":case"embed":De("load",e),a=o;break;case"video":case"audio":for(a=0;a<go.length;a++)De(go[a],e);a=o;break;case"source":De("error",e),a=o;break;case"img":case"image":case"link":De("error",e),De("load",e),a=o;break;case"details":De("toggle",e),a=o;break;case"input":qo(e,o),a=qs(e,o),De("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=W({},o,{value:void 0}),De("invalid",e);break;case"textarea":on(e,o),a=es(e,o),De("invalid",e);break;default:a=o}un(n,a),g=a;for(u in g)if(g.hasOwnProperty(u)){var S=g[u];u==="style"?bn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Zo(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&ln(e,S):typeof S=="number"&&ln(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&De("scroll",e):S!=null&&V(e,u,S,d))}switch(n){case"input":sn(e),Jr(e,o,!1);break;case"textarea":sn(e),Xo(e);break;case"option":o.value!=null&&e.setAttribute("value",""+be(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?Ot(e,!!o.multiple,u,!1):o.defaultValue!=null&&Ot(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ki)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)yf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(n=Rr(Eo.current),Rr(pn.current),Mi(t)){if(o=t.stateNode,n=t.memoizedProps,o[hn]=t,(u=o.nodeValue!==n)&&(e=Mt,e!==null))switch(e.tag){case 3:bi(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bi(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[hn]=t,t.stateNode=o}return ut(t),null;case 13:if(Le(We),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)wd(),gs(),t.flags|=98560,u=!1;else if(u=Mi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[hn]=t}else gs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),u=!1}else Gt!==null&&(Zl(Gt),Gt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Xe===0&&(Xe=3):tu())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return Ss(),Bl(e,t),e===null&&yo(t.stateNode.containerInfo),ut(t),null;case 10:return ml(t.type._context),ut(t),null;case 17:return St(t.type)&&Ei(),ut(t),null;case 19:if(Le(We),u=t.memoizedState,u===null)return ut(t),null;if(o=(t.flags&128)!==0,d=u.rendering,d===null)if(o)Mo(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Di(e),d!==null){for(t.flags|=128,Mo(u,!1),o=d.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ie(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&$e()>Es&&(t.flags|=128,o=!0,Mo(u,!1),t.lanes=4194304)}else{if(!o)if(e=Di(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Ue)return ut(t),null}else 2*$e()-u.renderingStartTime>Es&&n!==1073741824&&(t.flags|=128,o=!0,Mo(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=$e(),t.sibling=null,n=We.current,Ie(We,o?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return eu(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(_t&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Uv(e,t){switch(ul(t),t.tag){case 1:return St(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ss(),Le(wt),Le(at),bl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wl(t),null;case 13:if(Le(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(We),null;case 4:return Ss(),null;case 10:return ml(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Vi=!1,ct=!1,Bv=typeof WeakSet=="function"?WeakSet:Set,Y=null;function ks(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Ve(e,t,o)}else n.current=null}function Wl(e,t,n){try{n()}catch(o){Ve(e,t,o)}}var xf=!1;function Wv(e,t){if(el=di,e=Yc(),Ka(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var a=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,S=-1,T=0,D=0,F=e,z=null;t:for(;;){for(var q;F!==n||a!==0&&F.nodeType!==3||(g=d+a),F!==u||o!==0&&F.nodeType!==3||(S=d+o),F.nodeType===3&&(d+=F.nodeValue.length),(q=F.firstChild)!==null;)z=F,F=q;for(;;){if(F===e)break t;if(z===n&&++T===a&&(g=d),z===u&&++D===o&&(S=d),(q=F.nextSibling)!==null)break;F=z,z=F.parentNode}F=q}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},di=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var J=Z.memoizedProps,Ge=Z.memoizedState,R=t.stateNode,k=R.getSnapshotBeforeUpdate(t.elementType===t.type?J:qt(t.type,J),Ge);R.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(B){Ve(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return Z=xf,xf=!1,Z}function To(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Wl(t,n,u)}a=a.next}while(a!==o)}}function Ki(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Hl(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 wf(e){var t=e.alternate;t!==null&&(e.alternate=null,wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[wo],delete t[ol],delete t[Cv],delete t[Ev])),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 Sf(e){return e.tag===5||e.tag===3||e.tag===4}function bf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sf(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 Ql(e,t,n){var o=e.tag;if(o===5||o===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=ki));else if(o!==4&&(e=e.child,e!==null))for(Ql(e,t,n),e=e.sibling;e!==null;)Ql(e,t,n),e=e.sibling}function Vl(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}var ot=null,Yt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)kf(e,t,n),n=n.sibling}function kf(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(oi,n)}catch{}switch(n.tag){case 5:ct||ks(n,t);case 6:var o=ot,a=Yt;ot=null,Jn(e,t,n),ot=o,Yt=a,ot!==null&&(Yt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Yt?(e=ot,n=n.stateNode,e.nodeType===8?sl(e.parentNode,n):e.nodeType===1&&sl(e,n),lo(e)):sl(ot,n.stateNode));break;case 4:o=ot,a=Yt,ot=n.stateNode.containerInfo,Yt=!0,Jn(e,t,n),ot=o,Yt=a;break;case 0:case 11:case 14:case 15:if(!ct&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var u=a,d=u.destroy;u=u.tag,d!==void 0&&((u&2)!==0||(u&4)!==0)&&Wl(n,t,d),a=a.next}while(a!==o)}Jn(e,t,n);break;case 1:if(!ct&&(ks(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(g){Ve(n,t,g)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(ct=(o=ct)||n.memoizedState!==null,Jn(e,t,n),ct=o):Jn(e,t,n);break;default:Jn(e,t,n)}}function Cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bv),t.forEach(function(o){var a=Xv.bind(null,e,o);n.has(o)||(n.add(o),o.then(a,a))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var a=n[o];try{var u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 5:ot=g.stateNode,Yt=!1;break e;case 3:ot=g.stateNode.containerInfo,Yt=!0;break e;case 4:ot=g.stateNode.containerInfo,Yt=!0;break e}g=g.return}if(ot===null)throw Error(i(160));kf(u,d,a),ot=null,Yt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(T){Ve(a,t,T)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ef(t,e),t=t.sibling}function Ef(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),vn(e),o&4){try{To(3,e,e.return),Ki(3,e)}catch(J){Ve(e,e.return,J)}try{To(5,e,e.return)}catch(J){Ve(e,e.return,J)}}break;case 1:Xt(t,e),vn(e),o&512&&n!==null&&ks(n,n.return);break;case 5:if(Xt(t,e),vn(e),o&512&&n!==null&&ks(n,n.return),e.flags&32){var a=e.stateNode;try{ln(a,"")}catch(J){Ve(e,e.return,J)}}if(o&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,g=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Ys(a,u),Js(g,d);var T=Js(g,u);for(d=0;d<S.length;d+=2){var D=S[d],F=S[d+1];D==="style"?bn(a,F):D==="dangerouslySetInnerHTML"?Zo(a,F):D==="children"?ln(a,F):V(a,D,F,T)}switch(g){case"input":Xs(a,u);break;case"textarea":Yo(a,u);break;case"select":var z=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var q=u.value;q!=null?Ot(a,!!u.multiple,q,!1):z!==!!u.multiple&&(u.defaultValue!=null?Ot(a,!!u.multiple,u.defaultValue,!0):Ot(a,!!u.multiple,u.multiple?[]:"",!1))}a[wo]=u}catch(J){Ve(e,e.return,J)}}break;case 6:if(Xt(t,e),vn(e),o&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(J){Ve(e,e.return,J)}}break;case 3:if(Xt(t,e),vn(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{lo(t.containerInfo)}catch(J){Ve(e,e.return,J)}break;case 4:Xt(t,e),vn(e);break;case 13:Xt(t,e),vn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Gl=$e())),o&4&&Cf(e);break;case 22:if(D=n!==null&&n.memoizedState!==null,e.mode&1?(ct=(T=ct)||D,Xt(t,e),ct=T):Xt(t,e),vn(e),o&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!D&&(e.mode&1)!==0)for(Y=e,D=e.child;D!==null;){for(F=Y=D;Y!==null;){switch(z=Y,q=z.child,z.tag){case 0:case 11:case 14:case 15:To(4,z,z.return);break;case 1:ks(z,z.return);var Z=z.stateNode;if(typeof Z.componentWillUnmount=="function"){o=z,n=z.return;try{t=o,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){Ve(o,n,J)}}break;case 5:ks(z,z.return);break;case 22:if(z.memoizedState!==null){jf(F);continue}}q!==null?(q.return=z,Y=q):jf(F)}D=D.sibling}e:for(D=null,F=e;;){if(F.tag===5){if(D===null){D=F;try{a=F.stateNode,T?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=F.stateNode,S=F.memoizedProps.style,d=S!=null&&S.hasOwnProperty("display")?S.display:null,g.style.display=ns("display",d))}catch(J){Ve(e,e.return,J)}}}else if(F.tag===6){if(D===null)try{F.stateNode.nodeValue=T?"":F.memoizedProps}catch(J){Ve(e,e.return,J)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;D===F&&(D=null),F=F.return}D===F&&(D=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Xt(t,e),vn(e),o&4&&Cf(e);break;case 21:break;default:Xt(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sf(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(ln(a,""),o.flags&=-33);var u=bf(e);Vl(e,u,a);break;case 3:case 4:var d=o.stateNode.containerInfo,g=bf(e);Ql(e,g,d);break;default:throw Error(i(161))}}catch(S){Ve(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hv(e,t,n){Y=e,Nf(e)}function Nf(e,t,n){for(var o=(e.mode&1)!==0;Y!==null;){var a=Y,u=a.child;if(a.tag===22&&o){var d=a.memoizedState!==null||Vi;if(!d){var g=a.alternate,S=g!==null&&g.memoizedState!==null||ct;g=Vi;var T=ct;if(Vi=d,(ct=S)&&!T)for(Y=a;Y!==null;)d=Y,S=d.child,d.tag===22&&d.memoizedState!==null?Rf(a):S!==null?(S.return=d,Y=S):Rf(a);for(;u!==null;)Y=u,Nf(u),u=u.sibling;Y=a,Vi=g,ct=T}Pf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,Y=u):Pf(e)}}function Pf(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ct||Ki(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!ct)if(n===null)o.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);o.componentDidUpdate(a,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Pd(t,u,o);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Pd(t,d,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;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 T=t.alternate;if(T!==null){var D=T.memoizedState;if(D!==null){var F=D.dehydrated;F!==null&&lo(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ct||t.flags&512&&Hl(t)}catch(z){Ve(t,t.return,z)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function jf(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Rf(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ki(4,t)}catch(S){Ve(t,n,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var a=t.return;try{o.componentDidMount()}catch(S){Ve(t,a,S)}}var u=t.return;try{Hl(t)}catch(S){Ve(t,u,S)}break;case 5:var d=t.return;try{Hl(t)}catch(S){Ve(t,d,S)}}}catch(S){Ve(t,t.return,S)}if(t===e){Y=null;break}var g=t.sibling;if(g!==null){g.return=t.return,Y=g;break}Y=t.return}}var Qv=Math.ceil,$i=I.ReactCurrentDispatcher,Kl=I.ReactCurrentOwner,Ft=I.ReactCurrentBatchConfig,ke=0,tt=null,qe=null,it=0,_t=0,Cs=Gn(0),Xe=0,_o=null,Tr=0,Gi=0,$l=0,Oo=null,kt=null,Gl=0,Es=1/0,Mn=null,qi=!1,ql=null,er=null,Yi=!1,tr=null,Xi=0,zo=0,Yl=null,Zi=-1,Ji=0;function mt(){return(ke&6)!==0?$e():Zi!==-1?Zi:Zi=$e()}function nr(e){return(e.mode&1)===0?1:(ke&2)!==0&&it!==0?it&-it:Pv.transition!==null?(Ji===0&&(Ji=Sc()),Ji):(e=Re,e!==0||(e=window.event,e=e===void 0?16:Mc(e.type)),e)}function Zt(e,t,n,o){if(50<zo)throw zo=0,Yl=null,Error(i(185));ro(e,n,o),((ke&2)===0||e!==tt)&&(e===tt&&((ke&2)===0&&(Gi|=n),Xe===4&&rr(e,it)),Ct(e,o),n===1&&ke===0&&(t.mode&1)===0&&(Es=$e()+500,Pi&&Yn()))}function Ct(e,t){var n=e.callbackNode;Pm(e,t);var o=li(e,e===tt?it:0);if(o===0)n!==null&&yc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&yc(n),t===1)e.tag===0?Nv(Tf.bind(null,e)):md(Tf.bind(null,e)),bv(function(){(ke&6)===0&&Yn()}),n=null;else{switch(bc(o)){case 1:n=Ra;break;case 4:n=xc;break;case 16:n=si;break;case 536870912:n=wc;break;default:n=si}n=Af(n,Mf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mf(e,t){if(Zi=-1,Ji=0,(ke&6)!==0)throw Error(i(327));var n=e.callbackNode;if(Ns()&&e.callbackNode!==n)return null;var o=li(e,e===tt?it:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=ea(e,o);else{t=o;var a=ke;ke|=2;var u=Of();(tt!==e||it!==t)&&(Mn=null,Es=$e()+500,Or(e,t));do try{$v();break}catch(g){_f(e,g)}while(!0);pl(),$i.current=u,ke=a,qe!==null?t=0:(tt=null,it=0,t=Xe)}if(t!==0){if(t===2&&(a=Ma(e),a!==0&&(o=a,t=Xl(e,a))),t===1)throw n=_o,Or(e,0),rr(e,o),Ct(e,$e()),n;if(t===6)rr(e,o);else{if(a=e.current.alternate,(o&30)===0&&!Vv(a)&&(t=ea(e,o),t===2&&(u=Ma(e),u!==0&&(o=u,t=Xl(e,u))),t===1))throw n=_o,Or(e,0),rr(e,o),Ct(e,$e()),n;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:zr(e,kt,Mn);break;case 3:if(rr(e,o),(o&130023424)===o&&(t=Gl+500-$e(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){mt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=rl(zr.bind(null,e,kt,Mn),t);break}zr(e,kt,Mn);break;case 4:if(rr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,a=-1;0<o;){var d=31-Kt(o);u=1<<d,d=t[d],d>a&&(a=d),o&=~u}if(o=a,o=$e()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Qv(o/1960))-o,10<o){e.timeoutHandle=rl(zr.bind(null,e,kt,Mn),o);break}zr(e,kt,Mn);break;case 5:zr(e,kt,Mn);break;default:throw Error(i(329))}}}return Ct(e,$e()),e.callbackNode===n?Mf.bind(null,e):null}function Xl(e,t){var n=Oo;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=ea(e,t),e!==2&&(t=kt,kt=n,t!==null&&Zl(t)),e}function Zl(e){kt===null?kt=e:kt.push.apply(kt,e)}function Vv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var a=n[o],u=a.getSnapshot;a=a.value;try{if(!$t(u(),a))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 rr(e,t){for(t&=~$l,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),o=1<<n;e[n]=-1,t&=~o}}function Tf(e){if((ke&6)!==0)throw Error(i(327));Ns();var t=li(e,0);if((t&1)===0)return Ct(e,$e()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var o=Ma(e);o!==0&&(t=o,n=Xl(e,o))}if(n===1)throw n=_o,Or(e,0),rr(e,t),Ct(e,$e()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zr(e,kt,Mn),Ct(e,$e()),null}function Jl(e,t){var n=ke;ke|=1;try{return e(t)}finally{ke=n,ke===0&&(Es=$e()+500,Pi&&Yn())}}function _r(e){tr!==null&&tr.tag===0&&(ke&6)===0&&Ns();var t=ke;ke|=1;var n=Ft.transition,o=Re;try{if(Ft.transition=null,Re=1,e)return e()}finally{Re=o,Ft.transition=n,ke=t,(ke&6)===0&&Yn()}}function eu(){_t=Cs.current,Le(Cs)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sv(n)),qe!==null)for(n=qe.return;n!==null;){var o=n;switch(ul(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Ei();break;case 3:Ss(),Le(wt),Le(at),bl();break;case 5:wl(o);break;case 4:Ss();break;case 13:Le(We);break;case 19:Le(We);break;case 10:ml(o.type._context);break;case 22:case 23:eu()}n=n.return}if(tt=e,qe=e=sr(e.current,null),it=_t=t,Xe=0,_o=null,$l=Gi=Tr=0,kt=Oo=null,jr!==null){for(t=0;t<jr.length;t++)if(n=jr[t],o=n.interleaved,o!==null){n.interleaved=null;var a=o.next,u=n.pending;if(u!==null){var d=u.next;u.next=a,o.next=d}n.pending=o}jr=null}return e}function _f(e,t){do{var n=qe;try{if(pl(),Li.current=Bi,Fi){for(var o=He.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Fi=!1}if(Mr=0,et=Ye=He=null,No=!1,Po=0,Kl.current=null,n===null||n.return===null){Xe=1,_o=t,qe=null;break}e:{var u=e,d=n.return,g=n,S=t;if(t=it,g.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var T=S,D=g,F=D.tag;if((D.mode&1)===0&&(F===0||F===11||F===15)){var z=D.alternate;z?(D.updateQueue=z.updateQueue,D.memoizedState=z.memoizedState,D.lanes=z.lanes):(D.updateQueue=null,D.memoizedState=null)}var q=nf(d);if(q!==null){q.flags&=-257,rf(q,d,g,u,t),q.mode&1&&tf(u,T,t),t=q,S=T;var Z=t.updateQueue;if(Z===null){var J=new Set;J.add(S),t.updateQueue=J}else Z.add(S);break e}else{if((t&1)===0){tf(u,T,t),tu();break e}S=Error(i(426))}}else if(Ue&&g.mode&1){var Ge=nf(d);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),rf(Ge,d,g,u,t),fl(bs(S,g));break e}}u=S=bs(S,g),Xe!==4&&(Xe=2),Oo===null?Oo=[u]:Oo.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var R=Jd(u,S,t);Nd(u,R);break e;case 1:g=S;var k=u.type,M=u.stateNode;if((u.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(er===null||!er.has(M)))){u.flags|=65536,t&=-t,u.lanes|=t;var B=ef(u,g,t);Nd(u,B);break e}}u=u.return}while(u!==null)}If(n)}catch(re){t=re,qe===n&&n!==null&&(qe=n=n.return);continue}break}while(!0)}function Of(){var e=$i.current;return $i.current=Bi,e===null?Bi:e}function tu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||(Tr&268435455)===0&&(Gi&268435455)===0||rr(tt,it)}function ea(e,t){var n=ke;ke|=2;var o=Of();(tt!==e||it!==t)&&(Mn=null,Or(e,t));do try{Kv();break}catch(a){_f(e,a)}while(!0);if(pl(),ke=n,$i.current=o,qe!==null)throw Error(i(261));return tt=null,it=0,Xe}function Kv(){for(;qe!==null;)zf(qe)}function $v(){for(;qe!==null&&!ym();)zf(qe)}function zf(e){var t=Ff(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?If(e):qe=t,Kl.current=null}function If(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Av(n,t,_t),n!==null){qe=n;return}}else{if(n=Uv(n,t),n!==null){n.flags&=32767,qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,qe=null;return}}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Xe===0&&(Xe=5)}function zr(e,t,n){var o=Re,a=Ft.transition;try{Ft.transition=null,Re=1,Gv(e,t,n,o)}finally{Ft.transition=a,Re=o}return null}function Gv(e,t,n,o){do Ns();while(tr!==null);if((ke&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(jm(e,u),e===tt&&(qe=tt=null,it=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Af(si,function(){return Ns(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Ft.transition,Ft.transition=null;var d=Re;Re=1;var g=ke;ke|=4,Kl.current=null,Wv(e,n),Ef(n,e),pv(tl),di=!!el,tl=el=null,e.current=n,Hv(n),xm(),ke=g,Re=d,Ft.transition=u}else e.current=n;if(Yi&&(Yi=!1,tr=e,Xi=a),u=e.pendingLanes,u===0&&(er=null),bm(n.stateNode),Ct(e,$e()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],o(a.value,{componentStack:a.stack,digest:a.digest});if(qi)throw qi=!1,e=ql,ql=null,e;return(Xi&1)!==0&&e.tag!==0&&Ns(),u=e.pendingLanes,(u&1)!==0?e===Yl?zo++:(zo=0,Yl=e):zo=0,Yn(),null}function Ns(){if(tr!==null){var e=bc(Xi),t=Ft.transition,n=Re;try{if(Ft.transition=null,Re=16>e?16:e,tr===null)var o=!1;else{if(e=tr,tr=null,Xi=0,(ke&6)!==0)throw Error(i(331));var a=ke;for(ke|=4,Y=e.current;Y!==null;){var u=Y,d=u.child;if((Y.flags&16)!==0){var g=u.deletions;if(g!==null){for(var S=0;S<g.length;S++){var T=g[S];for(Y=T;Y!==null;){var D=Y;switch(D.tag){case 0:case 11:case 15:To(8,D,u)}var F=D.child;if(F!==null)F.return=D,Y=F;else for(;Y!==null;){D=Y;var z=D.sibling,q=D.return;if(wf(D),D===T){Y=null;break}if(z!==null){z.return=q,Y=z;break}Y=q}}}var Z=u.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ge=J.sibling;J.sibling=null,J=Ge}while(J!==null)}}Y=u}}if((u.subtreeFlags&2064)!==0&&d!==null)d.return=u,Y=d;else e:for(;Y!==null;){if(u=Y,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:To(9,u,u.return)}var R=u.sibling;if(R!==null){R.return=u.return,Y=R;break e}Y=u.return}}var k=e.current;for(Y=k;Y!==null;){d=Y;var M=d.child;if((d.subtreeFlags&2064)!==0&&M!==null)M.return=d,Y=M;else e:for(d=k;Y!==null;){if(g=Y,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Ki(9,g)}}catch(re){Ve(g,g.return,re)}if(g===d){Y=null;break e}var B=g.sibling;if(B!==null){B.return=g.return,Y=B;break e}Y=g.return}}if(ke=a,Yn(),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(oi,e)}catch{}o=!0}return o}finally{Re=n,Ft.transition=t}}return!1}function Df(e,t,n){t=bs(n,t),t=Jd(e,t,1),e=Zn(e,t,1),t=mt(),e!==null&&(ro(e,1,t),Ct(e,t))}function Ve(e,t,n){if(e.tag===3)Df(e,e,n);else for(;t!==null;){if(t.tag===3){Df(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(er===null||!er.has(o))){e=bs(n,e),e=ef(t,e,1),t=Zn(t,e,1),e=mt(),t!==null&&(ro(t,1,e),Ct(t,e));break}}t=t.return}}function qv(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(it&n)===n&&(Xe===4||Xe===3&&(it&130023424)===it&&500>$e()-Gl?Or(e,0):$l|=n),Ct(e,t)}function Lf(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=mt();e=Pn(e,t),e!==null&&(ro(e,t,n),Ct(e,n))}function Yv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lf(e,n)}function Xv(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}o!==null&&o.delete(t),Lf(e,n)}var Ff;Ff=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)bt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return bt=!1,Fv(e,t,n);bt=(e.flags&131072)!==0}else bt=!1,Ue&&(t.flags&1048576)!==0&&vd(t,Ri,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Qi(e,t),e=t.pendingProps;var a=ps(t,at.current);ws(t,n),a=El(null,t,o,e,a,n);var u=Nl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,yl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,_l(t,o,e,n),t=Dl(null,t,o,!0,u,n)):(t.tag=0,Ue&&u&&ll(t),pt(null,t,a,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=Jv(o),e=qt(o,e),a){case 0:t=Il(null,t,o,e,n);break e;case 1:t=cf(null,t,o,e,n);break e;case 11:t=sf(null,t,o,e,n);break e;case 14:t=of(null,t,o,qt(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:qt(o,a),Il(e,t,o,a,n);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:qt(o,a),cf(e,t,o,a,n);case 3:e:{if(df(t),e===null)throw Error(i(387));o=t.pendingProps,u=t.memoizedState,a=u.element,Ed(e,t),Ii(t,o,null,n);var d=t.memoizedState;if(o=d.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=bs(Error(i(423)),t),t=ff(e,t,o,n,a);break e}else if(o!==a){a=bs(Error(i(424)),t),t=ff(e,t,o,n,a);break e}else for(Tt=$n(t.stateNode.containerInfo.firstChild),Mt=t,Ue=!0,Gt=null,n=kd(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gs(),o===a){t=Rn(e,t,n);break e}pt(e,t,o,n)}t=t.child}return t;case 5:return jd(t),e===null&&dl(t),o=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,d=a.children,nl(o,a)?d=null:u!==null&&nl(o,u)&&(t.flags|=32),uf(e,t),pt(e,t,d,n),t.child;case 6:return e===null&&dl(t),null;case 13:return hf(e,t,n);case 4:return xl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ys(t,null,o,n):pt(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:qt(o,a),sf(e,t,o,a,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,u=t.memoizedProps,d=a.value,Ie(_i,o._currentValue),o._currentValue=d,u!==null)if($t(u.value,d)){if(u.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){d=u.child;for(var S=g.firstContext;S!==null;){if(S.context===o){if(u.tag===1){S=jn(-1,n&-n),S.tag=2;var T=u.updateQueue;if(T!==null){T=T.shared;var D=T.pending;D===null?S.next=S:(S.next=D.next,D.next=S),T.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),vl(u.return,n,t),g.lanes|=n;break}S=S.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(i(341));d.lanes|=n,g=d.alternate,g!==null&&(g.lanes|=n),vl(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,ws(t,n),a=Dt(a),o=o(a),t.flags|=1,pt(e,t,o,n),t.child;case 14:return o=t.type,a=qt(o,t.pendingProps),a=qt(o.type,a),of(e,t,o,a,n);case 15:return af(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:qt(o,a),Qi(e,t),t.tag=1,St(o)?(e=!0,Ni(t)):e=!1,ws(t,n),Xd(t,o,a),_l(t,o,a,n),Dl(null,t,o,!0,e,n);case 19:return mf(e,t,n);case 22:return lf(e,t,n)}throw Error(i(156,t.tag))};function Af(e,t){return gc(e,t)}function Zv(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,o){return new Zv(e,t,n,o)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jv(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===Be)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=At(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 ta(e,t,n,o,a,u){var d=2;if(o=e,typeof e=="function")nu(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ne:return Ir(n.children,a,u,t);case ie:d=8,a|=8;break;case pe:return e=At(12,n,t,a|2),e.elementType=pe,e.lanes=u,e;case Ae:return e=At(13,n,t,a),e.elementType=Ae,e.lanes=u,e;case Te:return e=At(19,n,t,a),e.elementType=Te,e.lanes=u,e;case we:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:d=10;break e;case Ne:d=9;break e;case ae:d=11;break e;case Be:d=14;break e;case _e:d=16,o=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=At(d,n,t,a),t.elementType=e,t.type=o,t.lanes=u,t}function Ir(e,t,n,o){return e=At(7,e,o,t),e.lanes=n,e}function na(e,t,n,o){return e=At(22,e,o,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function su(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eg(e,t,n,o,a){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=Ta(0),this.expirationTimes=Ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,o,a,u,d,g,S){return e=new eg(e,t,n,g,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=At(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yl(u),e}function tg(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:se,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Uf(e){if(!e)return qn;e=e._reactInternals;e:{if(kr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(St(n))return hd(e,n,t)}return t}function Bf(e,t,n,o,a,u,d,g,S){return e=ou(n,o,!0,e,a,u,d,g,S),e.context=Uf(null),n=e.current,o=mt(),a=nr(n),u=jn(o,a),u.callback=t??null,Zn(n,u,a),e.current.lanes=a,ro(e,a,o),Ct(e,o),e}function ra(e,t,n,o){var a=t.current,u=mt(),d=nr(a);return n=Uf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Zn(a,t,d),e!==null&&(Zt(e,a,d,u),zi(e,a,d)),d}function sa(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 Wf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function iu(e,t){Wf(e,t),(e=e.alternate)&&Wf(e,t)}function ng(){return null}var Hf=typeof reportError=="function"?reportError:function(e){console.error(e)};function au(e){this._internalRoot=e}oa.prototype.render=au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},oa.prototype.unmount=au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){ra(null,e,null,null)}),t[kn]=null}};function oa(e){this._internalRoot=e}oa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&jc(e)}};function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qf(){}function rg(e,t,n,o,a){if(a){if(typeof o=="function"){var u=o;o=function(){var T=sa(d);u.call(T)}}var d=Bf(t,o,e,0,null,!1,!1,"",Qf);return e._reactRootContainer=d,e[kn]=d.current,yo(e.nodeType===8?e.parentNode:e),_r(),d}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var g=o;o=function(){var T=sa(S);g.call(T)}}var S=ou(e,0,!1,null,null,!1,!1,"",Qf);return e._reactRootContainer=S,e[kn]=S.current,yo(e.nodeType===8?e.parentNode:e),_r(function(){ra(t,S,n,o)}),S}function aa(e,t,n,o,a){var u=n._reactRootContainer;if(u){var d=u;if(typeof a=="function"){var g=a;a=function(){var S=sa(d);g.call(S)}}ra(t,d,e,a)}else d=rg(n,t,e,a,o);return sa(d)}kc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=no(t.pendingLanes);n!==0&&(_a(t,n|1),Ct(t,$e()),(ke&6)===0&&(Es=$e()+500,Yn()))}break;case 13:_r(function(){var o=Pn(e,1);if(o!==null){var a=mt();Zt(o,e,1,a)}}),iu(e,1)}},Oa=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=mt();Zt(t,e,134217728,n)}iu(e,134217728)}},Cc=function(e){if(e.tag===13){var t=nr(e),n=Pn(e,t);if(n!==null){var o=mt();Zt(n,e,t,o)}iu(e,t)}},Ec=function(){return Re},Nc=function(e,t){var n=Re;try{return Re=e,t()}finally{Re=n}},ss=function(e,t,n){switch(t){case"input":if(Xs(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 o=n[t];if(o!==e&&o.form===e.form){var a=Ci(o);if(!a)throw Error(i(90));Zr(o),Xs(o,a)}}}break;case"textarea":Yo(e,n);break;case"select":t=n.value,t!=null&&Ot(e,!!n.multiple,t,!1)}},Ee=Jl,Oe=_r;var sg={usingClientEntryPoint:!1,Events:[So,fs,Ci,ti,he,Jl]},Io={findFiberByHostInstance:Cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},og={bundleType:Io.bundleType,version:Io.version,rendererPackageName:Io.rendererPackageName,rendererConfig:Io.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mc(e),e===null?null:e.stateNode},findFiberByHostInstance:Io.findFiberByHostInstance||ng,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{oi=la.inject(og),fn=la}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sg,Et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lu(t))throw Error(i(200));return tg(e,t,null,n)},Et.createRoot=function(e,t){if(!lu(e))throw Error(i(299));var n=!1,o="",a=Hf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,o,a),e[kn]=t.current,yo(e.nodeType===8?e.parentNode:e),new au(t)},Et.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=mc(t),e=e===null?null:e.stateNode,e},Et.flushSync=function(e){return _r(e)},Et.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Et.hydrateRoot=function(e,t,n){if(!lu(e))throw Error(i(405));var o=n!=null&&n.hydratedSources||null,a=!1,u="",d=Hf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Bf(t,null,e,1,n??null,a,!1,u,d),e[kn]=t.current,yo(e),o)for(e=0;e<o.length;e++)n=o[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new oa(t)},Et.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Et.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(_r(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Et.unstable_batchedUpdates=Jl,Et.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,o)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Jf;function Jh(){if(Jf)return fu.exports;Jf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),fu.exports=hg(),fu.exports}var eh;function pg(){if(eh)return ca;eh=1;var r=Jh();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var mg=pg(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vg={setTimeout:(r,s)=>setTimeout(r,s),clearTimeout:r=>clearTimeout(r),setInterval:(r,s)=>setInterval(r,s),clearInterval:r=>clearInterval(r)},cr,$u,Uh,gg=(Uh=class{constructor(){oe(this,cr,vg);oe(this,$u,!1)}setTimeoutProvider(r){G(this,cr,r)}setTimeout(r,s){return y(this,cr).setTimeout(r,s)}clearTimeout(r){y(this,cr).clearTimeout(r)}setInterval(r,s){return y(this,cr).setInterval(r,s)}clearInterval(r){y(this,cr).clearInterval(r)}},cr=new WeakMap,$u=new WeakMap,Uh),Dr=new gg;function yg(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function xg(r,s){return typeof r=="function"?r(s):r}function Eu(r){return typeof r=="number"&&r>=0&&r!==1/0}function ep(r,s){return Math.max(r+(s||0)-Date.now(),0)}function xr(r,s){return typeof r=="function"?r(s):r}function Bt(r,s){return typeof r=="function"?r(s):r}function th(r,s){const{type:i="all",exact:l,fetchStatus:c,predicate:f,queryKey:m,stale:p}=r;if(m){if(l){if(s.queryHash!==qu(m,s.options))return!1}else if(!Uo(s.queryKey,m))return!1}if(i!=="all"){const w=s.isActive();if(i==="active"&&!w||i==="inactive"&&w)return!1}return!(typeof p=="boolean"&&s.isStale()!==p||c&&c!==s.state.fetchStatus||f&&!f(s))}function nh(r,s){const{exact:i,status:l,predicate:c,mutationKey:f}=r;if(f){if(!s.options.mutationKey)return!1;if(i){if($r(s.options.mutationKey)!==$r(f))return!1}else if(!Uo(s.options.mutationKey,f))return!1}return!(l&&s.state.status!==l||c&&!c(s))}function qu(r,s){return((s==null?void 0:s.queryKeyHashFn)||$r)(r)}function $r(r){return JSON.stringify(r,(s,i)=>Nu(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Uo(r,s){return r===s?!0:typeof r!=typeof s?!1:r&&s&&typeof r=="object"&&typeof s=="object"?Object.keys(s).every(i=>Uo(r[i],s[i])):!1}var wg=Object.prototype.hasOwnProperty;function tp(r,s,i=0){if(r===s)return r;if(i>500)return s;const l=rh(r)&&rh(s);if(!l&&!(Nu(r)&&Nu(s)))return s;const f=(l?r:Object.keys(r)).length,m=l?s:Object.keys(s),p=m.length,w=l?new Array(p):{};let x=0;for(let N=0;N<p;N++){const P=l?N:m[N],j=r[P],v=s[P];if(j===v){w[P]=j,(l?N<f:wg.call(r,P))&&x++;continue}if(j===null||v===null||typeof j!="object"||typeof v!="object"){w[P]=v;continue}const L=tp(j,v,i+1);w[P]=L,L===j&&x++}return f===p&&x===f?r:w}function ba(r,s){if(!s||Object.keys(r).length!==Object.keys(s).length)return!1;for(const i in r)if(r[i]!==s[i])return!1;return!0}function rh(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Nu(r){if(!sh(r))return!1;const s=r.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!sh(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function sh(r){return Object.prototype.toString.call(r)==="[object Object]"}function Sg(r){return new Promise(s=>{Dr.setTimeout(s,r)})}function Pu(r,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,s):i.structuralSharing!==!1?tp(r,s):s}function bg(r,s,i=0){const l=[...r,s];return i&&l.length>i?l.slice(1):l}function kg(r,s,i=0){const l=[s,...r];return i&&l.length>i?l.slice(0,-1):l}var Yu=Symbol();function np(r,s){return!r.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!r.queryFn||r.queryFn===Yu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Xu(r,s){return typeof r=="function"?r(...s):!!r}function Cg(r,s,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=s()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Lr,dr,Os,Bh,Eg=(Bh=class extends Vs{constructor(){super();oe(this,Lr);oe(this,dr);oe(this,Os);G(this,Os,s=>{if(!Kr&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){y(this,dr)||this.setEventListener(y(this,Os))}onUnsubscribe(){var s;this.hasListeners()||((s=y(this,dr))==null||s.call(this),G(this,dr,void 0))}setEventListener(s){var i;G(this,Os,s),(i=y(this,dr))==null||i.call(this),G(this,dr,s(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(s){y(this,Lr)!==s&&(G(this,Lr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof y(this,Lr)=="boolean"?y(this,Lr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Lr=new WeakMap,dr=new WeakMap,Os=new WeakMap,Bh),Zu=new Eg;function ju(){let r,s;const i=new Promise((c,f)=>{r=c,s=f});i.status="pending",i.catch(()=>{});function l(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},i.reject=c=>{l({status:"rejected",reason:c}),s(c)},i}var Ng=yg;function Pg(){let r=[],s=0,i=p=>{p()},l=p=>{p()},c=Ng;const f=p=>{s?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(w=>{i(w)})})})};return{batch:p=>{let w;s++;try{w=p()}finally{s--,s||m()}return w},batchCalls:p=>(...w)=>{f(()=>{p(...w)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Ze=Pg(),zs,fr,Is,Wh,jg=(Wh=class extends Vs{constructor(){super();oe(this,zs,!0);oe(this,fr);oe(this,Is);G(this,Is,s=>{if(!Kr&&window.addEventListener){const i=()=>s(!0),l=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){y(this,fr)||this.setEventListener(y(this,Is))}onUnsubscribe(){var s;this.hasListeners()||((s=y(this,fr))==null||s.call(this),G(this,fr,void 0))}setEventListener(s){var i;G(this,Is,s),(i=y(this,fr))==null||i.call(this),G(this,fr,s(this.setOnline.bind(this)))}setOnline(s){y(this,zs)!==s&&(G(this,zs,s),this.listeners.forEach(l=>{l(s)}))}isOnline(){return y(this,zs)}},zs=new WeakMap,fr=new WeakMap,Is=new WeakMap,Wh),ka=new jg;function Rg(r){return Math.min(1e3*2**r,3e4)}function rp(r){return(r??"online")==="online"?ka.isOnline():!0}var Ru=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function sp(r){let s=!1,i=0,l;const c=ju(),f=()=>c.status!=="pending",m=E=>{var _;if(!f()){const A=new Ru(E);j(A),(_=r.onCancel)==null||_.call(r,A)}},p=()=>{s=!0},w=()=>{s=!1},x=()=>Zu.isFocused()&&(r.networkMode==="always"||ka.isOnline())&&r.canRun(),N=()=>rp(r.networkMode)&&r.canRun(),P=E=>{f()||(l==null||l(),c.resolve(E))},j=E=>{f()||(l==null||l(),c.reject(E))},v=()=>new Promise(E=>{var _;l=A=>{(f()||x())&&E(A)},(_=r.onPause)==null||_.call(r)}).then(()=>{var E;l=void 0,f()||(E=r.onContinue)==null||E.call(r)}),L=()=>{if(f())return;let E;const _=i===0?r.initialPromise:void 0;try{E=_??r.fn()}catch(A){E=Promise.reject(A)}Promise.resolve(E).then(P).catch(A=>{var se;if(f())return;const $=r.retry??(Kr?0:3),V=r.retryDelay??Rg,I=typeof V=="function"?V(i,A):V,ee=$===!0||typeof $=="number"&&i<$||typeof $=="function"&&$(i,A);if(s||!ee){j(A);return}i++,(se=r.onFail)==null||se.call(r,i,A),Sg(I).then(()=>x()?void 0:v()).then(()=>{s?j(A):L()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:w,canStart:N,start:()=>(N()?L():v().then(L),c)}}var Fr,Hh,op=(Hh=class{constructor(){oe(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Eu(this.gcTime)&&G(this,Fr,Dr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){y(this,Fr)&&(Dr.clearTimeout(y(this,Fr)),G(this,Fr,void 0))}},Fr=new WeakMap,Hh),Ar,Ds,Ut,Ur,rt,Ho,Br,en,_n,Qh,Mg=(Qh=class extends op{constructor(s){super();oe(this,en);oe(this,Ar);oe(this,Ds);oe(this,Ut);oe(this,Ur);oe(this,rt);oe(this,Ho);oe(this,Br);G(this,Br,!1),G(this,Ho,s.defaultOptions),this.setOptions(s.options),this.observers=[],G(this,Ur,s.client),G(this,Ut,y(this,Ur).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,G(this,Ar,ih(this.options)),this.state=s.state??y(this,Ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=y(this,rt))==null?void 0:s.promise}setOptions(s){if(this.options={...y(this,Ho),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ih(this.options);i.data!==void 0&&(this.setState(oh(i.data,i.dataUpdatedAt)),G(this,Ar,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ut).remove(this)}setData(s,i){const l=Pu(this.state.data,s,this.options);return ve(this,en,_n).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(s,i){ve(this,en,_n).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var l,c;const i=(l=y(this,rt))==null?void 0:l.promise;return(c=y(this,rt))==null||c.cancel(s),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Ar))}isActive(){return this.observers.some(s=>Bt(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>xr(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!ep(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(l=>l.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=y(this,rt))==null||i.continue()}onOnline(){var i;const s=this.observers.find(l=>l.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=y(this,rt))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),y(this,Ut).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(y(this,rt)&&(y(this,Br)?y(this,rt).cancel({revert:!0}):y(this,rt).cancelRetry()),this.scheduleGc()),y(this,Ut).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,en,_n).call(this,{type:"invalidate"})}async fetch(s,i){var w,x,N,P,j,v,L,E,_,A,$,V;if(this.state.fetchStatus!=="idle"&&((w=y(this,rt))==null?void 0:w.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(y(this,rt))return y(this,rt).continueRetry(),y(this,rt).promise}if(s&&this.setOptions(s),!this.options.queryFn){const I=this.observers.find(ee=>ee.options.queryFn);I&&this.setOptions(I.options)}const l=new AbortController,c=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(G(this,Br,!0),l.signal)})},f=()=>{const I=np(this.options,i),se=(()=>{const ne={client:y(this,Ur),queryKey:this.queryKey,meta:this.meta};return c(ne),ne})();return G(this,Br,!1),this.options.persister?this.options.persister(I,se,this):I(se)},p=(()=>{const I={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:y(this,Ur),state:this.state,fetchFn:f};return c(I),I})();(x=this.options.behavior)==null||x.onFetch(p,this),G(this,Ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=p.fetchOptions)==null?void 0:N.meta))&&ve(this,en,_n).call(this,{type:"fetch",meta:(P=p.fetchOptions)==null?void 0:P.meta}),G(this,rt,sp({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:I=>{I instanceof Ru&&I.revert&&this.setState({...y(this,Ds),fetchStatus:"idle"}),l.abort()},onFail:(I,ee)=>{ve(this,en,_n).call(this,{type:"failed",failureCount:I,error:ee})},onPause:()=>{ve(this,en,_n).call(this,{type:"pause"})},onContinue:()=>{ve(this,en,_n).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const I=await y(this,rt).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(v=(j=y(this,Ut).config).onSuccess)==null||v.call(j,I,this),(E=(L=y(this,Ut).config).onSettled)==null||E.call(L,I,this.state.error,this),I}catch(I){if(I instanceof Ru){if(I.silent)return y(this,rt).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw ve(this,en,_n).call(this,{type:"error",error:I}),(A=(_=y(this,Ut).config).onError)==null||A.call(_,I,this),(V=($=y(this,Ut).config).onSettled)==null||V.call($,this.state.data,I,this),I}finally{this.scheduleGc()}}},Ar=new WeakMap,Ds=new WeakMap,Ut=new WeakMap,Ur=new WeakMap,rt=new WeakMap,Ho=new WeakMap,Br=new WeakMap,en=new WeakSet,_n=function(s){const i=l=>{switch(s.type){case"failed":return{...l,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...ip(l.data,this.options),fetchMeta:s.meta??null};case"success":const c={...l,...oh(s.data,s.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return G(this,Ds,s.manual?c:void 0),c;case"error":const f=s.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...s.state}}};this.state=i(this.state),Ze.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),y(this,Ut).notify({query:this,type:"updated",action:s})})},Qh);function ip(r,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rp(s.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function oh(r,s){return{data:r,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ih(r){const s=typeof r.initialData=="function"?r.initialData():r.initialData,i=s!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Nt,Se,Qo,vt,Wr,Ls,On,hr,Vo,Fs,As,Hr,Qr,pr,Us,je,Ao,Mu,Tu,_u,Ou,zu,Iu,Du,ap,Vh,Tg=(Vh=class extends Vs{constructor(s,i){super();oe(this,je);oe(this,Nt);oe(this,Se);oe(this,Qo);oe(this,vt);oe(this,Wr);oe(this,Ls);oe(this,On);oe(this,hr);oe(this,Vo);oe(this,Fs);oe(this,As);oe(this,Hr);oe(this,Qr);oe(this,pr);oe(this,Us,new Set);this.options=i,G(this,Nt,s),G(this,hr,null),G(this,On,ju()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,Se).addObserver(this),ah(y(this,Se),this.options)?ve(this,je,Ao).call(this):this.updateResult(),ve(this,je,Ou).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lu(y(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lu(y(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,je,zu).call(this),ve(this,je,Iu).call(this),y(this,Se).removeObserver(this)}setOptions(s){const i=this.options,l=y(this,Se);if(this.options=y(this,Nt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,y(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,je,Du).call(this),y(this,Se).setOptions(this.options),i._defaulted&&!ba(this.options,i)&&y(this,Nt).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,Se),observer:this});const c=this.hasListeners();c&&lh(y(this,Se),l,this.options,i)&&ve(this,je,Ao).call(this),this.updateResult(),c&&(y(this,Se)!==l||Bt(this.options.enabled,y(this,Se))!==Bt(i.enabled,y(this,Se))||xr(this.options.staleTime,y(this,Se))!==xr(i.staleTime,y(this,Se)))&&ve(this,je,Mu).call(this);const f=ve(this,je,Tu).call(this);c&&(y(this,Se)!==l||Bt(this.options.enabled,y(this,Se))!==Bt(i.enabled,y(this,Se))||f!==y(this,pr))&&ve(this,je,_u).call(this,f)}getOptimisticResult(s){const i=y(this,Nt).getQueryCache().build(y(this,Nt),s),l=this.createResult(i,s);return Og(this,l)&&(G(this,vt,l),G(this,Ls,this.options),G(this,Wr,y(this,Se).state)),l}getCurrentResult(){return y(this,vt)}trackResult(s,i){return new Proxy(s,{get:(l,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,On).status==="pending"&&y(this,On).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(s){y(this,Us).add(s)}getCurrentQuery(){return y(this,Se)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=y(this,Nt).defaultQueryOptions(s),l=y(this,Nt).getQueryCache().build(y(this,Nt),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(s){return ve(this,je,Ao).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,vt)))}createResult(s,i){var pe;const l=y(this,Se),c=this.options,f=y(this,vt),m=y(this,Wr),p=y(this,Ls),x=s!==l?s.state:y(this,Qo),{state:N}=s;let P={...N},j=!1,v;if(i._optimisticResults){const ge=this.hasListeners(),Ne=!ge&&ah(s,i),ae=ge&&lh(s,l,i,c);(Ne||ae)&&(P={...P,...ip(N.data,s.options)}),i._optimisticResults==="isRestoring"&&(P.fetchStatus="idle")}let{error:L,errorUpdatedAt:E,status:_}=P;v=P.data;let A=!1;if(i.placeholderData!==void 0&&v===void 0&&_==="pending"){let ge;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ge=f.data,A=!0):ge=typeof i.placeholderData=="function"?i.placeholderData((pe=y(this,As))==null?void 0:pe.state.data,y(this,As)):i.placeholderData,ge!==void 0&&(_="success",v=Pu(f==null?void 0:f.data,ge,i),j=!0)}if(i.select&&v!==void 0&&!A)if(f&&v===(m==null?void 0:m.data)&&i.select===y(this,Vo))v=y(this,Fs);else try{G(this,Vo,i.select),v=i.select(v),v=Pu(f==null?void 0:f.data,v,i),G(this,Fs,v),G(this,hr,null)}catch(ge){G(this,hr,ge)}y(this,hr)&&(L=y(this,hr),v=y(this,Fs),E=Date.now(),_="error");const $=P.fetchStatus==="fetching",V=_==="pending",I=_==="error",ee=V&&$,se=v!==void 0,ie={status:_,fetchStatus:P.fetchStatus,isPending:V,isSuccess:_==="success",isError:I,isInitialLoading:ee,isLoading:ee,data:v,dataUpdatedAt:P.dataUpdatedAt,error:L,errorUpdatedAt:E,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>x.dataUpdateCount||P.errorUpdateCount>x.errorUpdateCount,isFetching:$,isRefetching:$&&!V,isLoadingError:I&&!se,isPaused:P.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:I&&se,isStale:Ju(s,i),refetch:this.refetch,promise:y(this,On),isEnabled:Bt(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const ge=ie.data!==void 0,Ne=ie.status==="error"&&!ge,ae=Be=>{Ne?Be.reject(ie.error):ge&&Be.resolve(ie.data)},Ae=()=>{const Be=G(this,On,ie.promise=ju());ae(Be)},Te=y(this,On);switch(Te.status){case"pending":s.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Ne||ie.data!==Te.value)&&Ae();break;case"rejected":(!Ne||ie.error!==Te.reason)&&Ae();break}}return ie}updateResult(){const s=y(this,vt),i=this.createResult(y(this,Se),this.options);if(G(this,Wr,y(this,Se).state),G(this,Ls,this.options),y(this,Wr).data!==void 0&&G(this,As,y(this,Se)),ba(i,s))return;G(this,vt,i);const l=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!y(this,Us).size)return!0;const m=new Set(f??y(this,Us));return this.options.throwOnError&&m.add("error"),Object.keys(y(this,vt)).some(p=>{const w=p;return y(this,vt)[w]!==s[w]&&m.has(w)})};ve(this,je,ap).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,je,Ou).call(this)}},Nt=new WeakMap,Se=new WeakMap,Qo=new WeakMap,vt=new WeakMap,Wr=new WeakMap,Ls=new WeakMap,On=new WeakMap,hr=new WeakMap,Vo=new WeakMap,Fs=new WeakMap,As=new WeakMap,Hr=new WeakMap,Qr=new WeakMap,pr=new WeakMap,Us=new WeakMap,je=new WeakSet,Ao=function(s){ve(this,je,Du).call(this);let i=y(this,Se).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(gt)),i},Mu=function(){ve(this,je,zu).call(this);const s=xr(this.options.staleTime,y(this,Se));if(Kr||y(this,vt).isStale||!Eu(s))return;const l=ep(y(this,vt).dataUpdatedAt,s)+1;G(this,Hr,Dr.setTimeout(()=>{y(this,vt).isStale||this.updateResult()},l))},Tu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,Se)):this.options.refetchInterval)??!1},_u=function(s){ve(this,je,Iu).call(this),G(this,pr,s),!(Kr||Bt(this.options.enabled,y(this,Se))===!1||!Eu(y(this,pr))||y(this,pr)===0)&&G(this,Qr,Dr.setInterval(()=>{(this.options.refetchIntervalInBackground||Zu.isFocused())&&ve(this,je,Ao).call(this)},y(this,pr)))},Ou=function(){ve(this,je,Mu).call(this),ve(this,je,_u).call(this,ve(this,je,Tu).call(this))},zu=function(){y(this,Hr)&&(Dr.clearTimeout(y(this,Hr)),G(this,Hr,void 0))},Iu=function(){y(this,Qr)&&(Dr.clearInterval(y(this,Qr)),G(this,Qr,void 0))},Du=function(){const s=y(this,Nt).getQueryCache().build(y(this,Nt),this.options);if(s===y(this,Se))return;const i=y(this,Se);G(this,Se,s),G(this,Qo,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},ap=function(s){Ze.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(y(this,vt))}),y(this,Nt).getQueryCache().notify({query:y(this,Se),type:"observerResultsUpdated"})})},Vh);function _g(r,s){return Bt(s.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&s.retryOnMount===!1)}function ah(r,s){return _g(r,s)||r.state.data!==void 0&&Lu(r,s,s.refetchOnMount)}function Lu(r,s,i){if(Bt(s.enabled,r)!==!1&&xr(s.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&Ju(r,s)}return!1}function lh(r,s,i,l){return(r!==s||Bt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&Ju(r,i)}function Ju(r,s){return Bt(s.enabled,r)!==!1&&r.isStaleByTime(xr(s.staleTime,r))}function Og(r,s){return!ba(r.getCurrentResult(),s)}function uh(r){return{onFetch:(s,i)=>{var N,P,j,v,L;const l=s.options,c=(j=(P=(N=s.fetchOptions)==null?void 0:N.meta)==null?void 0:P.fetchMore)==null?void 0:j.direction,f=((v=s.state.data)==null?void 0:v.pages)||[],m=((L=s.state.data)==null?void 0:L.pageParams)||[];let p={pages:[],pageParams:[]},w=0;const x=async()=>{let E=!1;const _=V=>{Cg(V,()=>s.signal,()=>E=!0)},A=np(s.options,s.fetchOptions),$=async(V,I,ee)=>{if(E)return Promise.reject();if(I==null&&V.pages.length)return Promise.resolve(V);const ne=(()=>{const Ne={client:s.client,queryKey:s.queryKey,pageParam:I,direction:ee?"backward":"forward",meta:s.options.meta};return _(Ne),Ne})(),ie=await A(ne),{maxPages:pe}=s.options,ge=ee?kg:bg;return{pages:ge(V.pages,ie,pe),pageParams:ge(V.pageParams,I,pe)}};if(c&&f.length){const V=c==="backward",I=V?zg:ch,ee={pages:f,pageParams:m},se=I(l,ee);p=await $(ee,se,V)}else{const V=r??f.length;do{const I=w===0?m[0]??l.initialPageParam:ch(l,p);if(w>0&&I==null)break;p=await $(p,I),w++}while(w<V)}return p};s.options.persister?s.fetchFn=()=>{var E,_;return(_=(E=s.options).persister)==null?void 0:_.call(E,x,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=x}}}function ch(r,{pages:s,pageParams:i}){const l=s.length-1;return s.length>0?r.getNextPageParam(s[l],s,i[l],i):void 0}function zg(r,{pages:s,pageParams:i}){var l;return s.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,s[0],s,i[0],i):void 0}var Ko,gn,dt,Vr,yn,lr,Kh,Ig=(Kh=class extends op{constructor(s){super();oe(this,yn);oe(this,Ko);oe(this,gn);oe(this,dt);oe(this,Vr);G(this,Ko,s.client),this.mutationId=s.mutationId,G(this,dt,s.mutationCache),G(this,gn,[]),this.state=s.state||lp(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){y(this,gn).includes(s)||(y(this,gn).push(s),this.clearGcTimeout(),y(this,dt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){G(this,gn,y(this,gn).filter(i=>i!==s)),this.scheduleGc(),y(this,dt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){y(this,gn).length||(this.state.status==="pending"?this.scheduleGc():y(this,dt).remove(this))}continue(){var s;return((s=y(this,Vr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,p,w,x,N,P,j,v,L,E,_,A,$,V,I,ee,se,ne;const i=()=>{ve(this,yn,lr).call(this,{type:"continue"})},l={client:y(this,Ko),meta:this.options.meta,mutationKey:this.options.mutationKey};G(this,Vr,sp({fn:()=>this.options.mutationFn?this.options.mutationFn(s,l):Promise.reject(new Error("No mutationFn found")),onFail:(ie,pe)=>{ve(this,yn,lr).call(this,{type:"failed",failureCount:ie,error:pe})},onPause:()=>{ve(this,yn,lr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,dt).canRun(this)}));const c=this.state.status==="pending",f=!y(this,Vr).canStart();try{if(c)i();else{ve(this,yn,lr).call(this,{type:"pending",variables:s,isPaused:f}),y(this,dt).config.onMutate&&await y(this,dt).config.onMutate(s,this,l);const pe=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,s,l));pe!==this.state.context&&ve(this,yn,lr).call(this,{type:"pending",context:pe,variables:s,isPaused:f})}const ie=await y(this,Vr).start();return await((x=(w=y(this,dt).config).onSuccess)==null?void 0:x.call(w,ie,s,this.state.context,this,l)),await((P=(N=this.options).onSuccess)==null?void 0:P.call(N,ie,s,this.state.context,l)),await((v=(j=y(this,dt).config).onSettled)==null?void 0:v.call(j,ie,null,this.state.variables,this.state.context,this,l)),await((E=(L=this.options).onSettled)==null?void 0:E.call(L,ie,null,s,this.state.context,l)),ve(this,yn,lr).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((A=(_=y(this,dt).config).onError)==null?void 0:A.call(_,ie,s,this.state.context,this,l))}catch(pe){Promise.reject(pe)}try{await((V=($=this.options).onError)==null?void 0:V.call($,ie,s,this.state.context,l))}catch(pe){Promise.reject(pe)}try{await((ee=(I=y(this,dt).config).onSettled)==null?void 0:ee.call(I,void 0,ie,this.state.variables,this.state.context,this,l))}catch(pe){Promise.reject(pe)}try{await((ne=(se=this.options).onSettled)==null?void 0:ne.call(se,void 0,ie,s,this.state.context,l))}catch(pe){Promise.reject(pe)}throw ve(this,yn,lr).call(this,{type:"error",error:ie}),ie}finally{y(this,dt).runNext(this)}}},Ko=new WeakMap,gn=new WeakMap,dt=new WeakMap,Vr=new WeakMap,yn=new WeakSet,lr=function(s){const i=l=>{switch(s.type){case"failed":return{...l,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...l,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:s.error,failureCount:l.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ze.batch(()=>{y(this,gn).forEach(l=>{l.onMutationUpdate(s)}),y(this,dt).notify({mutation:this,type:"updated",action:s})})},Kh);function lp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,tn,$o,$h,Dg=($h=class extends Vs{constructor(s={}){super();oe(this,zn);oe(this,tn);oe(this,$o);this.config=s,G(this,zn,new Set),G(this,tn,new Map),G(this,$o,0)}build(s,i,l){const c=new Ig({client:s,mutationCache:this,mutationId:++ua(this,$o)._,options:s.defaultMutationOptions(i),state:l});return this.add(c),c}add(s){y(this,zn).add(s);const i=da(s);if(typeof i=="string"){const l=y(this,tn).get(i);l?l.push(s):y(this,tn).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(y(this,zn).delete(s)){const i=da(s);if(typeof i=="string"){const l=y(this,tn).get(i);if(l)if(l.length>1){const c=l.indexOf(s);c!==-1&&l.splice(c,1)}else l[0]===s&&y(this,tn).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=da(s);if(typeof i=="string"){const l=y(this,tn).get(i),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===s}else return!0}runNext(s){var l;const i=da(s);if(typeof i=="string"){const c=(l=y(this,tn).get(i))==null?void 0:l.find(f=>f!==s&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{y(this,zn).forEach(s=>{this.notify({type:"removed",mutation:s})}),y(this,zn).clear(),y(this,tn).clear()})}getAll(){return Array.from(y(this,zn))}find(s){const i={exact:!0,...s};return this.getAll().find(l=>nh(i,l))}findAll(s={}){return this.getAll().filter(i=>nh(s,i))}notify(s){Ze.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return Ze.batch(()=>Promise.all(s.map(i=>i.continue().catch(gt))))}},zn=new WeakMap,tn=new WeakMap,$o=new WeakMap,$h);function da(r){var s;return(s=r.options.scope)==null?void 0:s.id}var In,mr,Pt,Dn,Ln,ya,Fu,Gh,Lg=(Gh=class extends Vs{constructor(i,l){super();oe(this,Ln);oe(this,In);oe(this,mr);oe(this,Pt);oe(this,Dn);G(this,In,i),this.setOptions(l),this.bindMethods(),ve(this,Ln,ya).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const l=this.options;this.options=y(this,In).defaultMutationOptions(i),ba(this.options,l)||y(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Pt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&$r(l.mutationKey)!==$r(this.options.mutationKey)?this.reset():((c=y(this,Pt))==null?void 0:c.state.status)==="pending"&&y(this,Pt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=y(this,Pt))==null||i.removeObserver(this)}onMutationUpdate(i){ve(this,Ln,ya).call(this),ve(this,Ln,Fu).call(this,i)}getCurrentResult(){return y(this,mr)}reset(){var i;(i=y(this,Pt))==null||i.removeObserver(this),G(this,Pt,void 0),ve(this,Ln,ya).call(this),ve(this,Ln,Fu).call(this)}mutate(i,l){var c;return G(this,Dn,l),(c=y(this,Pt))==null||c.removeObserver(this),G(this,Pt,y(this,In).getMutationCache().build(y(this,In),this.options)),y(this,Pt).addObserver(this),y(this,Pt).execute(i)}},In=new WeakMap,mr=new WeakMap,Pt=new WeakMap,Dn=new WeakMap,Ln=new WeakSet,ya=function(){var l;const i=((l=y(this,Pt))==null?void 0:l.state)??lp();G(this,mr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Fu=function(i){Ze.batch(()=>{var l,c,f,m,p,w,x,N;if(y(this,Dn)&&this.hasListeners()){const P=y(this,mr).variables,j=y(this,mr).context,v={client:y(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=y(this,Dn)).onSuccess)==null||c.call(l,i.data,P,j,v)}catch(L){Promise.reject(L)}try{(m=(f=y(this,Dn)).onSettled)==null||m.call(f,i.data,null,P,j,v)}catch(L){Promise.reject(L)}}else if((i==null?void 0:i.type)==="error"){try{(w=(p=y(this,Dn)).onError)==null||w.call(p,i.error,P,j,v)}catch(L){Promise.reject(L)}try{(N=(x=y(this,Dn)).onSettled)==null||N.call(x,void 0,i.error,P,j,v)}catch(L){Promise.reject(L)}}}this.listeners.forEach(P=>{P(y(this,mr))})})},Gh),xn,qh,Fg=(qh=class extends Vs{constructor(s={}){super();oe(this,xn);this.config=s,G(this,xn,new Map)}build(s,i,l){const c=i.queryKey,f=i.queryHash??qu(c,i);let m=this.get(f);return m||(m=new Mg({client:s,queryKey:c,queryHash:f,options:s.defaultQueryOptions(i),state:l,defaultOptions:s.getQueryDefaults(c)}),this.add(m)),m}add(s){y(this,xn).has(s.queryHash)||(y(this,xn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=y(this,xn).get(s.queryHash);i&&(s.destroy(),i===s&&y(this,xn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Ze.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return y(this,xn).get(s)}getAll(){return[...y(this,xn).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(l=>th(i,l))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(l=>th(s,l)):i}notify(s){Ze.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},xn=new WeakMap,qh),Ke,vr,gr,Bs,Ws,yr,Hs,Qs,Yh,Ag=(Yh=class{constructor(r={}){oe(this,Ke);oe(this,vr);oe(this,gr);oe(this,Bs);oe(this,Ws);oe(this,yr);oe(this,Hs);oe(this,Qs);G(this,Ke,r.queryCache||new Fg),G(this,vr,r.mutationCache||new Dg),G(this,gr,r.defaultOptions||{}),G(this,Bs,new Map),G(this,Ws,new Map),G(this,yr,0)}mount(){ua(this,yr)._++,y(this,yr)===1&&(G(this,Hs,Zu.subscribe(async r=>{r&&(await this.resumePausedMutations(),y(this,Ke).onFocus())})),G(this,Qs,ka.subscribe(async r=>{r&&(await this.resumePausedMutations(),y(this,Ke).onOnline())})))}unmount(){var r,s;ua(this,yr)._--,y(this,yr)===0&&((r=y(this,Hs))==null||r.call(this),G(this,Hs,void 0),(s=y(this,Qs))==null||s.call(this),G(this,Qs,void 0))}isFetching(r){return y(this,Ke).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return y(this,vr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const s=this.defaultQueryOptions({queryKey:r});return(i=y(this,Ke).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const s=this.defaultQueryOptions(r),i=y(this,Ke).build(this,s),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(xr(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(l))}getQueriesData(r){return y(this,Ke).findAll(r).map(({queryKey:s,state:i})=>{const l=i.data;return[s,l]})}setQueryData(r,s,i){const l=this.defaultQueryOptions({queryKey:r}),c=y(this,Ke).get(l.queryHash),f=c==null?void 0:c.state.data,m=xg(s,f);if(m!==void 0)return y(this,Ke).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,s,i){return Ze.batch(()=>y(this,Ke).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,s,i)]))}getQueryState(r){var i;const s=this.defaultQueryOptions({queryKey:r});return(i=y(this,Ke).get(s.queryHash))==null?void 0:i.state}removeQueries(r){const s=y(this,Ke);Ze.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(r,s){const i=y(this,Ke);return Ze.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},s)))}cancelQueries(r,s={}){const i={revert:!0,...s},l=Ze.batch(()=>y(this,Ke).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,s={}){return Ze.batch(()=>(y(this,Ke).findAll(r).forEach(i=>{i.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},s)))}refetchQueries(r,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},l=Ze.batch(()=>y(this,Ke).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(gt)}fetchQuery(r){const s=this.defaultQueryOptions(r);s.retry===void 0&&(s.retry=!1);const i=y(this,Ke).build(this,s);return i.isStaleByTime(xr(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=uh(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=uh(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return ka.isOnline()?y(this,vr).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Ke)}getMutationCache(){return y(this,vr)}getDefaultOptions(){return y(this,gr)}setDefaultOptions(r){G(this,gr,r)}setQueryDefaults(r,s){y(this,Bs).set($r(r),{queryKey:r,defaultOptions:s})}getQueryDefaults(r){const s=[...y(this,Bs).values()],i={};return s.forEach(l=>{Uo(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,s){y(this,Ws).set($r(r),{mutationKey:r,defaultOptions:s})}getMutationDefaults(r){const s=[...y(this,Ws).values()],i={};return s.forEach(l=>{Uo(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const s={...y(this,gr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return s.queryHash||(s.queryHash=qu(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Yu&&(s.enabled=!1),s}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...y(this,gr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){y(this,Ke).clear(),y(this,vr).clear()}},Ke=new WeakMap,vr=new WeakMap,gr=new WeakMap,Bs=new WeakMap,Ws=new WeakMap,yr=new WeakMap,Hs=new WeakMap,Qs=new WeakMap,Yh),up=b.createContext(void 0),Ks=r=>{const s=b.useContext(up);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Ug=({client:r,children:s})=>(b.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(up.Provider,{value:r,children:s})),cp=b.createContext(!1),Bg=()=>b.useContext(cp);cp.Provider;function Wg(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Hg=b.createContext(Wg()),Qg=()=>b.useContext(Hg),Vg=(r,s,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Xu(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(s.isReset()||(r.retryOnMount=!1))},Kg=r=>{b.useEffect(()=>{r.clearReset()},[r])},$g=({result:r,errorResetBoundary:s,throwOnError:i,query:l,suspense:c})=>r.isError&&!s.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Xu(i,[r.error,l])),Gg=r=>{if(r.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>i(l(...c)):i(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},qg=(r,s)=>r.isLoading&&r.isFetching&&!s,Yg=(r,s)=>(r==null?void 0:r.suspense)&&s.isPending,dh=(r,s,i)=>s.fetchOptimistic(r).catch(()=>{i.clearReset()});function Xg(r,s,i){var j,v,L,E;const l=Bg(),c=Qg(),f=Ks(),m=f.defaultQueryOptions(r);(v=(j=f.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||v.call(j,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Gg(m),Vg(m,c,p),Kg(c);const w=!f.getQueryCache().get(m.queryHash),[x]=b.useState(()=>new s(f,m)),N=x.getOptimisticResult(m),P=!l&&r.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(_=>{const A=P?x.subscribe(Ze.batchCalls(_)):gt;return x.updateResult(),A},[x,P]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),b.useEffect(()=>{x.setOptions(m)},[m,x]),Yg(m,N))throw dh(m,x,c);if($g({result:N,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw N.error;if((E=(L=f.getDefaultOptions().queries)==null?void 0:L._experimental_afterQuery)==null||E.call(L,m,N),m.experimental_prefetchInRender&&!Kr&&qg(N,l)){const _=w?dh(m,x,c):p==null?void 0:p.promise;_==null||_.catch(gt).finally(()=>{x.updateResult()})}return m.notifyOnChangeProps?N:x.trackResult(N)}function dp(r,s){return Xg(r,Tg)}function Go(r,s){const i=Ks(),[l]=b.useState(()=>new Lg(i,r));b.useEffect(()=>{l.setOptions(r)},[l,r]);const c=b.useSyncExternalStore(b.useCallback(m=>l.subscribe(Ze.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=b.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Xu(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const fh=r=>{let s;const i=new Set,l=(x,N)=>{const P=typeof x=="function"?x(s):x;if(!Object.is(P,s)){const j=s;s=N??(typeof P!="object"||P===null)?P:Object.assign({},s,P),i.forEach(v=>v(s,j))}},c=()=>s,p={setState:l,getState:c,getInitialState:()=>w,subscribe:x=>(i.add(x),()=>i.delete(x))},w=s=r(l,c,p);return p},Zg=(r=>r?fh(r):fh),Jg=r=>r;function ey(r,s=Jg){const i=Q.useSyncExternalStore(r.subscribe,Q.useCallback(()=>s(r.getState()),[r,s]),Q.useCallback(()=>s(r.getInitialState()),[r,s]));return Q.useDebugValue(i),i}const hh=r=>{const s=Zg(r),i=l=>ey(s,l);return Object.assign(i,s),i},ty=(r=>r?hh(r):hh),qr=ty(r=>({activeTab:"model",setActiveTab:s=>r({activeTab:s}),connectionStatus:"disconnected",setConnectionStatus:s=>r({connectionStatus:s}),providerModal:{open:!1},openProviderModal:s=>r({providerModal:{open:!0,provider:s}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:s=>r({channelModal:{open:!0,channel:s}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function fp(r){var s,i,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(s=0;s<c;s++)r[s]&&(i=fp(r[s]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function hp(){for(var r,s,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(s=fp(r))&&(l&&(l+=" "),l+=s);return l}const ec="-",ny=r=>{const s=sy(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(ec);return p[0]===""&&p.length!==1&&p.shift(),pp(p,s)||ry(m)},getConflictingClassGroupIds:(m,p)=>{const w=i[m]||[];return p&&l[m]?[...w,...l[m]]:w}}},pp=(r,s)=>{var m;if(r.length===0)return s.classGroupId;const i=r[0],l=s.nextPart.get(i),c=l?pp(r.slice(1),l):void 0;if(c)return c;if(s.validators.length===0)return;const f=r.join(ec);return(m=s.validators.find(({validator:p})=>p(f)))==null?void 0:m.classGroupId},ph=/^\[(.+)\]$/,ry=r=>{if(ph.test(r)){const s=ph.exec(r)[1],i=s==null?void 0:s.substring(0,s.indexOf(":"));if(i)return"arbitrary.."+i}},sy=r=>{const{theme:s,prefix:i}=r,l={nextPart:new Map,validators:[]};return iy(Object.entries(r.classGroups),i).forEach(([f,m])=>{Au(m,l,f,s)}),l},Au=(r,s,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const f=c===""?s:mh(s,c);f.classGroupId=i;return}if(typeof c=="function"){if(oy(c)){Au(c(l),s,i,l);return}s.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,m])=>{Au(m,mh(s,f),i,l)})})},mh=(r,s)=>{let i=r;return s.split(ec).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},oy=r=>r.isThemeGetter,iy=(r,s)=>s?r.map(([i,l])=>{const c=l.map(f=>typeof f=="string"?s+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,p])=>[s+m,p])):f);return[i,c]}):r,ay=r=>{if(r<1)return{get:()=>{},set:()=>{}};let s=0,i=new Map,l=new Map;const c=(f,m)=>{i.set(f,m),s++,s>r&&(s=0,l=i,i=new Map)};return{get(f){let m=i.get(f);if(m!==void 0)return m;if((m=l.get(f))!==void 0)return c(f,m),m},set(f,m){i.has(f)?i.set(f,m):c(f,m)}}},mp="!",ly=r=>{const{separator:s,experimentalParseClassName:i}=r,l=s.length===1,c=s[0],f=s.length,m=p=>{const w=[];let x=0,N=0,P;for(let _=0;_<p.length;_++){let A=p[_];if(x===0){if(A===c&&(l||p.slice(_,_+f)===s)){w.push(p.slice(N,_)),N=_+f;continue}if(A==="/"){P=_;continue}}A==="["?x++:A==="]"&&x--}const j=w.length===0?p:p.substring(N),v=j.startsWith(mp),L=v?j.substring(1):j,E=P&&P>N?P-N:void 0;return{modifiers:w,hasImportantModifier:v,baseClassName:L,maybePostfixModifierPosition:E}};return i?p=>i({className:p,parseClassName:m}):m},uy=r=>{if(r.length<=1)return r;const s=[];let i=[];return r.forEach(l=>{l[0]==="["?(s.push(...i.sort(),l),i=[]):i.push(l)}),s.push(...i.sort()),s},cy=r=>({cache:ay(r.cacheSize),parseClassName:ly(r),...ny(r)}),dy=/\s+/,fy=(r,s)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=s,f=[],m=r.trim().split(dy);let p="";for(let w=m.length-1;w>=0;w-=1){const x=m[w],{modifiers:N,hasImportantModifier:P,baseClassName:j,maybePostfixModifierPosition:v}=i(x);let L=!!v,E=l(L?j.substring(0,v):j);if(!E){if(!L){p=x+(p.length>0?" "+p:p);continue}if(E=l(j),!E){p=x+(p.length>0?" "+p:p);continue}L=!1}const _=uy(N).join(":"),A=P?_+mp:_,$=A+E;if(f.includes($))continue;f.push($);const V=c(E,L);for(let I=0;I<V.length;++I){const ee=V[I];f.push(A+ee)}p=x+(p.length>0?" "+p:p)}return p};function hy(){let r=0,s,i,l="";for(;r<arguments.length;)(s=arguments[r++])&&(i=vp(s))&&(l&&(l+=" "),l+=i);return l}const vp=r=>{if(typeof r=="string")return r;let s,i="";for(let l=0;l<r.length;l++)r[l]&&(s=vp(r[l]))&&(i&&(i+=" "),i+=s);return i};function py(r,...s){let i,l,c,f=m;function m(w){const x=s.reduce((N,P)=>P(N),r());return i=cy(x),l=i.cache.get,c=i.cache.set,f=p,p(w)}function p(w){const x=l(w);if(x)return x;const N=fy(w,i);return c(w,N),N}return function(){return f(hy.apply(null,arguments))}}const Fe=r=>{const s=i=>i[r]||[];return s.isThemeGetter=!0,s},gp=/^\[(?:([a-z-]+):)?(.+)\]$/i,my=/^\d+\/\d+$/,vy=new Set(["px","full","screen"]),gy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Ms(r)||vy.has(r)||my.test(r),ir=r=>$s(r,"length",Ry),Ms=r=>!!r&&!Number.isNaN(Number(r)),mu=r=>$s(r,"number",Ms),Lo=r=>!!r&&Number.isInteger(Number(r)),by=r=>r.endsWith("%")&&Ms(r.slice(0,-1)),me=r=>gp.test(r),ar=r=>gy.test(r),ky=new Set(["length","size","percentage"]),Cy=r=>$s(r,ky,yp),Ey=r=>$s(r,"position",yp),Ny=new Set(["image","url"]),Py=r=>$s(r,Ny,Ty),jy=r=>$s(r,"",My),Fo=()=>!0,$s=(r,s,i)=>{const l=gp.exec(r);return l?l[1]?typeof s=="string"?l[1]===s:s.has(l[1]):i(l[2]):!1},Ry=r=>yy.test(r)&&!xy.test(r),yp=()=>!1,My=r=>wy.test(r),Ty=r=>Sy.test(r),_y=()=>{const r=Fe("colors"),s=Fe("spacing"),i=Fe("blur"),l=Fe("brightness"),c=Fe("borderColor"),f=Fe("borderRadius"),m=Fe("borderSpacing"),p=Fe("borderWidth"),w=Fe("contrast"),x=Fe("grayscale"),N=Fe("hueRotate"),P=Fe("invert"),j=Fe("gap"),v=Fe("gradientColorStops"),L=Fe("gradientColorStopPositions"),E=Fe("inset"),_=Fe("margin"),A=Fe("opacity"),$=Fe("padding"),V=Fe("saturate"),I=Fe("scale"),ee=Fe("sepia"),se=Fe("skew"),ne=Fe("space"),ie=Fe("translate"),pe=()=>["auto","contain","none"],ge=()=>["auto","hidden","clip","visible","scroll"],Ne=()=>["auto",me,s],ae=()=>[me,s],Ae=()=>["",Tn,ir],Te=()=>["auto",Ms,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_e=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",me],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[Ms,me];return{cacheSize:500,separator:":",theme:{colors:[Fo],spacing:[Tn,ir],blur:["none","",ar,me],brightness:C(),borderColor:[r],borderRadius:["none","","full",ar,me],borderSpacing:ae(),borderWidth:Ae(),contrast:C(),grayscale:U(),hueRotate:C(),invert:U(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[by,ir],inset:Ne(),margin:Ne(),opacity:C(),padding:ae(),saturate:C(),scale:C(),sepia:U(),skew:C(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Be(),me]}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lo,me]}],basis:[{basis:Ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",Lo,me]}],"grid-cols":[{"grid-cols":[Fo]}],"col-start-end":[{col:["auto",{span:["full",Lo,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[Fo]}],"row-start-end":[{row:["auto",{span:[Lo,me]},me]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,s]}],"min-w":[{"min-w":[me,s,"min","max","fit"]}],"max-w":[{"max-w":[me,s,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[me,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,s,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mu]}],"font-family":[{font:[Fo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Ms,mu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ir]}],"underline-offset":[{"underline-offset":["auto",Tn,me]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Ey]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cy]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Py]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[..._e(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:_e()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",..._e()]}],"outline-offset":[{"outline-offset":[Tn,me]}],"outline-w":[{outline:[Tn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Tn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ar,jy]}],"shadow-color":[{shadow:[Fo]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[w]}],"drop-shadow":[{"drop-shadow":["","none",ar,me]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[P]}],saturate:[{saturate:[V]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[w]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Lo,me]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[se]}],"skew-y":[{"skew-y":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ir,mu]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Oy=py(_y);function Me(...r){return Oy(hp(r))}/**
41
- * @license lucide-react v0.462.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const zy=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xp=(...r)=>r.filter((s,i,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===i).join(" ").trim();/**
46
- * @license lucide-react v0.462.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var Iy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
- * @license lucide-react v0.462.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const Dy=b.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:m,...p},w)=>b.createElement("svg",{ref:w,...Iy,width:s,height:s,stroke:r,strokeWidth:l?Number(i)*24/Number(s):i,className:xp("lucide",c),...p},[...m.map(([x,N])=>b.createElement(x,N)),...Array.isArray(f)?f:[f]]));/**
56
- * @license lucide-react v0.462.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const ze=(r,s)=>{const i=b.forwardRef(({className:l,...c},f)=>b.createElement(Dy,{ref:f,iconNode:s,className:xp(`lucide-${zy(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
61
- * @license lucide-react v0.462.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Ly=ze("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
66
- * @license lucide-react v0.462.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const Fy=ze("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
- * @license lucide-react v0.462.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Ay=ze("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
76
- * @license lucide-react v0.462.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Uy=ze("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
81
- * @license lucide-react v0.462.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const wp=ze("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
86
- * @license lucide-react v0.462.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const By=ze("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
91
- * @license lucide-react v0.462.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const Wy=ze("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
96
- * @license lucide-react v0.462.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const Hy=ze("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
101
- * @license lucide-react v0.462.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const Sp=ze("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
106
- * @license lucide-react v0.462.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const bp=ze("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
111
- * @license lucide-react v0.462.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const Uu=ze("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
116
- * @license lucide-react v0.462.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Qy=ze("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
121
- * @license lucide-react v0.462.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const tc=ze("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
126
- * @license lucide-react v0.462.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const xa=ze("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
131
- * @license lucide-react v0.462.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const kp=ze("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
136
- * @license lucide-react v0.462.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Vy=ze("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
141
- * @license lucide-react v0.462.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const Cp=ze("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
146
- * @license lucide-react v0.462.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const Ky=ze("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
151
- * @license lucide-react v0.462.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const vh=ze("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
156
- * @license lucide-react v0.462.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const $y=ze("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
161
- * @license lucide-react v0.462.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const Ep=ze("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
166
- * @license lucide-react v0.462.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const Gy=ze("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/**
171
- * @license lucide-react v0.462.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const qy=ze("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
176
- * @license lucide-react v0.462.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const nc=ze("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
181
- * @license lucide-react v0.462.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const Yy=ze("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
186
- * @license lucide-react v0.462.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const Xy=ze("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
191
- * @license lucide-react v0.462.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const Np=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zy=[{id:"model",label:"Models",icon:Uy,color:"text-[hsl(30,15%,10%)]"},{id:"providers",label:"Providers",icon:nc,color:"text-[hsl(30,15%,10%)]"},{id:"channels",label:"Channels",icon:kp,color:"text-[hsl(30,15%,10%)]"},{id:"ui",label:"Appearance",icon:Ep,color:"text-[hsl(30,15%,10%)]"}];function Jy(){const{activeTab:r,setActiveTab:s}=qr();return h.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[h.jsx("div",{className:"px-3 mb-8",children:h.jsxs("div",{className:"flex items-center gap-2 group cursor-pointer",children:[h.jsx("div",{className:"h-6 w-6 rounded-md bg-[hsl(30,15%,10%)] flex items-center justify-center transition-transform group-hover:scale-110",children:h.jsx(nc,{className:"h-4 w-4 text-white"})}),h.jsx("h1",{className:"text-lg font-bold text-[hsl(30,15%,10%)] tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:Zy.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>s(i.id),className:Me("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-[13px] font-medium transition-all duration-200",c?"bg-[hsl(40,10%,92%)] text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,45%)] hover:bg-[hsl(40,10%,94%)] hover:text-[hsl(30,15%,10%)]"),children:[h.jsx(l,{className:Me("h-4 w-4 transition-transform group-hover:scale-110",c?"text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,45%)]")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})}),h.jsxs("div",{className:"mt-auto px-1 pt-4",children:[h.jsx("div",{className:"flex items-center gap-2 mb-4 px-2",children:h.jsxs("div",{className:"flex gap-1.5 items-center",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-400"}),h.jsx("span",{className:"text-[11px] text-[hsl(30,8%,65%)]",children:"Starting..."})]})}),h.jsxs("button",{className:"w-full flex items-center gap-3 p-2 rounded-xl hover:bg-[hsl(40,10%,94%)] transition-all group",children:[h.jsx("div",{className:"h-8 w-8 rounded-full bg-gradient-to-br from-amber-400 to-orange-500 flex items-center justify-center text-white text-xs font-bold shadow-sm group-hover:scale-105 transition-transform",children:"WX"}),h.jsxs("div",{className:"flex-1 text-left min-w-0",children:[h.jsx("p",{className:"text-[13px] font-semibold text-[hsl(30,15%,10%)] truncate",children:"Wang Xiaotiao"}),h.jsx("p",{className:"text-[11px] text-[hsl(30,8%,55%)] truncate",children:"Free plan"})]}),h.jsx(Ay,{className:"h-4 w-4 text-[hsl(30,8%,65%)] group-hover:translate-x-0.5 transition-transform"})]})]})]})}function e0({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(Jy,{}),h.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white rounded-[2rem] shadow-sm overflow-hidden border border-[hsl(40,10%,94%)]",children:h.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:h.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const t0="http://127.0.0.1:18791";async function vu(r,s={}){const i=`${t0}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...s.headers},...s}),c=await l.json();return l.ok,c}const Yr={get:r=>vu(r,{method:"GET"}),put:(r,s)=>vu(r,{method:"PUT",body:JSON.stringify(s)}),post:(r,s)=>vu(r,{method:"POST",body:JSON.stringify(s)})};async function n0(){const r=await Yr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function r0(){const r=await Yr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function s0(r){const s=await Yr.put("/api/config/model",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function o0(r,s){const i=await Yr.put(`/api/config/providers/${r}`,s);if(!i.ok)throw new Error(i.error.message);return i.data}async function i0(r,s){const i=await Yr.put(`/api/config/channels/${r}`,s);if(!i.ok)throw new Error(i.error.message);return i.data}async function a0(r){const s=await Yr.put("/api/config/ui",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function l0(){const r=await Yr.post("/api/config/reload",{});if(!r.ok)throw new Error(r.error.message);return r.data}var Pp=Jh();const jp=Xh(Pp);var u0=r=>{switch(r){case"success":return f0;case"info":return p0;case"warning":return h0;case"error":return m0;default:return null}},c0=Array(12).fill(0),d0=({visible:r,className:s})=>Q.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":r},Q.createElement("div",{className:"sonner-spinner"},c0.map((i,l)=>Q.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),f0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),h0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),p0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),m0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),g0=()=>{let[r,s]=Q.useState(document.hidden);return Q.useEffect(()=>{let i=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Bu=1,y0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let s=this.subscribers.indexOf(r);this.subscribers.splice(s,1)}),this.publish=r=>{this.subscribers.forEach(s=>s(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var s;let{message:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((s=r.id)==null?void 0:s.length)>0?r.id:Bu++,f=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:i}),{...p,...r,id:c,dismissible:m,title:i}):p):this.addToast({title:i,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(s=>{this.subscribers.forEach(i=>i({id:s.id,dismiss:!0}))}),this.subscribers.forEach(s=>s({id:r,dismiss:!0})),r),this.message=(r,s)=>this.create({...s,message:r}),this.error=(r,s)=>this.create({...s,message:r,type:"error"}),this.success=(r,s)=>this.create({...s,type:"success",message:r}),this.info=(r,s)=>this.create({...s,type:"info",message:r}),this.warning=(r,s)=>this.create({...s,type:"warning",message:r}),this.loading=(r,s)=>this.create({...s,type:"loading",message:r}),this.promise=(r,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:r,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));let l=r instanceof Promise?r:r(),c=i!==void 0,f,m=l.then(async w=>{if(f=["resolve",w],Q.isValidElement(w))c=!1,this.create({id:i,type:"default",message:w});else if(w0(w)&&!w.ok){c=!1;let x=typeof s.error=="function"?await s.error(`HTTP error! status: ${w.status}`):s.error,N=typeof s.description=="function"?await s.description(`HTTP error! status: ${w.status}`):s.description;this.create({id:i,type:"error",message:x,description:N})}else if(s.success!==void 0){c=!1;let x=typeof s.success=="function"?await s.success(w):s.success,N=typeof s.description=="function"?await s.description(w):s.description;this.create({id:i,type:"success",message:x,description:N})}}).catch(async w=>{if(f=["reject",w],s.error!==void 0){c=!1;let x=typeof s.error=="function"?await s.error(w):s.error,N=typeof s.description=="function"?await s.description(w):s.description;this.create({id:i,type:"error",message:x,description:N})}}).finally(()=>{var w;c&&(this.dismiss(i),i=void 0),(w=s.finally)==null||w.call(s)}),p=()=>new Promise((w,x)=>m.then(()=>f[0]==="reject"?x(f[1]):w(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(r,s)=>{let i=(s==null?void 0:s.id)||Bu++;return this.create({jsx:r(i),id:i,...s}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},jt=new y0,x0=(r,s)=>{let i=(s==null?void 0:s.id)||Bu++;return jt.addToast({title:r,...s,id:i}),i},w0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",S0=x0,b0=()=>jt.toasts,k0=()=>jt.getActiveToasts(),Sn=Object.assign(S0,{success:jt.success,info:jt.info,warning:jt.warning,error:jt.error,custom:jt.custom,message:jt.message,promise:jt.promise,dismiss:jt.dismiss,loading:jt.loading},{getHistory:b0,getToasts:k0});function C0(r,{insertAt:s}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}C0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
196
- `);function fa(r){return r.label!==void 0}var E0=3,N0="32px",P0="16px",gh=4e3,j0=356,R0=14,M0=20,T0=200;function Jt(...r){return r.filter(Boolean).join(" ")}function _0(r){let[s,i]=r.split("-"),l=[];return s&&l.push(s),i&&l.push(i),l}var O0=r=>{var s,i,l,c,f,m,p,w,x,N,P;let{invert:j,toast:v,unstyled:L,interacting:E,setHeights:_,visibleToasts:A,heights:$,index:V,toasts:I,expanded:ee,removeToast:se,defaultRichColors:ne,closeButton:ie,style:pe,cancelButtonStyle:ge,actionButtonStyle:Ne,className:ae="",descriptionClassName:Ae="",duration:Te,position:Be,gap:_e,loadingIcon:we,expandByDefault:H,classNames:U,icons:W,closeButtonAriaLabel:C="Close toast",pauseWhenPageIsHidden:O}=r,[X,te]=Q.useState(null),[de,ye]=Q.useState(null),[ce,be]=Q.useState(!1),[Pe,Je]=Q.useState(!1),[sn,Zr]=Q.useState(!1),[Sr,qs]=Q.useState(!1),[qo,Ys]=Q.useState(!1),[Xs,Jr]=Q.useState(0),[Zs,An]=Q.useState(0),Ot=Q.useRef(v.duration||Te||gh),es=Q.useRef(null),on=Q.useRef(null),Yo=V===0,Xo=V+1<=A,ft=v.type,an=v.dismissible!==!1,ts=v.className||"",Zo=v.descriptionClassName||"",ln=Q.useMemo(()=>$.findIndex(he=>he.toastId===v.id)||0,[$,v.id]),br=Q.useMemo(()=>{var he;return(he=v.closeButton)!=null?he:ie},[v.closeButton,ie]),Jo=Q.useMemo(()=>v.duration||Te||gh,[v.duration,Te]),ns=Q.useRef(0),bn=Q.useRef(0),ei=Q.useRef(0),un=Q.useRef(null),[Js,eo]=Be.split("-"),rs=Q.useMemo(()=>$.reduce((he,Ee,Oe)=>Oe>=ln?he:he+Ee.height,0),[$,ln]),ss=g0(),Un=v.invert||j,cn=ft==="loading";bn.current=Q.useMemo(()=>ln*_e+rs,[ln,rs]),Q.useEffect(()=>{Ot.current=Jo},[Jo]),Q.useEffect(()=>{be(!0)},[]),Q.useEffect(()=>{let he=on.current;if(he){let Ee=he.getBoundingClientRect().height;return An(Ee),_(Oe=>[{toastId:v.id,height:Ee,position:v.position},...Oe]),()=>_(Oe=>Oe.filter(ht=>ht.toastId!==v.id))}},[_,v.id]),Q.useLayoutEffect(()=>{if(!ce)return;let he=on.current,Ee=he.style.height;he.style.height="auto";let Oe=he.getBoundingClientRect().height;he.style.height=Ee,An(Oe),_(ht=>ht.find(yt=>yt.toastId===v.id)?ht.map(yt=>yt.toastId===v.id?{...yt,height:Oe}:yt):[{toastId:v.id,height:Oe,position:v.position},...ht])},[ce,v.title,v.description,_,v.id]);let Qt=Q.useCallback(()=>{Je(!0),Jr(bn.current),_(he=>he.filter(Ee=>Ee.toastId!==v.id)),setTimeout(()=>{se(v)},T0)},[v,se,_,bn]);Q.useEffect(()=>{if(v.promise&&ft==="loading"||v.duration===1/0||v.type==="loading")return;let he;return ee||E||O&&ss?(()=>{if(ei.current<ns.current){let Ee=new Date().getTime()-ns.current;Ot.current=Ot.current-Ee}ei.current=new Date().getTime()})():Ot.current!==1/0&&(ns.current=new Date().getTime(),he=setTimeout(()=>{var Ee;(Ee=v.onAutoClose)==null||Ee.call(v,v),Qt()},Ot.current)),()=>clearTimeout(he)},[ee,E,v,ft,O,ss,Qt]),Q.useEffect(()=>{v.delete&&Qt()},[Qt,v.delete]);function ti(){var he,Ee,Oe;return W!=null&&W.loading?Q.createElement("div",{className:Jt(U==null?void 0:U.loader,(he=v==null?void 0:v.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":ft==="loading"},W.loading):we?Q.createElement("div",{className:Jt(U==null?void 0:U.loader,(Ee=v==null?void 0:v.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":ft==="loading"},we):Q.createElement(d0,{className:Jt(U==null?void 0:U.loader,(Oe=v==null?void 0:v.classNames)==null?void 0:Oe.loader),visible:ft==="loading"})}return Q.createElement("li",{tabIndex:0,ref:on,className:Jt(ae,ts,U==null?void 0:U.toast,(s=v==null?void 0:v.classNames)==null?void 0:s.toast,U==null?void 0:U.default,U==null?void 0:U[ft],(i=v==null?void 0:v.classNames)==null?void 0:i[ft]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:ne,"data-styled":!(v.jsx||v.unstyled||L),"data-mounted":ce,"data-promise":!!v.promise,"data-swiped":qo,"data-removed":Pe,"data-visible":Xo,"data-y-position":Js,"data-x-position":eo,"data-index":V,"data-front":Yo,"data-swiping":sn,"data-dismissible":an,"data-type":ft,"data-invert":Un,"data-swipe-out":Sr,"data-swipe-direction":de,"data-expanded":!!(ee||H&&ce),style:{"--index":V,"--toasts-before":V,"--z-index":I.length-V,"--offset":`${Pe?Xs:bn.current}px`,"--initial-height":H?"auto":`${Zs}px`,...pe,...v.style},onDragEnd:()=>{Zr(!1),te(null),un.current=null},onPointerDown:he=>{cn||!an||(es.current=new Date,Jr(bn.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(Zr(!0),un.current={x:he.clientX,y:he.clientY}))},onPointerUp:()=>{var he,Ee,Oe,ht;if(Sr||!an)return;un.current=null;let yt=Number(((he=on.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xt=Number(((Ee=on.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Vt=new Date().getTime()-((Oe=es.current)==null?void 0:Oe.getTime()),st=X==="x"?yt:xt,dn=Math.abs(st)/Vt;if(Math.abs(st)>=M0||dn>.11){Jr(bn.current),(ht=v.onDismiss)==null||ht.call(v,v),ye(X==="x"?yt>0?"right":"left":xt>0?"down":"up"),Qt(),qs(!0),Ys(!1);return}Zr(!1),te(null)},onPointerMove:he=>{var Ee,Oe,ht,yt;if(!un.current||!an||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;let xt=he.clientY-un.current.y,Vt=he.clientX-un.current.x,st=(Oe=r.swipeDirections)!=null?Oe:_0(Be);!X&&(Math.abs(Vt)>1||Math.abs(xt)>1)&&te(Math.abs(Vt)>Math.abs(xt)?"x":"y");let dn={x:0,y:0};X==="y"?(st.includes("top")||st.includes("bottom"))&&(st.includes("top")&&xt<0||st.includes("bottom")&&xt>0)&&(dn.y=xt):X==="x"&&(st.includes("left")||st.includes("right"))&&(st.includes("left")&&Vt<0||st.includes("right")&&Vt>0)&&(dn.x=Vt),(Math.abs(dn.x)>0||Math.abs(dn.y)>0)&&Ys(!0),(ht=on.current)==null||ht.style.setProperty("--swipe-amount-x",`${dn.x}px`),(yt=on.current)==null||yt.style.setProperty("--swipe-amount-y",`${dn.y}px`)}},br&&!v.jsx?Q.createElement("button",{"aria-label":C,"data-disabled":cn,"data-close-button":!0,onClick:cn||!an?()=>{}:()=>{var he;Qt(),(he=v.onDismiss)==null||he.call(v,v)},className:Jt(U==null?void 0:U.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(f=W==null?void 0:W.close)!=null?f:v0):null,v.jsx||b.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:Q.createElement(Q.Fragment,null,ft||v.icon||v.promise?Q.createElement("div",{"data-icon":"",className:Jt(U==null?void 0:U.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ti():null,v.type!=="loading"?v.icon||(W==null?void 0:W[ft])||u0(ft):null):null,Q.createElement("div",{"data-content":"",className:Jt(U==null?void 0:U.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},Q.createElement("div",{"data-title":"",className:Jt(U==null?void 0:U.title,(w=v==null?void 0:v.classNames)==null?void 0:w.title)},typeof v.title=="function"?v.title():v.title),v.description?Q.createElement("div",{"data-description":"",className:Jt(Ae,Zo,U==null?void 0:U.description,(x=v==null?void 0:v.classNames)==null?void 0:x.description)},typeof v.description=="function"?v.description():v.description):null),b.isValidElement(v.cancel)?v.cancel:v.cancel&&fa(v.cancel)?Q.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||ge,onClick:he=>{var Ee,Oe;fa(v.cancel)&&an&&((Oe=(Ee=v.cancel).onClick)==null||Oe.call(Ee,he),Qt())},className:Jt(U==null?void 0:U.cancelButton,(N=v==null?void 0:v.classNames)==null?void 0:N.cancelButton)},v.cancel.label):null,b.isValidElement(v.action)?v.action:v.action&&fa(v.action)?Q.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||Ne,onClick:he=>{var Ee,Oe;fa(v.action)&&((Oe=(Ee=v.action).onClick)==null||Oe.call(Ee,he),!he.defaultPrevented&&Qt())},className:Jt(U==null?void 0:U.actionButton,(P=v==null?void 0:v.classNames)==null?void 0:P.actionButton)},v.action.label):null))};function yh(){if(typeof window>"u"||typeof document>"u")return"ltr";let r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function z0(r,s){let i={};return[r,s].forEach((l,c)=>{let f=c===1,m=f?"--mobile-offset":"--offset",p=f?P0:N0;function w(x){["top","right","bottom","left"].forEach(N=>{i[`${m}-${N}`]=typeof x=="number"?`${x}px`:x})}typeof l=="number"||typeof l=="string"?w(l):typeof l=="object"?["top","right","bottom","left"].forEach(x=>{l[x]===void 0?i[`${m}-${x}`]=p:i[`${m}-${x}`]=typeof l[x]=="number"?`${l[x]}px`:l[x]}):w(p)}),i}var I0=b.forwardRef(function(r,s){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:m,className:p,offset:w,mobileOffset:x,theme:N="light",richColors:P,duration:j,style:v,visibleToasts:L=E0,toastOptions:E,dir:_=yh(),gap:A=R0,loadingIcon:$,icons:V,containerAriaLabel:I="Notifications",pauseWhenPageIsHidden:ee}=r,[se,ne]=Q.useState([]),ie=Q.useMemo(()=>Array.from(new Set([l].concat(se.filter(O=>O.position).map(O=>O.position)))),[se,l]),[pe,ge]=Q.useState([]),[Ne,ae]=Q.useState(!1),[Ae,Te]=Q.useState(!1),[Be,_e]=Q.useState(N!=="system"?N:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),we=Q.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=Q.useRef(null),W=Q.useRef(!1),C=Q.useCallback(O=>{ne(X=>{var te;return(te=X.find(de=>de.id===O.id))!=null&&te.delete||jt.dismiss(O.id),X.filter(({id:de})=>de!==O.id)})},[]);return Q.useEffect(()=>jt.subscribe(O=>{if(O.dismiss){ne(X=>X.map(te=>te.id===O.id?{...te,delete:!0}:te));return}setTimeout(()=>{jp.flushSync(()=>{ne(X=>{let te=X.findIndex(de=>de.id===O.id);return te!==-1?[...X.slice(0,te),{...X[te],...O},...X.slice(te+1)]:[O,...X]})})})}),[]),Q.useEffect(()=>{if(N!=="system"){_e(N);return}if(N==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_e("dark"):_e("light")),typeof window>"u")return;let O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:X})=>{_e(X?"dark":"light")})}catch{O.addListener(({matches:te})=>{try{_e(te?"dark":"light")}catch(de){console.error(de)}})}},[N]),Q.useEffect(()=>{se.length<=1&&ae(!1)},[se]),Q.useEffect(()=>{let O=X=>{var te,de;c.every(ye=>X[ye]||X.code===ye)&&(ae(!0),(te=we.current)==null||te.focus()),X.code==="Escape"&&(document.activeElement===we.current||(de=we.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[c]),Q.useEffect(()=>{if(we.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,W.current=!1)}},[we.current]),Q.createElement("section",{ref:s,"aria-label":`${I} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((O,X)=>{var te;let[de,ye]=O.split("-");return se.length?Q.createElement("ol",{key:O,dir:_==="auto"?yh():_,tabIndex:-1,ref:we,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Ne&&se.length>1&&!f,"data-x-position":ye,style:{"--front-toast-height":`${((te=pe[0])==null?void 0:te.height)||0}px`,"--width":`${j0}px`,"--gap":`${A}px`,...v,...z0(w,x)},onBlur:ce=>{W.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(W.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||W.current||(W.current=!0,U.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{Ae||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},se.filter(ce=>!ce.position&&X===0||ce.position===O).map((ce,be)=>{var Pe,Je;return Q.createElement(O0,{key:ce.id,icons:V,index:be,toast:ce,defaultRichColors:P,duration:(Pe=E==null?void 0:E.duration)!=null?Pe:j,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:L,closeButton:(Je=E==null?void 0:E.closeButton)!=null?Je:m,interacting:Ae,position:O,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,removeToast:C,toasts:se.filter(sn=>sn.position==ce.position),heights:pe.filter(sn=>sn.position==ce.position),setHeights:ge,expandByDefault:f,gap:A,loadingIcon:$,expanded:Ne,pauseWhenPageIsHidden:ee,swipeDirections:r.swipeDirections})})):null}))});const xh={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},uiConfig:{zh:"界面",en:"UI"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},temperature:{zh:"温度",en:"Temperature"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},appSecret:{zh:"App Secret",en:"App Secret"},clientId:{zh:"Client ID",en:"Client ID"},clientSecret:{zh:"Client Secret",en:"Client Secret"},encryptKey:{zh:"加密密钥",en:"Encrypt Key"},verificationToken:{zh:"验证令牌",en:"Verification Token"},bridgeUrl:{zh:"桥接 URL",en:"Bridge URL"},gatewayUrl:{zh:"网关 URL",en:"Gateway URL"},proxy:{zh:"代理",en:"Proxy"},intents:{zh:"Intents",en:"Intents"},mode:{zh:"模式",en:"Mode"},webhookPath:{zh:"Webhook 路径",en:"Webhook Path"},groupPolicy:{zh:"群组策略",en:"Group Policy"},consentGranted:{zh:"同意条款",en:"Consent Granted"},imapHost:{zh:"IMAP 服务器",en:"IMAP Host"},imapPort:{zh:"IMAP 端口",en:"IMAP Port"},imapUsername:{zh:"IMAP 用户名",en:"IMAP Username"},imapPassword:{zh:"IMAP 密码",en:"IMAP Password"},imapMailbox:{zh:"IMAP 邮箱",en:"IMAP Mailbox"},imapUseSsl:{zh:"IMAP 使用 SSL",en:"IMAP Use SSL"},smtpHost:{zh:"SMTP 服务器",en:"SMTP Host"},smtpPort:{zh:"SMTP 端口",en:"SMTP Port"},smtpUsername:{zh:"SMTP 用户名",en:"SMTP Username"},smtpPassword:{zh:"SMTP 密码",en:"SMTP Password"},smtpUseTls:{zh:"SMTP 使用 TLS",en:"SMTP Use TLS"},smtpUseSsl:{zh:"SMTP 使用 SSL",en:"SMTP Use SSL"},fromAddress:{zh:"发件地址",en:"From Address"},autoReplyEnabled:{zh:"自动回复已启用",en:"Auto Reply Enabled"},pollIntervalSeconds:{zh:"轮询间隔(秒)",en:"Poll Interval (s)"},markSeen:{zh:"标记为已读",en:"Mark Seen"},maxBodyChars:{zh:"最大正文字符数",en:"Max Body Chars"},subjectPrefix:{zh:"主题前缀",en:"Subject Prefix"},baseUrl:{zh:"Base URL",en:"Base URL"},socketUrl:{zh:"Socket URL",en:"Socket URL"},socketPath:{zh:"Socket 路径",en:"Socket Path"},socketDisableMsgpack:{zh:"禁用 Msgpack",en:"Disable Msgpack"},socketReconnectDelayMs:{zh:"重连延迟(ms)",en:"Reconnect Delay (ms)"},socketMaxReconnectDelayMs:{zh:"最大重连延迟(ms)",en:"Max Reconnect Delay (ms)"},socketConnectTimeoutMs:{zh:"连接超时(ms)",en:"Connect Timeout (ms)"},refreshIntervalMs:{zh:"刷新间隔(ms)",en:"Refresh Interval (ms)"},watchTimeoutMs:{zh:"监视超时(ms)",en:"Watch Timeout (ms)"},watchLimit:{zh:"监视限制",en:"Watch Limit"},retryDelayMs:{zh:"重试延迟(ms)",en:"Retry Delay (ms)"},maxRetryAttempts:{zh:"最大重试次数",en:"Max Retry Attempts"},clawToken:{zh:"Claw Token",en:"Claw Token"},agentUserId:{zh:"代理用户ID",en:"Agent User ID"},sessions:{zh:"会话",en:"Sessions"},panels:{zh:"面板",en:"Panels"},mentionRequireInGroups:{zh:"群组中需要@",en:"Require Mention in Groups"},groups:{zh:"群组",en:"Groups"},replyDelayMode:{zh:"回复延迟模式",en:"Reply Delay Mode"},replyDelayMs:{zh:"回复延迟(ms)",en:"Reply Delay (ms)"},secret:{zh:"密钥",en:"Secret"},host:{zh:"主机",en:"Host"},port:{zh:"端口",en:"Port"},open:{zh:"自动打开",en:"Open Automatically"},reloadConfig:{zh:"重载配置",en:"Reload Config"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function K(r,s="en"){var i,l;return((i=xh[r])==null?void 0:i[s])||((l=xh[r])==null?void 0:l.en)||r}function Gs(){return dp({queryKey:["config"],queryFn:n0,staleTime:3e4,refetchOnWindowFocus:!0})}function rc(){return dp({queryKey:["config-meta"],queryFn:r0,staleTime:1/0})}function D0(){const r=Ks();return Go({mutationFn:s0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:s=>{Sn.error(K("configSaveFailed")+": "+s.message)}})}function L0(){const r=Ks();return Go({mutationFn:({provider:s,data:i})=>o0(s,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:s=>{Sn.error(K("configSaveFailed")+": "+s.message)}})}function F0(){const r=Ks();return Go({mutationFn:({channel:s,data:i})=>i0(s,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:s=>{Sn.error(K("configSaveFailed")+": "+s.message)}})}function A0(){const r=Ks();return Go({mutationFn:a0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:s=>{Sn.error(K("configSaveFailed")+": "+s.message)}})}function U0(){return Go({mutationFn:l0,onSuccess:()=>{Sn.success(K("configReloaded"))},onError:r=>{Sn.error(K("configReloadFailed")+": "+r.message)}})}const wh=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Sh=hp,B0=(r,s)=>i=>{var l;if((s==null?void 0:s.variants)==null)return Sh(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=s,m=Object.keys(c).map(x=>{const N=i==null?void 0:i[x],P=f==null?void 0:f[x];if(N===null)return null;const j=wh(N)||wh(P);return c[x][j]}),p=i&&Object.entries(i).reduce((x,N)=>{let[P,j]=N;return j===void 0||(x[P]=j),x},{}),w=s==null||(l=s.compoundVariants)===null||l===void 0?void 0:l.reduce((x,N)=>{let{class:P,className:j,...v}=N;return Object.entries(v).every(L=>{let[E,_]=L;return Array.isArray(_)?_.includes({...f,...p}[E]):{...f,...p}[E]===_})?[...x,P,j]:x},[]);return Sh(r,m,w,i==null?void 0:i.class,i==null?void 0:i.className)},W0=B0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ht=b.forwardRef(({className:r,variant:s,size:i,...l},c)=>h.jsx("button",{className:Me(W0({variant:s,size:i,className:r})),ref:c,...l}));Ht.displayName="Button";const Wt=b.forwardRef(({className:r,type:s,...i},l)=>h.jsx("input",{type:s,className:Me("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...i}));Wt.displayName="Input";const nn=b.forwardRef(({className:r,...s},i)=>h.jsx("label",{ref:i,className:Me("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...s}));nn.displayName="Label";const Ts=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Me("rounded-2xl border bg-card text-card-foreground shadow-sm transition-all duration-300 hover:shadow-premium",r),...s}));Ts.displayName="Card";const H0=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Me("flex flex-col space-y-1.5 p-6",r),...s}));H0.displayName="CardHeader";const Wu=b.forwardRef(({className:r,...s},i)=>h.jsx("h3",{ref:i,className:Me("text-2xl font-semibold leading-none tracking-tight",r),...s}));Wu.displayName="CardTitle";const Hu=b.forwardRef(({className:r,...s},i)=>h.jsx("p",{ref:i,className:Me("text-sm text-muted-foreground",r),...s}));Hu.displayName="CardDescription";const Qu=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Me("p-6 pt-0",r),...s}));Qu.displayName="CardContent";const Q0=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Me("flex items-center p-6 pt-0",r),...s}));Q0.displayName="CardFooter";function Qe({className:r,...s}){return h.jsx("div",{className:Me("animate-pulse rounded-md bg-slate-200",r),...s})}function bh(){const{data:r,isLoading:s}=Gs(),i=D0(),[l,c]=b.useState(""),[f,m]=b.useState(""),[p,w]=b.useState(8192),[x,N]=b.useState(.7);b.useEffect(()=>{var j;(j=r==null?void 0:r.agents)!=null&&j.defaults&&(c(r.agents.defaults.model||""),m(r.agents.defaults.workspace||""),w(r.agents.defaults.maxTokens||8192),N(r.agents.defaults.temperature||.7))},[r]);const P=j=>{j.preventDefault(),i.mutate({model:l})};return s?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Qe,{className:"h-8 w-32"}),h.jsx(Qe,{className:"h-4 w-48"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Qe,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Qe,{className:"h-5 w-24"}),h.jsx(Qe,{className:"h-3 w-32"})]})]}),h.jsx(Qe,{className:"h-4 w-20 mb-2"}),h.jsx(Qe,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsx(Qe,{className:"h-5 w-24 mb-2"}),h.jsx(Qe,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(Qe,{className:"h-4 w-28 mb-3"}),h.jsx(Qe,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(Qe,{className:"h-4 w-32 mb-3"}),h.jsx(Qe,{className:"h-2 w-full rounded-full"})]})]})]})]}):h.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"Model Configuration"}),h.jsx("p",{className:"text-[14px] text-[hsl(30,8%,55%)] mt-1",children:"Configure default AI model and behavior parameters"})]}),h.jsxs("form",{onSubmit:P,className:"space-y-8",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[h.jsxs("div",{className:"p-8 rounded-[2rem] bg-[hsl(40,10%,98%)] border border-[hsl(40,10%,94%)]",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(nc,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(nn,{htmlFor:"model",className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Model Name"}),h.jsx(Wt,{id:"model",value:l,onChange:j=>c(j.target.value),placeholder:"e.g. gpt-4, claude-3",className:"h-12 px-4 rounded-xl border-[hsl(40,10%,92%)] bg-white focus:ring-1 focus:ring-[hsl(30,15%,10%)] transition-all"})]})]}),h.jsxs("div",{className:"p-8 rounded-[2rem] bg-[hsl(40,10%,98%)] border border-[hsl(40,10%,94%)]",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(Hy,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(nn,{htmlFor:"workspace",className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Default Path"}),h.jsx(Wt,{id:"workspace",value:f,onChange:j=>m(j.target.value),placeholder:"/path/to/workspace",className:"h-12 px-4 rounded-xl border-[hsl(40,10%,92%)] bg-white focus:ring-1 focus:ring-[hsl(30,15%,10%)] transition-all"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-[2.5rem] bg-white border border-[hsl(40,10%,94%)] shadow-sm",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(qy,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Generation Parameters"})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(nn,{className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Max Tokens"}),h.jsx("span",{className:"text-[13px] font-bold text-[hsl(30,15%,10%)]",children:p.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:p,onChange:j=>w(parseInt(j.target.value)),className:"w-full h-1 bg-[hsl(40,10%,92%)] rounded-full appearance-none cursor-pointer accent-[hsl(30,15%,10%)]"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(nn,{className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Temperature"}),h.jsx("span",{className:"text-[13px] font-bold text-[hsl(30,15%,10%)]",children:x})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:x,onChange:j=>N(parseFloat(j.target.value)),className:"w-full h-1 bg-[hsl(40,10%,92%)] rounded-full appearance-none cursor-pointer accent-[hsl(30,15%,10%)]"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(Ht,{type:"submit",disabled:i.isPending,className:"h-12 px-8 rounded-2xl bg-[hsl(30,15%,10%)] text-white hover:bg-[hsl(30,15%,20%)] transition-all font-bold shadow-md active:scale-95",children:i.isPending?h.jsx(Qy,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function wr(r,s,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return s==null?void 0:s(c)}}function kh(r,s){if(typeof r=="function")return r(s);r!=null&&(r.current=s)}function Rp(...r){return s=>{let i=!1;const l=r.map(c=>{const f=kh(c,s);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<l.length;c++){const f=l[c];typeof f=="function"?f():kh(r[c],null)}}}}function Xr(...r){return b.useCallback(Rp(...r),r)}function V0(r,s){const i=b.createContext(s),l=f=>{const{children:m,...p}=f,w=b.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:w,children:m})};l.displayName=r+"Provider";function c(f){const m=b.useContext(i);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,c]}function K0(r,s=[]){let i=[];function l(f,m){const p=b.createContext(m),w=i.length;i=[...i,m];const x=P=>{var A;const{scope:j,children:v,...L}=P,E=((A=j==null?void 0:j[r])==null?void 0:A[w])||p,_=b.useMemo(()=>L,Object.values(L));return h.jsx(E.Provider,{value:_,children:v})};x.displayName=f+"Provider";function N(P,j){var E;const v=((E=j==null?void 0:j[r])==null?void 0:E[w])||p,L=b.useContext(v);if(L)return L;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${f}\``)}return[x,N]}const c=()=>{const f=i.map(m=>b.createContext(m));return function(p){const w=(p==null?void 0:p[r])||f;return b.useMemo(()=>({[`__scope${r}`]:{...p,[r]:w}}),[p,w])}};return c.scopeName=r,[l,$0(c,...s)]}function $0(...r){const s=r[0];if(r.length===1)return s;const i=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const m=l.reduce((p,{useScope:w,scopeName:x})=>{const P=w(f)[`__scope${x}`];return{...p,...P}},{});return b.useMemo(()=>({[`__scope${s.scopeName}`]:m}),[m])}};return i.scopeName=s.scopeName,i}var Bo=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},G0=Zh[" useId ".trim().toString()]||(()=>{}),q0=0;function gu(r){const[s,i]=b.useState(G0());return Bo(()=>{i(l=>l??String(q0++))},[r]),r||(s?`radix-${s}`:"")}var Y0=Zh[" useInsertionEffect ".trim().toString()]||Bo;function X0({prop:r,defaultProp:s,onChange:i=()=>{},caller:l}){const[c,f,m]=Z0({defaultProp:s,onChange:i}),p=r!==void 0,w=p?r:c;{const N=b.useRef(r!==void 0);b.useEffect(()=>{const P=N.current;P!==p&&console.warn(`${l} is changing from ${P?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),N.current=p},[p,l])}const x=b.useCallback(N=>{var P;if(p){const j=J0(N)?N(r):N;j!==r&&((P=m.current)==null||P.call(m,j))}else f(N)},[p,r,f,m]);return[w,x]}function Z0({defaultProp:r,onChange:s}){const[i,l]=b.useState(r),c=b.useRef(i),f=b.useRef(s);return Y0(()=>{f.current=s},[s]),b.useEffect(()=>{var m;c.current!==i&&((m=f.current)==null||m.call(f,i),c.current=i)},[i,c]),[i,l,f]}function J0(r){return typeof r=="function"}function Mp(r){const s=e1(r),i=b.forwardRef((l,c)=>{const{children:f,...m}=l,p=b.Children.toArray(f),w=p.find(n1);if(w){const x=w.props.children,N=p.map(P=>P===w?b.Children.count(x)>1?b.Children.only(null):b.isValidElement(x)?x.props.children:null:P);return h.jsx(s,{...m,ref:c,children:b.isValidElement(x)?b.cloneElement(x,void 0,N):null})}return h.jsx(s,{...m,ref:c,children:f})});return i.displayName=`${r}.Slot`,i}function e1(r){const s=b.forwardRef((i,l)=>{const{children:c,...f}=i;if(b.isValidElement(c)){const m=s1(c),p=r1(f,c.props);return c.type!==b.Fragment&&(p.ref=l?Rp(l,m):m),b.cloneElement(c,p)}return b.Children.count(c)>1?b.Children.only(null):null});return s.displayName=`${r}.SlotClone`,s}var t1=Symbol("radix.slottable");function n1(r){return b.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===t1}function r1(r,s){const i={...s};for(const l in s){const c=r[l],f=s[l];/^on[A-Z]/.test(l)?c&&f?i[l]=(...p)=>{const w=f(...p);return c(...p),w}:c&&(i[l]=c):l==="style"?i[l]={...c,...f}:l==="className"&&(i[l]=[c,f].filter(Boolean).join(" "))}return{...r,...i}}function s1(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var o1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=o1.reduce((r,s)=>{const i=Mp(`Primitive.${s}`),l=b.forwardRef((c,f)=>{const{asChild:m,...p}=c,w=m?i:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(w,{...p,ref:f})});return l.displayName=`Primitive.${s}`,{...r,[s]:l}},{});function i1(r,s){r&&Pp.flushSync(()=>r.dispatchEvent(s))}function Wo(r){const s=b.useRef(r);return b.useEffect(()=>{s.current=r}),b.useMemo(()=>(...i)=>{var l;return(l=s.current)==null?void 0:l.call(s,...i)},[])}function a1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r);b.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return s.addEventListener("keydown",l,{capture:!0}),()=>s.removeEventListener("keydown",l,{capture:!0})},[i,s])}var l1="DismissableLayer",Vu="dismissableLayer.update",u1="dismissableLayer.pointerDownOutside",c1="dismissableLayer.focusOutside",Ch,Tp=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=b.forwardRef((r,s)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...w}=r,x=b.useContext(Tp),[N,P]=b.useState(null),j=(N==null?void 0:N.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=b.useState({}),L=Xr(s,ne=>P(ne)),E=Array.from(x.layers),[_]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(_),$=N?E.indexOf(N):-1,V=x.layersWithOutsidePointerEventsDisabled.size>0,I=$>=A,ee=h1(ne=>{const ie=ne.target,pe=[...x.branches].some(ge=>ge.contains(ie));!I||pe||(c==null||c(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},j),se=p1(ne=>{const ie=ne.target;[...x.branches].some(ge=>ge.contains(ie))||(f==null||f(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},j);return a1(ne=>{$===x.layers.size-1&&(l==null||l(ne),!ne.defaultPrevented&&p&&(ne.preventDefault(),p()))},j),b.useEffect(()=>{if(N)return i&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(Ch=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(N)),x.layers.add(N),Eh(),()=>{i&&x.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=Ch)}},[N,j,i,x]),b.useEffect(()=>()=>{N&&(x.layers.delete(N),x.layersWithOutsidePointerEventsDisabled.delete(N),Eh())},[N,x]),b.useEffect(()=>{const ne=()=>v({});return document.addEventListener(Vu,ne),()=>document.removeEventListener(Vu,ne)},[]),h.jsx(Fn.div,{...w,ref:L,style:{pointerEvents:V?I?"auto":"none":void 0,...r.style},onFocusCapture:wr(r.onFocusCapture,se.onFocusCapture),onBlurCapture:wr(r.onBlurCapture,se.onBlurCapture),onPointerDownCapture:wr(r.onPointerDownCapture,ee.onPointerDownCapture)})});_p.displayName=l1;var d1="DismissableLayerBranch",f1=b.forwardRef((r,s)=>{const i=b.useContext(Tp),l=b.useRef(null),c=Xr(s,l);return b.useEffect(()=>{const f=l.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),h.jsx(Fn.div,{...r,ref:c})});f1.displayName=d1;function h1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r),l=b.useRef(!1),c=b.useRef(()=>{});return b.useEffect(()=>{const f=p=>{if(p.target&&!l.current){let w=function(){Op(u1,i,x,{discrete:!0})};const x={originalEvent:p};p.pointerType==="touch"?(s.removeEventListener("click",c.current),c.current=w,s.addEventListener("click",c.current,{once:!0})):w()}else s.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{s.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),s.removeEventListener("pointerdown",f),s.removeEventListener("click",c.current)}},[s,i]),{onPointerDownCapture:()=>l.current=!0}}function p1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r),l=b.useRef(!1);return b.useEffect(()=>{const c=f=>{f.target&&!l.current&&Op(c1,i,{originalEvent:f},{discrete:!1})};return s.addEventListener("focusin",c),()=>s.removeEventListener("focusin",c)},[s,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Eh(){const r=new CustomEvent(Vu);document.dispatchEvent(r)}function Op(r,s,i,{discrete:l}){const c=i.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});s&&c.addEventListener(r,s,{once:!0}),l?i1(c,f):c.dispatchEvent(f)}var yu="focusScope.autoFocusOnMount",xu="focusScope.autoFocusOnUnmount",Nh={bubbles:!1,cancelable:!0},m1="FocusScope",zp=b.forwardRef((r,s)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...m}=r,[p,w]=b.useState(null),x=Wo(c),N=Wo(f),P=b.useRef(null),j=Xr(s,E=>w(E)),v=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(l){let E=function(V){if(v.paused||!p)return;const I=V.target;p.contains(I)?P.current=I:ur(P.current,{select:!0})},_=function(V){if(v.paused||!p)return;const I=V.relatedTarget;I!==null&&(p.contains(I)||ur(P.current,{select:!0}))},A=function(V){if(document.activeElement===document.body)for(const ee of V)ee.removedNodes.length>0&&ur(p)};document.addEventListener("focusin",E),document.addEventListener("focusout",_);const $=new MutationObserver(A);return p&&$.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",_),$.disconnect()}}},[l,p,v.paused]),b.useEffect(()=>{if(p){jh.add(v);const E=document.activeElement;if(!p.contains(E)){const A=new CustomEvent(yu,Nh);p.addEventListener(yu,x),p.dispatchEvent(A),A.defaultPrevented||(v1(S1(Ip(p)),{select:!0}),document.activeElement===E&&ur(p))}return()=>{p.removeEventListener(yu,x),setTimeout(()=>{const A=new CustomEvent(xu,Nh);p.addEventListener(xu,N),p.dispatchEvent(A),A.defaultPrevented||ur(E??document.body,{select:!0}),p.removeEventListener(xu,N),jh.remove(v)},0)}}},[p,x,N,v]);const L=b.useCallback(E=>{if(!i&&!l||v.paused)return;const _=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(_&&A){const $=E.currentTarget,[V,I]=g1($);V&&I?!E.shiftKey&&A===I?(E.preventDefault(),i&&ur(V,{select:!0})):E.shiftKey&&A===V&&(E.preventDefault(),i&&ur(I,{select:!0})):A===$&&E.preventDefault()}},[i,l,v.paused]);return h.jsx(Fn.div,{tabIndex:-1,...m,ref:j,onKeyDown:L})});zp.displayName=m1;function v1(r,{select:s=!1}={}){const i=document.activeElement;for(const l of r)if(ur(l,{select:s}),document.activeElement!==i)return}function g1(r){const s=Ip(r),i=Ph(s,r),l=Ph(s.reverse(),r);return[i,l]}function Ip(r){const s=[],i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)s.push(i.currentNode);return s}function Ph(r,s){for(const i of r)if(!y1(i,{upTo:s}))return i}function y1(r,{upTo:s}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(s!==void 0&&r===s)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function x1(r){return r instanceof HTMLInputElement&&"select"in r}function ur(r,{select:s=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&x1(r)&&s&&r.select()}}var jh=w1();function w1(){let r=[];return{add(s){const i=r[0];s!==i&&(i==null||i.pause()),r=Rh(r,s),r.unshift(s)},remove(s){var i;r=Rh(r,s),(i=r[0])==null||i.resume()}}}function Rh(r,s){const i=[...r],l=i.indexOf(s);return l!==-1&&i.splice(l,1),i}function S1(r){return r.filter(s=>s.tagName!=="A")}var b1="Portal",Dp=b.forwardRef((r,s)=>{var p;const{container:i,...l}=r,[c,f]=b.useState(!1);Bo(()=>f(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?jp.createPortal(h.jsx(Fn.div,{...l,ref:s}),m):null});Dp.displayName=b1;function k1(r,s){return b.useReducer((i,l)=>s[i][l]??i,r)}var Ea=r=>{const{present:s,children:i}=r,l=C1(s),c=typeof i=="function"?i({present:l.isPresent}):b.Children.only(i),f=Xr(l.ref,E1(c));return typeof i=="function"||l.isPresent?b.cloneElement(c,{ref:f}):null};Ea.displayName="Presence";function C1(r){const[s,i]=b.useState(),l=b.useRef(null),c=b.useRef(r),f=b.useRef("none"),m=r?"mounted":"unmounted",[p,w]=k1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const x=ha(l.current);f.current=p==="mounted"?x:"none"},[p]),Bo(()=>{const x=l.current,N=c.current;if(N!==r){const j=f.current,v=ha(x);r?w("MOUNT"):v==="none"||(x==null?void 0:x.display)==="none"?w("UNMOUNT"):w(N&&j!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,w]),Bo(()=>{if(s){let x;const N=s.ownerDocument.defaultView??window,P=v=>{const E=ha(l.current).includes(CSS.escape(v.animationName));if(v.target===s&&E&&(w("ANIMATION_END"),!c.current)){const _=s.style.animationFillMode;s.style.animationFillMode="forwards",x=N.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=_)})}},j=v=>{v.target===s&&(f.current=ha(l.current))};return s.addEventListener("animationstart",j),s.addEventListener("animationcancel",P),s.addEventListener("animationend",P),()=>{N.clearTimeout(x),s.removeEventListener("animationstart",j),s.removeEventListener("animationcancel",P),s.removeEventListener("animationend",P)}}else w("ANIMATION_END")},[s,w]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:b.useCallback(x=>{l.current=x?getComputedStyle(x):null,i(x)},[])}}function ha(r){return(r==null?void 0:r.animationName)||"none"}function E1(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var wu=0;function N1(){b.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Mh()),document.body.insertAdjacentElement("beforeend",r[1]??Mh()),wu++,()=>{wu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),wu--}},[])}function Mh(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var wn=function(){return wn=Object.assign||function(s){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},wn.apply(this,arguments)};function Lp(r,s){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&s.indexOf(l)<0&&(i[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)s.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function P1(r,s,i){if(i||arguments.length===2)for(var l=0,c=s.length,f;l<c;l++)(f||!(l in s))&&(f||(f=Array.prototype.slice.call(s,0,l)),f[l]=s[l]);return r.concat(f||Array.prototype.slice.call(s))}var wa="right-scroll-bar-position",Sa="width-before-scroll-bar",j1="with-scroll-bars-hidden",R1="--removed-body-scroll-bar-size";function Su(r,s){return typeof r=="function"?r(s):r&&(r.current=s),r}function M1(r,s){var i=b.useState(function(){return{value:r,callback:s,facade:{get current(){return i.value},set current(l){var c=i.value;c!==l&&(i.value=l,i.callback(l,c))}}}})[0];return i.callback=s,i.facade}var T1=typeof window<"u"?b.useLayoutEffect:b.useEffect,Th=new WeakMap;function _1(r,s){var i=M1(null,function(l){return r.forEach(function(c){return Su(c,l)})});return T1(function(){var l=Th.get(i);if(l){var c=new Set(l),f=new Set(r),m=i.current;c.forEach(function(p){f.has(p)||Su(p,null)}),f.forEach(function(p){c.has(p)||Su(p,m)})}Th.set(i,r)},[r]),i}function O1(r){return r}function z1(r,s){s===void 0&&(s=O1);var i=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:r},useMedium:function(f){var m=s(f,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(f){for(l=!0;i.length;){var m=i;i=[],m.forEach(f)}i={push:function(p){return f(p)},filter:function(){return i}}},assignMedium:function(f){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(f),m=i}var w=function(){var N=m;m=[],N.forEach(f)},x=function(){return Promise.resolve().then(w)};x(),i={push:function(N){m.push(N),x()},filter:function(N){return m=m.filter(N),i}}}};return c}function I1(r){r===void 0&&(r={});var s=z1(null);return s.options=wn({async:!0,ssr:!1},r),s}var Fp=function(r){var s=r.sideCar,i=Lp(r,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=s.read();if(!l)throw new Error("Sidecar medium not found");return b.createElement(l,wn({},i))};Fp.isSideCarExport=!0;function D1(r,s){return r.useMedium(s),Fp}var Ap=I1(),bu=function(){},Na=b.forwardRef(function(r,s){var i=b.useRef(null),l=b.useState({onScrollCapture:bu,onWheelCapture:bu,onTouchMoveCapture:bu}),c=l[0],f=l[1],m=r.forwardProps,p=r.children,w=r.className,x=r.removeScrollBar,N=r.enabled,P=r.shards,j=r.sideCar,v=r.noRelative,L=r.noIsolation,E=r.inert,_=r.allowPinchZoom,A=r.as,$=A===void 0?"div":A,V=r.gapMode,I=Lp(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=j,se=_1([i,s]),ne=wn(wn({},I),c);return b.createElement(b.Fragment,null,N&&b.createElement(ee,{sideCar:Ap,removeScrollBar:x,shards:P,noRelative:v,noIsolation:L,inert:E,setCallbacks:f,allowPinchZoom:!!_,lockRef:i,gapMode:V}),m?b.cloneElement(b.Children.only(p),wn(wn({},ne),{ref:se})):b.createElement($,wn({},ne,{className:w,ref:se}),p))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Na.classNames={fullWidth:Sa,zeroRight:wa};var L1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function F1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var s=L1();return s&&r.setAttribute("nonce",s),r}function A1(r,s){r.styleSheet?r.styleSheet.cssText=s:r.appendChild(document.createTextNode(s))}function U1(r){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(r)}var B1=function(){var r=0,s=null;return{add:function(i){r==0&&(s=F1())&&(A1(s,i),U1(s)),r++},remove:function(){r--,!r&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},W1=function(){var r=B1();return function(s,i){b.useEffect(function(){return r.add(s),function(){r.remove()}},[s&&i])}},Up=function(){var r=W1(),s=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return s},H1={left:0,top:0,right:0,gap:0},ku=function(r){return parseInt(r||"",10)||0},Q1=function(r){var s=window.getComputedStyle(document.body),i=s[r==="padding"?"paddingLeft":"marginLeft"],l=s[r==="padding"?"paddingTop":"marginTop"],c=s[r==="padding"?"paddingRight":"marginRight"];return[ku(i),ku(l),ku(c)]},V1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return H1;var s=Q1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,l-i+s[2]-s[0])}},K1=Up(),_s="data-scroll-locked",$1=function(r,s,i,l){var c=r.left,f=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
197
- .`.concat(j1,` {
198
- overflow: hidden `).concat(l,`;
199
- padding-right: `).concat(p,"px ").concat(l,`;
200
- }
201
- body[`).concat(_s,`] {
202
- overflow: hidden `).concat(l,`;
203
- overscroll-behavior: contain;
204
- `).concat([s&&"position: relative ".concat(l,";"),i==="margin"&&`
205
- padding-left: `.concat(c,`px;
206
- padding-top: `).concat(f,`px;
207
- padding-right: `).concat(m,`px;
208
- margin-left:0;
209
- margin-top:0;
210
- margin-right: `).concat(p,"px ").concat(l,`;
211
- `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
212
- }
213
-
214
- .`).concat(wa,` {
215
- right: `).concat(p,"px ").concat(l,`;
216
- }
217
-
218
- .`).concat(Sa,` {
219
- margin-right: `).concat(p,"px ").concat(l,`;
220
- }
221
-
222
- .`).concat(wa," .").concat(wa,` {
223
- right: 0 `).concat(l,`;
224
- }
225
-
226
- .`).concat(Sa," .").concat(Sa,` {
227
- margin-right: 0 `).concat(l,`;
228
- }
229
-
230
- body[`).concat(_s,`] {
231
- `).concat(R1,": ").concat(p,`px;
232
- }
233
- `)},_h=function(){var r=parseInt(document.body.getAttribute(_s)||"0",10);return isFinite(r)?r:0},G1=function(){b.useEffect(function(){return document.body.setAttribute(_s,(_h()+1).toString()),function(){var r=_h()-1;r<=0?document.body.removeAttribute(_s):document.body.setAttribute(_s,r.toString())}},[])},q1=function(r){var s=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;G1();var f=b.useMemo(function(){return V1(c)},[c]);return b.createElement(K1,{styles:$1(f,!s,c,i?"":"!important")})},Ku=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return Ku=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{Ku=!1}var Ps=Ku?{passive:!1}:!1,Y1=function(r){return r.tagName==="TEXTAREA"},Bp=function(r,s){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[s]!=="hidden"&&!(i.overflowY===i.overflowX&&!Y1(r)&&i[s]==="visible")},X1=function(r){return Bp(r,"overflowY")},Z1=function(r){return Bp(r,"overflowX")},Oh=function(r,s){var i=s.ownerDocument,l=s;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Wp(r,l);if(c){var f=Hp(r,l),m=f[1],p=f[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},J1=function(r){var s=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[s,i,l]},ex=function(r){var s=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[s,i,l]},Wp=function(r,s){return r==="v"?X1(s):Z1(s)},Hp=function(r,s){return r==="v"?J1(s):ex(s)},tx=function(r,s){return r==="h"&&s==="rtl"?-1:1},nx=function(r,s,i,l,c){var f=tx(r,window.getComputedStyle(s).direction),m=f*l,p=i.target,w=s.contains(p),x=!1,N=m>0,P=0,j=0;do{if(!p)break;var v=Hp(r,p),L=v[0],E=v[1],_=v[2],A=E-_-f*L;(L||A)&&Wp(r,p)&&(P+=A,j+=L);var $=p.parentNode;p=$&&$.nodeType===Node.DOCUMENT_FRAGMENT_NODE?$.host:$}while(!w&&p!==document.body||w&&(s.contains(p)||s===p));return(N&&Math.abs(P)<1||!N&&Math.abs(j)<1)&&(x=!0),x},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},zh=function(r){return[r.deltaX,r.deltaY]},Ih=function(r){return r&&"current"in r?r.current:r},rx=function(r,s){return r[0]===s[0]&&r[1]===s[1]},sx=function(r){return`
234
- .block-interactivity-`.concat(r,` {pointer-events: none;}
235
- .allow-interactivity-`).concat(r,` {pointer-events: all;}
236
- `)},ox=0,js=[];function ix(r){var s=b.useRef([]),i=b.useRef([0,0]),l=b.useRef(),c=b.useState(ox++)[0],f=b.useState(Up)[0],m=b.useRef(r);b.useEffect(function(){m.current=r},[r]),b.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var E=P1([r.lockRef.current],(r.shards||[]).map(Ih),!0).filter(Boolean);return E.forEach(function(_){return _.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=b.useCallback(function(E,_){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=ma(E),$=i.current,V="deltaX"in E?E.deltaX:$[0]-A[0],I="deltaY"in E?E.deltaY:$[1]-A[1],ee,se=E.target,ne=Math.abs(V)>Math.abs(I)?"h":"v";if("touches"in E&&ne==="h"&&se.type==="range")return!1;var ie=window.getSelection(),pe=ie&&ie.anchorNode,ge=pe?pe===se||pe.contains(se):!1;if(ge)return!1;var Ne=Oh(ne,se);if(!Ne)return!0;if(Ne?ee=ne:(ee=ne==="v"?"h":"v",Ne=Oh(ne,se)),!Ne)return!1;if(!l.current&&"changedTouches"in E&&(V||I)&&(l.current=ee),!ee)return!0;var ae=l.current||ee;return nx(ae,_,E,ae==="h"?V:I)},[]),w=b.useCallback(function(E){var _=E;if(!(!js.length||js[js.length-1]!==f)){var A="deltaY"in _?zh(_):ma(_),$=s.current.filter(function(ee){return ee.name===_.type&&(ee.target===_.target||_.target===ee.shadowParent)&&rx(ee.delta,A)})[0];if($&&$.should){_.cancelable&&_.preventDefault();return}if(!$){var V=(m.current.shards||[]).map(Ih).filter(Boolean).filter(function(ee){return ee.contains(_.target)}),I=V.length>0?p(_,V[0]):!m.current.noIsolation;I&&_.cancelable&&_.preventDefault()}}},[]),x=b.useCallback(function(E,_,A,$){var V={name:E,delta:_,target:A,should:$,shadowParent:ax(A)};s.current.push(V),setTimeout(function(){s.current=s.current.filter(function(I){return I!==V})},1)},[]),N=b.useCallback(function(E){i.current=ma(E),l.current=void 0},[]),P=b.useCallback(function(E){x(E.type,zh(E),E.target,p(E,r.lockRef.current))},[]),j=b.useCallback(function(E){x(E.type,ma(E),E.target,p(E,r.lockRef.current))},[]);b.useEffect(function(){return js.push(f),r.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:j}),document.addEventListener("wheel",w,Ps),document.addEventListener("touchmove",w,Ps),document.addEventListener("touchstart",N,Ps),function(){js=js.filter(function(E){return E!==f}),document.removeEventListener("wheel",w,Ps),document.removeEventListener("touchmove",w,Ps),document.removeEventListener("touchstart",N,Ps)}},[]);var v=r.removeScrollBar,L=r.inert;return b.createElement(b.Fragment,null,L?b.createElement(f,{styles:sx(c)}):null,v?b.createElement(q1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function ax(r){for(var s=null;r!==null;)r instanceof ShadowRoot&&(s=r.host,r=r.host),r=r.parentNode;return s}const lx=D1(Ap,ix);var Qp=b.forwardRef(function(r,s){return b.createElement(Na,wn({},r,{ref:s,sideCar:lx}))});Qp.classNames=Na.classNames;var ux=function(r){if(typeof document>"u")return null;var s=Array.isArray(r)?r[0]:r;return s.ownerDocument.body},Rs=new WeakMap,va=new WeakMap,ga={},Cu=0,Vp=function(r){return r&&(r.host||Vp(r.parentNode))},cx=function(r,s){return s.map(function(i){if(r.contains(i))return i;var l=Vp(i);return l&&r.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",r,". Doing nothing"),null)}).filter(function(i){return!!i})},dx=function(r,s,i,l){var c=cx(s,Array.isArray(r)?r:[r]);ga[i]||(ga[i]=new WeakMap);var f=ga[i],m=[],p=new Set,w=new Set(c),x=function(P){!P||p.has(P)||(p.add(P),x(P.parentNode))};c.forEach(x);var N=function(P){!P||w.has(P)||Array.prototype.forEach.call(P.children,function(j){if(p.has(j))N(j);else try{var v=j.getAttribute(l),L=v!==null&&v!=="false",E=(Rs.get(j)||0)+1,_=(f.get(j)||0)+1;Rs.set(j,E),f.set(j,_),m.push(j),E===1&&L&&va.set(j,!0),_===1&&j.setAttribute(i,"true"),L||j.setAttribute(l,"true")}catch(A){console.error("aria-hidden: cannot operate on ",j,A)}})};return N(s),p.clear(),Cu++,function(){m.forEach(function(P){var j=Rs.get(P)-1,v=f.get(P)-1;Rs.set(P,j),f.set(P,v),j||(va.has(P)||P.removeAttribute(l),va.delete(P)),v||P.removeAttribute(i)}),Cu--,Cu||(Rs=new WeakMap,Rs=new WeakMap,va=new WeakMap,ga={})}},fx=function(r,s,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=ux(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),dx(l,c,i,"aria-hidden")):function(){return null}},Pa="Dialog",[Kp]=K0(Pa),[hx,rn]=Kp(Pa),$p=r=>{const{__scopeDialog:s,children:i,open:l,defaultOpen:c,onOpenChange:f,modal:m=!0}=r,p=b.useRef(null),w=b.useRef(null),[x,N]=X0({prop:l,defaultProp:c??!1,onChange:f,caller:Pa});return h.jsx(hx,{scope:s,triggerRef:p,contentRef:w,contentId:gu(),titleId:gu(),descriptionId:gu(),open:x,onOpenChange:N,onOpenToggle:b.useCallback(()=>N(P=>!P),[N]),modal:m,children:i})};$p.displayName=Pa;var Gp="DialogTrigger",px=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=rn(Gp,i),f=Xr(s,c.triggerRef);return h.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":ic(c.open),...l,ref:f,onClick:wr(r.onClick,c.onOpenToggle)})});px.displayName=Gp;var sc="DialogPortal",[mx,qp]=Kp(sc,{forceMount:void 0}),Yp=r=>{const{__scopeDialog:s,forceMount:i,children:l,container:c}=r,f=rn(sc,s);return h.jsx(mx,{scope:s,forceMount:i,children:b.Children.map(l,m=>h.jsx(Ea,{present:i||f.open,children:h.jsx(Dp,{asChild:!0,container:c,children:m})}))})};Yp.displayName=sc;var Ca="DialogOverlay",Xp=b.forwardRef((r,s)=>{const i=qp(Ca,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=rn(Ca,r.__scopeDialog);return f.modal?h.jsx(Ea,{present:l||f.open,children:h.jsx(gx,{...c,ref:s})}):null});Xp.displayName=Ca;var vx=Mp("DialogOverlay.RemoveScroll"),gx=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=rn(Ca,i);return h.jsx(Qp,{as:vx,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Fn.div,{"data-state":ic(c.open),...l,ref:s,style:{pointerEvents:"auto",...l.style}})})}),Gr="DialogContent",Zp=b.forwardRef((r,s)=>{const i=qp(Gr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=rn(Gr,r.__scopeDialog);return h.jsx(Ea,{present:l||f.open,children:f.modal?h.jsx(yx,{...c,ref:s}):h.jsx(xx,{...c,ref:s})})});Zp.displayName=Gr;var yx=b.forwardRef((r,s)=>{const i=rn(Gr,r.__scopeDialog),l=b.useRef(null),c=Xr(s,i.contentRef,l);return b.useEffect(()=>{const f=l.current;if(f)return fx(f)},[]),h.jsx(Jp,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wr(r.onCloseAutoFocus,f=>{var m;f.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:wr(r.onPointerDownOutside,f=>{const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&f.preventDefault()}),onFocusOutside:wr(r.onFocusOutside,f=>f.preventDefault())})}),xx=b.forwardRef((r,s)=>{const i=rn(Gr,r.__scopeDialog),l=b.useRef(!1),c=b.useRef(!1);return h.jsx(Jp,{...r,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,f),f.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),f.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:f=>{var w,x;(w=r.onInteractOutside)==null||w.call(r,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=f.target;((x=i.triggerRef.current)==null?void 0:x.contains(m))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),Jp=b.forwardRef((r,s)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,...m}=r,p=rn(Gr,i),w=b.useRef(null),x=Xr(s,w);return N1(),h.jsxs(h.Fragment,{children:[h.jsx(zp,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:f,children:h.jsx(_p,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":ic(p.open),...m,ref:x,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(wx,{titleId:p.titleId}),h.jsx(bx,{contentRef:w,descriptionId:p.descriptionId})]})]})}),oc="DialogTitle",em=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=rn(oc,i);return h.jsx(Fn.h2,{id:c.titleId,...l,ref:s})});em.displayName=oc;var tm="DialogDescription",nm=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=rn(tm,i);return h.jsx(Fn.p,{id:c.descriptionId,...l,ref:s})});nm.displayName=tm;var rm="DialogClose",sm=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=rn(rm,i);return h.jsx(Fn.button,{type:"button",...l,ref:s,onClick:wr(r.onClick,()=>c.onOpenChange(!1))})});sm.displayName=rm;function ic(r){return r?"open":"closed"}var om="DialogTitleWarning",[Wx,im]=V0(om,{contentName:Gr,titleName:oc,docsSlug:"dialog"}),wx=({titleId:r})=>{const s=im(om),i=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users.
237
-
238
- If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
239
-
240
- For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return b.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},Sx="DialogDescriptionWarning",bx=({contentRef:r,descriptionId:s})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${im(Sx).contentName}}.`;return b.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");s&&c&&(document.getElementById(s)||console.warn(l))},[l,r,s]),null},kx=$p,Cx=Yp,am=Xp,lm=Zp,um=em,cm=nm,Ex=sm;const dm=kx,Nx=Cx,fm=b.forwardRef(({className:r,...s},i)=>h.jsx(am,{ref:i,className:Me("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s}));fm.displayName=am.displayName;const ac=b.forwardRef(({className:r,children:s,...i},l)=>h.jsxs(Nx,{children:[h.jsx(fm,{}),h.jsxs(lm,{ref:l,className:Me("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[hsl(40,20%,90%)] bg-white p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",r),...i,children:[s,h.jsxs(Ex,{className:"absolute right-4 top-4 rounded-lg opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[hsl(25,95%,53%)] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-[hsl(40,20%,96%)] data-[state=open]:text-[hsl(30,8%,45%)]",children:[h.jsx(Np,{className:"h-4 w-4 text-[hsl(30,8%,45%)]"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ac.displayName=lm.displayName;const lc=({className:r,...s})=>h.jsx("div",{className:Me("flex flex-col space-y-1.5 text-center sm:text-left",r),...s});lc.displayName="DialogHeader";const uc=({className:r,...s})=>h.jsx("div",{className:Me("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2",r),...s});uc.displayName="DialogFooter";const cc=b.forwardRef(({className:r,...s},i)=>h.jsx(um,{ref:i,className:Me("text-lg font-semibold leading-none tracking-tight text-[hsl(30,20%,12%)]",r),...s}));cc.displayName=um.displayName;const dc=b.forwardRef(({className:r,...s},i)=>h.jsx(cm,{ref:i,className:Me("text-sm text-[hsl(30,8%,45%)]",r),...s}));dc.displayName=cm.displayName;function Px({maskedValue:r,isSet:s,className:i,...l}){const[c,f]=b.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(Wt,{type:c?"text":"password",className:Me("pr-20",i),placeholder:s?`${K("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(s||r)&&h.jsx(Ht,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(!c),children:c?h.jsx(By,{className:"h-4 w-4"}):h.jsx(Wy,{className:"h-4 w-4"})})})]})}function jx({value:r,onChange:s,className:i}){const l=r?Object.entries(r):[],c=(p,w,x)=>{const N=[...l];N[p]=[w,x],s(Object.fromEntries(N))},f=()=>{s({...r,"":""})},m=p=>{const w=l.filter((x,N)=>N!==p);s(Object.fromEntries(w))};return h.jsxs("div",{className:Me("space-y-2",i),children:[l.map(([p,w],x)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Wt,{type:"text",value:p,onChange:N=>c(x,N.target.value,w),placeholder:K("headerName"),className:"flex-1"}),h.jsx(Wt,{type:"text",value:w,onChange:N=>c(x,p,N.target.value),placeholder:K("headerValue"),className:"flex-1"}),h.jsx(Ht,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(x),children:h.jsx(Xy,{className:"h-4 w-4 text-red-500"})})]},x)),h.jsxs(Ht,{type:"button",variant:"outline",size:"sm",onClick:f,children:[h.jsx(Cp,{className:"h-4 w-4 mr-2"}),K("add")]})]})}function Rx(){const{providerModal:r,closeProviderModal:s}=qr(),{data:i}=Gs(),{data:l}=rc(),c=L0(),[f,m]=b.useState(""),[p,w]=b.useState(""),[x,N]=b.useState(null),P=r.provider,j=l==null?void 0:l.providers.find(E=>E.name===P),v=P?i==null?void 0:i.providers[P]:null;b.useEffect(()=>{v&&(w(v.apiBase||(j==null?void 0:j.defaultApiBase)||""),N(v.extraHeaders||null),m(""))},[v,j]);const L=E=>{E.preventDefault();const _={};f!==""&&(_.apiKey=f),p&&p!==(j==null?void 0:j.defaultApiBase)&&(_.apiBase=p),x&&Object.keys(x).length>0&&(_.extraHeaders=x),P&&c.mutate({provider:P,data:_},{onSuccess:()=>s()})};return h.jsx(dm,{open:r.open,onOpenChange:s,children:h.jsxs(ac,{className:"sm:max-w-[500px]",children:[h.jsx(lc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-gradient-to-br from-orange-400 to-amber-500 flex items-center justify-center",children:h.jsx(Uu,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(cc,{children:(j==null?void 0:j.displayName)||P}),h.jsx(dc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:L,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(nn,{htmlFor:"apiKey",className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(Uu,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),K("apiKey")]}),h.jsx(Px,{id:"apiKey",value:f,isSet:v==null?void 0:v.apiKeySet,onChange:E=>m(E.target.value),placeholder:v!=null&&v.apiKeySet?K("apiKeySet"):"Enter API Key",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(nn,{htmlFor:"apiBase",className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(Sp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),K("apiBase")]}),h.jsx(Wt,{id:"apiBase",type:"text",value:p,onChange:E=>w(E.target.value),placeholder:(j==null?void 0:j.defaultApiBase)||"https://api.example.com",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(nn,{className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(bp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),K("extraHeaders")]}),h.jsx(jx,{value:x,onChange:N})]}),h.jsxs(uc,{className:"pt-4",children:[h.jsx(Ht,{type:"button",variant:"outline",onClick:s,className:"rounded-xl border-[hsl(40,20%,90%)] bg-white hover:bg-[hsl(40,20%,96%)]",children:K("cancel")}),h.jsx(Ht,{type:"submit",disabled:c.isPending,className:"rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:c.isPending?"Saving...":K("save")})]})]})]})})}function hm({tabs:r,activeTab:s,onChange:i,className:l}){return h.jsx("div",{className:Me("flex items-center gap-8 border-b border-[hsl(40,10%,94%)] mb-8",l),children:r.map(c=>{const f=s===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Me("relative pb-4 text-[15px] font-semibold transition-all duration-200 flex items-center gap-2",f?"text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,55%)] hover:text-[hsl(30,15%,10%)]"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-[hsl(30,8%,65%)]",children:c.count.toLocaleString()}),f&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-[hsl(30,15%,10%)] animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function Mx(){const{data:r}=Gs(),{data:s}=rc(),{openProviderModal:i}=qr(),[l,c]=b.useState("featured");if(!r||!s)return h.jsx("div",{className:"p-8",children:"Loading..."});const f=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(m=>r.providers[m].apiKeySet).length:0},{id:"all",label:"All Providers"}];return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"AI Providers"})}),h.jsx(hm,{tabs:f,activeTab:l==="featured"?"all":l,onChange:c}),h.jsx("div",{className:"space-y-1",children:(l==="installed"?s.providers.filter(m=>{var p;return(p=r.providers[m.name])==null?void 0:p.apiKeySet}):s.providers).map(m=>{const p=r.providers[m.name],w=p==null?void 0:p.apiKeySet;return h.jsxs("div",{className:"group flex items-center gap-5 p-3 rounded-2xl hover:bg-[hsl(40,10%,96%)] transition-all cursor-pointer border border-transparent hover:border-[hsl(40,10%,94%)]",onClick:()=>i(m.name),children:[h.jsx("div",{className:"h-10 w-10 flex items-center justify-center bg-transparent border border-[hsl(40,10%,92%)] rounded-xl group-hover:scale-105 transition-transform overflow-hidden",children:h.jsx("span",{className:"text-xl font-bold uppercase text-[hsl(30,15%,10%)]",children:m.name[0]})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:"text-[14px] font-bold text-[hsl(30,15%,10%)] truncate",children:m.displayName||m.name}),h.jsx("p",{className:"text-[12px] text-[hsl(30,8%,55%)] truncate leading-tight",children:m.name==="openai"?"TypeScript authentication framework integration guide":"Configure AI services for your agents"})]}),h.jsxs("div",{className:"flex items-center gap-4",children:[w?h.jsxs("div",{className:"flex items-center gap-1.5 text-emerald-600",children:[h.jsx(Fy,{className:"h-4 w-4"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)] hover:text-[hsl(30,15%,10%)] group-hover:opacity-100 opacity-0 transition-opacity",children:h.jsx(Cp,{className:"h-4 w-4"})}),h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)]",children:h.jsx(wp,{className:"h-4 w-4"})})]})]},m.name)})}),h.jsx(Rx,{})]})}const fc=b.forwardRef(({className:r,checked:s=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":s,ref:c,className:Me("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",s?"bg-primary":"bg-input",r),onClick:()=>i==null?void 0:i(!s),...l,children:h.jsx("span",{className:Me("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",s?"translate-x-5":"translate-x-0")})}));fc.displayName="Switch";function Tx({value:r,onChange:s,className:i,placeholder:l="Type and press Enter..."}){const[c,f]=b.useState(""),m=w=>{w.key==="Enter"&&c.trim()?(w.preventDefault(),s([...r,c.trim()]),f("")):w.key==="Backspace"&&!c&&r.length>0&&s(r.slice(0,-1))},p=w=>{s(r.filter((x,N)=>N!==w))};return h.jsxs("div",{className:Me("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((w,x)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[w,h.jsx("button",{type:"button",onClick:()=>p(x),className:"hover:text-red-300 transition-colors",children:h.jsx(Np,{className:"h-3 w-3"})})]},x)),h.jsx("input",{type:"text",value:c,onChange:w=>f(w.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const _x=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Uu,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("url")||r.includes("host")?h.jsx(Sp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("email")||r.includes("mail")?h.jsx(tc,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("id")||r.includes("from")?h.jsx(bp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r==="enabled"||r==="consentGranted"?h.jsx(Yy,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):h.jsx(Ep,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),Ox={telegram:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"token",type:"password",label:K("botToken")},{name:"allowFrom",type:"tags",label:K("allowFrom")},{name:"proxy",type:"text",label:K("proxy")}],discord:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"token",type:"password",label:K("botToken")},{name:"allowFrom",type:"tags",label:K("allowFrom")},{name:"gatewayUrl",type:"text",label:K("gatewayUrl")},{name:"intents",type:"number",label:K("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"bridgeUrl",type:"text",label:K("bridgeUrl")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"appId",type:"text",label:K("appId")},{name:"appSecret",type:"password",label:K("appSecret")},{name:"encryptKey",type:"password",label:K("encryptKey")},{name:"verificationToken",type:"password",label:K("verificationToken")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"clientId",type:"text",label:K("clientId")},{name:"clientSecret",type:"password",label:K("clientSecret")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"mode",type:"text",label:K("mode")},{name:"webhookPath",type:"text",label:K("webhookPath")},{name:"botToken",type:"password",label:K("botToken")},{name:"appToken",type:"password",label:K("appToken")}],email:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"consentGranted",type:"boolean",label:K("consentGranted")},{name:"imapHost",type:"text",label:K("imapHost")},{name:"imapPort",type:"number",label:K("imapPort")},{name:"imapUsername",type:"text",label:K("imapUsername")},{name:"imapPassword",type:"password",label:K("imapPassword")},{name:"fromAddress",type:"email",label:K("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"baseUrl",type:"text",label:K("baseUrl")},{name:"clawToken",type:"password",label:K("clawToken")},{name:"agentUserId",type:"text",label:K("agentUserId")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"appId",type:"text",label:K("appId")},{name:"secret",type:"password",label:K("secret")},{name:"allowFrom",type:"tags",label:K("allowFrom")}]},Dh={telegram:xa,slack:xa,email:tc,default:xa},Lh={telegram:"from-sky-400 to-blue-500",slack:"from-purple-400 to-indigo-500",email:"from-rose-400 to-pink-500",default:"from-slate-400 to-gray-500"};function zx(){const{channelModal:r,closeChannelModal:s}=qr(),{data:i}=Gs(),l=F0(),[c,f]=b.useState({}),m=r.channel,p=m?i==null?void 0:i.channels[m]:null,w=m?Ox[m]:[];b.useEffect(()=>{f(p?{...p}:{})},[p,m]);const x=(v,L)=>{f(E=>({...E,[v]:L}))},N=v=>{v.preventDefault(),m&&l.mutate({channel:m,data:c},{onSuccess:()=>s()})},P=Dh[m||""]||Dh.default,j=Lh[m||""]||Lh.default;return h.jsx(dm,{open:r.open,onOpenChange:s,children:h.jsxs(ac,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(lc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${j} flex items-center justify-center`,children:h.jsx(P,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(cc,{className:"capitalize",children:m}),h.jsx(dc,{children:"Configure message channel parameters"})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2",children:h.jsxs("form",{onSubmit:N,className:"space-y-5 pr-2",children:[w.map(v=>h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(nn,{htmlFor:v.name,className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[_x(v.name),v.label]}),v.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-[hsl(40,20%,96%)]",children:[h.jsx("span",{className:"text-sm text-[hsl(30,8%,45%)]",children:c[v.name]?K("enabled"):K("disabled")}),h.jsx(fc,{id:v.name,checked:c[v.name]||!1,onCheckedChange:L=>x(v.name,L),className:"data-[state=checked]:bg-emerald-500"})]}),(v.type==="text"||v.type==="email")&&h.jsx(Wt,{id:v.name,type:v.type,value:c[v.name]||"",onChange:L=>x(v.name,L.target.value),className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),v.type==="password"&&h.jsx(Wt,{id:v.name,type:"password",value:c[v.name]||"",onChange:L=>x(v.name,L.target.value),placeholder:"Leave blank to keep unchanged",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),v.type==="number"&&h.jsx(Wt,{id:v.name,type:"number",value:c[v.name]||0,onChange:L=>x(v.name,parseInt(L.target.value)||0),className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),v.type==="tags"&&h.jsx(Tx,{value:c[v.name]||[],onChange:L=>x(v.name,L)})]},v.name)),h.jsxs(uc,{className:"pt-4",children:[h.jsx(Ht,{type:"button",variant:"outline",onClick:s,className:"rounded-xl border-[hsl(40,20%,90%)] bg-white hover:bg-[hsl(40,20%,96%)]",children:K("cancel")}),h.jsx(Ht,{type:"submit",disabled:l.isPending,className:"rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:l.isPending?"Saving...":K("save")})]})]})})]})})}const Fh={telegram:xa,slack:Gy,email:tc,webhook:Ly,default:kp};function Ix(){const{data:r}=Gs(),{data:s}=rc(),{openChannelModal:i}=qr(),[l,c]=b.useState("active");if(!r||!s)return h.jsx("div",{className:"p-8 text-[hsl(30,8%,55%)]",children:"Loading channels..."});const f=[{id:"active",label:"Enabled",count:s.channels.filter(m=>{var p;return(p=r.channels[m.name])==null?void 0:p.enabled}).length},{id:"all",label:"All Channels",count:s.channels.length}];return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"Message Channels"})}),h.jsx(hm,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"space-y-1",children:s.channels.map((m,p)=>{const w=r.channels[m.name],x=(w==null?void 0:w.enabled)||!1,N=Fh[m.name]||Fh.default;return(l==="all"||x)&&h.jsxs("div",{className:"group flex items-center gap-5 p-3 rounded-2xl hover:bg-[hsl(40,10%,96%)] transition-all cursor-pointer border border-transparent hover:border-[hsl(40,10%,94%)]",onClick:()=>i(m.name),children:[h.jsx("div",{className:Me("h-10 w-10 flex items-center justify-center rounded-xl transition-all group-hover:scale-105",x?"bg-[hsl(30,15%,10%)] text-white":"bg-transparent border border-[hsl(40,10%,92%)] text-[hsl(30,8%,55%)]"),children:h.jsx(N,{className:"h-5 w-5"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-[14px] font-bold text-[hsl(30,15%,10%)] truncate",children:m.displayName||m.name}),x&&h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)]"})]}),h.jsx("p",{className:"text-[12px] text-[hsl(30,8%,55%)] truncate leading-tight mt-0.5",children:x?"Channel is active and processing messages":"Click to configure this communication channel"})]}),h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx(Ht,{variant:"ghost",size:"sm",className:"rounded-xl bg-[hsl(40,10%,92%)] hover:bg-[hsl(40,10%,90%)] text-[hsl(30,10%,35%)] text-[11px] font-bold px-4 h-8",onClick:P=>{P.stopPropagation(),i(m.name)},children:"Configure"}),h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)]",children:h.jsx(wp,{className:"h-4 w-4"})})]})]},m.name)})}),h.jsx(zx,{})]})}function Dx(){const{data:r,isLoading:s}=Gs(),i=A0(),l=U0(),[c,f]=b.useState(!1),[m,p]=b.useState("127.0.0.1"),[w,x]=b.useState(18791);b.useEffect(()=>{r!=null&&r.ui&&(f(r.ui.enabled),p(r.ui.host),x(r.ui.port))},[r]);const N=j=>{j.preventDefault(),i.mutate({enabled:c,host:m,port:w,open:!0})},P=()=>{l.mutate()};return s?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Qe,{className:"h-8 w-32"}),h.jsx(Qe,{className:"h-4 w-48"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Qe,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Qe,{className:"h-5 w-28"}),h.jsx(Qe,{className:"h-3 w-36"})]})]}),h.jsx(Qe,{className:"h-16 w-full rounded-xl mb-4"}),h.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{children:[h.jsx(Qe,{className:"h-4 w-16 mb-2"}),h.jsx(Qe,{className:"h-10 w-full rounded-xl"})]}),h.jsxs("div",{children:[h.jsx(Qe,{className:"h-4 w-12 mb-2"}),h.jsx(Qe,{className:"h-10 w-full rounded-xl"})]})]})]})]}):h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-xl font-semibold text-[hsl(30,20%,12%)]",children:K("uiConfig")}),h.jsx("p",{className:"text-sm text-[hsl(30,8%,45%)] mt-1",children:"Configure Web UI server and access options"})]}),h.jsx(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] bg-white",children:h.jsxs(Qu,{className:"p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-purple-400 to-indigo-500 flex items-center justify-center",children:h.jsx(Vy,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(Wu,{className:"text-base font-semibold text-[hsl(30,20%,12%)]",children:"Web UI Server"}),h.jsx(Hu,{className:"text-xs text-[hsl(30,8%,45%)]",children:"Configure server runtime parameters"})]})]}),h.jsxs("form",{onSubmit:N,className:"space-y-6",children:[h.jsxs("div",{className:Me("flex items-center justify-between p-4 rounded-xl transition-colors",c?"bg-emerald-50":"bg-[hsl(40,20%,96%)]"),children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:Me("h-10 w-10 rounded-lg flex items-center justify-center",c?"bg-emerald-100 text-emerald-600":"bg-[hsl(40,20%,94%)] text-[hsl(30,8%,45%)]"),children:h.jsx(Ky,{className:"h-5 w-5"})}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-medium text-[hsl(30,20%,12%)]",children:"Enable Web UI"}),h.jsx("p",{className:Me("text-xs",c?"text-emerald-600":"text-[hsl(30,8%,45%)]"),children:K(c?"connected":"disconnected")})]})]}),h.jsx(fc,{id:"enabled",checked:c,onCheckedChange:f,className:"data-[state=checked]:bg-emerald-500"})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(nn,{htmlFor:"host",className:"text-sm font-medium text-[hsl(30,20%,12%)]",children:K("host")}),h.jsx(Wt,{id:"host",type:"text",value:m,onChange:j=>p(j.target.value),placeholder:"127.0.0.1",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(nn,{htmlFor:"port",className:"text-sm font-medium text-[hsl(30,20%,12%)]",children:K("port")}),h.jsx(Wt,{id:"port",type:"number",value:w,onChange:j=>x(parseInt(j.target.value)||18791),placeholder:"18791",min:"1",max:"65535",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]})]}),h.jsx("div",{className:"flex justify-end",children:h.jsxs(Ht,{type:"submit",disabled:i.isPending,className:"gap-2 rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:[h.jsx($y,{className:"h-4 w-4"}),K("save")]})})]})]})}),h.jsx(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] bg-white",children:h.jsxs(Qu,{className:"p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-slate-400 to-gray-500 flex items-center justify-center",children:h.jsx(vh,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(Wu,{className:"text-base font-semibold text-[hsl(30,20%,12%)]",children:K("reloadConfig")}),h.jsx(Hu,{className:"text-xs text-[hsl(30,8%,45%)]",children:"Apply changes and restart services"})]})]}),h.jsx("p",{className:"text-sm text-[hsl(30,8%,45%)] mb-4",children:"Click the button below to reload the configuration file and apply all changes."}),h.jsxs(Ht,{variant:"outline",onClick:P,disabled:l.isPending,className:"w-full gap-2 rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] hover:bg-[hsl(40,20%,94%)] text-[hsl(30,10%,35%)]",children:[h.jsx(vh,{className:"h-4 w-4"}),K("reloadConfig")]})]})})]})}class Lx{constructor(s){this.url=s,this.ws=null,this.handlers=new Map,this.reconnectTimer=null,this.manualClose=!1}connect(){this.manualClose=!1,this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connected"),this.emit({type:"connection.open",payload:{}})},this.ws.onmessage=s=>{try{const i=JSON.parse(s.data);this.emit(i)}catch(i){console.error("Failed to parse WebSocket message:",i)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=s=>{console.error("WebSocket error:",s)}}on(s,i){this.handlers.has(s)||this.handlers.set(s,new Set),this.handlers.get(s).add(i)}off(s,i){var l;(l=this.handlers.get(s))==null||l.delete(i)}emit(s){const i=this.handlers.get(s.type);i==null||i.forEach(l=>l(s))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var s;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(s=this.ws)==null||s.close(),this.ws=null}}function Fx(r){const[s,i]=b.useState(null),{setConnectionStatus:l}=qr();return b.useEffect(()=>{const c="ws://127.0.0.1:18791/ws",f=new Lx(c);return f.on("connection.open",()=>{l("connected")}),f.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),f.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),f.connect(),i(f),()=>f.disconnect()},[l,r]),s}const Ah=new Ag({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Ax(){const{activeTab:r}=qr();Fx(Ah);const s=()=>{switch(r){case"model":return h.jsx(bh,{});case"providers":return h.jsx(Mx,{});case"channels":return h.jsx(Ix,{});case"ui":return h.jsx(Dx,{});default:return h.jsx(bh,{})}};return h.jsxs(Ug,{client:Ah,children:[h.jsx(e0,{children:h.jsx("div",{className:"animate-fade-in",children:s()},r)}),h.jsx(I0,{position:"top-right",richColors:!0})]})}mg.createRoot(document.getElementById("root")).render(h.jsx(b.StrictMode,{children:h.jsx(Ax,{})}));