@nextclaw/ui 0.3.10 → 0.3.12
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.
- package/CHANGELOG.md +18 -0
- package/dist/assets/index-D3arfjLX.css +1 -0
- package/dist/assets/index-DTd23uLj.js +240 -0
- package/dist/index.html +2 -2
- package/dist/logos/wecom.svg +11 -0
- package/package.json +1 -1
- package/public/logos/wecom.svg +11 -0
- package/src/App.tsx +3 -0
- package/src/api/config.ts +15 -0
- package/src/api/types.ts +41 -0
- package/src/components/config/ChannelForm.tsx +103 -7
- package/src/components/config/RuntimeConfig.tsx +472 -0
- package/src/components/layout/Sidebar.tsx +6 -1
- package/src/hooks/useConfig.ts +17 -0
- package/src/lib/i18n.ts +4 -0
- package/src/lib/logos.ts +1 -0
- package/src/stores/ui.store.ts +1 -1
- package/dist/assets/index-DM9Q3WUX.css +0 -1
- package/dist/assets/index-DO3sh5Tk.js +0 -230
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var ep=r=>{throw TypeError(r)};var vu=(r,o,a)=>o.has(r)||ep("Cannot "+a);var x=(r,o,a)=>(vu(r,o,"read from private field"),a?a.call(r):o.get(r)),ce=(r,o,a)=>o.has(r)?ep("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,a),ee=(r,o,a,l)=>(vu(r,o,"write to private field"),l?l.call(r,a):o.set(r,a),a),Se=(r,o,a)=>(vu(r,o,"access private method"),a);var di=(r,o,a,l)=>({set _(c){ee(r,o,c,a)},get _(){return x(r,o,l)}});function vy(r,o){for(var a=0;a<o.length;a++){const l=o[a];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function a(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=a(c);fetch(c.href,d)}})();function lh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xu={exports:{}},Ls={},wu={exports:{}},Ce={};/**
|
|
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 tp;function xy(){if(tp)return Ce;tp=1;var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.iterator;function j(P){return P===null||typeof P!="object"?null:(P=N&&P[N]||P["@@iterator"],typeof P=="function"?P:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function M(P,O,se){this.props=P,this.context=O,this.refs=w,this.updater=se||v}M.prototype.isReactComponent={},M.prototype.setState=function(P,O){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,O,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function V(){}V.prototype=M.prototype;function G(P,O,se){this.props=P,this.context=O,this.refs=w,this.updater=se||v}var B=G.prototype=new V;B.constructor=G,_(B,M.prototype),B.isPureReactComponent=!0;var A=Array.isArray,z=Object.prototype.hasOwnProperty,Q={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function L(P,O,se){var le,me={},be=null,he=null;if(O!=null)for(le in O.ref!==void 0&&(he=O.ref),O.key!==void 0&&(be=""+O.key),O)z.call(O,le)&&!D.hasOwnProperty(le)&&(me[le]=O[le]);var Ne=arguments.length-2;if(Ne===1)me.children=se;else if(1<Ne){for(var Ie=Array(Ne),Je=0;Je<Ne;Je++)Ie[Je]=arguments[Je+2];me.children=Ie}if(P&&P.defaultProps)for(le in Ne=P.defaultProps,Ne)me[le]===void 0&&(me[le]=Ne[le]);return{$$typeof:r,type:P,key:be,ref:he,props:me,_owner:Q.current}}function te(P,O){return{$$typeof:r,type:P.type,key:O,ref:P.ref,props:P.props,_owner:P._owner}}function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function F(P){var O={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(se){return O[se]})}var H=/\/+/g;function pe(P,O){return typeof P=="object"&&P!==null&&P.key!=null?F(""+P.key):O.toString(36)}function we(P,O,se,le,me){var be=typeof P;(be==="undefined"||be==="boolean")&&(P=null);var he=!1;if(P===null)he=!0;else switch(be){case"string":case"number":he=!0;break;case"object":switch(P.$$typeof){case r:case o:he=!0}}if(he)return he=P,me=me(he),P=le===""?"."+pe(he,0):le,A(me)?(se="",P!=null&&(se=P.replace(H,"$&/")+"/"),we(me,O,se,"",function(Je){return Je})):me!=null&&(re(me)&&(me=te(me,se+(!me.key||he&&he.key===me.key?"":(""+me.key).replace(H,"$&/")+"/")+P)),O.push(me)),1;if(he=0,le=le===""?".":le+":",A(P))for(var Ne=0;Ne<P.length;Ne++){be=P[Ne];var Ie=le+pe(be,Ne);he+=we(be,O,se,Ie,me)}else if(Ie=j(P),typeof Ie=="function")for(P=Ie.call(P),Ne=0;!(be=P.next()).done;)be=be.value,Ie=le+pe(be,Ne++),he+=we(be,O,se,Ie,me);else if(be==="object")throw O=String(P),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return he}function ve(P,O,se){if(P==null)return P;var le=[],me=0;return we(P,le,"","",function(be){return O.call(se,be,me++)}),le}function je(P){if(P._status===-1){var O=P._result;O=O(),O.then(function(se){(P._status===0||P._status===-1)&&(P._status=1,P._result=se)},function(se){(P._status===0||P._status===-1)&&(P._status=2,P._result=se)}),P._status===-1&&(P._status=0,P._result=O)}if(P._status===1)return P._result.default;throw P._result}var ke={current:null},Y={transition:null},K={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:Y,ReactCurrentOwner:Q};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:ve,forEach:function(P,O,se){ve(P,function(){O.apply(this,arguments)},se)},count:function(P){var O=0;return ve(P,function(){O++}),O},toArray:function(P){return ve(P,function(O){return O})||[]},only:function(P){if(!re(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ce.Component=M,Ce.Fragment=a,Ce.Profiler=c,Ce.PureComponent=G,Ce.StrictMode=l,Ce.Suspense=S,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Ce.act=Z,Ce.cloneElement=function(P,O,se){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var le=_({},P.props),me=P.key,be=P.ref,he=P._owner;if(O!=null){if(O.ref!==void 0&&(be=O.ref,he=Q.current),O.key!==void 0&&(me=""+O.key),P.type&&P.type.defaultProps)var Ne=P.type.defaultProps;for(Ie in O)z.call(O,Ie)&&!D.hasOwnProperty(Ie)&&(le[Ie]=O[Ie]===void 0&&Ne!==void 0?Ne[Ie]:O[Ie])}var Ie=arguments.length-2;if(Ie===1)le.children=se;else if(1<Ie){Ne=Array(Ie);for(var Je=0;Je<Ie;Je++)Ne[Je]=arguments[Je+2];le.children=Ne}return{$$typeof:r,type:P.type,key:me,ref:be,props:le,_owner:he}},Ce.createContext=function(P){return P={$$typeof:m,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},Ce.createElement=L,Ce.createFactory=function(P){var O=L.bind(null,P);return O.type=P,O},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(P){return{$$typeof:h,render:P}},Ce.isValidElement=re,Ce.lazy=function(P){return{$$typeof:C,_payload:{_status:-1,_result:P},_init:je}},Ce.memo=function(P,O){return{$$typeof:y,type:P,compare:O===void 0?null:O}},Ce.startTransition=function(P){var O=Y.transition;Y.transition={};try{P()}finally{Y.transition=O}},Ce.unstable_act=Z,Ce.useCallback=function(P,O){return ke.current.useCallback(P,O)},Ce.useContext=function(P){return ke.current.useContext(P)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(P){return ke.current.useDeferredValue(P)},Ce.useEffect=function(P,O){return ke.current.useEffect(P,O)},Ce.useId=function(){return ke.current.useId()},Ce.useImperativeHandle=function(P,O,se){return ke.current.useImperativeHandle(P,O,se)},Ce.useInsertionEffect=function(P,O){return ke.current.useInsertionEffect(P,O)},Ce.useLayoutEffect=function(P,O){return ke.current.useLayoutEffect(P,O)},Ce.useMemo=function(P,O){return ke.current.useMemo(P,O)},Ce.useReducer=function(P,O,se){return ke.current.useReducer(P,O,se)},Ce.useRef=function(P){return ke.current.useRef(P)},Ce.useState=function(P){return ke.current.useState(P)},Ce.useSyncExternalStore=function(P,O,se){return ke.current.useSyncExternalStore(P,O,se)},Ce.useTransition=function(){return ke.current.useTransition()},Ce.version="18.3.1",Ce}var np;function nc(){return np||(np=1,wu.exports=xy()),wu.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 rp;function wy(){if(rp)return Ls;rp=1;var r=nc(),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(h,S,y){var C,N={},j=null,v=null;y!==void 0&&(j=""+y),S.key!==void 0&&(j=""+S.key),S.ref!==void 0&&(v=S.ref);for(C in S)l.call(S,C)&&!d.hasOwnProperty(C)&&(N[C]=S[C]);if(h&&h.defaultProps)for(C in S=h.defaultProps,S)N[C]===void 0&&(N[C]=S[C]);return{$$typeof:o,type:h,key:j,ref:v,props:N,_owner:c.current}}return Ls.Fragment=a,Ls.jsx=m,Ls.jsxs=m,Ls}var op;function Sy(){return op||(op=1,xu.exports=wy()),xu.exports}var p=Sy(),k=nc();const J=lh(k),uh=vy({__proto__:null,default:J},[k]);var fi={},Su={exports:{}},jt={},bu={exports:{}},ku={};/**
|
|
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 sp;function by(){return sp||(sp=1,(function(r){function o(Y,K){var Z=Y.length;Y.push(K);e:for(;0<Z;){var P=Z-1>>>1,O=Y[P];if(0<c(O,K))Y[P]=K,Y[Z]=O,Z=P;else break e}}function a(Y){return Y.length===0?null:Y[0]}function l(Y){if(Y.length===0)return null;var K=Y[0],Z=Y.pop();if(Z!==K){Y[0]=Z;e:for(var P=0,O=Y.length,se=O>>>1;P<se;){var le=2*(P+1)-1,me=Y[le],be=le+1,he=Y[be];if(0>c(me,Z))be<O&&0>c(he,me)?(Y[P]=he,Y[be]=Z,P=be):(Y[P]=me,Y[le]=Z,P=le);else if(be<O&&0>c(he,Z))Y[P]=he,Y[be]=Z,P=be;else break e}}return K}function c(Y,K){var Z=Y.sortIndex-K.sortIndex;return Z!==0?Z:Y.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();r.unstable_now=function(){return m.now()-h}}var S=[],y=[],C=1,N=null,j=3,v=!1,_=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(Y){for(var K=a(y);K!==null;){if(K.callback===null)l(y);else if(K.startTime<=Y)l(y),K.sortIndex=K.expirationTime,o(S,K);else break;K=a(y)}}function A(Y){if(w=!1,B(Y),!_)if(a(S)!==null)_=!0,je(z);else{var K=a(y);K!==null&&ke(A,K.startTime-Y)}}function z(Y,K){_=!1,w&&(w=!1,V(L),L=-1),v=!0;var Z=j;try{for(B(K),N=a(S);N!==null&&(!(N.expirationTime>K)||Y&&!F());){var P=N.callback;if(typeof P=="function"){N.callback=null,j=N.priorityLevel;var O=P(N.expirationTime<=K);K=r.unstable_now(),typeof O=="function"?N.callback=O:N===a(S)&&l(S),B(K)}else l(S);N=a(S)}if(N!==null)var se=!0;else{var le=a(y);le!==null&&ke(A,le.startTime-K),se=!1}return se}finally{N=null,j=Z,v=!1}}var Q=!1,D=null,L=-1,te=5,re=-1;function F(){return!(r.unstable_now()-re<te)}function H(){if(D!==null){var Y=r.unstable_now();re=Y;var K=!0;try{K=D(!0,Y)}finally{K?pe():(Q=!1,D=null)}}else Q=!1}var pe;if(typeof G=="function")pe=function(){G(H)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,ve=we.port2;we.port1.onmessage=H,pe=function(){ve.postMessage(null)}}else pe=function(){M(H,0)};function je(Y){D=Y,Q||(Q=!0,pe())}function ke(Y,K){L=M(function(){Y(r.unstable_now())},K)}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(Y){Y.callback=null},r.unstable_continueExecution=function(){_||v||(_=!0,je(z))},r.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<Y?Math.floor(1e3/Y):5},r.unstable_getCurrentPriorityLevel=function(){return j},r.unstable_getFirstCallbackNode=function(){return a(S)},r.unstable_next=function(Y){switch(j){case 1:case 2:case 3:var K=3;break;default:K=j}var Z=j;j=K;try{return Y()}finally{j=Z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(Y,K){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var Z=j;j=Y;try{return K()}finally{j=Z}},r.unstable_scheduleCallback=function(Y,K,Z){var P=r.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?P+Z:P):Z=P,Y){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=Z+O,Y={id:C++,callback:K,priorityLevel:Y,startTime:Z,expirationTime:O,sortIndex:-1},Z>P?(Y.sortIndex=Z,o(y,Y),a(S)===null&&Y===a(y)&&(w?(V(L),L=-1):w=!0,ke(A,Z-P))):(Y.sortIndex=O,o(S,Y),_||v||(_=!0,je(z))),Y},r.unstable_shouldYield=F,r.unstable_wrapCallback=function(Y){var K=j;return function(){var Z=j;j=K;try{return Y.apply(this,arguments)}finally{j=Z}}}})(ku)),ku}var ap;function ky(){return ap||(ap=1,bu.exports=by()),bu.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 ip;function Cy(){if(ip)return jt;ip=1;var r=nc(),o=ky();function a(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 d(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 h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S=Object.prototype.hasOwnProperty,y=/^[: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]*$/,C={},N={};function j(e){return S.call(N,e)?!0:S.call(C,e)?!1:y.test(e)?N[e]=!0:(C[e]=!0,!1)}function v(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,s){if(t===null||typeof t>"u"||v(e,t,n,s))return!0;if(s)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 w(e,t,n,s,i,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new w(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new w(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new w(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){M[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new w(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new w(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new w(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function G(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(V,G);M[t]=new w(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(V,G);M[t]=new w(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(V,G);M[t]=new w(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,n,s){var i=M.hasOwnProperty(t)?M[t]:null;(i!==null?i.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,i,s)&&(n=null),s||i===null?j(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,s=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),Q=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),F=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),Y=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,P;function O(e){if(P===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
|
34
|
+
`+P+e}var se=!1;function le(e,t){if(!e||se)return"";se=!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(I){var s=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){s=I}e.call(t.prototype)}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var i=I.stack.split(`
|
|
35
|
+
`),u=s.stack.split(`
|
|
36
|
+
`),f=i.length-1,g=u.length-1;1<=f&&0<=g&&i[f]!==u[g];)g--;for(;1<=f&&0<=g;f--,g--)if(i[f]!==u[g]){if(f!==1||g!==1)do if(f--,g--,0>g||i[f]!==u[g]){var b=`
|
|
37
|
+
`+i[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=f&&0<=g);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function me(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=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function be(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 D:return"Fragment";case Q:return"Portal";case te:return"Profiler";case L:return"StrictMode";case pe:return"Suspense";case we:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F:return(e.displayName||"Context")+".Consumer";case re:return(e._context.displayName||"Context")+".Provider";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case je:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}function he(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 be(t);case 8:return t===L?"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 Ne(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=Ie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){e._valueTracker||(e._valueTracker=Je(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Ie(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function kr(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 Zo(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Ne(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jo(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function es(e,t){Jo(e,t);var n=Ne(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&ts(e,t.type,Ne(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 ts(e,t,n){(t!=="number"||kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function At(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Ne(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function an(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Un(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ne(n)}}function Zs(e,t){var n=Ne(t.value),s=Ne(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Js(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 ln(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 no,ea=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={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},ta=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){ta.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function ro(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var na=Z({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 cn(e,t){if(t){if(na[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function ns(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 rs=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Bn=null,dn=null;function Qt(e){if(e=ks(e)){if(typeof so!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Na(t),so(e.stateNode,e.type,t))}}function ra(e){Bn?dn?dn.push(e):dn=[e]:Bn=e}function ye(){if(Bn){var e=Bn,t=dn;if(dn=Bn=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Te(e,t){return e(t)}function _e(){}var pt=!1;function St(e,t,n){if(pt)return e(t,n);pt=!0;try{return Te(e,t,n)}finally{pt=!1,(Bn!==null||dn!==null)&&(_e(),ye())}}function bt(e,t){var n=e.stateNode;if(n===null)return null;var s=Na(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var Ht=!1;if(h)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch{Ht=!1}function fn(e,t,n,s,i,u,f,g,b){var I=Array.prototype.slice.call(arguments,3);try{t.apply(n,I)}catch(W){this.onError(W)}}var os=!1,oa=null,sa=!1,Di=null,Em={onError:function(e){os=!0,oa=e}};function Nm(e,t,n,s,i,u,f,g,b){os=!1,oa=null,fn.apply(Em,arguments)}function Pm(e,t,n,s,i,u,f,g,b){if(Nm.apply(this,arguments),os){if(os){var I=oa;os=!1,oa=null}else throw Error(a(198));sa||(sa=!0,Di=I)}}function Er(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 bc(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 kc(e){if(Er(e)!==e)throw Error(a(188))}function jm(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(s=i.return,s!==null){n=s;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return kc(i),e;if(u===s)return kc(i),t;u=u.sibling}throw Error(a(188))}if(n.return!==s.return)n=i,s=u;else{for(var f=!1,g=i.child;g;){if(g===n){f=!0,n=i,s=u;break}if(g===s){f=!0,s=i,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,s=i;break}if(g===s){f=!0,s=u,n=i;break}g=g.sibling}if(!f)throw Error(a(189))}}if(n.alternate!==s)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Cc(e){return e=jm(e),e!==null?Ec(e):null}function Ec(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ec(e);if(t!==null)return t;e=e.sibling}return null}var Nc=o.unstable_scheduleCallback,Pc=o.unstable_cancelCallback,Mm=o.unstable_shouldYield,Rm=o.unstable_requestPaint,He=o.unstable_now,Tm=o.unstable_getCurrentPriorityLevel,Li=o.unstable_ImmediatePriority,jc=o.unstable_UserBlockingPriority,aa=o.unstable_NormalPriority,Im=o.unstable_LowPriority,Mc=o.unstable_IdlePriority,ia=null,pn=null;function Om(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(ia,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Am,zm=Math.log,_m=Math.LN2;function Am(e){return e>>>=0,e===0?32:31-(zm(e)/_m|0)|0}var la=64,ua=4194304;function ss(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 ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var g=f&~i;g!==0?s=ss(g):(u&=f,u!==0&&(s=ss(u)))}else f=n&~i,f!==0?s=ss(f):u!==0&&(s=ss(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&i)===0&&(i=s&-s,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Kt(t),i=1<<n,s|=e[n],t&=~i;return s}function Dm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Kt(u),g=1<<f,b=i[f];b===-1?((g&n)===0||(g&s)!==0)&&(i[f]=Dm(g,t)):b<=t&&(e.expiredLanes|=g),u&=~g}}function Fi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rc(){var e=la;return la<<=1,(la&4194240)===0&&(la=64),e}function Ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function as(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 Fm(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 s=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Kt(n),u=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~u}}function Bi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Kt(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var ze=0;function Tc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ic,Wi,Oc,zc,_c,Vi=!1,da=[],Wn=null,Vn=null,$n=null,is=new Map,ls=new Map,Qn=[],Um="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 Ac(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ls.delete(t.pointerId)}}function us(e,t,n,s,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[i]},t!==null&&(t=ks(t),t!==null&&Wi(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bm(e,t,n,s,i){switch(t){case"focusin":return Wn=us(Wn,e,t,n,s,i),!0;case"dragenter":return Vn=us(Vn,e,t,n,s,i),!0;case"mouseover":return $n=us($n,e,t,n,s,i),!0;case"pointerover":var u=i.pointerId;return is.set(u,us(is.get(u)||null,e,t,n,s,i)),!0;case"gotpointercapture":return u=i.pointerId,ls.set(u,us(ls.get(u)||null,e,t,n,s,i)),!0}return!1}function Dc(e){var t=Nr(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=bc(n),t!==null){e.blockedOn=t,_c(e.priority,function(){Oc(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 fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);rs=s,n.target.dispatchEvent(s),rs=null}else return t=ks(n),t!==null&&Wi(t),e.blockedOn=n,!1;t.shift()}return!0}function Lc(e,t,n){fa(e)&&n.delete(t)}function Wm(){Vi=!1,Wn!==null&&fa(Wn)&&(Wn=null),Vn!==null&&fa(Vn)&&(Vn=null),$n!==null&&fa($n)&&($n=null),is.forEach(Lc),ls.forEach(Lc)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,Vi||(Vi=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wm)))}function ds(e){function t(i){return cs(i,e)}if(0<da.length){cs(da[0],e);for(var n=1;n<da.length;n++){var s=da[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Wn!==null&&cs(Wn,e),Vn!==null&&cs(Vn,e),$n!==null&&cs($n,e),is.forEach(t),ls.forEach(t),n=0;n<Qn.length;n++)s=Qn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Dc(n),n.blockedOn===null&&Qn.shift()}var ao=A.ReactCurrentBatchConfig,pa=!0;function Vm(e,t,n,s){var i=ze,u=ao.transition;ao.transition=null;try{ze=1,$i(e,t,n,s)}finally{ze=i,ao.transition=u}}function $m(e,t,n,s){var i=ze,u=ao.transition;ao.transition=null;try{ze=4,$i(e,t,n,s)}finally{ze=i,ao.transition=u}}function $i(e,t,n,s){if(pa){var i=Qi(e,t,n,s);if(i===null)ll(e,t,s,ha,n),Ac(e,s);else if(Bm(i,e,t,n,s))s.stopPropagation();else if(Ac(e,s),t&4&&-1<Um.indexOf(e)){for(;i!==null;){var u=ks(i);if(u!==null&&Ic(u),u=Qi(e,t,n,s),u===null&&ll(e,t,s,ha,n),u===i)break;i=u}i!==null&&s.stopPropagation()}else ll(e,t,s,null,n)}}var ha=null;function Qi(e,t,n,s){if(ha=null,e=oo(s),e=Nr(e),e!==null)if(t=Er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bc(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 ha=e,null}function Fc(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(Tm()){case Li:return 1;case jc:return 4;case aa:case Im:return 16;case Mc:return 536870912;default:return 16}default:return 16}}var Hn=null,Hi=null,ma=null;function Uc(){if(ma)return ma;var e,t=Hi,n=t.length,s,i="value"in Hn?Hn.value:Hn.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var f=n-e;for(s=1;s<=f&&t[n-s]===i[u-s];s++);return ma=i.slice(e,1<s?1-s:void 0)}function ga(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 ya(){return!0}function Bc(){return!1}function It(e){function t(n,s,i,u,f){this._reactName=n,this._targetInst=i,this.type=s,this.nativeEvent=u,this.target=f,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)?ya:Bc,this.isPropagationStopped=Bc,this}return Z(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=ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ya)},persist:function(){},isPersistent:ya}),t}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=It(io),fs=Z({},io,{view:0,detail:0}),Qm=It(fs),Gi,qi,ps,va=Z({},fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,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!==ps&&(ps&&e.type==="mousemove"?(Gi=e.screenX-ps.screenX,qi=e.screenY-ps.screenY):qi=Gi=0,ps=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:qi}}),Wc=It(va),Hm=Z({},va,{dataTransfer:0}),Km=It(Hm),Gm=Z({},fs,{relatedTarget:0}),Yi=It(Gm),qm=Z({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),Ym=It(qm),Xm=Z({},io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zm=It(Xm),Jm=Z({},io,{data:0}),Vc=It(Jm),eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tg={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"},ng={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ng[e])?!!t[e]:!1}function Xi(){return rg}var og=Z({},fs,{key:function(e){if(e.key){var t=eg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(e){return e.type==="keypress"?ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sg=It(og),ag=Z({},va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$c=It(ag),ig=Z({},fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),lg=It(ig),ug=Z({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),cg=It(ug),dg=Z({},va,{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}),fg=It(dg),pg=[9,13,27,32],Zi=h&&"CompositionEvent"in window,hs=null;h&&"documentMode"in document&&(hs=document.documentMode);var hg=h&&"TextEvent"in window&&!hs,Qc=h&&(!Zi||hs&&8<hs&&11>=hs),Hc=" ",Kc=!1;function Gc(e,t){switch(e){case"keyup":return pg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function mg(e,t){switch(e){case"compositionend":return qc(t);case"keypress":return t.which!==32?null:(Kc=!0,Hc);case"textInput":return e=t.data,e===Hc&&Kc?null:e;default:return null}}function gg(e,t){if(lo)return e==="compositionend"||!Zi&&Gc(e,t)?(e=Uc(),ma=Hi=Hn=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qc&&t.locale!=="ko"?null:t.data;default:return null}}var yg={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 Yc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yg[e.type]:t==="textarea"}function Xc(e,t,n,s){ra(s),t=ka(t,"onChange"),0<t.length&&(n=new Ki("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ms=null,gs=null;function vg(e){md(e,0)}function xa(e){var t=ho(e);if(Jr(t))return e}function xg(e,t){if(e==="change")return t}var Zc=!1;if(h){var Ji;if(h){var el="oninput"in document;if(!el){var Jc=document.createElement("div");Jc.setAttribute("oninput","return;"),el=typeof Jc.oninput=="function"}Ji=el}else Ji=!1;Zc=Ji&&(!document.documentMode||9<document.documentMode)}function ed(){ms&&(ms.detachEvent("onpropertychange",td),gs=ms=null)}function td(e){if(e.propertyName==="value"&&xa(gs)){var t=[];Xc(t,gs,e,oo(e)),St(vg,t)}}function wg(e,t,n){e==="focusin"?(ed(),ms=t,gs=n,ms.attachEvent("onpropertychange",td)):e==="focusout"&&ed()}function Sg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(gs)}function bg(e,t){if(e==="click")return xa(t)}function kg(e,t){if(e==="input"||e==="change")return xa(t)}function Cg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:Cg;function ys(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!S.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var n=nd(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nd(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kr(e.document)}return t}function tl(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 Eg(e){var t=sd(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&od(n.ownerDocument.documentElement,n)){if(s!==null&&tl(n)){if(t=s.start,e=s.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 i=n.textContent.length,u=Math.min(s.start,i);s=s.end===void 0?u:Math.min(s.end,i),!e.extend&&u>s&&(i=s,s=u,u=i),i=rd(n,u);var f=rd(n,s);i&&f&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.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 Ng=h&&"documentMode"in document&&11>=document.documentMode,uo=null,nl=null,vs=null,rl=!1;function ad(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rl||uo==null||uo!==kr(s)||(s=uo,"selectionStart"in s&&tl(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),vs&&ys(vs,s)||(vs=s,s=ka(nl,"onSelect"),0<s.length&&(t=new Ki("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionend:wa("Transition","TransitionEnd")},ol={},id={};h&&(id=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Sa(e){if(ol[e])return ol[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in id)return ol[e]=t[n];return e}var ld=Sa("animationend"),ud=Sa("animationiteration"),cd=Sa("animationstart"),dd=Sa("transitionend"),fd=new Map,pd="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){fd.set(e,t),d(t,[e])}for(var sl=0;sl<pd.length;sl++){var al=pd[sl],Pg=al.toLowerCase(),jg=al[0].toUpperCase()+al.slice(1);Kn(Pg,"on"+jg)}Kn(ld,"onAnimationEnd"),Kn(ud,"onAnimationIteration"),Kn(cd,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(dd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),Mg=new Set("cancel close invalid load scroll toggle".split(" ").concat(xs));function hd(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Pm(s,t,void 0,e),e.currentTarget=null}function md(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var f=s.length-1;0<=f;f--){var g=s[f],b=g.instance,I=g.currentTarget;if(g=g.listener,b!==u&&i.isPropagationStopped())break e;hd(i,g,I),u=b}else for(f=0;f<s.length;f++){if(g=s[f],b=g.instance,I=g.currentTarget,g=g.listener,b!==u&&i.isPropagationStopped())break e;hd(i,g,I),u=b}}}if(sa)throw e=Di,sa=!1,Di=null,e}function Le(e,t){var n=t[hl];n===void 0&&(n=t[hl]=new Set);var s=e+"__bubble";n.has(s)||(gd(t,e,2,!1),n.add(s))}function il(e,t,n){var s=0;t&&(s|=4),gd(n,e,s,t)}var ba="_reactListening"+Math.random().toString(36).slice(2);function ws(e){if(!e[ba]){e[ba]=!0,l.forEach(function(n){n!=="selectionchange"&&(Mg.has(n)||il(n,!1,e),il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ba]||(t[ba]=!0,il("selectionchange",!1,t))}}function gd(e,t,n,s){switch(Fc(t)){case 1:var i=Vm;break;case 4:i=$m;break;default:i=$i}n=i.bind(null,t,n,e),i=void 0,!Ht||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ll(e,t,n,s,i){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var g=s.stateNode.containerInfo;if(g===i||g.nodeType===8&&g.parentNode===i)break;if(f===4)for(f=s.return;f!==null;){var b=f.tag;if((b===3||b===4)&&(b=f.stateNode.containerInfo,b===i||b.nodeType===8&&b.parentNode===i))return;f=f.return}for(;g!==null;){if(f=Nr(g),f===null)return;if(b=f.tag,b===5||b===6){s=u=f;continue e}g=g.parentNode}}s=s.return}St(function(){var I=u,W=oo(n),$=[];e:{var U=fd.get(e);if(U!==void 0){var ne=Ki,ae=e;switch(e){case"keypress":if(ga(n)===0)break e;case"keydown":case"keyup":ne=sg;break;case"focusin":ae="focus",ne=Yi;break;case"focusout":ae="blur",ne=Yi;break;case"beforeblur":case"afterblur":ne=Yi;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":ne=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=lg;break;case ld:case ud:case cd:ne=Ym;break;case dd:ne=cg;break;case"scroll":ne=Qm;break;case"wheel":ne=fg;break;case"copy":case"cut":case"paste":ne=Zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=$c}var ie=(t&4)!==0,Ke=!ie&&e==="scroll",R=ie?U!==null?U+"Capture":null:U;ie=[];for(var E=I,T;E!==null;){T=E;var q=T.stateNode;if(T.tag===5&&q!==null&&(T=q,R!==null&&(q=bt(E,R),q!=null&&ie.push(Ss(E,q,T)))),Ke)break;E=E.return}0<ie.length&&(U=new ne(U,ae,null,n,W),$.push({event:U,listeners:ie}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",U&&n!==rs&&(ae=n.relatedTarget||n.fromElement)&&(Nr(ae)||ae[kn]))break e;if((ne||U)&&(U=W.window===W?W:(U=W.ownerDocument)?U.defaultView||U.parentWindow:window,ne?(ae=n.relatedTarget||n.toElement,ne=I,ae=ae?Nr(ae):null,ae!==null&&(Ke=Er(ae),ae!==Ke||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ne=null,ae=I),ne!==ae)){if(ie=Wc,q="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=$c,q="onPointerLeave",R="onPointerEnter",E="pointer"),Ke=ne==null?U:ho(ne),T=ae==null?U:ho(ae),U=new ie(q,E+"leave",ne,n,W),U.target=Ke,U.relatedTarget=T,q=null,Nr(W)===I&&(ie=new ie(R,E+"enter",ae,n,W),ie.target=T,ie.relatedTarget=Ke,q=ie),Ke=q,ne&&ae)t:{for(ie=ne,R=ae,E=0,T=ie;T;T=fo(T))E++;for(T=0,q=R;q;q=fo(q))T++;for(;0<E-T;)ie=fo(ie),E--;for(;0<T-E;)R=fo(R),T--;for(;E--;){if(ie===R||R!==null&&ie===R.alternate)break t;ie=fo(ie),R=fo(R)}ie=null}else ie=null;ne!==null&&yd($,U,ne,ie,!1),ae!==null&&Ke!==null&&yd($,Ke,ae,ie,!0)}}e:{if(U=I?ho(I):window,ne=U.nodeName&&U.nodeName.toLowerCase(),ne==="select"||ne==="input"&&U.type==="file")var ue=xg;else if(Yc(U))if(Zc)ue=kg;else{ue=Sg;var de=wg}else(ne=U.nodeName)&&ne.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ue=bg);if(ue&&(ue=ue(e,I))){Xc($,ue,n,W);break e}de&&de(e,U,I),e==="focusout"&&(de=U._wrapperState)&&de.controlled&&U.type==="number"&&ts(U,"number",U.value)}switch(de=I?ho(I):window,e){case"focusin":(Yc(de)||de.contentEditable==="true")&&(uo=de,nl=I,vs=null);break;case"focusout":vs=nl=uo=null;break;case"mousedown":rl=!0;break;case"contextmenu":case"mouseup":case"dragend":rl=!1,ad($,n,W);break;case"selectionchange":if(Ng)break;case"keydown":case"keyup":ad($,n,W)}var fe;if(Zi)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else lo?Gc(e,n)&&(ge="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ge="onCompositionStart");ge&&(Qc&&n.locale!=="ko"&&(lo||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&lo&&(fe=Uc()):(Hn=W,Hi="value"in Hn?Hn.value:Hn.textContent,lo=!0)),de=ka(I,ge),0<de.length&&(ge=new Vc(ge,e,null,n,W),$.push({event:ge,listeners:de}),fe?ge.data=fe:(fe=qc(n),fe!==null&&(ge.data=fe)))),(fe=hg?mg(e,n):gg(e,n))&&(I=ka(I,"onBeforeInput"),0<I.length&&(W=new Vc("onBeforeInput","beforeinput",null,n,W),$.push({event:W,listeners:I}),W.data=fe))}md($,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ka(e,t){for(var n=t+"Capture",s=[];e!==null;){var i=e,u=i.stateNode;i.tag===5&&u!==null&&(i=u,u=bt(e,n),u!=null&&s.unshift(Ss(e,u,i)),u=bt(e,t),u!=null&&s.push(Ss(e,u,i))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yd(e,t,n,s,i){for(var u=t._reactName,f=[];n!==null&&n!==s;){var g=n,b=g.alternate,I=g.stateNode;if(b!==null&&b===s)break;g.tag===5&&I!==null&&(g=I,i?(b=bt(n,u),b!=null&&f.unshift(Ss(n,b,g))):i||(b=bt(n,u),b!=null&&f.push(Ss(n,b,g)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Rg=/\r\n?/g,Tg=/\u0000|\uFFFD/g;function vd(e){return(typeof e=="string"?e:""+e).replace(Rg,`
|
|
38
|
+
`).replace(Tg,"")}function Ca(e,t,n){if(t=vd(t),vd(e)!==t&&n)throw Error(a(425))}function Ea(){}var ul=null,cl=null;function dl(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 fl=typeof setTimeout=="function"?setTimeout:void 0,Ig=typeof clearTimeout=="function"?clearTimeout:void 0,xd=typeof Promise=="function"?Promise:void 0,Og=typeof queueMicrotask=="function"?queueMicrotask:typeof xd<"u"?function(e){return xd.resolve(null).then(e).catch(zg)}:fl;function zg(e){setTimeout(function(){throw e})}function pl(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(s===0){e.removeChild(i),ds(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=i}while(n);ds(t)}function Gn(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 wd(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 po=Math.random().toString(36).slice(2),hn="__reactFiber$"+po,bs="__reactProps$"+po,kn="__reactContainer$"+po,hl="__reactEvents$"+po,_g="__reactListeners$"+po,Ag="__reactHandles$"+po;function Nr(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=wd(e);e!==null;){if(n=e[hn])return n;e=wd(e)}return t}e=n,n=e.parentNode}return null}function ks(e){return e=e[hn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Na(e){return e[bs]||null}var ml=[],mo=-1;function qn(e){return{current:e}}function Fe(e){0>mo||(e.current=ml[mo],ml[mo]=null,mo--)}function De(e,t){mo++,ml[mo]=e.current,e.current=t}var Yn={},it=qn(Yn),kt=qn(!1),Pr=Yn;function go(e,t){var n=e.type.contextTypes;if(!n)return Yn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ct(e){return e=e.childContextTypes,e!=null}function Pa(){Fe(kt),Fe(it)}function Sd(e,t,n){if(it.current!==Yn)throw Error(a(168));De(it,t),De(kt,n)}function bd(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(a(108,he(e)||"Unknown",i));return Z({},n,s)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,Pr=it.current,De(it,e),De(kt,kt.current),!0}function kd(e,t,n){var s=e.stateNode;if(!s)throw Error(a(169));n?(e=bd(e,t,Pr),s.__reactInternalMemoizedMergedChildContext=e,Fe(kt),Fe(it),De(it,e)):Fe(kt),De(kt,n)}var Cn=null,Ma=!1,gl=!1;function Cd(e){Cn===null?Cn=[e]:Cn.push(e)}function Dg(e){Ma=!0,Cd(e)}function Xn(){if(!gl&&Cn!==null){gl=!0;var e=0,t=ze;try{var n=Cn;for(ze=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Ma=!1}catch(i){throw Cn!==null&&(Cn=Cn.slice(e+1)),Nc(Li,Xn),i}finally{ze=t,gl=!1}}return null}var yo=[],vo=0,Ra=null,Ta=0,Dt=[],Lt=0,jr=null,En=1,Nn="";function Mr(e,t){yo[vo++]=Ta,yo[vo++]=Ra,Ra=e,Ta=t}function Ed(e,t,n){Dt[Lt++]=En,Dt[Lt++]=Nn,Dt[Lt++]=jr,jr=e;var s=En;e=Nn;var i=32-Kt(s)-1;s&=~(1<<i),n+=1;var u=32-Kt(t)+i;if(30<u){var f=i-i%5;u=(s&(1<<f)-1).toString(32),s>>=f,i-=f,En=1<<32-Kt(t)+i|n<<i|s,Nn=u+e}else En=1<<u|n<<i|s,Nn=e}function yl(e){e.return!==null&&(Mr(e,1),Ed(e,1,0))}function vl(e){for(;e===Ra;)Ra=yo[--vo],yo[vo]=null,Ta=yo[--vo],yo[vo]=null;for(;e===jr;)jr=Dt[--Lt],Dt[Lt]=null,Nn=Dt[--Lt],Dt[Lt]=null,En=Dt[--Lt],Dt[Lt]=null}var Ot=null,zt=null,Be=!1,qt=null;function Nd(e,t){var n=Wt(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 Pd(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,Ot=e,zt=Gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,zt=null,!0):!1;default:return!1}}function xl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Be){var t=zt;if(t){var n=t;if(!Pd(e,t)){if(xl(e))throw Error(a(418));t=Gn(n.nextSibling);var s=Ot;t&&Pd(e,t)?Nd(s,n):(e.flags=e.flags&-4097|2,Be=!1,Ot=e)}}else{if(xl(e))throw Error(a(418));e.flags=e.flags&-4097|2,Be=!1,Ot=e}}}function jd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function Ia(e){if(e!==Ot)return!1;if(!Be)return jd(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dl(e.type,e.memoizedProps)),t&&(t=zt)){if(xl(e))throw Md(),Error(a(418));for(;t;)Nd(e,t),t=Gn(t.nextSibling)}if(jd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ot?Gn(e.stateNode.nextSibling):null;return!0}function Md(){for(var e=zt;e;)e=Gn(e.nextSibling)}function xo(){zt=Ot=null,Be=!1}function Sl(e){qt===null?qt=[e]:qt.push(e)}var Lg=A.ReactCurrentBatchConfig;function Cs(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(a(309));var s=n.stateNode}if(!s)throw Error(a(147,e));var i=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var g=i.refs;f===null?delete g[u]:g[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rd(e){var t=e._init;return t(e._payload)}function Td(e){function t(R,E){if(e){var T=R.deletions;T===null?(R.deletions=[E],R.flags|=16):T.push(E)}}function n(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function s(R,E){for(R=new Map;E!==null;)E.key!==null?R.set(E.key,E):R.set(E.index,E),E=E.sibling;return R}function i(R,E){return R=sr(R,E),R.index=0,R.sibling=null,R}function u(R,E,T){return R.index=T,e?(T=R.alternate,T!==null?(T=T.index,T<E?(R.flags|=2,E):T):(R.flags|=2,E)):(R.flags|=1048576,E)}function f(R){return e&&R.alternate===null&&(R.flags|=2),R}function g(R,E,T,q){return E===null||E.tag!==6?(E=fu(T,R.mode,q),E.return=R,E):(E=i(E,T),E.return=R,E)}function b(R,E,T,q){var ue=T.type;return ue===D?W(R,E,T.props.children,q,T.key):E!==null&&(E.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===je&&Rd(ue)===E.type)?(q=i(E,T.props),q.ref=Cs(R,E,T),q.return=R,q):(q=ri(T.type,T.key,T.props,null,R.mode,q),q.ref=Cs(R,E,T),q.return=R,q)}function I(R,E,T,q){return E===null||E.tag!==4||E.stateNode.containerInfo!==T.containerInfo||E.stateNode.implementation!==T.implementation?(E=pu(T,R.mode,q),E.return=R,E):(E=i(E,T.children||[]),E.return=R,E)}function W(R,E,T,q,ue){return E===null||E.tag!==7?(E=Dr(T,R.mode,q,ue),E.return=R,E):(E=i(E,T),E.return=R,E)}function $(R,E,T){if(typeof E=="string"&&E!==""||typeof E=="number")return E=fu(""+E,R.mode,T),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case z:return T=ri(E.type,E.key,E.props,null,R.mode,T),T.ref=Cs(R,null,E),T.return=R,T;case Q:return E=pu(E,R.mode,T),E.return=R,E;case je:var q=E._init;return $(R,q(E._payload),T)}if(Un(E)||K(E))return E=Dr(E,R.mode,T,null),E.return=R,E;Oa(R,E)}return null}function U(R,E,T,q){var ue=E!==null?E.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return ue!==null?null:g(R,E,""+T,q);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case z:return T.key===ue?b(R,E,T,q):null;case Q:return T.key===ue?I(R,E,T,q):null;case je:return ue=T._init,U(R,E,ue(T._payload),q)}if(Un(T)||K(T))return ue!==null?null:W(R,E,T,q,null);Oa(R,T)}return null}function ne(R,E,T,q,ue){if(typeof q=="string"&&q!==""||typeof q=="number")return R=R.get(T)||null,g(E,R,""+q,ue);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case z:return R=R.get(q.key===null?T:q.key)||null,b(E,R,q,ue);case Q:return R=R.get(q.key===null?T:q.key)||null,I(E,R,q,ue);case je:var de=q._init;return ne(R,E,T,de(q._payload),ue)}if(Un(q)||K(q))return R=R.get(T)||null,W(E,R,q,ue,null);Oa(E,q)}return null}function ae(R,E,T,q){for(var ue=null,de=null,fe=E,ge=E=0,nt=null;fe!==null&&ge<T.length;ge++){fe.index>ge?(nt=fe,fe=null):nt=fe.sibling;var Me=U(R,fe,T[ge],q);if(Me===null){fe===null&&(fe=nt);break}e&&fe&&Me.alternate===null&&t(R,fe),E=u(Me,E,ge),de===null?ue=Me:de.sibling=Me,de=Me,fe=nt}if(ge===T.length)return n(R,fe),Be&&Mr(R,ge),ue;if(fe===null){for(;ge<T.length;ge++)fe=$(R,T[ge],q),fe!==null&&(E=u(fe,E,ge),de===null?ue=fe:de.sibling=fe,de=fe);return Be&&Mr(R,ge),ue}for(fe=s(R,fe);ge<T.length;ge++)nt=ne(fe,R,ge,T[ge],q),nt!==null&&(e&&nt.alternate!==null&&fe.delete(nt.key===null?ge:nt.key),E=u(nt,E,ge),de===null?ue=nt:de.sibling=nt,de=nt);return e&&fe.forEach(function(ar){return t(R,ar)}),Be&&Mr(R,ge),ue}function ie(R,E,T,q){var ue=K(T);if(typeof ue!="function")throw Error(a(150));if(T=ue.call(T),T==null)throw Error(a(151));for(var de=ue=null,fe=E,ge=E=0,nt=null,Me=T.next();fe!==null&&!Me.done;ge++,Me=T.next()){fe.index>ge?(nt=fe,fe=null):nt=fe.sibling;var ar=U(R,fe,Me.value,q);if(ar===null){fe===null&&(fe=nt);break}e&&fe&&ar.alternate===null&&t(R,fe),E=u(ar,E,ge),de===null?ue=ar:de.sibling=ar,de=ar,fe=nt}if(Me.done)return n(R,fe),Be&&Mr(R,ge),ue;if(fe===null){for(;!Me.done;ge++,Me=T.next())Me=$(R,Me.value,q),Me!==null&&(E=u(Me,E,ge),de===null?ue=Me:de.sibling=Me,de=Me);return Be&&Mr(R,ge),ue}for(fe=s(R,fe);!Me.done;ge++,Me=T.next())Me=ne(fe,R,ge,Me.value,q),Me!==null&&(e&&Me.alternate!==null&&fe.delete(Me.key===null?ge:Me.key),E=u(Me,E,ge),de===null?ue=Me:de.sibling=Me,de=Me);return e&&fe.forEach(function(yy){return t(R,yy)}),Be&&Mr(R,ge),ue}function Ke(R,E,T,q){if(typeof T=="object"&&T!==null&&T.type===D&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case z:e:{for(var ue=T.key,de=E;de!==null;){if(de.key===ue){if(ue=T.type,ue===D){if(de.tag===7){n(R,de.sibling),E=i(de,T.props.children),E.return=R,R=E;break e}}else if(de.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===je&&Rd(ue)===de.type){n(R,de.sibling),E=i(de,T.props),E.ref=Cs(R,de,T),E.return=R,R=E;break e}n(R,de);break}else t(R,de);de=de.sibling}T.type===D?(E=Dr(T.props.children,R.mode,q,T.key),E.return=R,R=E):(q=ri(T.type,T.key,T.props,null,R.mode,q),q.ref=Cs(R,E,T),q.return=R,R=q)}return f(R);case Q:e:{for(de=T.key;E!==null;){if(E.key===de)if(E.tag===4&&E.stateNode.containerInfo===T.containerInfo&&E.stateNode.implementation===T.implementation){n(R,E.sibling),E=i(E,T.children||[]),E.return=R,R=E;break e}else{n(R,E);break}else t(R,E);E=E.sibling}E=pu(T,R.mode,q),E.return=R,R=E}return f(R);case je:return de=T._init,Ke(R,E,de(T._payload),q)}if(Un(T))return ae(R,E,T,q);if(K(T))return ie(R,E,T,q);Oa(R,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,E!==null&&E.tag===6?(n(R,E.sibling),E=i(E,T),E.return=R,R=E):(n(R,E),E=fu(T,R.mode,q),E.return=R,R=E),f(R)):n(R,E)}return Ke}var wo=Td(!0),Id=Td(!1),za=qn(null),_a=null,So=null,bl=null;function kl(){bl=So=_a=null}function Cl(e){var t=za.current;Fe(za),e._currentValue=t}function El(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){_a=e,bl=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Et=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(bl!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(_a===null)throw Error(a(308));So=e,_a.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Rr=null;function Nl(e){Rr===null?Rr=[e]:Rr.push(e)}function Od(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,Nl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pn(e,s)}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 Zn=!1;function Pl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zd(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 Jn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Pe&2)!==0){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,Pn(e,n)}return i=s.interleaved,i===null?(t.next=t,Nl(s)):(t.next=i.next,i.next=t),s.interleaved=t,Pn(e,n)}function Aa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Bi(e,n)}}function _d(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?i=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Da(e,t,n,s){var i=e.updateQueue;Zn=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var b=g,I=b.next;b.next=null,f===null?u=I:f.next=I,f=b;var W=e.alternate;W!==null&&(W=W.updateQueue,g=W.lastBaseUpdate,g!==f&&(g===null?W.firstBaseUpdate=I:g.next=I,W.lastBaseUpdate=b))}if(u!==null){var $=i.baseState;f=0,W=I=b=null,g=u;do{var U=g.lane,ne=g.eventTime;if((s&U)===U){W!==null&&(W=W.next={eventTime:ne,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var ae=e,ie=g;switch(U=t,ne=n,ie.tag){case 1:if(ae=ie.payload,typeof ae=="function"){$=ae.call(ne,$,U);break e}$=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ie.payload,U=typeof ae=="function"?ae.call(ne,$,U):ae,U==null)break e;$=Z({},$,U);break e;case 2:Zn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,U=i.effects,U===null?i.effects=[g]:U.push(g))}else ne={eventTime:ne,lane:U,tag:g.tag,payload:g.payload,callback:g.callback,next:null},W===null?(I=W=ne,b=$):W=W.next=ne,f|=U;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;U=g,g=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);if(W===null&&(b=$),i.baseState=b,i.firstBaseUpdate=I,i.lastBaseUpdate=W,t=i.shared.interleaved,t!==null){i=t;do f|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=$}}function Ad(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(i!==null){if(s.callback=null,s=n,typeof i!="function")throw Error(a(191,i));i.call(s)}}}var Es={},mn=qn(Es),Ns=qn(Es),Ps=qn(Es);function Tr(e){if(e===Es)throw Error(a(174));return e}function jl(e,t){switch(De(Ps,t),De(Ns,e),De(mn,Es),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ln(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ln(t,e)}Fe(mn),De(mn,t)}function ko(){Fe(mn),Fe(Ns),Fe(Ps)}function Dd(e){Tr(Ps.current);var t=Tr(mn.current),n=ln(t,e.type);t!==n&&(De(Ns,e),De(mn,n))}function Ml(e){Ns.current===e&&(Fe(mn),Fe(Ns))}var We=qn(0);function La(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 Rl=[];function Tl(){for(var e=0;e<Rl.length;e++)Rl[e]._workInProgressVersionPrimary=null;Rl.length=0}var Fa=A.ReactCurrentDispatcher,Il=A.ReactCurrentBatchConfig,Ir=0,Ve=null,Ye=null,et=null,Ua=!1,js=!1,Ms=0,Fg=0;function lt(){throw Error(a(321))}function Ol(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function zl(e,t,n,s,i,u){if(Ir=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fa.current=e===null||e.memoizedState===null?Vg:$g,e=n(s,i),js){u=0;do{if(js=!1,Ms=0,25<=u)throw Error(a(301));u+=1,et=Ye=null,t.updateQueue=null,Fa.current=Qg,e=n(s,i)}while(js)}if(Fa.current=Va,t=Ye!==null&&Ye.next!==null,Ir=0,et=Ye=Ve=null,Ua=!1,t)throw Error(a(300));return e}function _l(){var e=Ms!==0;return Ms=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ve.memoizedState=et=e:et=et.next=e,et}function Ut(){if(Ye===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=et===null?Ve.memoizedState:et.next;if(t!==null)et=t,Ye=e;else{if(e===null)throw Error(a(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},et===null?Ve.memoizedState=et=e:et=et.next=e}return et}function Rs(e,t){return typeof t=="function"?t(e):t}function Al(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var s=Ye,i=s.baseQueue,u=n.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}s.baseQueue=i=u,n.pending=null}if(i!==null){u=i.next,s=s.baseState;var g=f=null,b=null,I=u;do{var W=I.lane;if((Ir&W)===W)b!==null&&(b=b.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),s=I.hasEagerState?I.eagerState:e(s,I.action);else{var $={lane:W,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};b===null?(g=b=$,f=s):b=b.next=$,Ve.lanes|=W,Or|=W}I=I.next}while(I!==null&&I!==u);b===null?f=s:b.next=g,Gt(s,t.memoizedState)||(Et=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=b,n.lastRenderedState=s}if(e=n.interleaved,e!==null){i=e;do u=i.lane,Ve.lanes|=u,Or|=u,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Dl(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Gt(u,t.memoizedState)||(Et=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Ld(){}function Fd(e,t){var n=Ve,s=Ut(),i=t(),u=!Gt(s.memoizedState,i);if(u&&(s.memoizedState=i,Et=!0),s=s.queue,Ll(Wd.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Ts(9,Bd.bind(null,n,s,i,t),void 0,null),tt===null)throw Error(a(349));(Ir&30)!==0||Ud(n,t,i)}return i}function Ud(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bd(e,t,n,s){t.value=n,t.getSnapshot=s,Vd(t)&&$d(e)}function Wd(e,t,n){return n(function(){Vd(t)&&$d(e)})}function Vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function $d(e){var t=Pn(e,1);t!==null&&Jt(t,e,1,-1)}function Qd(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:e},t.queue=e,e=e.dispatch=Wg.bind(null,Ve,e),[t.memoizedState,e]}function Ts(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Hd(){return Ut().memoizedState}function Ba(e,t,n,s){var i=gn();Ve.flags|=e,i.memoizedState=Ts(1|t,n,void 0,s===void 0?null:s)}function Wa(e,t,n,s){var i=Ut();s=s===void 0?null:s;var u=void 0;if(Ye!==null){var f=Ye.memoizedState;if(u=f.destroy,s!==null&&Ol(s,f.deps)){i.memoizedState=Ts(t,n,u,s);return}}Ve.flags|=e,i.memoizedState=Ts(1|t,n,u,s)}function Kd(e,t){return Ba(8390656,8,e,t)}function Ll(e,t){return Wa(2048,8,e,t)}function Gd(e,t){return Wa(4,2,e,t)}function qd(e,t){return Wa(4,4,e,t)}function Yd(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 Xd(e,t,n){return n=n!=null?n.concat([e]):null,Wa(4,4,Yd.bind(null,t,e),n)}function Fl(){}function Zd(e,t){var n=Ut();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Ol(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Jd(e,t){var n=Ut();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Ol(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function ef(e,t,n){return(Ir&21)===0?(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n):(Gt(n,t)||(n=Rc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function Ug(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var s=Il.transition;Il.transition={};try{e(!1),t()}finally{ze=n,Il.transition=s}}function tf(){return Ut().memoizedState}function Bg(e,t,n){var s=rr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},nf(e))rf(t,n);else if(n=Od(e,t,n,s),n!==null){var i=mt();Jt(n,e,s,i),of(n,t,s)}}function Wg(e,t,n){var s=rr(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(nf(e))rf(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,g=u(f,n);if(i.hasEagerState=!0,i.eagerState=g,Gt(g,f)){var b=t.interleaved;b===null?(i.next=i,Nl(t)):(i.next=b.next,b.next=i),t.interleaved=i;return}}catch{}finally{}n=Od(e,t,i,s),n!==null&&(i=mt(),Jt(n,e,s,i),of(n,t,s))}}function nf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function rf(e,t){js=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function of(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Bi(e,n)}}var Va={readContext:Ft,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},Vg={readContext:Ft,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Kd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Yd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=gn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Bg.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Qd,useDebugValue:Fl,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Qd(!1),t=e[0];return e=Ug.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,i=gn();if(Be){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),tt===null)throw Error(a(349));(Ir&30)!==0||Ud(s,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,Kd(Wd.bind(null,s,u,e),[e]),s.flags|=2048,Ts(9,Bd.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=gn(),t=tt.identifierPrefix;if(Be){var n=Nn,s=En;n=(s&~(1<<32-Kt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ms++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Fg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$g={readContext:Ft,useCallback:Zd,useContext:Ft,useEffect:Ll,useImperativeHandle:Xd,useInsertionEffect:Gd,useLayoutEffect:qd,useMemo:Jd,useReducer:Al,useRef:Hd,useState:function(){return Al(Rs)},useDebugValue:Fl,useDeferredValue:function(e){var t=Ut();return ef(t,Ye.memoizedState,e)},useTransition:function(){var e=Al(Rs)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Ld,useSyncExternalStore:Fd,useId:tf,unstable_isNewReconciler:!1},Qg={readContext:Ft,useCallback:Zd,useContext:Ft,useEffect:Ll,useImperativeHandle:Xd,useInsertionEffect:Gd,useLayoutEffect:qd,useMemo:Jd,useReducer:Dl,useRef:Hd,useState:function(){return Dl(Rs)},useDebugValue:Fl,useDeferredValue:function(e){var t=Ut();return Ye===null?t.memoizedState=e:ef(t,Ye.memoizedState,e)},useTransition:function(){var e=Dl(Rs)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Ld,useSyncExternalStore:Fd,useId:tf,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ul(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return(e=e._reactInternals)?Er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=mt(),i=rr(e),u=jn(s,i);u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,i),t!==null&&(Jt(t,e,i,s),Aa(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=mt(),i=rr(e),u=jn(s,i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,i),t!==null&&(Jt(t,e,i,s),Aa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),s=rr(e),i=jn(n,s);i.tag=2,t!=null&&(i.callback=t),t=Jn(e,i,s),t!==null&&(Jt(t,e,s,n),Aa(t,e,s))}};function sf(e,t,n,s,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ys(n,s)||!ys(i,u):!0}function af(e,t,n){var s=!1,i=Yn,u=t.contextType;return typeof u=="object"&&u!==null?u=Ft(u):(i=Ct(t)?Pr:it.current,s=t.contextTypes,u=(s=s!=null)?go(e,i):Yn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=u),t}function lf(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Bl(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Pl(e);var u=t.contextType;typeof u=="object"&&u!==null?i.context=Ft(u):(u=Ct(t)?Pr:it.current,i.context=go(e,u)),i.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ul(e,t,u,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&$a.enqueueReplaceState(i,i.state,null),Da(e,n,i,s),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=me(s),s=s.return;while(s);var i=n}catch(u){i=`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hg=typeof WeakMap=="function"?WeakMap:Map;function uf(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Xa||(Xa=!0,ou=s),Vl(e,t)},n}function cf(e,t,n){n=jn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){Vl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Vl(e,t),typeof s!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function df(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Hg;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=ay.bind(null,e,t,n),t.then(e,e))}function ff(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 pf(e,t,n,s,i){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,Jn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Kg=A.ReactCurrentOwner,Et=!1;function ht(e,t,n,s){t.child=e===null?Id(t,null,n,s):wo(t,e.child,n,s)}function hf(e,t,n,s,i){n=n.render;var u=t.ref;return bo(t,i),s=zl(e,t,n,s,u,i),n=_l(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&n&&yl(t),t.flags|=1,ht(e,t,s,i),t.child)}function mf(e,t,n,s,i){if(e===null){var u=n.type;return typeof u=="function"&&!du(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,gf(e,t,u,s,i)):(e=ri(n.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&i)===0){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ys,n(f,s)&&e.ref===t.ref)return Mn(e,t,i)}return t.flags|=1,e=sr(u,s),e.ref=t.ref,e.return=t,t.child=e}function gf(e,t,n,s,i){if(e!==null){var u=e.memoizedProps;if(ys(u,s)&&e.ref===t.ref)if(Et=!1,t.pendingProps=s=u,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,Mn(e,t,i)}return $l(e,t,n,s,i)}function yf(e,t,n){var s=t.pendingProps,i=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},De(No,_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,De(No,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,De(No,_t),_t|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,De(No,_t),_t|=s;return ht(e,t,i,n),t.child}function vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $l(e,t,n,s,i){var u=Ct(n)?Pr:it.current;return u=go(t,u),bo(t,i),n=zl(e,t,n,s,u,i),s=_l(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&s&&yl(t),t.flags|=1,ht(e,t,n,i),t.child)}function xf(e,t,n,s,i){if(Ct(n)){var u=!0;ja(t)}else u=!1;if(bo(t,i),t.stateNode===null)Ha(e,t),af(t,n,s),Bl(t,n,s,i),s=!0;else if(e===null){var f=t.stateNode,g=t.memoizedProps;f.props=g;var b=f.context,I=n.contextType;typeof I=="object"&&I!==null?I=Ft(I):(I=Ct(n)?Pr:it.current,I=go(t,I));var W=n.getDerivedStateFromProps,$=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function";$||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==s||b!==I)&&lf(t,f,s,I),Zn=!1;var U=t.memoizedState;f.state=U,Da(t,s,f,i),b=t.memoizedState,g!==s||U!==b||kt.current||Zn?(typeof W=="function"&&(Ul(t,n,W,s),b=t.memoizedState),(g=Zn||sf(t,n,g,s,U,b,I))?($||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=b),f.props=s,f.state=b,f.context=I,s=g):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,zd(e,t),g=t.memoizedProps,I=t.type===t.elementType?g:Yt(t.type,g),f.props=I,$=t.pendingProps,U=f.context,b=n.contextType,typeof b=="object"&&b!==null?b=Ft(b):(b=Ct(n)?Pr:it.current,b=go(t,b));var ne=n.getDerivedStateFromProps;(W=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==$||U!==b)&&lf(t,f,s,b),Zn=!1,U=t.memoizedState,f.state=U,Da(t,s,f,i);var ae=t.memoizedState;g!==$||U!==ae||kt.current||Zn?(typeof ne=="function"&&(Ul(t,n,ne,s),ae=t.memoizedState),(I=Zn||sf(t,n,I,s,U,ae,b)||!1)?(W||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,ae,b),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,ae,b)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ae),f.props=s,f.state=ae,f.context=b,s=I):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),s=!1)}return Ql(e,t,n,s,u,i)}function Ql(e,t,n,s,i,u){vf(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return i&&kd(t,n,!1),Mn(e,t,u);s=t.stateNode,Kg.current=t;var g=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=wo(t,e.child,null,u),t.child=wo(t,null,g,u)):ht(e,t,g,u),t.memoizedState=s.state,i&&kd(t,n,!0),t.child}function wf(e){var t=e.stateNode;t.pendingContext?Sd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sd(e,t.context,!1),jl(e,t.containerInfo)}function Sf(e,t,n,s,i){return xo(),Sl(i),t.flags|=256,ht(e,t,n,s),t.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function bf(e,t,n){var s=t.pendingProps,i=We.current,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(i&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),De(We,i&1),e===null)return wl(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):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=oi(f,s,0,null),e=Dr(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Kl(n),t.memoizedState=Hl,e):Gl(t,f));if(i=e.memoizedState,i!==null&&(g=i.dehydrated,g!==null))return Gg(e,t,f,s,g,i,n);if(u){u=s.fallback,f=t.mode,i=e.child,g=i.sibling;var b={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==i?(s=t.child,s.childLanes=0,s.pendingProps=b,t.deletions=null):(s=sr(i,b),s.subtreeFlags=i.subtreeFlags&14680064),g!==null?u=sr(g,u):(u=Dr(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Kl(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Hl,s}return u=e.child,e=u.sibling,s=sr(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Gl(e,t){return t=oi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qa(e,t,n,s){return s!==null&&Sl(s),wo(t,e.child,null,n),e=Gl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gg(e,t,n,s,i,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Wl(Error(a(422))),Qa(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,i=t.mode,s=oi({mode:"visible",children:s.children},i,0,null),u=Dr(u,i,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&wo(t,e.child,null,f),t.child.memoizedState=Kl(f),t.memoizedState=Hl,u);if((t.mode&1)===0)return Qa(e,t,f,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(a(419)),s=Wl(u,s,void 0),Qa(e,t,f,s)}if(g=(f&e.childLanes)!==0,Et||g){if(s=tt,s!==null){switch(f&-f){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(s.suspendedLanes|f))!==0?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,Pn(e,i),Jt(s,e,i,-1))}return cu(),s=Wl(Error(a(421))),Qa(e,t,f,s)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=iy.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,zt=Gn(i.nextSibling),Ot=t,Be=!0,qt=null,e!==null&&(Dt[Lt++]=En,Dt[Lt++]=Nn,Dt[Lt++]=jr,En=e.id,Nn=e.overflow,jr=t),t=Gl(t,s.children),t.flags|=4096,t)}function kf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),El(e.return,t,n)}function ql(e,t,n,s,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=i)}function Cf(e,t,n){var s=t.pendingProps,i=s.revealOrder,u=s.tail;if(ht(e,t,s.children,n),s=We.current,(s&2)!==0)s=s&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&&kf(e,n,t);else if(e.tag===19)kf(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}s&=1}if(De(We,s),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&La(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ql(t,!1,i,n,u);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&La(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ql(t,!0,n,null,u);break;case"together":ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(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 qg(e,t,n){switch(t.tag){case 3:wf(t),xo();break;case 5:Dd(t);break;case 1:Ct(t.type)&&ja(t);break;case 4:jl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;De(za,s._currentValue),s._currentValue=i;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(De(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?bf(e,t,n):(De(We,We.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);De(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Cf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),De(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,yf(e,t,n)}return Mn(e,t,n)}var Ef,Yl,Nf,Pf;Ef=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Yl=function(){},Nf=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Tr(mn.current);var u=null;switch(n){case"input":i=Zo(e,i),s=Zo(e,s),u=[];break;case"select":i=Z({},i,{value:void 0}),s=Z({},s,{value:void 0}),u=[];break;case"textarea":i=to(e,i),s=to(e,s),u=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ea)}cn(n,s);var f;n=null;for(I in i)if(!s.hasOwnProperty(I)&&i.hasOwnProperty(I)&&i[I]!=null)if(I==="style"){var g=i[I];for(f in g)g.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(c.hasOwnProperty(I)?u||(u=[]):(u=u||[]).push(I,null));for(I in s){var b=s[I];if(g=i!=null?i[I]:void 0,s.hasOwnProperty(I)&&b!==g&&(b!=null||g!=null))if(I==="style")if(g){for(f in g)!g.hasOwnProperty(f)||b&&b.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in b)b.hasOwnProperty(f)&&g[f]!==b[f]&&(n||(n={}),n[f]=b[f])}else n||(u||(u=[]),u.push(I,n)),n=b;else I==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,g=g?g.__html:void 0,b!=null&&g!==b&&(u=u||[]).push(I,b)):I==="children"?typeof b!="string"&&typeof b!="number"||(u=u||[]).push(I,""+b):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(c.hasOwnProperty(I)?(b!=null&&I==="onScroll"&&Le("scroll",e),u||g===b||(u=[])):(u=u||[]).push(I,b))}n&&(u=u||[]).push("style",n);var I=u;(t.updateQueue=I)&&(t.flags|=4)}},Pf=function(e,t,n,s){n!==s&&(t.flags|=4)};function Is(e,t){if(!Be)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Yg(e,t,n){var s=t.pendingProps;switch(vl(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 Ct(t.type)&&Pa(),ut(t),null;case 3:return s=t.stateNode,ko(),Fe(kt),Fe(it),Tl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(iu(qt),qt=null))),Yl(e,t),ut(t),null;case 5:Ml(t);var i=Tr(Ps.current);if(n=t.type,e!==null&&t.stateNode!=null)Nf(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(a(166));return ut(t),null}if(e=Tr(mn.current),Ia(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[hn]=t,s[bs]=u,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",s),Le("close",s);break;case"iframe":case"object":case"embed":Le("load",s);break;case"video":case"audio":for(i=0;i<xs.length;i++)Le(xs[i],s);break;case"source":Le("error",s);break;case"img":case"image":case"link":Le("error",s),Le("load",s);break;case"details":Le("toggle",s);break;case"input":Xs(s,u),Le("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Le("invalid",s);break;case"textarea":an(s,u),Le("invalid",s)}cn(n,u),i=null;for(var f in u)if(u.hasOwnProperty(f)){var g=u[f];f==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&Ca(s.textContent,g,e),i=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&Ca(s.textContent,g,e),i=["children",""+g]):c.hasOwnProperty(f)&&g!=null&&f==="onScroll"&&Le("scroll",s)}switch(n){case"input":sn(s),eo(s,u,!0);break;case"textarea":sn(s),Js(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=Ea)}s=i,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ft(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[hn]=t,e[bs]=s,Ef(e,t,!1,!1),t.stateNode=e;e:{switch(f=ns(n,s),n){case"dialog":Le("cancel",e),Le("close",e),i=s;break;case"iframe":case"object":case"embed":Le("load",e),i=s;break;case"video":case"audio":for(i=0;i<xs.length;i++)Le(xs[i],e);i=s;break;case"source":Le("error",e),i=s;break;case"img":case"image":case"link":Le("error",e),Le("load",e),i=s;break;case"details":Le("toggle",e),i=s;break;case"input":Xs(e,s),i=Zo(e,s),Le("invalid",e);break;case"option":i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=Z({},s,{value:void 0}),Le("invalid",e);break;case"textarea":an(e,s),i=to(e,s),Le("invalid",e);break;default:i=s}cn(n,i),g=i;for(u in g)if(g.hasOwnProperty(u)){var b=g[u];u==="style"?bn(e,b):u==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&ea(e,b)):u==="children"?typeof b=="string"?(n!=="textarea"||b!=="")&&un(e,b):typeof b=="number"&&un(e,""+b):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?b!=null&&u==="onScroll"&&Le("scroll",e):b!=null&&B(e,u,b,f))}switch(n){case"input":sn(e),eo(e,s,!1);break;case"textarea":sn(e),Js(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Ne(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?At(e,!!s.multiple,u,!1):s.defaultValue!=null&&At(e,!!s.multiple,s.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ea)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)Pf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(a(166));if(n=Tr(Ps.current),Tr(mn.current),Ia(t)){if(s=t.stateNode,n=t.memoizedProps,s[hn]=t,(u=s.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:Ca(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ca(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[hn]=t,t.stateNode=s}return ut(t),null;case 13:if(Fe(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&zt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Md(),xo(),t.flags|=98560,u=!1;else if(u=Ia(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(a(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(317));u[hn]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),u=!1}else qt!==null&&(iu(qt),qt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Xe===0&&(Xe=3):cu())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return ko(),Yl(e,t),e===null&&ws(t.stateNode.containerInfo),ut(t),null;case 10:return Cl(t.type._context),ut(t),null;case 17:return Ct(t.type)&&Pa(),ut(t),null;case 19:if(Fe(We),u=t.memoizedState,u===null)return ut(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)Is(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=La(e),f!==null){for(t.flags|=128,Is(u,!1),s=f.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,f=u.alternate,f===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=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return De(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&He()>Po&&(t.flags|=128,s=!0,Is(u,!1),t.lanes=4194304)}else{if(!s)if(e=La(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Is(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Be)return ut(t),null}else 2*He()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,Is(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=He(),t.sibling=null,n=We.current,De(We,s?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return uu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(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(a(156,t.tag))}function Xg(e,t){switch(vl(t),t.tag){case 1:return Ct(t.type)&&Pa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),Fe(kt),Fe(it),Tl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ml(t),null;case 13:if(Fe(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(We),null;case 4:return ko(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var Ka=!1,ct=!1,Zg=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){$e(e,t,s)}else n.current=null}function Xl(e,t,n){try{n()}catch(s){$e(e,t,s)}}var jf=!1;function Jg(e,t){if(ul=pa,e=sd(),tl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var i=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,g=-1,b=-1,I=0,W=0,$=e,U=null;t:for(;;){for(var ne;$!==n||i!==0&&$.nodeType!==3||(g=f+i),$!==u||s!==0&&$.nodeType!==3||(b=f+s),$.nodeType===3&&(f+=$.nodeValue.length),(ne=$.firstChild)!==null;)U=$,$=ne;for(;;){if($===e)break t;if(U===n&&++I===i&&(g=f),U===u&&++W===s&&(b=f),(ne=$.nextSibling)!==null)break;$=U,U=$.parentNode}$=ne}n=g===-1||b===-1?null:{start:g,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(cl={focusedElem:e,selectionRange:n},pa=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var ae=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ie=ae.memoizedProps,Ke=ae.memoizedState,R=t.stateNode,E=R.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Yt(t.type,ie),Ke);R.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(q){$e(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return ae=jf,jf=!1,ae}function Os(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&Xl(t,n,u)}i=i.next}while(i!==s)}}function Ga(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 s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Zl(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 Mf(e){var t=e.alternate;t!==null&&(e.alternate=null,Mf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[bs],delete t[hl],delete t[_g],delete t[Ag])),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 Rf(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rf(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 Jl(e,t,n){var s=e.tag;if(s===5||s===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=Ea));else if(s!==4&&(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}function eu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}var st=null,Xt=!1;function er(e,t,n){for(n=n.child;n!==null;)If(e,t,n),n=n.sibling}function If(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(ia,n)}catch{}switch(n.tag){case 5:ct||Eo(n,t);case 6:var s=st,i=Xt;st=null,er(e,t,n),st=s,Xt=i,st!==null&&(Xt?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(Xt?(e=st,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),ds(e)):pl(st,n.stateNode));break;case 4:s=st,i=Xt,st=n.stateNode.containerInfo,Xt=!0,er(e,t,n),st=s,Xt=i;break;case 0:case 11:case 14:case 15:if(!ct&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var u=i,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Xl(n,t,f),i=i.next}while(i!==s)}er(e,t,n);break;case 1:if(!ct&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){$e(n,t,g)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(ct=(s=ct)||n.memoizedState!==null,er(e,t,n),ct=s):er(e,t,n);break;default:er(e,t,n)}}function Of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zg),t.forEach(function(s){var i=ly.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var i=n[s];try{var u=e,f=t,g=f;e:for(;g!==null;){switch(g.tag){case 5:st=g.stateNode,Xt=!1;break e;case 3:st=g.stateNode.containerInfo,Xt=!0;break e;case 4:st=g.stateNode.containerInfo,Xt=!0;break e}g=g.return}if(st===null)throw Error(a(160));If(u,f,i),st=null,Xt=!1;var b=i.alternate;b!==null&&(b.return=null),i.return=null}catch(I){$e(i,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zf(t,e),t=t.sibling}function zf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),yn(e),s&4){try{Os(3,e,e.return),Ga(3,e)}catch(ie){$e(e,e.return,ie)}try{Os(5,e,e.return)}catch(ie){$e(e,e.return,ie)}}break;case 1:Zt(t,e),yn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Zt(t,e),yn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var i=e.stateNode;try{un(i,"")}catch(ie){$e(e,e.return,ie)}}if(s&4&&(i=e.stateNode,i!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,g=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Jo(i,u),ns(g,f);var I=ns(g,u);for(f=0;f<b.length;f+=2){var W=b[f],$=b[f+1];W==="style"?bn(i,$):W==="dangerouslySetInnerHTML"?ea(i,$):W==="children"?un(i,$):B(i,W,$,I)}switch(g){case"input":es(i,u);break;case"textarea":Zs(i,u);break;case"select":var U=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!u.multiple;var ne=u.value;ne!=null?At(i,!!u.multiple,ne,!1):U!==!!u.multiple&&(u.defaultValue!=null?At(i,!!u.multiple,u.defaultValue,!0):At(i,!!u.multiple,u.multiple?[]:"",!1))}i[bs]=u}catch(ie){$e(e,e.return,ie)}}break;case 6:if(Zt(t,e),yn(e),s&4){if(e.stateNode===null)throw Error(a(162));i=e.stateNode,u=e.memoizedProps;try{i.nodeValue=u}catch(ie){$e(e,e.return,ie)}}break;case 3:if(Zt(t,e),yn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ds(t.containerInfo)}catch(ie){$e(e,e.return,ie)}break;case 4:Zt(t,e),yn(e);break;case 13:Zt(t,e),yn(e),i=e.child,i.flags&8192&&(u=i.memoizedState!==null,i.stateNode.isHidden=u,!u||i.alternate!==null&&i.alternate.memoizedState!==null||(ru=He())),s&4&&Of(e);break;case 22:if(W=n!==null&&n.memoizedState!==null,e.mode&1?(ct=(I=ct)||W,Zt(t,e),ct=I):Zt(t,e),yn(e),s&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!W&&(e.mode&1)!==0)for(oe=e,W=e.child;W!==null;){for($=oe=W;oe!==null;){switch(U=oe,ne=U.child,U.tag){case 0:case 11:case 14:case 15:Os(4,U,U.return);break;case 1:Eo(U,U.return);var ae=U.stateNode;if(typeof ae.componentWillUnmount=="function"){s=U,n=U.return;try{t=s,ae.props=t.memoizedProps,ae.state=t.memoizedState,ae.componentWillUnmount()}catch(ie){$e(s,n,ie)}}break;case 5:Eo(U,U.return);break;case 22:if(U.memoizedState!==null){Df($);continue}}ne!==null?(ne.return=U,oe=ne):Df($)}W=W.sibling}e:for(W=null,$=e;;){if($.tag===5){if(W===null){W=$;try{i=$.stateNode,I?(u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=$.stateNode,b=$.memoizedProps.style,f=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=ro("display",f))}catch(ie){$e(e,e.return,ie)}}}else if($.tag===6){if(W===null)try{$.stateNode.nodeValue=I?"":$.memoizedProps}catch(ie){$e(e,e.return,ie)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===e)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===e)break e;for(;$.sibling===null;){if($.return===null||$.return===e)break e;W===$&&(W=null),$=$.return}W===$&&(W=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:Zt(t,e),yn(e),s&4&&Of(e);break;case 21:break;default:Zt(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rf(n)){var s=n;break e}n=n.return}throw Error(a(160))}switch(s.tag){case 5:var i=s.stateNode;s.flags&32&&(un(i,""),s.flags&=-33);var u=Tf(e);eu(e,u,i);break;case 3:case 4:var f=s.stateNode.containerInfo,g=Tf(e);Jl(e,g,f);break;default:throw Error(a(161))}}catch(b){$e(e,e.return,b)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ey(e,t,n){oe=e,_f(e)}function _f(e,t,n){for(var s=(e.mode&1)!==0;oe!==null;){var i=oe,u=i.child;if(i.tag===22&&s){var f=i.memoizedState!==null||Ka;if(!f){var g=i.alternate,b=g!==null&&g.memoizedState!==null||ct;g=Ka;var I=ct;if(Ka=f,(ct=b)&&!I)for(oe=i;oe!==null;)f=oe,b=f.child,f.tag===22&&f.memoizedState!==null?Lf(i):b!==null?(b.return=f,oe=b):Lf(i);for(;u!==null;)oe=u,_f(u),u=u.sibling;oe=i,Ka=g,ct=I}Af(e)}else(i.subtreeFlags&8772)!==0&&u!==null?(u.return=i,oe=u):Af(e)}}function Af(e){for(;oe!==null;){var t=oe;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||Ga(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ct)if(n===null)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Ad(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ad(t,f,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var b=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&n.focus();break;case"img":b.src&&(n.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var W=I.memoizedState;if(W!==null){var $=W.dehydrated;$!==null&&ds($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}ct||t.flags&512&&Zl(t)}catch(U){$e(t,t.return,U)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Df(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Lf(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ga(4,t)}catch(b){$e(t,n,b)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var i=t.return;try{s.componentDidMount()}catch(b){$e(t,i,b)}}var u=t.return;try{Zl(t)}catch(b){$e(t,u,b)}break;case 5:var f=t.return;try{Zl(t)}catch(b){$e(t,f,b)}}}catch(b){$e(t,t.return,b)}if(t===e){oe=null;break}var g=t.sibling;if(g!==null){g.return=t.return,oe=g;break}oe=t.return}}var ty=Math.ceil,qa=A.ReactCurrentDispatcher,tu=A.ReactCurrentOwner,Bt=A.ReactCurrentBatchConfig,Pe=0,tt=null,Ge=null,at=0,_t=0,No=qn(0),Xe=0,zs=null,Or=0,Ya=0,nu=0,_s=null,Nt=null,ru=0,Po=1/0,Rn=null,Xa=!1,ou=null,tr=null,Za=!1,nr=null,Ja=0,As=0,su=null,ei=-1,ti=0;function mt(){return(Pe&6)!==0?He():ei!==-1?ei:ei=He()}function rr(e){return(e.mode&1)===0?1:(Pe&2)!==0&&at!==0?at&-at:Lg.transition!==null?(ti===0&&(ti=Rc()),ti):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Fc(e.type)),e)}function Jt(e,t,n,s){if(50<As)throw As=0,su=null,Error(a(185));as(e,n,s),((Pe&2)===0||e!==tt)&&(e===tt&&((Pe&2)===0&&(Ya|=n),Xe===4&&or(e,at)),Pt(e,s),n===1&&Pe===0&&(t.mode&1)===0&&(Po=He()+500,Ma&&Xn()))}function Pt(e,t){var n=e.callbackNode;Lm(e,t);var s=ca(e,e===tt?at:0);if(s===0)n!==null&&Pc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Pc(n),t===1)e.tag===0?Dg(Uf.bind(null,e)):Cd(Uf.bind(null,e)),Og(function(){(Pe&6)===0&&Xn()}),n=null;else{switch(Tc(s)){case 1:n=Li;break;case 4:n=jc;break;case 16:n=aa;break;case 536870912:n=Mc;break;default:n=aa}n=Gf(n,Ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ff(e,t){if(ei=-1,ti=0,(Pe&6)!==0)throw Error(a(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=ca(e,e===tt?at:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ni(e,s);else{t=s;var i=Pe;Pe|=2;var u=Wf();(tt!==e||at!==t)&&(Rn=null,Po=He()+500,_r(e,t));do try{oy();break}catch(g){Bf(e,g)}while(!0);kl(),qa.current=u,Pe=i,Ge!==null?t=0:(tt=null,at=0,t=Xe)}if(t!==0){if(t===2&&(i=Fi(e),i!==0&&(s=i,t=au(e,i))),t===1)throw n=zs,_r(e,0),or(e,s),Pt(e,He()),n;if(t===6)or(e,s);else{if(i=e.current.alternate,(s&30)===0&&!ny(i)&&(t=ni(e,s),t===2&&(u=Fi(e),u!==0&&(s=u,t=au(e,u))),t===1))throw n=zs,_r(e,0),or(e,s),Pt(e,He()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(a(345));case 2:Ar(e,Nt,Rn);break;case 3:if(or(e,s),(s&130023424)===s&&(t=ru+500-He(),10<t)){if(ca(e,0)!==0)break;if(i=e.suspendedLanes,(i&s)!==s){mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=fl(Ar.bind(null,e,Nt,Rn),t);break}Ar(e,Nt,Rn);break;case 4:if(or(e,s),(s&4194240)===s)break;for(t=e.eventTimes,i=-1;0<s;){var f=31-Kt(s);u=1<<f,f=t[f],f>i&&(i=f),s&=~u}if(s=i,s=He()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*ty(s/1960))-s,10<s){e.timeoutHandle=fl(Ar.bind(null,e,Nt,Rn),s);break}Ar(e,Nt,Rn);break;case 5:Ar(e,Nt,Rn);break;default:throw Error(a(329))}}}return Pt(e,He()),e.callbackNode===n?Ff.bind(null,e):null}function au(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=ni(e,t),e!==2&&(t=Nt,Nt=n,t!==null&&iu(t)),e}function iu(e){Nt===null?Nt=e:Nt.push.apply(Nt,e)}function ny(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var i=n[s],u=i.getSnapshot;i=i.value;try{if(!Gt(u(),i))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 or(e,t){for(t&=~nu,t&=~Ya,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),s=1<<n;e[n]=-1,t&=~s}}function Uf(e){if((Pe&6)!==0)throw Error(a(327));jo();var t=ca(e,0);if((t&1)===0)return Pt(e,He()),null;var n=ni(e,t);if(e.tag!==0&&n===2){var s=Fi(e);s!==0&&(t=s,n=au(e,s))}if(n===1)throw n=zs,_r(e,0),or(e,t),Pt(e,He()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ar(e,Nt,Rn),Pt(e,He()),null}function lu(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(Po=He()+500,Ma&&Xn())}}function zr(e){nr!==null&&nr.tag===0&&(Pe&6)===0&&jo();var t=Pe;Pe|=1;var n=Bt.transition,s=ze;try{if(Bt.transition=null,ze=1,e)return e()}finally{ze=s,Bt.transition=n,Pe=t,(Pe&6)===0&&Xn()}}function uu(){_t=No.current,Fe(No)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ig(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(vl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Pa();break;case 3:ko(),Fe(kt),Fe(it),Tl();break;case 5:Ml(s);break;case 4:ko();break;case 13:Fe(We);break;case 19:Fe(We);break;case 10:Cl(s.type._context);break;case 22:case 23:uu()}n=n.return}if(tt=e,Ge=e=sr(e.current,null),at=_t=t,Xe=0,zs=null,nu=Ya=Or=0,Nt=_s=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],s=n.interleaved,s!==null){n.interleaved=null;var i=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=i,s.next=f}n.pending=s}Rr=null}return e}function Bf(e,t){do{var n=Ge;try{if(kl(),Fa.current=Va,Ua){for(var s=Ve.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}Ua=!1}if(Ir=0,et=Ye=Ve=null,js=!1,Ms=0,tu.current=null,n===null||n.return===null){Xe=1,zs=t,Ge=null;break}e:{var u=e,f=n.return,g=n,b=t;if(t=at,g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var I=b,W=g,$=W.tag;if((W.mode&1)===0&&($===0||$===11||$===15)){var U=W.alternate;U?(W.updateQueue=U.updateQueue,W.memoizedState=U.memoizedState,W.lanes=U.lanes):(W.updateQueue=null,W.memoizedState=null)}var ne=ff(f);if(ne!==null){ne.flags&=-257,pf(ne,f,g,u,t),ne.mode&1&&df(u,I,t),t=ne,b=I;var ae=t.updateQueue;if(ae===null){var ie=new Set;ie.add(b),t.updateQueue=ie}else ae.add(b);break e}else{if((t&1)===0){df(u,I,t),cu();break e}b=Error(a(426))}}else if(Be&&g.mode&1){var Ke=ff(f);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),pf(Ke,f,g,u,t),Sl(Co(b,g));break e}}u=b=Co(b,g),Xe!==4&&(Xe=2),_s===null?_s=[u]:_s.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var R=uf(u,b,t);_d(u,R);break e;case 1:g=b;var E=u.type,T=u.stateNode;if((u.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(tr===null||!tr.has(T)))){u.flags|=65536,t&=-t,u.lanes|=t;var q=cf(u,g,t);_d(u,q);break e}}u=u.return}while(u!==null)}$f(n)}catch(ue){t=ue,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function Wf(){var e=qa.current;return qa.current=Va,e===null?Va:e}function cu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||(Or&268435455)===0&&(Ya&268435455)===0||or(tt,at)}function ni(e,t){var n=Pe;Pe|=2;var s=Wf();(tt!==e||at!==t)&&(Rn=null,_r(e,t));do try{ry();break}catch(i){Bf(e,i)}while(!0);if(kl(),Pe=n,qa.current=s,Ge!==null)throw Error(a(261));return tt=null,at=0,Xe}function ry(){for(;Ge!==null;)Vf(Ge)}function oy(){for(;Ge!==null&&!Mm();)Vf(Ge)}function Vf(e){var t=Kf(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?$f(e):Ge=t,tu.current=null}function $f(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Yg(n,t,_t),n!==null){Ge=n;return}}else{if(n=Xg(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Xe===0&&(Xe=5)}function Ar(e,t,n){var s=ze,i=Bt.transition;try{Bt.transition=null,ze=1,sy(e,t,n,s)}finally{Bt.transition=i,ze=s}return null}function sy(e,t,n,s){do jo();while(nr!==null);if((Pe&6)!==0)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Fm(e,u),e===tt&&(Ge=tt=null,at=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Za||(Za=!0,Gf(aa,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Bt.transition,Bt.transition=null;var f=ze;ze=1;var g=Pe;Pe|=4,tu.current=null,Jg(e,n),zf(n,e),Eg(cl),pa=!!ul,cl=ul=null,e.current=n,ey(n),Rm(),Pe=g,ze=f,Bt.transition=u}else e.current=n;if(Za&&(Za=!1,nr=e,Ja=i),u=e.pendingLanes,u===0&&(tr=null),Om(n.stateNode),Pt(e,He()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],s(i.value,{componentStack:i.stack,digest:i.digest});if(Xa)throw Xa=!1,e=ou,ou=null,e;return(Ja&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===su?As++:(As=0,su=e):As=0,Xn(),null}function jo(){if(nr!==null){var e=Tc(Ja),t=Bt.transition,n=ze;try{if(Bt.transition=null,ze=16>e?16:e,nr===null)var s=!1;else{if(e=nr,nr=null,Ja=0,(Pe&6)!==0)throw Error(a(331));var i=Pe;for(Pe|=4,oe=e.current;oe!==null;){var u=oe,f=u.child;if((oe.flags&16)!==0){var g=u.deletions;if(g!==null){for(var b=0;b<g.length;b++){var I=g[b];for(oe=I;oe!==null;){var W=oe;switch(W.tag){case 0:case 11:case 15:Os(8,W,u)}var $=W.child;if($!==null)$.return=W,oe=$;else for(;oe!==null;){W=oe;var U=W.sibling,ne=W.return;if(Mf(W),W===I){oe=null;break}if(U!==null){U.return=ne,oe=U;break}oe=ne}}}var ae=u.alternate;if(ae!==null){var ie=ae.child;if(ie!==null){ae.child=null;do{var Ke=ie.sibling;ie.sibling=null,ie=Ke}while(ie!==null)}}oe=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,oe=f;else e:for(;oe!==null;){if(u=oe,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Os(9,u,u.return)}var R=u.sibling;if(R!==null){R.return=u.return,oe=R;break e}oe=u.return}}var E=e.current;for(oe=E;oe!==null;){f=oe;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,oe=T;else e:for(f=E;oe!==null;){if(g=oe,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Ga(9,g)}}catch(ue){$e(g,g.return,ue)}if(g===f){oe=null;break e}var q=g.sibling;if(q!==null){q.return=g.return,oe=q;break e}oe=g.return}}if(Pe=i,Xn(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(ia,e)}catch{}s=!0}return s}finally{ze=n,Bt.transition=t}}return!1}function Qf(e,t,n){t=Co(n,t),t=uf(e,t,1),e=Jn(e,t,1),t=mt(),e!==null&&(as(e,1,t),Pt(e,t))}function $e(e,t,n){if(e.tag===3)Qf(e,e,n);else for(;t!==null;){if(t.tag===3){Qf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(tr===null||!tr.has(s))){e=Co(n,e),e=cf(t,e,1),t=Jn(t,e,1),e=mt(),t!==null&&(as(t,1,e),Pt(t,e));break}}t=t.return}}function ay(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(at&n)===n&&(Xe===4||Xe===3&&(at&130023424)===at&&500>He()-ru?_r(e,0):nu|=n),Pt(e,t)}function Hf(e,t){t===0&&((e.mode&1)===0?t=1:(t=ua,ua<<=1,(ua&130023424)===0&&(ua=4194304)));var n=mt();e=Pn(e,t),e!==null&&(as(e,t,n),Pt(e,n))}function iy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hf(e,n)}function ly(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(a(314))}s!==null&&s.delete(t),Hf(e,n)}var Kf;Kf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Et=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Et=!1,qg(e,t,n);Et=(e.flags&131072)!==0}else Et=!1,Be&&(t.flags&1048576)!==0&&Ed(t,Ta,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ha(e,t),e=t.pendingProps;var i=go(t,it.current);bo(t,n),i=zl(null,t,s,e,i,n);var u=_l();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(s)?(u=!0,ja(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pl(t),i.updater=$a,t.stateNode=i,i._reactInternals=t,Bl(t,s,e,n),t=Ql(null,t,s,!0,u,n)):(t.tag=0,Be&&u&&yl(t),ht(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=cy(s),e=Yt(s,e),i){case 0:t=$l(null,t,s,e,n);break e;case 1:t=xf(null,t,s,e,n);break e;case 11:t=hf(null,t,s,e,n);break e;case 14:t=mf(null,t,s,Yt(s.type,e),n);break e}throw Error(a(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),$l(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),xf(e,t,s,i,n);case 3:e:{if(wf(t),e===null)throw Error(a(387));s=t.pendingProps,u=t.memoizedState,i=u.element,zd(e,t),Da(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=Co(Error(a(423)),t),t=Sf(e,t,s,n,i);break e}else if(s!==i){i=Co(Error(a(424)),t),t=Sf(e,t,s,n,i);break e}else for(zt=Gn(t.stateNode.containerInfo.firstChild),Ot=t,Be=!0,qt=null,n=Id(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),s===i){t=Mn(e,t,n);break e}ht(e,t,s,n)}t=t.child}return t;case 5:return Dd(t),e===null&&wl(t),s=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,f=i.children,dl(s,i)?f=null:u!==null&&dl(s,u)&&(t.flags|=32),vf(e,t),ht(e,t,f,n),t.child;case 6:return e===null&&wl(t),null;case 13:return bf(e,t,n);case 4:return jl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=wo(t,null,s,n):ht(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),hf(e,t,s,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,u=t.memoizedProps,f=i.value,De(za,s._currentValue),s._currentValue=f,u!==null)if(Gt(u.value,f)){if(u.children===i.children&&!kt.current){t=Mn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){f=u.child;for(var b=g.firstContext;b!==null;){if(b.context===s){if(u.tag===1){b=jn(-1,n&-n),b.tag=2;var I=u.updateQueue;if(I!==null){I=I.shared;var W=I.pending;W===null?b.next=b:(b.next=W.next,W.next=b),I.pending=b}}u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),El(u.return,n,t),g.lanes|=n;break}b=b.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(a(341));f.lanes|=n,g=f.alternate,g!==null&&(g.lanes|=n),El(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,bo(t,n),i=Ft(i),s=s(i),t.flags|=1,ht(e,t,s,n),t.child;case 14:return s=t.type,i=Yt(s,t.pendingProps),i=Yt(s.type,i),mf(e,t,s,i,n);case 15:return gf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),Ha(e,t),t.tag=1,Ct(s)?(e=!0,ja(t)):e=!1,bo(t,n),af(t,s,i),Bl(t,s,i,n),Ql(null,t,s,!0,e,n);case 19:return Cf(e,t,n);case 22:return yf(e,t,n)}throw Error(a(156,t.tag))};function Gf(e,t){return Nc(e,t)}function uy(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,s){return new uy(e,t,n,s)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cy(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H)return 11;if(e===ve)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=Wt(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 ri(e,t,n,s,i,u){var f=2;if(s=e,typeof e=="function")du(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case D:return Dr(n.children,i,u,t);case L:f=8,i|=8;break;case te:return e=Wt(12,n,t,i|2),e.elementType=te,e.lanes=u,e;case pe:return e=Wt(13,n,t,i),e.elementType=pe,e.lanes=u,e;case we:return e=Wt(19,n,t,i),e.elementType=we,e.lanes=u,e;case ke:return oi(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:f=10;break e;case F:f=9;break e;case H:f=11;break e;case ve:f=14;break e;case je:f=16,s=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=Wt(f,n,t,i),t.elementType=e,t.type=s,t.lanes=u,t}function Dr(e,t,n,s){return e=Wt(7,e,s,t),e.lanes=n,e}function oi(e,t,n,s){return e=Wt(22,e,s,t),e.elementType=ke,e.lanes=n,e.stateNode={isHidden:!1},e}function fu(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function pu(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dy(e,t,n,s,i){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=Ui(0),this.expirationTimes=Ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,s,i,u,f,g,b){return e=new dy(e,t,n,g,b),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Wt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(u),e}function fy(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function qf(e){if(!e)return Yn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ct(n))return bd(e,n,t)}return t}function Yf(e,t,n,s,i,u,f,g,b){return e=hu(n,s,!0,e,i,u,f,g,b),e.context=qf(null),n=e.current,s=mt(),i=rr(n),u=jn(s,i),u.callback=t??null,Jn(n,u,i),e.current.lanes=i,as(e,i,s),Pt(e,s),e}function si(e,t,n,s){var i=t.current,u=mt(),f=rr(i);return n=qf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Jn(i,t,f),e!==null&&(Jt(e,i,f,u),Aa(e,i,f)),f}function ai(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 Xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mu(e,t){Xf(e,t),(e=e.alternate)&&Xf(e,t)}function py(){return null}var Zf=typeof reportError=="function"?reportError:function(e){console.error(e)};function gu(e){this._internalRoot=e}ii.prototype.render=gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));si(e,t,null,null)},ii.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zr(function(){si(null,e,null,null)}),t[kn]=null}};function ii(e){this._internalRoot=e}ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=zc();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&&Dc(e)}};function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function li(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function hy(e,t,n,s,i){if(i){if(typeof s=="function"){var u=s;s=function(){var I=ai(f);u.call(I)}}var f=Yf(t,s,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=f,e[kn]=f.current,ws(e.nodeType===8?e.parentNode:e),zr(),f}for(;i=e.lastChild;)e.removeChild(i);if(typeof s=="function"){var g=s;s=function(){var I=ai(b);g.call(I)}}var b=hu(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=b,e[kn]=b.current,ws(e.nodeType===8?e.parentNode:e),zr(function(){si(t,b,n,s)}),b}function ui(e,t,n,s,i){var u=n._reactRootContainer;if(u){var f=u;if(typeof i=="function"){var g=i;i=function(){var b=ai(f);g.call(b)}}si(t,f,e,i)}else f=hy(n,t,e,i,s);return ai(f)}Ic=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ss(t.pendingLanes);n!==0&&(Bi(t,n|1),Pt(t,He()),(Pe&6)===0&&(Po=He()+500,Xn()))}break;case 13:zr(function(){var s=Pn(e,1);if(s!==null){var i=mt();Jt(s,e,1,i)}}),mu(e,1)}},Wi=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=mt();Jt(t,e,134217728,n)}mu(e,134217728)}},Oc=function(e){if(e.tag===13){var t=rr(e),n=Pn(e,t);if(n!==null){var s=mt();Jt(n,e,t,s)}mu(e,t)}},zc=function(){return ze},_c=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}},so=function(e,t,n){switch(t){case"input":if(es(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 s=n[t];if(s!==e&&s.form===e.form){var i=Na(s);if(!i)throw Error(a(90));Jr(s),es(s,i)}}}break;case"textarea":Zs(e,n);break;case"select":t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}},Te=lu,_e=zr;var my={usingClientEntryPoint:!1,Events:[ks,ho,Na,ra,ye,lu]},Ds={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gy={bundleType:Ds.bundleType,version:Ds.version,rendererPackageName:Ds.rendererPackageName,rendererConfig:Ds.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cc(e),e===null?null:e.stateNode},findFiberByHostInstance:Ds.findFiberByHostInstance||py,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 ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{ia=ci.inject(gy),pn=ci}catch{}}return jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=my,jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yu(t))throw Error(a(200));return fy(e,t,null,n)},jt.createRoot=function(e,t){if(!yu(e))throw Error(a(299));var n=!1,s="",i=Zf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hu(e,1,!1,null,null,n,!1,s,i),e[kn]=t.current,ws(e.nodeType===8?e.parentNode:e),new gu(t)},jt.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(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Cc(t),e=e===null?null:e.stateNode,e},jt.flushSync=function(e){return zr(e)},jt.hydrate=function(e,t,n){if(!li(t))throw Error(a(200));return ui(null,e,t,!0,n)},jt.hydrateRoot=function(e,t,n){if(!yu(e))throw Error(a(405));var s=n!=null&&n.hydratedSources||null,i=!1,u="",f=Zf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Yf(t,null,e,1,n??null,i,!1,u,f),e[kn]=t.current,ws(e),s)for(e=0;e<s.length;e++)n=s[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ii(t)},jt.render=function(e,t,n){if(!li(t))throw Error(a(200));return ui(null,e,t,!1,n)},jt.unmountComponentAtNode=function(e){if(!li(e))throw Error(a(40));return e._reactRootContainer?(zr(function(){ui(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},jt.unstable_batchedUpdates=lu,jt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!li(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return ui(e,t,n,!1,s)},jt.version="18.3.1-next-f1338f8080-20240426",jt}var lp;function ch(){if(lp)return Su.exports;lp=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(o){console.error(o)}}return r(),Su.exports=Cy(),Su.exports}var up;function Ey(){if(up)return fi;up=1;var r=ch();return fi.createRoot=r.createRoot,fi.hydrateRoot=r.hydrateRoot,fi}var Ny=Ey(),Ko=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(){}},Py={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},dr,tc,Xp,jy=(Xp=class{constructor(){ce(this,dr,Py);ce(this,tc,!1)}setTimeoutProvider(r){ee(this,dr,r)}setTimeout(r,o){return x(this,dr).setTimeout(r,o)}clearTimeout(r){x(this,dr).clearTimeout(r)}setInterval(r,o){return x(this,dr).setInterval(r,o)}clearInterval(r){x(this,dr).clearInterval(r)}},dr=new WeakMap,tc=new WeakMap,Xp),Lr=new jy;function My(r){setTimeout(r,0)}var Gr=typeof window>"u"||"Deno"in globalThis;function yt(){}function Ry(r,o){return typeof r=="function"?r(o):r}function zu(r){return typeof r=="number"&&r>=0&&r!==1/0}function dh(r,o){return Math.max(r+(o||0)-Date.now(),0)}function wr(r,o){return typeof r=="function"?r(o):r}function $t(r,o){return typeof r=="function"?r(o):r}function cp(r,o){const{type:a="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:h}=r;if(m){if(l){if(o.queryHash!==rc(m,o.options))return!1}else if(!Ws(o.queryKey,m))return!1}if(a!=="all"){const S=o.isActive();if(a==="active"&&!S||a==="inactive"&&S)return!1}return!(typeof h=="boolean"&&o.isStale()!==h||c&&c!==o.state.fetchStatus||d&&!d(o))}function dp(r,o){const{exact:a,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(a){if(qr(o.options.mutationKey)!==qr(d))return!1}else if(!Ws(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function rc(r,o){return((o==null?void 0:o.queryKeyHashFn)||qr)(r)}function qr(r){return JSON.stringify(r,(o,a)=>_u(a)?Object.keys(a).sort().reduce((l,c)=>(l[c]=a[c],l),{}):a)}function Ws(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(a=>Ws(r[a],o[a])):!1}var Ty=Object.prototype.hasOwnProperty;function fh(r,o,a=0){if(r===o)return r;if(a>500)return o;const l=fp(r)&&fp(o);if(!l&&!(_u(r)&&_u(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),h=m.length,S=l?new Array(h):{};let y=0;for(let C=0;C<h;C++){const N=l?C:m[C],j=r[N],v=o[N];if(j===v){S[N]=j,(l?C<d:Ty.call(r,N))&&y++;continue}if(j===null||v===null||typeof j!="object"||typeof v!="object"){S[N]=v;continue}const _=fh(j,v,a+1);S[N]=_,_===j&&y++}return d===h&&y===d?r:S}function Mi(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const a in r)if(r[a]!==o[a])return!1;return!0}function fp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function _u(r){if(!pp(r))return!1;const o=r.constructor;if(o===void 0)return!0;const a=o.prototype;return!(!pp(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function pp(r){return Object.prototype.toString.call(r)==="[object Object]"}function Iy(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Au(r,o,a){return typeof a.structuralSharing=="function"?a.structuralSharing(r,o):a.structuralSharing!==!1?fh(r,o):o}function Oy(r,o,a=0){const l=[...r,o];return a&&l.length>a?l.slice(1):l}function zy(r,o,a=0){const l=[o,...r];return a&&l.length>a?l.slice(0,-1):l}var oc=Symbol();function ph(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===oc?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function sc(r,o){return typeof r=="function"?r(...o):!!r}function _y(r,o,a){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?a():c.addEventListener("abort",a,{once:!0})),c)}),r}var Fr,fr,_o,Zp,Ay=(Zp=class extends Ko{constructor(){super();ce(this,Fr);ce(this,fr);ce(this,_o);ee(this,_o,o=>{if(!Gr&&window.addEventListener){const a=()=>o();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){x(this,fr)||this.setEventListener(x(this,_o))}onUnsubscribe(){var o;this.hasListeners()||((o=x(this,fr))==null||o.call(this),ee(this,fr,void 0))}setEventListener(o){var a;ee(this,_o,o),(a=x(this,fr))==null||a.call(this),ee(this,fr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){x(this,Fr)!==o&&(ee(this,Fr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(a=>{a(o)})}isFocused(){var o;return typeof x(this,Fr)=="boolean"?x(this,Fr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Fr=new WeakMap,fr=new WeakMap,_o=new WeakMap,Zp),ac=new Ay;function Du(){let r,o;const a=new Promise((c,d)=>{r=c,o=d});a.status="pending",a.catch(()=>{});function l(c){Object.assign(a,c),delete a.resolve,delete a.reject}return a.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},a.reject=c=>{l({status:"rejected",reason:c}),o(c)},a}var Dy=My;function Ly(){let r=[],o=0,a=h=>{h()},l=h=>{h()},c=Dy;const d=h=>{o?r.push(h):c(()=>{a(h)})},m=()=>{const h=r;r=[],h.length&&c(()=>{l(()=>{h.forEach(S=>{a(S)})})})};return{batch:h=>{let S;o++;try{S=h()}finally{o--,o||m()}return S},batchCalls:h=>(...S)=>{d(()=>{h(...S)})},schedule:d,setNotifyFunction:h=>{a=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{c=h}}}var Ze=Ly(),Ao,pr,Do,Jp,Fy=(Jp=class extends Ko{constructor(){super();ce(this,Ao,!0);ce(this,pr);ce(this,Do);ee(this,Do,o=>{if(!Gr&&window.addEventListener){const a=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}})}onSubscribe(){x(this,pr)||this.setEventListener(x(this,Do))}onUnsubscribe(){var o;this.hasListeners()||((o=x(this,pr))==null||o.call(this),ee(this,pr,void 0))}setEventListener(o){var a;ee(this,Do,o),(a=x(this,pr))==null||a.call(this),ee(this,pr,o(this.setOnline.bind(this)))}setOnline(o){x(this,Ao)!==o&&(ee(this,Ao,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return x(this,Ao)}},Ao=new WeakMap,pr=new WeakMap,Do=new WeakMap,Jp),Ri=new Fy;function Uy(r){return Math.min(1e3*2**r,3e4)}function hh(r){return(r??"online")==="online"?Ri.isOnline():!0}var Lu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function mh(r){let o=!1,a=0,l;const c=Du(),d=()=>c.status!=="pending",m=w=>{var M;if(!d()){const V=new Lu(w);j(V),(M=r.onCancel)==null||M.call(r,V)}},h=()=>{o=!0},S=()=>{o=!1},y=()=>ac.isFocused()&&(r.networkMode==="always"||Ri.isOnline())&&r.canRun(),C=()=>hh(r.networkMode)&&r.canRun(),N=w=>{d()||(l==null||l(),c.resolve(w))},j=w=>{d()||(l==null||l(),c.reject(w))},v=()=>new Promise(w=>{var M;l=V=>{(d()||y())&&w(V)},(M=r.onPause)==null||M.call(r)}).then(()=>{var w;l=void 0,d()||(w=r.onContinue)==null||w.call(r)}),_=()=>{if(d())return;let w;const M=a===0?r.initialPromise:void 0;try{w=M??r.fn()}catch(V){w=Promise.reject(V)}Promise.resolve(w).then(N).catch(V=>{var Q;if(d())return;const G=r.retry??(Gr?0:3),B=r.retryDelay??Uy,A=typeof B=="function"?B(a,V):B,z=G===!0||typeof G=="number"&&a<G||typeof G=="function"&&G(a,V);if(o||!z){j(V);return}a++,(Q=r.onFail)==null||Q.call(r,a,V),Iy(A).then(()=>y()?void 0:v()).then(()=>{o?j(V):_()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:h,continueRetry:S,canStart:C,start:()=>(C()?_():v().then(_),c)}}var Ur,eh,gh=(eh=class{constructor(){ce(this,Ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zu(this.gcTime)&&ee(this,Ur,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Gr?1/0:300*1e3))}clearGcTimeout(){x(this,Ur)&&(Lr.clearTimeout(x(this,Ur)),ee(this,Ur,void 0))}},Ur=new WeakMap,eh),Br,Lo,Vt,Wr,rt,Qs,Vr,nn,In,th,By=(th=class extends gh{constructor(o){super();ce(this,nn);ce(this,Br);ce(this,Lo);ce(this,Vt);ce(this,Wr);ce(this,rt);ce(this,Qs);ce(this,Vr);ee(this,Vr,!1),ee(this,Qs,o.defaultOptions),this.setOptions(o.options),this.observers=[],ee(this,Wr,o.client),ee(this,Vt,x(this,Wr).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,ee(this,Br,mp(this.options)),this.state=o.state??x(this,Br),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=x(this,rt))==null?void 0:o.promise}setOptions(o){if(this.options={...x(this,Qs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=mp(this.options);a.data!==void 0&&(this.setState(hp(a.data,a.dataUpdatedAt)),ee(this,Br,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,Vt).remove(this)}setData(o,a){const l=Au(this.state.data,o,this.options);return Se(this,nn,In).call(this,{data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),l}setState(o,a){Se(this,nn,In).call(this,{type:"setState",state:o,setStateOptions:a})}cancel(o){var l,c;const a=(l=x(this,rt))==null?void 0:l.promise;return(c=x(this,rt))==null||c.cancel(o),a?a.then(yt).catch(yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Br))}isActive(){return this.observers.some(o=>$t(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>wr(o.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(o=>o.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(o=0){return this.state.data===void 0?!0:o==="static"?!1:this.state.isInvalidated?!0:!dh(this.state.dataUpdatedAt,o)}onFocus(){var a;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(a=x(this,rt))==null||a.continue()}onOnline(){var a;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(a=x(this,rt))==null||a.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),x(this,Vt).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(a=>a!==o),this.observers.length||(x(this,rt)&&(x(this,Vr)?x(this,rt).cancel({revert:!0}):x(this,rt).cancelRetry()),this.scheduleGc()),x(this,Vt).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,nn,In).call(this,{type:"invalidate"})}async fetch(o,a){var S,y,C,N,j,v,_,w,M,V,G,B;if(this.state.fetchStatus!=="idle"&&((S=x(this,rt))==null?void 0:S.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(x(this,rt))return x(this,rt).continueRetry(),x(this,rt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const A=this.observers.find(z=>z.options.queryFn);A&&this.setOptions(A.options)}const l=new AbortController,c=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ee(this,Vr,!0),l.signal)})},d=()=>{const A=ph(this.options,a),Q=(()=>{const D={client:x(this,Wr),queryKey:this.queryKey,meta:this.meta};return c(D),D})();return ee(this,Vr,!1),this.options.persister?this.options.persister(A,Q,this):A(Q)},h=(()=>{const A={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:x(this,Wr),state:this.state,fetchFn:d};return c(A),A})();(y=this.options.behavior)==null||y.onFetch(h,this),ee(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&Se(this,nn,In).call(this,{type:"fetch",meta:(N=h.fetchOptions)==null?void 0:N.meta}),ee(this,rt,mh({initialPromise:a==null?void 0:a.initialPromise,fn:h.fetchFn,onCancel:A=>{A instanceof Lu&&A.revert&&this.setState({...x(this,Lo),fetchStatus:"idle"}),l.abort()},onFail:(A,z)=>{Se(this,nn,In).call(this,{type:"failed",failureCount:A,error:z})},onPause:()=>{Se(this,nn,In).call(this,{type:"pause"})},onContinue:()=>{Se(this,nn,In).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const A=await x(this,rt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(v=(j=x(this,Vt).config).onSuccess)==null||v.call(j,A,this),(w=(_=x(this,Vt).config).onSettled)==null||w.call(_,A,this.state.error,this),A}catch(A){if(A instanceof Lu){if(A.silent)return x(this,rt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Se(this,nn,In).call(this,{type:"error",error:A}),(V=(M=x(this,Vt).config).onError)==null||V.call(M,A,this),(B=(G=x(this,Vt).config).onSettled)==null||B.call(G,this.state.data,A,this),A}finally{this.scheduleGc()}}},Br=new WeakMap,Lo=new WeakMap,Vt=new WeakMap,Wr=new WeakMap,rt=new WeakMap,Qs=new WeakMap,Vr=new WeakMap,nn=new WeakSet,In=function(o){const a=l=>{switch(o.type){case"failed":return{...l,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...yh(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...hp(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,Lo,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=a(this.state),Ze.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),x(this,Vt).notify({query:this,type:"updated",action:o})})},th);function yh(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function hp(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function mp(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,a=o!==void 0,l=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:a?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Mt,Ee,Hs,gt,$r,Fo,On,hr,Ks,Uo,Bo,Qr,Hr,mr,Wo,Oe,Bs,Fu,Uu,Bu,Wu,Vu,$u,Qu,vh,nh,Wy=(nh=class extends Ko{constructor(o,a){super();ce(this,Oe);ce(this,Mt);ce(this,Ee);ce(this,Hs);ce(this,gt);ce(this,$r);ce(this,Fo);ce(this,On);ce(this,hr);ce(this,Ks);ce(this,Uo);ce(this,Bo);ce(this,Qr);ce(this,Hr);ce(this,mr);ce(this,Wo,new Set);this.options=a,ee(this,Mt,o),ee(this,hr,null),ee(this,On,Du()),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,Ee).addObserver(this),gp(x(this,Ee),this.options)?Se(this,Oe,Bs).call(this):this.updateResult(),Se(this,Oe,Wu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hu(x(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hu(x(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,Oe,Vu).call(this),Se(this,Oe,$u).call(this),x(this,Ee).removeObserver(this)}setOptions(o){const a=this.options,l=x(this,Ee);if(this.options=x(this,Mt).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $t(this.options.enabled,x(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,Oe,Qu).call(this),x(this,Ee).setOptions(this.options),a._defaulted&&!Mi(this.options,a)&&x(this,Mt).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,Ee),observer:this});const c=this.hasListeners();c&&yp(x(this,Ee),l,this.options,a)&&Se(this,Oe,Bs).call(this),this.updateResult(),c&&(x(this,Ee)!==l||$t(this.options.enabled,x(this,Ee))!==$t(a.enabled,x(this,Ee))||wr(this.options.staleTime,x(this,Ee))!==wr(a.staleTime,x(this,Ee)))&&Se(this,Oe,Fu).call(this);const d=Se(this,Oe,Uu).call(this);c&&(x(this,Ee)!==l||$t(this.options.enabled,x(this,Ee))!==$t(a.enabled,x(this,Ee))||d!==x(this,mr))&&Se(this,Oe,Bu).call(this,d)}getOptimisticResult(o){const a=x(this,Mt).getQueryCache().build(x(this,Mt),o),l=this.createResult(a,o);return $y(this,l)&&(ee(this,gt,l),ee(this,Fo,this.options),ee(this,$r,x(this,Ee).state)),l}getCurrentResult(){return x(this,gt)}trackResult(o,a){return new Proxy(o,{get:(l,c)=>(this.trackProp(c),a==null||a(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&x(this,On).status==="pending"&&x(this,On).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){x(this,Wo).add(o)}getCurrentQuery(){return x(this,Ee)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const a=x(this,Mt).defaultQueryOptions(o),l=x(this,Mt).getQueryCache().build(x(this,Mt),a);return l.fetch().then(()=>this.createResult(l,a))}fetch(o){return Se(this,Oe,Bs).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,gt)))}createResult(o,a){var te;const l=x(this,Ee),c=this.options,d=x(this,gt),m=x(this,$r),h=x(this,Fo),y=o!==l?o.state:x(this,Hs),{state:C}=o;let N={...C},j=!1,v;if(a._optimisticResults){const re=this.hasListeners(),F=!re&&gp(o,a),H=re&&yp(o,l,a,c);(F||H)&&(N={...N,...yh(C.data,o.options)}),a._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:M}=N;v=N.data;let V=!1;if(a.placeholderData!==void 0&&v===void 0&&M==="pending"){let re;d!=null&&d.isPlaceholderData&&a.placeholderData===(h==null?void 0:h.placeholderData)?(re=d.data,V=!0):re=typeof a.placeholderData=="function"?a.placeholderData((te=x(this,Bo))==null?void 0:te.state.data,x(this,Bo)):a.placeholderData,re!==void 0&&(M="success",v=Au(d==null?void 0:d.data,re,a),j=!0)}if(a.select&&v!==void 0&&!V)if(d&&v===(m==null?void 0:m.data)&&a.select===x(this,Ks))v=x(this,Uo);else try{ee(this,Ks,a.select),v=a.select(v),v=Au(d==null?void 0:d.data,v,a),ee(this,Uo,v),ee(this,hr,null)}catch(re){ee(this,hr,re)}x(this,hr)&&(_=x(this,hr),v=x(this,Uo),w=Date.now(),M="error");const G=N.fetchStatus==="fetching",B=M==="pending",A=M==="error",z=B&&G,Q=v!==void 0,L={status:M,fetchStatus:N.fetchStatus,isPending:B,isSuccess:M==="success",isError:A,isInitialLoading:z,isLoading:z,data:v,dataUpdatedAt:N.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>y.dataUpdateCount||N.errorUpdateCount>y.errorUpdateCount,isFetching:G,isRefetching:G&&!B,isLoadingError:A&&!Q,isPaused:N.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:A&&Q,isStale:ic(o,a),refetch:this.refetch,promise:x(this,On),isEnabled:$t(a.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const re=L.data!==void 0,F=L.status==="error"&&!re,H=ve=>{F?ve.reject(L.error):re&&ve.resolve(L.data)},pe=()=>{const ve=ee(this,On,L.promise=Du());H(ve)},we=x(this,On);switch(we.status){case"pending":o.queryHash===l.queryHash&&H(we);break;case"fulfilled":(F||L.data!==we.value)&&pe();break;case"rejected":(!F||L.error!==we.reason)&&pe();break}}return L}updateResult(){const o=x(this,gt),a=this.createResult(x(this,Ee),this.options);if(ee(this,$r,x(this,Ee).state),ee(this,Fo,this.options),x(this,$r).data!==void 0&&ee(this,Bo,x(this,Ee)),Mi(a,o))return;ee(this,gt,a);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!x(this,Wo).size)return!0;const m=new Set(d??x(this,Wo));return this.options.throwOnError&&m.add("error"),Object.keys(x(this,gt)).some(h=>{const S=h;return x(this,gt)[S]!==o[S]&&m.has(S)})};Se(this,Oe,vh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,Oe,Wu).call(this)}},Mt=new WeakMap,Ee=new WeakMap,Hs=new WeakMap,gt=new WeakMap,$r=new WeakMap,Fo=new WeakMap,On=new WeakMap,hr=new WeakMap,Ks=new WeakMap,Uo=new WeakMap,Bo=new WeakMap,Qr=new WeakMap,Hr=new WeakMap,mr=new WeakMap,Wo=new WeakMap,Oe=new WeakSet,Bs=function(o){Se(this,Oe,Qu).call(this);let a=x(this,Ee).fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(yt)),a},Fu=function(){Se(this,Oe,Vu).call(this);const o=wr(this.options.staleTime,x(this,Ee));if(Gr||x(this,gt).isStale||!zu(o))return;const l=dh(x(this,gt).dataUpdatedAt,o)+1;ee(this,Qr,Lr.setTimeout(()=>{x(this,gt).isStale||this.updateResult()},l))},Uu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,Ee)):this.options.refetchInterval)??!1},Bu=function(o){Se(this,Oe,$u).call(this),ee(this,mr,o),!(Gr||$t(this.options.enabled,x(this,Ee))===!1||!zu(x(this,mr))||x(this,mr)===0)&&ee(this,Hr,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||ac.isFocused())&&Se(this,Oe,Bs).call(this)},x(this,mr)))},Wu=function(){Se(this,Oe,Fu).call(this),Se(this,Oe,Bu).call(this,Se(this,Oe,Uu).call(this))},Vu=function(){x(this,Qr)&&(Lr.clearTimeout(x(this,Qr)),ee(this,Qr,void 0))},$u=function(){x(this,Hr)&&(Lr.clearInterval(x(this,Hr)),ee(this,Hr,void 0))},Qu=function(){const o=x(this,Mt).getQueryCache().build(x(this,Mt),this.options);if(o===x(this,Ee))return;const a=x(this,Ee);ee(this,Ee,o),ee(this,Hs,o.state),this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))},vh=function(o){Ze.batch(()=>{o.listeners&&this.listeners.forEach(a=>{a(x(this,gt))}),x(this,Mt).getQueryCache().notify({query:x(this,Ee),type:"observerResultsUpdated"})})},nh);function Vy(r,o){return $t(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function gp(r,o){return Vy(r,o)||r.state.data!==void 0&&Hu(r,o,o.refetchOnMount)}function Hu(r,o,a){if($t(o.enabled,r)!==!1&&wr(o.staleTime,r)!=="static"){const l=typeof a=="function"?a(r):a;return l==="always"||l!==!1&&ic(r,o)}return!1}function yp(r,o,a,l){return(r!==o||$t(l.enabled,r)===!1)&&(!a.suspense||r.state.status!=="error")&&ic(r,a)}function ic(r,o){return $t(o.enabled,r)!==!1&&r.isStaleByTime(wr(o.staleTime,r))}function $y(r,o){return!Mi(r.getCurrentResult(),o)}function vp(r){return{onFetch:(o,a)=>{var C,N,j,v,_;const l=o.options,c=(j=(N=(C=o.fetchOptions)==null?void 0:C.meta)==null?void 0:N.fetchMore)==null?void 0:j.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((_=o.state.data)==null?void 0:_.pageParams)||[];let h={pages:[],pageParams:[]},S=0;const y=async()=>{let w=!1;const M=B=>{_y(B,()=>o.signal,()=>w=!0)},V=ph(o.options,o.fetchOptions),G=async(B,A,z)=>{if(w)return Promise.reject();if(A==null&&B.pages.length)return Promise.resolve(B);const D=(()=>{const F={client:o.client,queryKey:o.queryKey,pageParam:A,direction:z?"backward":"forward",meta:o.options.meta};return M(F),F})(),L=await V(D),{maxPages:te}=o.options,re=z?zy:Oy;return{pages:re(B.pages,L,te),pageParams:re(B.pageParams,A,te)}};if(c&&d.length){const B=c==="backward",A=B?Qy:xp,z={pages:d,pageParams:m},Q=A(l,z);h=await G(z,Q,B)}else{const B=r??d.length;do{const A=S===0?m[0]??l.initialPageParam:xp(l,h);if(S>0&&A==null)break;h=await G(h,A),S++}while(S<B)}return h};o.options.persister?o.fetchFn=()=>{var w,M;return(M=(w=o.options).persister)==null?void 0:M.call(w,y,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},a)}:o.fetchFn=y}}}function xp(r,{pages:o,pageParams:a}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,a[l],a):void 0}function Qy(r,{pages:o,pageParams:a}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,a[0],a):void 0}var Gs,vn,dt,Kr,xn,ur,rh,Hy=(rh=class extends gh{constructor(o){super();ce(this,xn);ce(this,Gs);ce(this,vn);ce(this,dt);ce(this,Kr);ee(this,Gs,o.client),this.mutationId=o.mutationId,ee(this,dt,o.mutationCache),ee(this,vn,[]),this.state=o.state||xh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){x(this,vn).includes(o)||(x(this,vn).push(o),this.clearGcTimeout(),x(this,dt).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){ee(this,vn,x(this,vn).filter(a=>a!==o)),this.scheduleGc(),x(this,dt).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){x(this,vn).length||(this.state.status==="pending"?this.scheduleGc():x(this,dt).remove(this))}continue(){var o;return((o=x(this,Kr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,h,S,y,C,N,j,v,_,w,M,V,G,B,A,z,Q,D;const a=()=>{Se(this,xn,ur).call(this,{type:"continue"})},l={client:x(this,Gs),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,Kr,mh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(L,te)=>{Se(this,xn,ur).call(this,{type:"failed",failureCount:L,error:te})},onPause:()=>{Se(this,xn,ur).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,dt).canRun(this)}));const c=this.state.status==="pending",d=!x(this,Kr).canStart();try{if(c)a();else{Se(this,xn,ur).call(this,{type:"pending",variables:o,isPaused:d}),x(this,dt).config.onMutate&&await x(this,dt).config.onMutate(o,this,l);const te=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,o,l));te!==this.state.context&&Se(this,xn,ur).call(this,{type:"pending",context:te,variables:o,isPaused:d})}const L=await x(this,Kr).start();return await((y=(S=x(this,dt).config).onSuccess)==null?void 0:y.call(S,L,o,this.state.context,this,l)),await((N=(C=this.options).onSuccess)==null?void 0:N.call(C,L,o,this.state.context,l)),await((v=(j=x(this,dt).config).onSettled)==null?void 0:v.call(j,L,null,this.state.variables,this.state.context,this,l)),await((w=(_=this.options).onSettled)==null?void 0:w.call(_,L,null,o,this.state.context,l)),Se(this,xn,ur).call(this,{type:"success",data:L}),L}catch(L){try{await((V=(M=x(this,dt).config).onError)==null?void 0:V.call(M,L,o,this.state.context,this,l))}catch(te){Promise.reject(te)}try{await((B=(G=this.options).onError)==null?void 0:B.call(G,L,o,this.state.context,l))}catch(te){Promise.reject(te)}try{await((z=(A=x(this,dt).config).onSettled)==null?void 0:z.call(A,void 0,L,this.state.variables,this.state.context,this,l))}catch(te){Promise.reject(te)}try{await((D=(Q=this.options).onSettled)==null?void 0:D.call(Q,void 0,L,o,this.state.context,l))}catch(te){Promise.reject(te)}throw Se(this,xn,ur).call(this,{type:"error",error:L}),L}finally{x(this,dt).runNext(this)}}},Gs=new WeakMap,vn=new WeakMap,dt=new WeakMap,Kr=new WeakMap,xn=new WeakSet,ur=function(o){const a=l=>{switch(o.type){case"failed":return{...l,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...l,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:o.error,failureCount:l.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Ze.batch(()=>{x(this,vn).forEach(l=>{l.onMutationUpdate(o)}),x(this,dt).notify({mutation:this,type:"updated",action:o})})},rh);function xh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,rn,qs,oh,Ky=(oh=class extends Ko{constructor(o={}){super();ce(this,zn);ce(this,rn);ce(this,qs);this.config=o,ee(this,zn,new Set),ee(this,rn,new Map),ee(this,qs,0)}build(o,a,l){const c=new Hy({client:o,mutationCache:this,mutationId:++di(this,qs)._,options:o.defaultMutationOptions(a),state:l});return this.add(c),c}add(o){x(this,zn).add(o);const a=pi(o);if(typeof a=="string"){const l=x(this,rn).get(a);l?l.push(o):x(this,rn).set(a,[o])}this.notify({type:"added",mutation:o})}remove(o){if(x(this,zn).delete(o)){const a=pi(o);if(typeof a=="string"){const l=x(this,rn).get(a);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&x(this,rn).delete(a)}}this.notify({type:"removed",mutation:o})}canRun(o){const a=pi(o);if(typeof a=="string"){const l=x(this,rn).get(a),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const a=pi(o);if(typeof a=="string"){const c=(l=x(this,rn).get(a))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{x(this,zn).forEach(o=>{this.notify({type:"removed",mutation:o})}),x(this,zn).clear(),x(this,rn).clear()})}getAll(){return Array.from(x(this,zn))}find(o){const a={exact:!0,...o};return this.getAll().find(l=>dp(a,l))}findAll(o={}){return this.getAll().filter(a=>dp(o,a))}notify(o){Ze.batch(()=>{this.listeners.forEach(a=>{a(o)})})}resumePausedMutations(){const o=this.getAll().filter(a=>a.state.isPaused);return Ze.batch(()=>Promise.all(o.map(a=>a.continue().catch(yt))))}},zn=new WeakMap,rn=new WeakMap,qs=new WeakMap,oh);function pi(r){var o;return(o=r.options.scope)==null?void 0:o.id}var _n,gr,Rt,An,Ln,wi,Ku,sh,Gy=(sh=class extends Ko{constructor(a,l){super();ce(this,Ln);ce(this,_n);ce(this,gr);ce(this,Rt);ce(this,An);ee(this,_n,a),this.setOptions(l),this.bindMethods(),Se(this,Ln,wi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var c;const l=this.options;this.options=x(this,_n).defaultMutationOptions(a),Mi(this.options,l)||x(this,_n).getMutationCache().notify({type:"observerOptionsUpdated",mutation:x(this,Rt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&qr(l.mutationKey)!==qr(this.options.mutationKey)?this.reset():((c=x(this,Rt))==null?void 0:c.state.status)==="pending"&&x(this,Rt).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=x(this,Rt))==null||a.removeObserver(this)}onMutationUpdate(a){Se(this,Ln,wi).call(this),Se(this,Ln,Ku).call(this,a)}getCurrentResult(){return x(this,gr)}reset(){var a;(a=x(this,Rt))==null||a.removeObserver(this),ee(this,Rt,void 0),Se(this,Ln,wi).call(this),Se(this,Ln,Ku).call(this)}mutate(a,l){var c;return ee(this,An,l),(c=x(this,Rt))==null||c.removeObserver(this),ee(this,Rt,x(this,_n).getMutationCache().build(x(this,_n),this.options)),x(this,Rt).addObserver(this),x(this,Rt).execute(a)}},_n=new WeakMap,gr=new WeakMap,Rt=new WeakMap,An=new WeakMap,Ln=new WeakSet,wi=function(){var l;const a=((l=x(this,Rt))==null?void 0:l.state)??xh();ee(this,gr,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Ku=function(a){Ze.batch(()=>{var l,c,d,m,h,S,y,C;if(x(this,An)&&this.hasListeners()){const N=x(this,gr).variables,j=x(this,gr).context,v={client:x(this,_n),meta:this.options.meta,mutationKey:this.options.mutationKey};if((a==null?void 0:a.type)==="success"){try{(c=(l=x(this,An)).onSuccess)==null||c.call(l,a.data,N,j,v)}catch(_){Promise.reject(_)}try{(m=(d=x(this,An)).onSettled)==null||m.call(d,a.data,null,N,j,v)}catch(_){Promise.reject(_)}}else if((a==null?void 0:a.type)==="error"){try{(S=(h=x(this,An)).onError)==null||S.call(h,a.error,N,j,v)}catch(_){Promise.reject(_)}try{(C=(y=x(this,An)).onSettled)==null||C.call(y,void 0,a.error,N,j,v)}catch(_){Promise.reject(_)}}}this.listeners.forEach(N=>{N(x(this,gr))})})},sh),wn,ah,qy=(ah=class extends Ko{constructor(o={}){super();ce(this,wn);this.config=o,ee(this,wn,new Map)}build(o,a,l){const c=a.queryKey,d=a.queryHash??rc(c,a);let m=this.get(d);return m||(m=new By({client:o,queryKey:c,queryHash:d,options:o.defaultQueryOptions(a),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){x(this,wn).has(o.queryHash)||(x(this,wn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const a=x(this,wn).get(o.queryHash);a&&(o.destroy(),a===o&&x(this,wn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Ze.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return x(this,wn).get(o)}getAll(){return[...x(this,wn).values()]}find(o){const a={exact:!0,...o};return this.getAll().find(l=>cp(a,l))}findAll(o={}){const a=this.getAll();return Object.keys(o).length>0?a.filter(l=>cp(o,l)):a}notify(o){Ze.batch(()=>{this.listeners.forEach(a=>{a(o)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},wn=new WeakMap,ah),Qe,yr,vr,Vo,$o,xr,Qo,Ho,ih,Yy=(ih=class{constructor(r={}){ce(this,Qe);ce(this,yr);ce(this,vr);ce(this,Vo);ce(this,$o);ce(this,xr);ce(this,Qo);ce(this,Ho);ee(this,Qe,r.queryCache||new qy),ee(this,yr,r.mutationCache||new Ky),ee(this,vr,r.defaultOptions||{}),ee(this,Vo,new Map),ee(this,$o,new Map),ee(this,xr,0)}mount(){di(this,xr)._++,x(this,xr)===1&&(ee(this,Qo,ac.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,Qe).onFocus())})),ee(this,Ho,Ri.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,Qe).onOnline())})))}unmount(){var r,o;di(this,xr)._--,x(this,xr)===0&&((r=x(this,Qo))==null||r.call(this),ee(this,Qo,void 0),(o=x(this,Ho))==null||o.call(this),ee(this,Ho,void 0))}isFetching(r){return x(this,Qe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return x(this,yr).findAll({...r,status:"pending"}).length}getQueryData(r){var a;const o=this.defaultQueryOptions({queryKey:r});return(a=x(this,Qe).get(o.queryHash))==null?void 0:a.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),a=x(this,Qe).build(this,o),l=a.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&a.isStaleByTime(wr(o.staleTime,a))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return x(this,Qe).findAll(r).map(({queryKey:o,state:a})=>{const l=a.data;return[o,l]})}setQueryData(r,o,a){const l=this.defaultQueryOptions({queryKey:r}),c=x(this,Qe).get(l.queryHash),d=c==null?void 0:c.state.data,m=Ry(o,d);if(m!==void 0)return x(this,Qe).build(this,l).setData(m,{...a,manual:!0})}setQueriesData(r,o,a){return Ze.batch(()=>x(this,Qe).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,a)]))}getQueryState(r){var a;const o=this.defaultQueryOptions({queryKey:r});return(a=x(this,Qe).get(o.queryHash))==null?void 0:a.state}removeQueries(r){const o=x(this,Qe);Ze.batch(()=>{o.findAll(r).forEach(a=>{o.remove(a)})})}resetQueries(r,o){const a=x(this,Qe);return Ze.batch(()=>(a.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const a={revert:!0,...o},l=Ze.batch(()=>x(this,Qe).findAll(r).map(c=>c.cancel(a)));return Promise.all(l).then(yt).catch(yt)}invalidateQueries(r,o={}){return Ze.batch(()=>(x(this,Qe).findAll(r).forEach(a=>{a.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"},o)))}refetchQueries(r,o={}){const a={...o,cancelRefetch:o.cancelRefetch??!0},l=Ze.batch(()=>x(this,Qe).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,a);return a.throwOnError||(d=d.catch(yt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(yt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const a=x(this,Qe).build(this,o);return a.isStaleByTime(wr(o.staleTime,a))?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(yt).catch(yt)}fetchInfiniteQuery(r){return r.behavior=vp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(yt).catch(yt)}ensureInfiniteQueryData(r){return r.behavior=vp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ri.isOnline()?x(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Qe)}getMutationCache(){return x(this,yr)}getDefaultOptions(){return x(this,vr)}setDefaultOptions(r){ee(this,vr,r)}setQueryDefaults(r,o){x(this,Vo).set(qr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...x(this,Vo).values()],a={};return o.forEach(l=>{Ws(r,l.queryKey)&&Object.assign(a,l.defaultOptions)}),a}setMutationDefaults(r,o){x(this,$o).set(qr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...x(this,$o).values()],a={};return o.forEach(l=>{Ws(r,l.mutationKey)&&Object.assign(a,l.defaultOptions)}),a}defaultQueryOptions(r){if(r._defaulted)return r;const o={...x(this,vr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=rc(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===oc&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...x(this,vr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){x(this,Qe).clear(),x(this,yr).clear()}},Qe=new WeakMap,yr=new WeakMap,vr=new WeakMap,Vo=new WeakMap,$o=new WeakMap,xr=new WeakMap,Qo=new WeakMap,Ho=new WeakMap,ih),wh=k.createContext(void 0),Go=r=>{const o=k.useContext(wh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Xy=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),p.jsx(wh.Provider,{value:r,children:o})),Sh=k.createContext(!1),Zy=()=>k.useContext(Sh);Sh.Provider;function Jy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var ev=k.createContext(Jy()),tv=()=>k.useContext(ev),nv=(r,o,a)=>{const l=a!=null&&a.state.error&&typeof r.throwOnError=="function"?sc(r.throwOnError,[a.state.error,a]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},rv=r=>{k.useEffect(()=>{r.clearReset()},[r])},ov=({result:r,errorResetBoundary:o,throwOnError:a,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||sc(a,[r.error,l])),sv=r=>{if(r.suspense){const a=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>a(l(...c)):a(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},av=(r,o)=>r.isLoading&&r.isFetching&&!o,iv=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,wp=(r,o,a)=>o.fetchOptimistic(r).catch(()=>{a.clearReset()});function lv(r,o,a){var j,v,_,w;const l=Zy(),c=tv(),d=Go(),m=d.defaultQueryOptions(r);(v=(j=d.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||v.call(j,m);const h=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",sv(m),nv(m,c,h),rv(c);const S=!d.getQueryCache().get(m.queryHash),[y]=k.useState(()=>new o(d,m)),C=y.getOptimisticResult(m),N=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(M=>{const V=N?y.subscribe(Ze.batchCalls(M)):yt;return y.updateResult(),V},[y,N]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),k.useEffect(()=>{y.setOptions(m)},[m,y]),iv(m,C))throw wp(m,y,c);if(ov({result:C,errorResetBoundary:c,throwOnError:m.throwOnError,query:h,suspense:m.suspense}))throw C.error;if((w=(_=d.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||w.call(_,m,C),m.experimental_prefetchInRender&&!Gr&&av(C,l)){const M=S?wp(m,y,c):h==null?void 0:h.promise;M==null||M.catch(yt).finally(()=>{y.updateResult()})}return m.notifyOnChangeProps?C:y.trackResult(C)}function lc(r,o){return lv(r,Wy)}function Ys(r,o){const a=Go(),[l]=k.useState(()=>new Gy(a,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Ze.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=k.useCallback((m,h)=>{l.mutate(m,h).catch(yt)},[l]);if(c.error&&sc(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const Sp=r=>{let o;const a=new Set,l=(y,C)=>{const N=typeof y=="function"?y(o):y;if(!Object.is(N,o)){const j=o;o=C??(typeof N!="object"||N===null)?N:Object.assign({},o,N),a.forEach(v=>v(o,j))}},c=()=>o,h={setState:l,getState:c,getInitialState:()=>S,subscribe:y=>(a.add(y),()=>a.delete(y))},S=o=r(l,c,h);return h},uv=(r=>r?Sp(r):Sp),cv=r=>r;function dv(r,o=cv){const a=J.useSyncExternalStore(r.subscribe,J.useCallback(()=>o(r.getState()),[r,o]),J.useCallback(()=>o(r.getInitialState()),[r,o]));return J.useDebugValue(a),a}const bp=r=>{const o=uv(r),a=l=>dv(o,l);return Object.assign(a,o),a},fv=(r=>r?bp(r):bp),Xr=fv(r=>({activeTab:"model",setActiveTab:o=>r({activeTab:o}),connectionStatus:"disconnected",setConnectionStatus:o=>r({connectionStatus:o}),providerModal:{open:!1},openProviderModal:o=>r({providerModal:{open:!0,provider:o}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:o=>r({channelModal:{open:!0,channel:o}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function bh(r){var o,a,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(o=0;o<c;o++)r[o]&&(a=bh(r[o]))&&(l&&(l+=" "),l+=a)}else for(a in r)r[a]&&(l&&(l+=" "),l+=a);return l}function kh(){for(var r,o,a=0,l="",c=arguments.length;a<c;a++)(r=arguments[a])&&(o=bh(r))&&(l&&(l+=" "),l+=o);return l}const uc="-",pv=r=>{const o=mv(r),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const h=m.split(uc);return h[0]===""&&h.length!==1&&h.shift(),Ch(h,o)||hv(m)},getConflictingClassGroupIds:(m,h)=>{const S=a[m]||[];return h&&l[m]?[...S,...l[m]]:S}}},Ch=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const a=r[0],l=o.nextPart.get(a),c=l?Ch(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(uc);return(m=o.validators.find(({validator:h})=>h(d)))==null?void 0:m.classGroupId},kp=/^\[(.+)\]$/,hv=r=>{if(kp.test(r)){const o=kp.exec(r)[1],a=o==null?void 0:o.substring(0,o.indexOf(":"));if(a)return"arbitrary.."+a}},mv=r=>{const{theme:o,prefix:a}=r,l={nextPart:new Map,validators:[]};return yv(Object.entries(r.classGroups),a).forEach(([d,m])=>{Gu(m,l,d,o)}),l},Gu=(r,o,a,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:Cp(o,c);d.classGroupId=a;return}if(typeof c=="function"){if(gv(c)){Gu(c(l),o,a,l);return}o.validators.push({validator:c,classGroupId:a});return}Object.entries(c).forEach(([d,m])=>{Gu(m,Cp(o,d),a,l)})})},Cp=(r,o)=>{let a=r;return o.split(uc).forEach(l=>{a.nextPart.has(l)||a.nextPart.set(l,{nextPart:new Map,validators:[]}),a=a.nextPart.get(l)}),a},gv=r=>r.isThemeGetter,yv=(r,o)=>o?r.map(([a,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,h])=>[o+m,h])):d);return[a,c]}):r,vv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,a=new Map,l=new Map;const c=(d,m)=>{a.set(d,m),o++,o>r&&(o=0,l=a,a=new Map)};return{get(d){let m=a.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){a.has(d)?a.set(d,m):c(d,m)}}},Eh="!",xv=r=>{const{separator:o,experimentalParseClassName:a}=r,l=o.length===1,c=o[0],d=o.length,m=h=>{const S=[];let y=0,C=0,N;for(let M=0;M<h.length;M++){let V=h[M];if(y===0){if(V===c&&(l||h.slice(M,M+d)===o)){S.push(h.slice(C,M)),C=M+d;continue}if(V==="/"){N=M;continue}}V==="["?y++:V==="]"&&y--}const j=S.length===0?h:h.substring(C),v=j.startsWith(Eh),_=v?j.substring(1):j,w=N&&N>C?N-C:void 0;return{modifiers:S,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:w}};return a?h=>a({className:h,parseClassName:m}):m},wv=r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(l=>{l[0]==="["?(o.push(...a.sort(),l),a=[]):a.push(l)}),o.push(...a.sort()),o},Sv=r=>({cache:vv(r.cacheSize),parseClassName:xv(r),...pv(r)}),bv=/\s+/,kv=(r,o)=>{const{parseClassName:a,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(bv);let h="";for(let S=m.length-1;S>=0;S-=1){const y=m[S],{modifiers:C,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:v}=a(y);let _=!!v,w=l(_?j.substring(0,v):j);if(!w){if(!_){h=y+(h.length>0?" "+h:h);continue}if(w=l(j),!w){h=y+(h.length>0?" "+h:h);continue}_=!1}const M=wv(C).join(":"),V=N?M+Eh:M,G=V+w;if(d.includes(G))continue;d.push(G);const B=c(w,_);for(let A=0;A<B.length;++A){const z=B[A];d.push(V+z)}h=y+(h.length>0?" "+h:h)}return h};function Cv(){let r=0,o,a,l="";for(;r<arguments.length;)(o=arguments[r++])&&(a=Nh(o))&&(l&&(l+=" "),l+=a);return l}const Nh=r=>{if(typeof r=="string")return r;let o,a="";for(let l=0;l<r.length;l++)r[l]&&(o=Nh(r[l]))&&(a&&(a+=" "),a+=o);return a};function Ev(r,...o){let a,l,c,d=m;function m(S){const y=o.reduce((C,N)=>N(C),r());return a=Sv(y),l=a.cache.get,c=a.cache.set,d=h,h(S)}function h(S){const y=l(S);if(y)return y;const C=kv(S,a);return c(S,C),C}return function(){return d(Cv.apply(null,arguments))}}const Ue=r=>{const o=a=>a[r]||[];return o.isThemeGetter=!0,o},Ph=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nv=/^\d+\/\d+$/,Pv=new Set(["px","full","screen"]),jv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mv=/\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$/,Rv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Io(r)||Pv.has(r)||Nv.test(r),ir=r=>qo(r,"length",Uv),Io=r=>!!r&&!Number.isNaN(Number(r)),Cu=r=>qo(r,"number",Io),Fs=r=>!!r&&Number.isInteger(Number(r)),Ov=r=>r.endsWith("%")&&Io(r.slice(0,-1)),xe=r=>Ph.test(r),lr=r=>jv.test(r),zv=new Set(["length","size","percentage"]),_v=r=>qo(r,zv,jh),Av=r=>qo(r,"position",jh),Dv=new Set(["image","url"]),Lv=r=>qo(r,Dv,Wv),Fv=r=>qo(r,"",Bv),Us=()=>!0,qo=(r,o,a)=>{const l=Ph.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):a(l[2]):!1},Uv=r=>Mv.test(r)&&!Rv.test(r),jh=()=>!1,Bv=r=>Tv.test(r),Wv=r=>Iv.test(r),Vv=()=>{const r=Ue("colors"),o=Ue("spacing"),a=Ue("blur"),l=Ue("brightness"),c=Ue("borderColor"),d=Ue("borderRadius"),m=Ue("borderSpacing"),h=Ue("borderWidth"),S=Ue("contrast"),y=Ue("grayscale"),C=Ue("hueRotate"),N=Ue("invert"),j=Ue("gap"),v=Ue("gradientColorStops"),_=Ue("gradientColorStopPositions"),w=Ue("inset"),M=Ue("margin"),V=Ue("opacity"),G=Ue("padding"),B=Ue("saturate"),A=Ue("scale"),z=Ue("sepia"),Q=Ue("skew"),D=Ue("space"),L=Ue("translate"),te=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",xe,o],H=()=>[xe,o],pe=()=>["",Tn,ir],we=()=>["auto",Io,xe],ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",xe],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[Io,xe];return{cacheSize:500,separator:":",theme:{colors:[Us],spacing:[Tn,ir],blur:["none","",lr,xe],brightness:P(),borderColor:[r],borderRadius:["none","","full",lr,xe],borderSpacing:H(),borderWidth:pe(),contrast:P(),grayscale:K(),hueRotate:P(),invert:K(),gap:H(),gradientColorStops:[r],gradientColorStopPositions:[Ov,ir],inset:F(),margin:F(),opacity:P(),padding:H(),saturate:P(),scale:P(),sepia:K(),skew:P(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[lr]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:[...ve(),xe]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fs,xe]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",Fs,xe]}],"grid-cols":[{"grid-cols":[Us]}],"col-start-end":[{col:["auto",{span:["full",Fs,xe]},xe]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[Us]}],"row-start-end":[{row:["auto",{span:[Fs,xe]},xe]}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,o]}],"min-w":[{"min-w":[xe,o,"min","max","fit"]}],"max-w":[{"max-w":[xe,o,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[xe,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,o,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cu]}],"font-family":[{font:[Us]}],"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",xe]}],"line-clamp":[{"line-clamp":["none",Io,Cu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[V]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ir]}],"underline-offset":[{"underline-offset":["auto",Tn,xe]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],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",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[V]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ve(),Av]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_v]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[V]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[V]}],"divide-style":[{divide:je()}],"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:["",...je()]}],"outline-offset":[{"outline-offset":[Tn,xe]}],"outline-w":[{outline:[Tn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[V]}],"ring-offset-w":[{"ring-offset":[Tn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",lr,Fv]}],"shadow-color":[{shadow:[Us]}],opacity:[{opacity:[V]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[l]}],contrast:[{contrast:[S]}],"drop-shadow":[{"drop-shadow":["","none",lr,xe]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[N]}],saturate:[{saturate:[B]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[S]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[V]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"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",xe]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Fs,xe]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],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",xe]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",xe]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ir,Cu]}],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"]}}},$v=Ev(Vv);function Re(...r){return $v(kh(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 Qv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mh=(...r)=>r.filter((o,a,l)=>!!o&&o.trim()!==""&&l.indexOf(o)===a).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 Hv={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 Kv=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...h},S)=>k.createElement("svg",{ref:S,...Hv,width:o,height:o,stroke:r,strokeWidth:l?Number(a)*24/Number(o):a,className:Mh("lucide",c),...h},[...m.map(([y,C])=>k.createElement(y,C)),...Array.isArray(d)?d:[d]]));/**
|
|
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 Ae=(r,o)=>{const a=k.forwardRef(({className:l,...c},d)=>k.createElement(Kv,{ref:d,iconNode:o,className:Mh(`lucide-${Qv(r)}`,l),...c}));return a.displayName=`${r}`,a};/**
|
|
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 Rh=Ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
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 Gv=Ae("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"}]]);/**
|
|
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 qv=Ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 Yv=Ae("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 Xv=Ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
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 Zv=Ae("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 Jv=Ae("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 e0=Ae("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 t0=Ae("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
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 Th=Ae("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"}]]);/**
|
|
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 qu=Ae("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"}]]);/**
|
|
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 Ti=Ae("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"}]]);/**
|
|
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 n0=Ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 cc=Ae("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"}]]);/**
|
|
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 Si=Ae("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
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 dc=Ae("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"}]]);/**
|
|
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 Yu=Ae("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 r0=Ae("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
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 o0=Ae("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"}]]);/**
|
|
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 Ih=Ae("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"}]]);/**
|
|
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 s0=Ae("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"}]]);/**
|
|
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 a0=Ae("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"}]]);/**
|
|
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 Oh=Ae("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"}]]);/**
|
|
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 i0=Ae("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"}]]);/**
|
|
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 Xu=Ae("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"}]]);/**
|
|
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 zh=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
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 l0=Ae("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),u0=[{id:"model",label:"Models",icon:Yv},{id:"providers",label:"Providers",icon:Oh},{id:"channels",label:"Channels",icon:dc},{id:"runtime",label:"Routing & Runtime",icon:t0}];function c0(){const{activeTab:r,setActiveTab:o}=Xr();return p.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[p.jsx("div",{className:"px-3 mb-8",children:p.jsxs("div",{className:"flex items-center gap-2.5 group cursor-pointer",children:[p.jsx("div",{className:"h-7 w-7 rounded-lg overflow-hidden flex items-center justify-center transition-transform duration-fast group-hover:scale-110",children:p.jsx("img",{src:"/logo.svg",alt:"NextClaw",className:"h-full w-full object-contain"})}),p.jsx("span",{className:"text-[15px] font-bold bg-gradient-to-r from-primary to-indigo-500 bg-clip-text text-transparent tracking-[-0.02em]",children:"NextClaw"})]})}),p.jsx("nav",{className:"flex-1",children:p.jsx("ul",{className:"space-y-1",children:u0.map(a=>{const l=a.icon,c=r===a.id;return p.jsx("li",{children:p.jsxs("button",{onClick:()=>o(a.id),className:Re("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-fast",c?"bg-primary-100 text-primary-700":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"),children:[p.jsx(l,{className:Re("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),p.jsx("span",{className:"flex-1 text-left",children:a.label})]})},a.id)})})})]})}function d0({children:r}){return p.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[p.jsx(c0,{}),p.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:p.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:p.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const Ep=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Np=kh,f0=(r,o)=>a=>{var l;if((o==null?void 0:o.variants)==null)return Np(r,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(y=>{const C=a==null?void 0:a[y],N=d==null?void 0:d[y];if(C===null)return null;const j=Ep(C)||Ep(N);return c[y][j]}),h=a&&Object.entries(a).reduce((y,C)=>{let[N,j]=C;return j===void 0||(y[N]=j),y},{}),S=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((y,C)=>{let{class:N,className:j,...v}=C;return Object.entries(v).every(_=>{let[w,M]=_;return Array.isArray(M)?M.includes({...d,...h}[w]):{...d,...h}[w]===M})?[...y,N,j]:y},[]);return Np(r,m,S,a==null?void 0:a.class,a==null?void 0:a.className)},p0=f0("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-fast 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-600 active:bg-primary-700 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",subtle:"bg-secondary text-secondary-foreground hover:bg-gray-200","primary-outline":"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-xl px-6 text-base",xl:"h-14 rounded-xl px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vt=k.forwardRef(({className:r,variant:o,size:a,...l},c)=>p.jsx("button",{className:Re(p0({variant:o,size:a,className:r})),ref:c,...l}));vt.displayName="Button";const Oo=k.forwardRef(({className:r,hover:o=!0,...a},l)=>p.jsx("div",{ref:l,className:Re("rounded-xl border border-gray-200 bg-white text-card-foreground shadow-card transition-all duration-base",o&&"hover:shadow-card-hover hover:border-gray-300",r),...a}));Oo.displayName="Card";const bi=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Re("flex flex-col space-y-2 p-6",r),...o}));bi.displayName="CardHeader";const ki=k.forwardRef(({className:r,...o},a)=>p.jsx("h3",{ref:a,className:Re("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));ki.displayName="CardTitle";const Ci=k.forwardRef(({className:r,...o},a)=>p.jsx("p",{ref:a,className:Re("text-sm text-gray-500 leading-relaxed",r),...o}));Ci.displayName="CardDescription";const Ei=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Re("p-6 pt-0",r),...o}));Ei.displayName="CardContent";const h0=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Re("flex items-center justify-between p-6 pt-0",r),...o}));h0.displayName="CardFooter";const qe=k.forwardRef(({className:r,type:o,...a},l)=>p.jsx("input",{type:o,className:Re("flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...a}));qe.displayName="Input";const Dn=k.forwardRef(({className:r,...o},a)=>p.jsx("label",{ref:a,className:Re("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));Dn.displayName="Label";function en({className:r,...o}){return p.jsx("div",{className:Re("animate-pulse rounded-md bg-slate-200",r),...o})}const m0="http://127.0.0.1:18791",Ni=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:m0})();async function Eu(r,o={}){const a=`${Ni}${r}`,l=await fetch(a,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,d}const br={get:r=>Eu(r,{method:"GET"}),put:(r,o)=>Eu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>Eu(r,{method:"POST",body:JSON.stringify(o)})};async function g0(){const r=await br.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function y0(){const r=await br.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function v0(){const r=await br.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function x0(r){const o=await br.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function w0(r,o){const a=await br.put(`/api/config/providers/${r}`,o);if(!a.ok)throw new Error(a.error.message);return a.data}async function S0(r,o){const a=await br.put(`/api/config/channels/${r}`,o);if(!a.ok)throw new Error(a.error.message);return a.data}async function b0(r){const o=await br.put("/api/config/runtime",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function k0(r,o){const a=await br.post(`/api/config/actions/${r}/execute`,o);if(!a.ok)throw new Error(a.error.message);return a.data}var _h=ch();const Ah=lh(_h);var C0=r=>{switch(r){case"success":return P0;case"info":return M0;case"warning":return j0;case"error":return R0;default:return null}},E0=Array(12).fill(0),N0=({visible:r,className:o})=>J.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},J.createElement("div",{className:"sonner-spinner"},E0.map((a,l)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),P0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),j0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.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"})),M0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),R0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),T0=J.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"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),I0=()=>{let[r,o]=J.useState(document.hidden);return J.useEffect(()=>{let a=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),r},Zu=1,O0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;let{message:a,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Zu++,d=this.toasts.find(h=>h.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...r,id:c,title:a}),{...h,...r,id:c,dismissible:m,title:a}):h):this.addToast({title:a,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(o=>{this.subscribers.forEach(a=>a({id:o.id,dismiss:!0}))}),this.subscribers.forEach(o=>o({id:r,dismiss:!0})),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let a;o.loading!==void 0&&(a=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let l=r instanceof Promise?r:r(),c=a!==void 0,d,m=l.then(async S=>{if(d=["resolve",S],J.isValidElement(S))c=!1,this.create({id:a,type:"default",message:S});else if(_0(S)&&!S.ok){c=!1;let y=typeof o.error=="function"?await o.error(`HTTP error! status: ${S.status}`):o.error,C=typeof o.description=="function"?await o.description(`HTTP error! status: ${S.status}`):o.description;this.create({id:a,type:"error",message:y,description:C})}else if(o.success!==void 0){c=!1;let y=typeof o.success=="function"?await o.success(S):o.success,C=typeof o.description=="function"?await o.description(S):o.description;this.create({id:a,type:"success",message:y,description:C})}}).catch(async S=>{if(d=["reject",S],o.error!==void 0){c=!1;let y=typeof o.error=="function"?await o.error(S):o.error,C=typeof o.description=="function"?await o.description(S):o.description;this.create({id:a,type:"error",message:y,description:C})}}).finally(()=>{var S;c&&(this.dismiss(a),a=void 0),(S=o.finally)==null||S.call(o)}),h=()=>new Promise((S,y)=>m.then(()=>d[0]==="reject"?y(d[1]):S(d[1])).catch(y));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(r,o)=>{let a=(o==null?void 0:o.id)||Zu++;return this.create({jsx:r(a),id:a,...o}),a},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Tt=new O0,z0=(r,o)=>{let a=(o==null?void 0:o.id)||Zu++;return Tt.addToast({title:r,...o,id:a}),a},_0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",A0=z0,D0=()=>Tt.toasts,L0=()=>Tt.getActiveToasts(),xt=Object.assign(A0,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:D0,getToasts:L0});function F0(r,{insertAt:o}={}){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}F0(`: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 hi(r){return r.label!==void 0}var U0=3,B0="32px",W0="16px",Pp=4e3,V0=356,$0=14,Q0=20,H0=200;function tn(...r){return r.filter(Boolean).join(" ")}function K0(r){let[o,a]=r.split("-"),l=[];return o&&l.push(o),a&&l.push(a),l}var G0=r=>{var o,a,l,c,d,m,h,S,y,C,N;let{invert:j,toast:v,unstyled:_,interacting:w,setHeights:M,visibleToasts:V,heights:G,index:B,toasts:A,expanded:z,removeToast:Q,defaultRichColors:D,closeButton:L,style:te,cancelButtonStyle:re,actionButtonStyle:F,className:H="",descriptionClassName:pe="",duration:we,position:ve,gap:je,loadingIcon:ke,expandByDefault:Y,classNames:K,icons:Z,closeButtonAriaLabel:P="Close toast",pauseWhenPageIsHidden:O}=r,[se,le]=J.useState(null),[me,be]=J.useState(null),[he,Ne]=J.useState(!1),[Ie,Je]=J.useState(!1),[sn,Jr]=J.useState(!1),[kr,Zo]=J.useState(!1),[Xs,Jo]=J.useState(!1),[es,eo]=J.useState(0),[ts,Un]=J.useState(0),At=J.useRef(v.duration||we||Pp),to=J.useRef(null),an=J.useRef(null),Zs=B===0,Js=B+1<=V,ft=v.type,ln=v.dismissible!==!1,no=v.className||"",ea=v.descriptionClassName||"",un=J.useMemo(()=>G.findIndex(ye=>ye.toastId===v.id)||0,[G,v.id]),Cr=J.useMemo(()=>{var ye;return(ye=v.closeButton)!=null?ye:L},[v.closeButton,L]),ta=J.useMemo(()=>v.duration||we||Pp,[v.duration,we]),ro=J.useRef(0),bn=J.useRef(0),na=J.useRef(0),cn=J.useRef(null),[ns,rs]=ve.split("-"),oo=J.useMemo(()=>G.reduce((ye,Te,_e)=>_e>=un?ye:ye+Te.height,0),[G,un]),so=I0(),Bn=v.invert||j,dn=ft==="loading";bn.current=J.useMemo(()=>un*je+oo,[un,oo]),J.useEffect(()=>{At.current=ta},[ta]),J.useEffect(()=>{Ne(!0)},[]),J.useEffect(()=>{let ye=an.current;if(ye){let Te=ye.getBoundingClientRect().height;return Un(Te),M(_e=>[{toastId:v.id,height:Te,position:v.position},..._e]),()=>M(_e=>_e.filter(pt=>pt.toastId!==v.id))}},[M,v.id]),J.useLayoutEffect(()=>{if(!he)return;let ye=an.current,Te=ye.style.height;ye.style.height="auto";let _e=ye.getBoundingClientRect().height;ye.style.height=Te,Un(_e),M(pt=>pt.find(St=>St.toastId===v.id)?pt.map(St=>St.toastId===v.id?{...St,height:_e}:St):[{toastId:v.id,height:_e,position:v.position},...pt])},[he,v.title,v.description,M,v.id]);let Qt=J.useCallback(()=>{Je(!0),eo(bn.current),M(ye=>ye.filter(Te=>Te.toastId!==v.id)),setTimeout(()=>{Q(v)},H0)},[v,Q,M,bn]);J.useEffect(()=>{if(v.promise&&ft==="loading"||v.duration===1/0||v.type==="loading")return;let ye;return z||w||O&&so?(()=>{if(na.current<ro.current){let Te=new Date().getTime()-ro.current;At.current=At.current-Te}na.current=new Date().getTime()})():At.current!==1/0&&(ro.current=new Date().getTime(),ye=setTimeout(()=>{var Te;(Te=v.onAutoClose)==null||Te.call(v,v),Qt()},At.current)),()=>clearTimeout(ye)},[z,w,v,ft,O,so,Qt]),J.useEffect(()=>{v.delete&&Qt()},[Qt,v.delete]);function ra(){var ye,Te,_e;return Z!=null&&Z.loading?J.createElement("div",{className:tn(K==null?void 0:K.loader,(ye=v==null?void 0:v.classNames)==null?void 0:ye.loader,"sonner-loader"),"data-visible":ft==="loading"},Z.loading):ke?J.createElement("div",{className:tn(K==null?void 0:K.loader,(Te=v==null?void 0:v.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":ft==="loading"},ke):J.createElement(N0,{className:tn(K==null?void 0:K.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:ft==="loading"})}return J.createElement("li",{tabIndex:0,ref:an,className:tn(H,no,K==null?void 0:K.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,K==null?void 0:K.default,K==null?void 0:K[ft],(a=v==null?void 0:v.classNames)==null?void 0:a[ft]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:D,"data-styled":!(v.jsx||v.unstyled||_),"data-mounted":he,"data-promise":!!v.promise,"data-swiped":Xs,"data-removed":Ie,"data-visible":Js,"data-y-position":ns,"data-x-position":rs,"data-index":B,"data-front":Zs,"data-swiping":sn,"data-dismissible":ln,"data-type":ft,"data-invert":Bn,"data-swipe-out":kr,"data-swipe-direction":me,"data-expanded":!!(z||Y&&he),style:{"--index":B,"--toasts-before":B,"--z-index":A.length-B,"--offset":`${Ie?es:bn.current}px`,"--initial-height":Y?"auto":`${ts}px`,...te,...v.style},onDragEnd:()=>{Jr(!1),le(null),cn.current=null},onPointerDown:ye=>{dn||!ln||(to.current=new Date,eo(bn.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(Jr(!0),cn.current={x:ye.clientX,y:ye.clientY}))},onPointerUp:()=>{var ye,Te,_e,pt;if(kr||!ln)return;cn.current=null;let St=Number(((ye=an.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bt=Number(((Te=an.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ht=new Date().getTime()-((_e=to.current)==null?void 0:_e.getTime()),ot=se==="x"?St:bt,fn=Math.abs(ot)/Ht;if(Math.abs(ot)>=Q0||fn>.11){eo(bn.current),(pt=v.onDismiss)==null||pt.call(v,v),be(se==="x"?St>0?"right":"left":bt>0?"down":"up"),Qt(),Zo(!0),Jo(!1);return}Jr(!1),le(null)},onPointerMove:ye=>{var Te,_e,pt,St;if(!cn.current||!ln||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;let bt=ye.clientY-cn.current.y,Ht=ye.clientX-cn.current.x,ot=(_e=r.swipeDirections)!=null?_e:K0(ve);!se&&(Math.abs(Ht)>1||Math.abs(bt)>1)&&le(Math.abs(Ht)>Math.abs(bt)?"x":"y");let fn={x:0,y:0};se==="y"?(ot.includes("top")||ot.includes("bottom"))&&(ot.includes("top")&&bt<0||ot.includes("bottom")&&bt>0)&&(fn.y=bt):se==="x"&&(ot.includes("left")||ot.includes("right"))&&(ot.includes("left")&&Ht<0||ot.includes("right")&&Ht>0)&&(fn.x=Ht),(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&Jo(!0),(pt=an.current)==null||pt.style.setProperty("--swipe-amount-x",`${fn.x}px`),(St=an.current)==null||St.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},Cr&&!v.jsx?J.createElement("button",{"aria-label":P,"data-disabled":dn,"data-close-button":!0,onClick:dn||!ln?()=>{}:()=>{var ye;Qt(),(ye=v.onDismiss)==null||ye.call(v,v)},className:tn(K==null?void 0:K.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=Z==null?void 0:Z.close)!=null?d:T0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:J.createElement(J.Fragment,null,ft||v.icon||v.promise?J.createElement("div",{"data-icon":"",className:tn(K==null?void 0:K.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ra():null,v.type!=="loading"?v.icon||(Z==null?void 0:Z[ft])||C0(ft):null):null,J.createElement("div",{"data-content":"",className:tn(K==null?void 0:K.content,(h=v==null?void 0:v.classNames)==null?void 0:h.content)},J.createElement("div",{"data-title":"",className:tn(K==null?void 0:K.title,(S=v==null?void 0:v.classNames)==null?void 0:S.title)},typeof v.title=="function"?v.title():v.title),v.description?J.createElement("div",{"data-description":"",className:tn(pe,ea,K==null?void 0:K.description,(y=v==null?void 0:v.classNames)==null?void 0:y.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&hi(v.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||re,onClick:ye=>{var Te,_e;hi(v.cancel)&&ln&&((_e=(Te=v.cancel).onClick)==null||_e.call(Te,ye),Qt())},className:tn(K==null?void 0:K.cancelButton,(C=v==null?void 0:v.classNames)==null?void 0:C.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&hi(v.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||F,onClick:ye=>{var Te,_e;hi(v.action)&&((_e=(Te=v.action).onClick)==null||_e.call(Te,ye),!ye.defaultPrevented&&Qt())},className:tn(K==null?void 0:K.actionButton,(N=v==null?void 0:v.classNames)==null?void 0:N.actionButton)},v.action.label):null))};function jp(){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 q0(r,o){let a={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",h=d?W0:B0;function S(y){["top","right","bottom","left"].forEach(C=>{a[`${m}-${C}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?S(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?a[`${m}-${y}`]=h:a[`${m}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):S(h)}),a}var Y0=k.forwardRef(function(r,o){let{invert:a,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:h,offset:S,mobileOffset:y,theme:C="light",richColors:N,duration:j,style:v,visibleToasts:_=U0,toastOptions:w,dir:M=jp(),gap:V=$0,loadingIcon:G,icons:B,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:z}=r,[Q,D]=J.useState([]),L=J.useMemo(()=>Array.from(new Set([l].concat(Q.filter(O=>O.position).map(O=>O.position)))),[Q,l]),[te,re]=J.useState([]),[F,H]=J.useState(!1),[pe,we]=J.useState(!1),[ve,je]=J.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ke=J.useRef(null),Y=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=J.useRef(null),Z=J.useRef(!1),P=J.useCallback(O=>{D(se=>{var le;return(le=se.find(me=>me.id===O.id))!=null&&le.delete||Tt.dismiss(O.id),se.filter(({id:me})=>me!==O.id)})},[]);return J.useEffect(()=>Tt.subscribe(O=>{if(O.dismiss){D(se=>se.map(le=>le.id===O.id?{...le,delete:!0}:le));return}setTimeout(()=>{Ah.flushSync(()=>{D(se=>{let le=se.findIndex(me=>me.id===O.id);return le!==-1?[...se.slice(0,le),{...se[le],...O},...se.slice(le+1)]:[O,...se]})})})}),[]),J.useEffect(()=>{if(C!=="system"){je(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?je("dark"):je("light")),typeof window>"u")return;let O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:se})=>{je(se?"dark":"light")})}catch{O.addListener(({matches:le})=>{try{je(le?"dark":"light")}catch(me){console.error(me)}})}},[C]),J.useEffect(()=>{Q.length<=1&&H(!1)},[Q]),J.useEffect(()=>{let O=se=>{var le,me;c.every(be=>se[be]||se.code===be)&&(H(!0),(le=ke.current)==null||le.focus()),se.code==="Escape"&&(document.activeElement===ke.current||(me=ke.current)!=null&&me.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[c]),J.useEffect(()=>{if(ke.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,Z.current=!1)}},[ke.current]),J.createElement("section",{ref:o,"aria-label":`${A} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((O,se)=>{var le;let[me,be]=O.split("-");return Q.length?J.createElement("ol",{key:O,dir:M==="auto"?jp():M,tabIndex:-1,ref:ke,className:h,"data-sonner-toaster":!0,"data-theme":ve,"data-y-position":me,"data-lifted":F&&Q.length>1&&!d,"data-x-position":be,style:{"--front-toast-height":`${((le=te[0])==null?void 0:le.height)||0}px`,"--width":`${V0}px`,"--gap":`${V}px`,...v,...q0(S,y)},onBlur:he=>{Z.current&&!he.currentTarget.contains(he.relatedTarget)&&(Z.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||Z.current||(Z.current=!0,K.current=he.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{pe||H(!1)},onDragEnd:()=>H(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},Q.filter(he=>!he.position&&se===0||he.position===O).map((he,Ne)=>{var Ie,Je;return J.createElement(G0,{key:he.id,icons:B,index:Ne,toast:he,defaultRichColors:N,duration:(Ie=w==null?void 0:w.duration)!=null?Ie:j,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:a,visibleToasts:_,closeButton:(Je=w==null?void 0:w.closeButton)!=null?Je:m,interacting:pe,position:O,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:P,toasts:Q.filter(sn=>sn.position==he.position),heights:te.filter(sn=>sn.position==he.position),setHeights:re,expandByDefault:d,gap:V,loadingIcon:G,expanded:F,pauseWhenPageIsHidden:z,swipeDirections:r.swipeDirections})})):null}))});const Mp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},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"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},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"},corpId:{zh:"企业 ID",en:"Corp ID"},agentId:{zh:"应用 Agent ID",en:"Agent ID"},appSecret:{zh:"App Secret",en:"App Secret"},markdownSupport:{zh:"Markdown 支持",en:"Markdown Support"},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"},callbackPort:{zh:"回调端口",en:"Callback Port"},callbackPath:{zh:"回调路径",en:"Callback 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"},saveVerifyConnect:{zh:"保存并验证 / 连接",en:"Save & Verify / Connect"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},feishuConnecting:{zh:"验证 / 连接中...",en:"Verifying / connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSavedApplied:{zh:"配置已保存并已应用",en:"Configuration saved and applied"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},feishuVerifySuccess:{zh:"验证成功,请到飞书开放平台完成事件订阅与发布后再开始使用。",en:"Verified. Please finish Feishu event subscription and app publishing before using."},feishuVerifyFailed:{zh:"验证失败",en:"Verification failed"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function X(r,o="en"){var a,l;return((a=Mp[r])==null?void 0:a[o])||((l=Mp[r])==null?void 0:l.en)||r}function Yo(){return lc({queryKey:["config"],queryFn:g0,staleTime:3e4,refetchOnWindowFocus:!0})}function fc(){return lc({queryKey:["config-meta"],queryFn:y0,staleTime:1/0})}function Xo(){return lc({queryKey:["config-schema"],queryFn:v0,staleTime:1/0})}function X0(){const r=Go();return Ys({mutationFn:x0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xt.success(X("configSaved"))},onError:o=>{xt.error(X("configSaveFailed")+": "+o.message)}})}function Z0(){const r=Go();return Ys({mutationFn:({provider:o,data:a})=>w0(o,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xt.success(X("configSaved"))},onError:o=>{xt.error(X("configSaveFailed")+": "+o.message)}})}function J0(){const r=Go();return Ys({mutationFn:({channel:o,data:a})=>S0(o,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xt.success(X("configSavedApplied"))},onError:o=>{xt.error(X("configSaveFailed")+": "+o.message)}})}function e1(){const r=Go();return Ys({mutationFn:({data:o})=>b0(o),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xt.success(X("configSavedApplied"))},onError:o=>{xt.error(X("configSaveFailed")+": "+o.message)}})}function t1(){return Ys({mutationFn:({actionId:r,data:o})=>k0(r,o),onError:r=>{xt.error(X("error")+": "+r.message)}})}function n1(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function wt(r,o){if(!o)return;const a=n1(r),l=o[a];if(l)return l;const c=a.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const h=d.split(".");if(h.length!==c.length)continue;let S=!0;for(let y=0;y<c.length;y+=1)if(h[y]!=="*"&&h[y]!==c[y]){S=!1;break}if(S)return m}}function Rp(){const{data:r,isLoading:o}=Yo(),{data:a}=Xo(),l=X0(),[c,d]=k.useState(""),[m,h]=k.useState(""),[S,y]=k.useState(8192),C=a==null?void 0:a.uiHints,N=wt("agents.defaults.model",C),j=wt("agents.defaults.workspace",C),v=wt("agents.defaults.maxTokens",C);k.useEffect(()=>{var w;(w=r==null?void 0:r.agents)!=null&&w.defaults&&(d(r.agents.defaults.model||""),h(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192))},[r]);const _=w=>{w.preventDefault(),l.mutate({model:c})};return o?p.jsxs("div",{className:"max-w-2xl space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(en,{className:"h-8 w-32"}),p.jsx(en,{className:"h-4 w-48"})]}),p.jsxs(Oo,{className:"rounded-2xl border-gray-200 p-6",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[p.jsx(en,{className:"h-12 w-12 rounded-xl"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(en,{className:"h-5 w-24"}),p.jsx(en,{className:"h-3 w-32"})]})]}),p.jsx(en,{className:"h-4 w-20 mb-2"}),p.jsx(en,{className:"h-10 w-full rounded-xl"})]}),p.jsxs(Oo,{className:"rounded-2xl border-gray-200 p-6",children:[p.jsx(en,{className:"h-5 w-24 mb-2"}),p.jsx(en,{className:"h-3 w-40 mb-6"}),p.jsx("div",{className:"space-y-6",children:p.jsxs("div",{children:[p.jsx(en,{className:"h-4 w-28 mb-3"}),p.jsx(en,{className:"h-2 w-full rounded-full"})]})})]})]}):p.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[p.jsxs("div",{className:"mb-10",children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),p.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and runtime limits"})]}),p.jsxs("form",{onSubmit:_,className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[p.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(Oh,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Dn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(N==null?void 0:N.label)??"Model Name"}),p.jsx(qe,{id:"model",value:c,onChange:w=>d(w.target.value),placeholder:(N==null?void 0:N.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),p.jsx("p",{className:"text-xs text-gray-400",children:(N==null?void 0:N.help)??"Examples: minimax/MiniMax-M2.5 · minimax/MiniMax-M2.1 · openrouter/anthropic/claude-3.5-sonnet · openrouter/openai/gpt-4o-mini"})]})]}),p.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(e0,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Dn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(j==null?void 0:j.label)??"Default Path"}),p.jsx(qe,{id:"workspace",value:m,onChange:w=>h(w.target.value),placeholder:(j==null?void 0:j.placeholder)??"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),p.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(a0,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),p.jsx("div",{className:"grid grid-cols-1 gap-12",children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center mb-2",children:[p.jsx(Dn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Max Tokens"}),p.jsx("span",{className:"text-sm font-semibold text-gray-900",children:S.toLocaleString()})]}),p.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:S,onChange:w=>y(parseInt(w.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})})]}),p.jsx("div",{className:"flex justify-end pt-4",children:p.jsx(vt,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?p.jsx(n0,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function Sr(r,o,{checkForDefaultPrevented:a=!0}={}){return function(c){if(r==null||r(c),a===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function Tp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Dh(...r){return o=>{let a=!1;const l=r.map(c=>{const d=Tp(c,o);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():Tp(r[c],null)}}}}function Zr(...r){return k.useCallback(Dh(...r),r)}function r1(r,o){const a=k.createContext(o),l=d=>{const{children:m,...h}=d,S=k.useMemo(()=>h,Object.values(h));return p.jsx(a.Provider,{value:S,children:m})};l.displayName=r+"Provider";function c(d){const m=k.useContext(a);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function o1(r,o=[]){let a=[];function l(d,m){const h=k.createContext(m),S=a.length;a=[...a,m];const y=N=>{var V;const{scope:j,children:v,..._}=N,w=((V=j==null?void 0:j[r])==null?void 0:V[S])||h,M=k.useMemo(()=>_,Object.values(_));return p.jsx(w.Provider,{value:M,children:v})};y.displayName=d+"Provider";function C(N,j){var w;const v=((w=j==null?void 0:j[r])==null?void 0:w[S])||h,_=k.useContext(v);if(_)return _;if(m!==void 0)return m;throw new Error(`\`${N}\` must be used within \`${d}\``)}return[y,C]}const c=()=>{const d=a.map(m=>k.createContext(m));return function(h){const S=(h==null?void 0:h[r])||d;return k.useMemo(()=>({[`__scope${r}`]:{...h,[r]:S}}),[h,S])}};return c.scopeName=r,[l,s1(c,...o)]}function s1(...r){const o=r[0];if(r.length===1)return o;const a=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=l.reduce((h,{useScope:S,scopeName:y})=>{const N=S(d)[`__scope${y}`];return{...h,...N}},{});return k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return a.scopeName=o.scopeName,a}var Vs=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},a1=uh[" useId ".trim().toString()]||(()=>{}),i1=0;function Nu(r){const[o,a]=k.useState(a1());return Vs(()=>{a(l=>l??String(i1++))},[r]),r||(o?`radix-${o}`:"")}var l1=uh[" useInsertionEffect ".trim().toString()]||Vs;function u1({prop:r,defaultProp:o,onChange:a=()=>{},caller:l}){const[c,d,m]=c1({defaultProp:o,onChange:a}),h=r!==void 0,S=h?r:c;{const C=k.useRef(r!==void 0);k.useEffect(()=>{const N=C.current;N!==h&&console.warn(`${l} is changing from ${N?"controlled":"uncontrolled"} to ${h?"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.`),C.current=h},[h,l])}const y=k.useCallback(C=>{var N;if(h){const j=d1(C)?C(r):C;j!==r&&((N=m.current)==null||N.call(m,j))}else d(C)},[h,r,d,m]);return[S,y]}function c1({defaultProp:r,onChange:o}){const[a,l]=k.useState(r),c=k.useRef(a),d=k.useRef(o);return l1(()=>{d.current=o},[o]),k.useEffect(()=>{var m;c.current!==a&&((m=d.current)==null||m.call(d,a),c.current=a)},[a,c]),[a,l,d]}function d1(r){return typeof r=="function"}function Lh(r){const o=f1(r),a=k.forwardRef((l,c)=>{const{children:d,...m}=l,h=k.Children.toArray(d),S=h.find(h1);if(S){const y=S.props.children,C=h.map(N=>N===S?k.Children.count(y)>1?k.Children.only(null):k.isValidElement(y)?y.props.children:null:N);return p.jsx(o,{...m,ref:c,children:k.isValidElement(y)?k.cloneElement(y,void 0,C):null})}return p.jsx(o,{...m,ref:c,children:d})});return a.displayName=`${r}.Slot`,a}function f1(r){const o=k.forwardRef((a,l)=>{const{children:c,...d}=a;if(k.isValidElement(c)){const m=g1(c),h=m1(d,c.props);return c.type!==k.Fragment&&(h.ref=l?Dh(l,m):m),k.cloneElement(c,h)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var p1=Symbol("radix.slottable");function h1(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===p1}function m1(r,o){const a={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?a[l]=(...h)=>{const S=d(...h);return c(...h),S}:c&&(a[l]=c):l==="style"?a[l]={...c,...d}:l==="className"&&(a[l]=[c,d].filter(Boolean).join(" "))}return{...r,...a}}function g1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=o&&"isReactWarning"in o&&o.isReactWarning;return a?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=o&&"isReactWarning"in o&&o.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var y1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=y1.reduce((r,o)=>{const a=Lh(`Primitive.${o}`),l=k.forwardRef((c,d)=>{const{asChild:m,...h}=c,S=m?a:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(S,{...h,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function v1(r,o){r&&_h.flushSync(()=>r.dispatchEvent(o))}function $s(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...a)=>{var l;return(l=o.current)==null?void 0:l.call(o,...a)},[])}function x1(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&a(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[a,o])}var w1="DismissableLayer",Ju="dismissableLayer.update",S1="dismissableLayer.pointerDownOutside",b1="dismissableLayer.focusOutside",Ip,Fh=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...S}=r,y=k.useContext(Fh),[C,N]=k.useState(null),j=(C==null?void 0:C.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),_=Zr(o,D=>N(D)),w=Array.from(y.layers),[M]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),V=w.indexOf(M),G=C?w.indexOf(C):-1,B=y.layersWithOutsidePointerEventsDisabled.size>0,A=G>=V,z=E1(D=>{const L=D.target,te=[...y.branches].some(re=>re.contains(L));!A||te||(c==null||c(D),m==null||m(D),D.defaultPrevented||h==null||h())},j),Q=N1(D=>{const L=D.target;[...y.branches].some(re=>re.contains(L))||(d==null||d(D),m==null||m(D),D.defaultPrevented||h==null||h())},j);return x1(D=>{G===y.layers.size-1&&(l==null||l(D),!D.defaultPrevented&&h&&(D.preventDefault(),h()))},j),k.useEffect(()=>{if(C)return a&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Ip=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(C)),y.layers.add(C),Op(),()=>{a&&y.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=Ip)}},[C,j,a,y]),k.useEffect(()=>()=>{C&&(y.layers.delete(C),y.layersWithOutsidePointerEventsDisabled.delete(C),Op())},[C,y]),k.useEffect(()=>{const D=()=>v({});return document.addEventListener(Ju,D),()=>document.removeEventListener(Ju,D)},[]),p.jsx(Fn.div,{...S,ref:_,style:{pointerEvents:B?A?"auto":"none":void 0,...r.style},onFocusCapture:Sr(r.onFocusCapture,Q.onFocusCapture),onBlurCapture:Sr(r.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:Sr(r.onPointerDownCapture,z.onPointerDownCapture)})});Uh.displayName=w1;var k1="DismissableLayerBranch",C1=k.forwardRef((r,o)=>{const a=k.useContext(Fh),l=k.useRef(null),c=Zr(o,l);return k.useEffect(()=>{const d=l.current;if(d)return a.branches.add(d),()=>{a.branches.delete(d)}},[a.branches]),p.jsx(Fn.div,{...r,ref:c})});C1.displayName=k1;function E1(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const d=h=>{if(h.target&&!l.current){let S=function(){Bh(S1,a,y,{discrete:!0})};const y={originalEvent:h};h.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=S,o.addEventListener("click",c.current,{once:!0})):S()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,a]),{onPointerDownCapture:()=>l.current=!0}}function N1(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r),l=k.useRef(!1);return k.useEffect(()=>{const c=d=>{d.target&&!l.current&&Bh(b1,a,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,a]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Op(){const r=new CustomEvent(Ju);document.dispatchEvent(r)}function Bh(r,o,a,{discrete:l}){const c=a.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:a});o&&c.addEventListener(r,o,{once:!0}),l?v1(c,d):c.dispatchEvent(d)}var Pu="focusScope.autoFocusOnMount",ju="focusScope.autoFocusOnUnmount",zp={bubbles:!1,cancelable:!0},P1="FocusScope",Wh=k.forwardRef((r,o)=>{const{loop:a=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[h,S]=k.useState(null),y=$s(c),C=$s(d),N=k.useRef(null),j=Zr(o,w=>S(w)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let w=function(B){if(v.paused||!h)return;const A=B.target;h.contains(A)?N.current=A:cr(N.current,{select:!0})},M=function(B){if(v.paused||!h)return;const A=B.relatedTarget;A!==null&&(h.contains(A)||cr(N.current,{select:!0}))},V=function(B){if(document.activeElement===document.body)for(const z of B)z.removedNodes.length>0&&cr(h)};document.addEventListener("focusin",w),document.addEventListener("focusout",M);const G=new MutationObserver(V);return h&&G.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",M),G.disconnect()}}},[l,h,v.paused]),k.useEffect(()=>{if(h){Ap.add(v);const w=document.activeElement;if(!h.contains(w)){const V=new CustomEvent(Pu,zp);h.addEventListener(Pu,y),h.dispatchEvent(V),V.defaultPrevented||(j1(O1(Vh(h)),{select:!0}),document.activeElement===w&&cr(h))}return()=>{h.removeEventListener(Pu,y),setTimeout(()=>{const V=new CustomEvent(ju,zp);h.addEventListener(ju,C),h.dispatchEvent(V),V.defaultPrevented||cr(w??document.body,{select:!0}),h.removeEventListener(ju,C),Ap.remove(v)},0)}}},[h,y,C,v]);const _=k.useCallback(w=>{if(!a&&!l||v.paused)return;const M=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,V=document.activeElement;if(M&&V){const G=w.currentTarget,[B,A]=M1(G);B&&A?!w.shiftKey&&V===A?(w.preventDefault(),a&&cr(B,{select:!0})):w.shiftKey&&V===B&&(w.preventDefault(),a&&cr(A,{select:!0})):V===G&&w.preventDefault()}},[a,l,v.paused]);return p.jsx(Fn.div,{tabIndex:-1,...m,ref:j,onKeyDown:_})});Wh.displayName=P1;function j1(r,{select:o=!1}={}){const a=document.activeElement;for(const l of r)if(cr(l,{select:o}),document.activeElement!==a)return}function M1(r){const o=Vh(r),a=_p(o,r),l=_p(o.reverse(),r);return[a,l]}function Vh(r){const o=[],a=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(;a.nextNode();)o.push(a.currentNode);return o}function _p(r,o){for(const a of r)if(!R1(a,{upTo:o}))return a}function R1(r,{upTo:o}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(o!==void 0&&r===o)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function T1(r){return r instanceof HTMLInputElement&&"select"in r}function cr(r,{select:o=!1}={}){if(r&&r.focus){const a=document.activeElement;r.focus({preventScroll:!0}),r!==a&&T1(r)&&o&&r.select()}}var Ap=I1();function I1(){let r=[];return{add(o){const a=r[0];o!==a&&(a==null||a.pause()),r=Dp(r,o),r.unshift(o)},remove(o){var a;r=Dp(r,o),(a=r[0])==null||a.resume()}}}function Dp(r,o){const a=[...r],l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}function O1(r){return r.filter(o=>o.tagName!=="A")}var z1="Portal",$h=k.forwardRef((r,o)=>{var h;const{container:a,...l}=r,[c,d]=k.useState(!1);Vs(()=>d(!0),[]);const m=a||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?Ah.createPortal(p.jsx(Fn.div,{...l,ref:o}),m):null});$h.displayName=z1;function _1(r,o){return k.useReducer((a,l)=>o[a][l]??a,r)}var zi=r=>{const{present:o,children:a}=r,l=A1(o),c=typeof a=="function"?a({present:l.isPresent}):k.Children.only(a),d=Zr(l.ref,D1(c));return typeof a=="function"||l.isPresent?k.cloneElement(c,{ref:d}):null};zi.displayName="Presence";function A1(r){const[o,a]=k.useState(),l=k.useRef(null),c=k.useRef(r),d=k.useRef("none"),m=r?"mounted":"unmounted",[h,S]=_1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const y=mi(l.current);d.current=h==="mounted"?y:"none"},[h]),Vs(()=>{const y=l.current,C=c.current;if(C!==r){const j=d.current,v=mi(y);r?S("MOUNT"):v==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(C&&j!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,S]),Vs(()=>{if(o){let y;const C=o.ownerDocument.defaultView??window,N=v=>{const w=mi(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&w&&(S("ANIMATION_END"),!c.current)){const M=o.style.animationFillMode;o.style.animationFillMode="forwards",y=C.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=M)})}},j=v=>{v.target===o&&(d.current=mi(l.current))};return o.addEventListener("animationstart",j),o.addEventListener("animationcancel",N),o.addEventListener("animationend",N),()=>{C.clearTimeout(y),o.removeEventListener("animationstart",j),o.removeEventListener("animationcancel",N),o.removeEventListener("animationend",N)}}else S("ANIMATION_END")},[o,S]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:k.useCallback(y=>{l.current=y?getComputedStyle(y):null,a(y)},[])}}function mi(r){return(r==null?void 0:r.animationName)||"none"}function D1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=o&&"isReactWarning"in o&&o.isReactWarning;return a?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=o&&"isReactWarning"in o&&o.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var Mu=0;function L1(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Lp()),document.body.insertAdjacentElement("beforeend",r[1]??Lp()),Mu++,()=>{Mu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Mu--}},[])}function Lp(){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 Sn=function(){return Sn=Object.assign||function(o){for(var a,l=1,c=arguments.length;l<c;l++){a=arguments[l];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(o[d]=a[d])}return o},Sn.apply(this,arguments)};function Qh(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)o.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(a[l[c]]=r[l[c]]);return a}function F1(r,o,a){if(a||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Pi="right-scroll-bar-position",ji="width-before-scroll-bar",U1="with-scroll-bars-hidden",B1="--removed-body-scroll-bar-size";function Ru(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function W1(r,o){var a=k.useState(function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(l){var c=a.value;c!==l&&(a.value=l,a.callback(l,c))}}}})[0];return a.callback=o,a.facade}var V1=typeof window<"u"?k.useLayoutEffect:k.useEffect,Fp=new WeakMap;function $1(r,o){var a=W1(null,function(l){return r.forEach(function(c){return Ru(c,l)})});return V1(function(){var l=Fp.get(a);if(l){var c=new Set(l),d=new Set(r),m=a.current;c.forEach(function(h){d.has(h)||Ru(h,null)}),d.forEach(function(h){c.has(h)||Ru(h,m)})}Fp.set(a,r)},[r]),a}function Q1(r){return r}function H1(r,o){o===void 0&&(o=Q1);var a=[],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 a.length?a[a.length-1]:r},useMedium:function(d){var m=o(d,l);return a.push(m),function(){a=a.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(l=!0;a.length;){var m=a;a=[],m.forEach(d)}a={push:function(h){return d(h)},filter:function(){return a}}},assignMedium:function(d){l=!0;var m=[];if(a.length){var h=a;a=[],h.forEach(d),m=a}var S=function(){var C=m;m=[],C.forEach(d)},y=function(){return Promise.resolve().then(S)};y(),a={push:function(C){m.push(C),y()},filter:function(C){return m=m.filter(C),a}}}};return c}function K1(r){r===void 0&&(r={});var o=H1(null);return o.options=Sn({async:!0,ssr:!1},r),o}var Hh=function(r){var o=r.sideCar,a=Qh(r,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=o.read();if(!l)throw new Error("Sidecar medium not found");return k.createElement(l,Sn({},a))};Hh.isSideCarExport=!0;function G1(r,o){return r.useMedium(o),Hh}var Kh=K1(),Tu=function(){},_i=k.forwardRef(function(r,o){var a=k.useRef(null),l=k.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),c=l[0],d=l[1],m=r.forwardProps,h=r.children,S=r.className,y=r.removeScrollBar,C=r.enabled,N=r.shards,j=r.sideCar,v=r.noRelative,_=r.noIsolation,w=r.inert,M=r.allowPinchZoom,V=r.as,G=V===void 0?"div":V,B=r.gapMode,A=Qh(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=j,Q=$1([a,o]),D=Sn(Sn({},A),c);return k.createElement(k.Fragment,null,C&&k.createElement(z,{sideCar:Kh,removeScrollBar:y,shards:N,noRelative:v,noIsolation:_,inert:w,setCallbacks:d,allowPinchZoom:!!M,lockRef:a,gapMode:B}),m?k.cloneElement(k.Children.only(h),Sn(Sn({},D),{ref:Q})):k.createElement(G,Sn({},D,{className:S,ref:Q}),h))});_i.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_i.classNames={fullWidth:ji,zeroRight:Pi};var q1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=q1();return o&&r.setAttribute("nonce",o),r}function X1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function Z1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var J1=function(){var r=0,o=null;return{add:function(a){r==0&&(o=Y1())&&(X1(o,a),Z1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},ex=function(){var r=J1();return function(o,a){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&a])}},Gh=function(){var r=ex(),o=function(a){var l=a.styles,c=a.dynamic;return r(l,c),null};return o},tx={left:0,top:0,right:0,gap:0},Iu=function(r){return parseInt(r||"",10)||0},nx=function(r){var o=window.getComputedStyle(document.body),a=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[Iu(a),Iu(l),Iu(c)]},rx=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return tx;var o=nx(r),a=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-a+o[2]-o[0])}},ox=Gh(),zo="data-scroll-locked",sx=function(r,o,a,l){var c=r.left,d=r.top,m=r.right,h=r.gap;return a===void 0&&(a="margin"),`
|
|
197
|
+
.`.concat(U1,` {
|
|
198
|
+
overflow: hidden `).concat(l,`;
|
|
199
|
+
padding-right: `).concat(h,"px ").concat(l,`;
|
|
200
|
+
}
|
|
201
|
+
body[`).concat(zo,`] {
|
|
202
|
+
overflow: hidden `).concat(l,`;
|
|
203
|
+
overscroll-behavior: contain;
|
|
204
|
+
`).concat([o&&"position: relative ".concat(l,";"),a==="margin"&&`
|
|
205
|
+
padding-left: `.concat(c,`px;
|
|
206
|
+
padding-top: `).concat(d,`px;
|
|
207
|
+
padding-right: `).concat(m,`px;
|
|
208
|
+
margin-left:0;
|
|
209
|
+
margin-top:0;
|
|
210
|
+
margin-right: `).concat(h,"px ").concat(l,`;
|
|
211
|
+
`),a==="padding"&&"padding-right: ".concat(h,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.`).concat(Pi,` {
|
|
215
|
+
right: `).concat(h,"px ").concat(l,`;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.`).concat(ji,` {
|
|
219
|
+
margin-right: `).concat(h,"px ").concat(l,`;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.`).concat(Pi," .").concat(Pi,` {
|
|
223
|
+
right: 0 `).concat(l,`;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.`).concat(ji," .").concat(ji,` {
|
|
227
|
+
margin-right: 0 `).concat(l,`;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
body[`).concat(zo,`] {
|
|
231
|
+
`).concat(B1,": ").concat(h,`px;
|
|
232
|
+
}
|
|
233
|
+
`)},Up=function(){var r=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(r)?r:0},ax=function(){k.useEffect(function(){return document.body.setAttribute(zo,(Up()+1).toString()),function(){var r=Up()-1;r<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,r.toString())}},[])},ix=function(r){var o=r.noRelative,a=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;ax();var d=k.useMemo(function(){return rx(c)},[c]);return k.createElement(ox,{styles:sx(d,!o,c,a?"":"!important")})},ec=!1;if(typeof window<"u")try{var gi=Object.defineProperty({},"passive",{get:function(){return ec=!0,!0}});window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{ec=!1}var Mo=ec?{passive:!1}:!1,lx=function(r){return r.tagName==="TEXTAREA"},qh=function(r,o){if(!(r instanceof Element))return!1;var a=window.getComputedStyle(r);return a[o]!=="hidden"&&!(a.overflowY===a.overflowX&&!lx(r)&&a[o]==="visible")},ux=function(r){return qh(r,"overflowY")},cx=function(r){return qh(r,"overflowX")},Bp=function(r,o){var a=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Yh(r,l);if(c){var d=Xh(r,l),m=d[1],h=d[2];if(m>h)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},dx=function(r){var o=r.scrollTop,a=r.scrollHeight,l=r.clientHeight;return[o,a,l]},fx=function(r){var o=r.scrollLeft,a=r.scrollWidth,l=r.clientWidth;return[o,a,l]},Yh=function(r,o){return r==="v"?ux(o):cx(o)},Xh=function(r,o){return r==="v"?dx(o):fx(o)},px=function(r,o){return r==="h"&&o==="rtl"?-1:1},hx=function(r,o,a,l,c){var d=px(r,window.getComputedStyle(o).direction),m=d*l,h=a.target,S=o.contains(h),y=!1,C=m>0,N=0,j=0;do{if(!h)break;var v=Xh(r,h),_=v[0],w=v[1],M=v[2],V=w-M-d*_;(_||V)&&Yh(r,h)&&(N+=V,j+=_);var G=h.parentNode;h=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!S&&h!==document.body||S&&(o.contains(h)||o===h));return(C&&Math.abs(N)<1||!C&&Math.abs(j)<1)&&(y=!0),y},yi=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Wp=function(r){return[r.deltaX,r.deltaY]},Vp=function(r){return r&&"current"in r?r.current:r},mx=function(r,o){return r[0]===o[0]&&r[1]===o[1]},gx=function(r){return`
|
|
234
|
+
.block-interactivity-`.concat(r,` {pointer-events: none;}
|
|
235
|
+
.allow-interactivity-`).concat(r,` {pointer-events: all;}
|
|
236
|
+
`)},yx=0,Ro=[];function vx(r){var o=k.useRef([]),a=k.useRef([0,0]),l=k.useRef(),c=k.useState(yx++)[0],d=k.useState(Gh)[0],m=k.useRef(r);k.useEffect(function(){m.current=r},[r]),k.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var w=F1([r.lockRef.current],(r.shards||[]).map(Vp),!0).filter(Boolean);return w.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),w.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var h=k.useCallback(function(w,M){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!m.current.allowPinchZoom;var V=yi(w),G=a.current,B="deltaX"in w?w.deltaX:G[0]-V[0],A="deltaY"in w?w.deltaY:G[1]-V[1],z,Q=w.target,D=Math.abs(B)>Math.abs(A)?"h":"v";if("touches"in w&&D==="h"&&Q.type==="range")return!1;var L=window.getSelection(),te=L&&L.anchorNode,re=te?te===Q||te.contains(Q):!1;if(re)return!1;var F=Bp(D,Q);if(!F)return!0;if(F?z=D:(z=D==="v"?"h":"v",F=Bp(D,Q)),!F)return!1;if(!l.current&&"changedTouches"in w&&(B||A)&&(l.current=z),!z)return!0;var H=l.current||z;return hx(H,M,w,H==="h"?B:A)},[]),S=k.useCallback(function(w){var M=w;if(!(!Ro.length||Ro[Ro.length-1]!==d)){var V="deltaY"in M?Wp(M):yi(M),G=o.current.filter(function(z){return z.name===M.type&&(z.target===M.target||M.target===z.shadowParent)&&mx(z.delta,V)})[0];if(G&&G.should){M.cancelable&&M.preventDefault();return}if(!G){var B=(m.current.shards||[]).map(Vp).filter(Boolean).filter(function(z){return z.contains(M.target)}),A=B.length>0?h(M,B[0]):!m.current.noIsolation;A&&M.cancelable&&M.preventDefault()}}},[]),y=k.useCallback(function(w,M,V,G){var B={name:w,delta:M,target:V,should:G,shadowParent:xx(V)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(A){return A!==B})},1)},[]),C=k.useCallback(function(w){a.current=yi(w),l.current=void 0},[]),N=k.useCallback(function(w){y(w.type,Wp(w),w.target,h(w,r.lockRef.current))},[]),j=k.useCallback(function(w){y(w.type,yi(w),w.target,h(w,r.lockRef.current))},[]);k.useEffect(function(){return Ro.push(d),r.setCallbacks({onScrollCapture:N,onWheelCapture:N,onTouchMoveCapture:j}),document.addEventListener("wheel",S,Mo),document.addEventListener("touchmove",S,Mo),document.addEventListener("touchstart",C,Mo),function(){Ro=Ro.filter(function(w){return w!==d}),document.removeEventListener("wheel",S,Mo),document.removeEventListener("touchmove",S,Mo),document.removeEventListener("touchstart",C,Mo)}},[]);var v=r.removeScrollBar,_=r.inert;return k.createElement(k.Fragment,null,_?k.createElement(d,{styles:gx(c)}):null,v?k.createElement(ix,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function xx(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const wx=G1(Kh,vx);var Zh=k.forwardRef(function(r,o){return k.createElement(_i,Sn({},r,{ref:o,sideCar:wx}))});Zh.classNames=_i.classNames;var Sx=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},To=new WeakMap,vi=new WeakMap,xi={},Ou=0,Jh=function(r){return r&&(r.host||Jh(r.parentNode))},bx=function(r,o){return o.map(function(a){if(r.contains(a))return a;var l=Jh(a);return l&&r.contains(l)?l:(console.error("aria-hidden",a,"in not contained inside",r,". Doing nothing"),null)}).filter(function(a){return!!a})},kx=function(r,o,a,l){var c=bx(o,Array.isArray(r)?r:[r]);xi[a]||(xi[a]=new WeakMap);var d=xi[a],m=[],h=new Set,S=new Set(c),y=function(N){!N||h.has(N)||(h.add(N),y(N.parentNode))};c.forEach(y);var C=function(N){!N||S.has(N)||Array.prototype.forEach.call(N.children,function(j){if(h.has(j))C(j);else try{var v=j.getAttribute(l),_=v!==null&&v!=="false",w=(To.get(j)||0)+1,M=(d.get(j)||0)+1;To.set(j,w),d.set(j,M),m.push(j),w===1&&_&&vi.set(j,!0),M===1&&j.setAttribute(a,"true"),_||j.setAttribute(l,"true")}catch(V){console.error("aria-hidden: cannot operate on ",j,V)}})};return C(o),h.clear(),Ou++,function(){m.forEach(function(N){var j=To.get(N)-1,v=d.get(N)-1;To.set(N,j),d.set(N,v),j||(vi.has(N)||N.removeAttribute(l),vi.delete(N)),v||N.removeAttribute(a)}),Ou--,Ou||(To=new WeakMap,To=new WeakMap,vi=new WeakMap,xi={})}},Cx=function(r,o,a){a===void 0&&(a="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=Sx(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),kx(l,c,a,"aria-hidden")):function(){return null}},Ai="Dialog",[em]=o1(Ai),[Ex,on]=em(Ai),tm=r=>{const{__scopeDialog:o,children:a,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,h=k.useRef(null),S=k.useRef(null),[y,C]=u1({prop:l,defaultProp:c??!1,onChange:d,caller:Ai});return p.jsx(Ex,{scope:o,triggerRef:h,contentRef:S,contentId:Nu(),titleId:Nu(),descriptionId:Nu(),open:y,onOpenChange:C,onOpenToggle:k.useCallback(()=>C(N=>!N),[C]),modal:m,children:a})};tm.displayName=Ai;var nm="DialogTrigger",Nx=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(nm,a),d=Zr(o,c.triggerRef);return p.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":mc(c.open),...l,ref:d,onClick:Sr(r.onClick,c.onOpenToggle)})});Nx.displayName=nm;var pc="DialogPortal",[Px,rm]=em(pc,{forceMount:void 0}),om=r=>{const{__scopeDialog:o,forceMount:a,children:l,container:c}=r,d=on(pc,o);return p.jsx(Px,{scope:o,forceMount:a,children:k.Children.map(l,m=>p.jsx(zi,{present:a||d.open,children:p.jsx($h,{asChild:!0,container:c,children:m})}))})};om.displayName=pc;var Ii="DialogOverlay",sm=k.forwardRef((r,o)=>{const a=rm(Ii,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,d=on(Ii,r.__scopeDialog);return d.modal?p.jsx(zi,{present:l||d.open,children:p.jsx(Mx,{...c,ref:o})}):null});sm.displayName=Ii;var jx=Lh("DialogOverlay.RemoveScroll"),Mx=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(Ii,a);return p.jsx(Zh,{as:jx,allowPinchZoom:!0,shards:[c.contentRef],children:p.jsx(Fn.div,{"data-state":mc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),Yr="DialogContent",am=k.forwardRef((r,o)=>{const a=rm(Yr,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,d=on(Yr,r.__scopeDialog);return p.jsx(zi,{present:l||d.open,children:d.modal?p.jsx(Rx,{...c,ref:o}):p.jsx(Tx,{...c,ref:o})})});am.displayName=Yr;var Rx=k.forwardRef((r,o)=>{const a=on(Yr,r.__scopeDialog),l=k.useRef(null),c=Zr(o,a.contentRef,l);return k.useEffect(()=>{const d=l.current;if(d)return Cx(d)},[]),p.jsx(im,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=a.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Sr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:Sr(r.onFocusOutside,d=>d.preventDefault())})}),Tx=k.forwardRef((r,o)=>{const a=on(Yr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return p.jsx(im,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(h=a.triggerRef.current)==null||h.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var S,y;(S=r.onInteractOutside)==null||S.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((y=a.triggerRef.current)==null?void 0:y.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),im=k.forwardRef((r,o)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,h=on(Yr,a),S=k.useRef(null),y=Zr(o,S);return L1(),p.jsxs(p.Fragment,{children:[p.jsx(Wh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:p.jsx(Uh,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":mc(h.open),...m,ref:y,onDismiss:()=>h.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Ix,{titleId:h.titleId}),p.jsx(zx,{contentRef:S,descriptionId:h.descriptionId})]})]})}),hc="DialogTitle",lm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(hc,a);return p.jsx(Fn.h2,{id:c.titleId,...l,ref:o})});lm.displayName=hc;var um="DialogDescription",cm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(um,a);return p.jsx(Fn.p,{id:c.descriptionId,...l,ref:o})});cm.displayName=um;var dm="DialogClose",fm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(dm,a);return p.jsx(Fn.button,{type:"button",...l,ref:o,onClick:Sr(r.onClick,()=>c.onOpenChange(!1))})});fm.displayName=dm;function mc(r){return r?"open":"closed"}var pm="DialogTitleWarning",[uw,hm]=r1(pm,{contentName:Yr,titleName:hc,docsSlug:"dialog"}),Ix=({titleId:r})=>{const o=hm(pm),a=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
237
|
+
|
|
238
|
+
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
239
|
+
|
|
240
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(a))},[a,r]),null},Ox="DialogDescriptionWarning",zx=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hm(Ox).contentName}}.`;return k.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},_x=tm,Ax=om,mm=sm,gm=am,ym=lm,vm=cm,Dx=fm;const xm=_x,Lx=Ax,wm=k.forwardRef(({className:r,...o},a)=>p.jsx(mm,{ref:a,className:Re("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o}));wm.displayName=mm.displayName;const gc=k.forwardRef(({className:r,children:o,...a},l)=>p.jsxs(Lx,{children:[p.jsx(wm,{}),p.jsxs(gm,{ref:l,className:Re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white p-6 shadow-xl duration-base 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-xl",r),...a,children:[o,p.jsxs(Dx,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[p.jsx(zh,{className:"h-4 w-4 text-gray-500"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gc.displayName=gm.displayName;const yc=({className:r,...o})=>p.jsx("div",{className:Re("flex flex-col space-y-2 text-center sm:text-left",r),...o});yc.displayName="DialogHeader";const vc=({className:r,...o})=>p.jsx("div",{className:Re("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});vc.displayName="DialogFooter";const xc=k.forwardRef(({className:r,...o},a)=>p.jsx(ym,{ref:a,className:Re("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));xc.displayName=ym.displayName;const wc=k.forwardRef(({className:r,...o},a)=>p.jsx(vm,{ref:a,className:Re("text-sm text-gray-500 leading-relaxed",r),...o}));wc.displayName=vm.displayName;function Fx({maskedValue:r,isSet:o,className:a,...l}){const[c,d]=k.useState(!1);return p.jsxs("div",{className:"relative",children:[p.jsx(qe,{type:c?"text":"password",className:Re("pr-20",a),placeholder:o?`${X("apiKeySet")} (Unchanged)`:"",...l}),p.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&p.jsx(vt,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?p.jsx(Zv,{className:"h-4 w-4"}):p.jsx(Jv,{className:"h-4 w-4"})})})]})}function Ux({value:r,onChange:o,className:a}){const l=r?Object.entries(r):[],c=(h,S,y)=>{const C=[...l];C[h]=[S,y],o(Object.fromEntries(C))},d=()=>{o({...r,"":""})},m=h=>{const S=l.filter((y,C)=>C!==h);o(Object.fromEntries(S))};return p.jsxs("div",{className:Re("space-y-2",a),children:[l.map(([h,S],y)=>p.jsxs("div",{className:"flex gap-2",children:[p.jsx(qe,{type:"text",value:h,onChange:C=>c(y,C.target.value,S),placeholder:X("headerName"),className:"flex-1"}),p.jsx(qe,{type:"text",value:S,onChange:C=>c(y,h,C.target.value),placeholder:X("headerValue"),className:"flex-1"}),p.jsx(vt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(y),children:p.jsx(Xu,{className:"h-4 w-4 text-red-500"})})]},y)),p.jsxs(vt,{type:"button",variant:"outline",size:"sm",onClick:d,children:[p.jsx(Yu,{className:"h-4 w-4 mr-2"}),X("add")]})]})}function Bx(){const{providerModal:r,closeProviderModal:o}=Xr(),{data:a}=Yo(),{data:l}=fc(),{data:c}=Xo(),d=Z0(),[m,h]=k.useState(""),[S,y]=k.useState(""),[C,N]=k.useState(null),[j,v]=k.useState("auto"),_=r.provider,w=l==null?void 0:l.providers.find(D=>D.name===_),M=_?a==null?void 0:a.providers[_]:null,V=c==null?void 0:c.uiHints,G=_?wt(`providers.${_}.apiKey`,V):void 0,B=_?wt(`providers.${_}.apiBase`,V):void 0,A=_?wt(`providers.${_}.extraHeaders`,V):void 0,z=_?wt(`providers.${_}.wireApi`,V):void 0;k.useEffect(()=>{if(M){y(M.apiBase||(w==null?void 0:w.defaultApiBase)||""),N(M.extraHeaders||null),h("");const D=M.wireApi||(w==null?void 0:w.defaultWireApi)||"auto";v(D)}},[M,w]);const Q=D=>{D.preventDefault();const L={};if(m!==""&&(L.apiKey=m),S&&S!==(w==null?void 0:w.defaultApiBase)&&(L.apiBase=S),C&&Object.keys(C).length>0&&(L.extraHeaders=C),w!=null&&w.supportsWireApi){const te=(M==null?void 0:M.wireApi)||w.defaultWireApi||"auto";j!==te&&(L.wireApi=j)}_&&d.mutate({provider:_,data:L},{onSuccess:()=>o()})};return p.jsx(xm,{open:r.open,onOpenChange:o,children:p.jsxs(gc,{className:"sm:max-w-[500px]",children:[p.jsx(yc,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:p.jsx(Ti,{className:"h-5 w-5 text-white"})}),p.jsxs("div",{children:[p.jsx(xc,{children:(w==null?void 0:w.displayName)||_}),p.jsx(wc,{children:"Configure API keys and parameters for AI provider"})]})]})}),p.jsxs("form",{onSubmit:Q,className:"flex flex-col pt-2",children:[p.jsxs("div",{className:"space-y-5 max-h-[60vh] overflow-y-auto pr-1",children:[p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Ti,{className:"h-3.5 w-3.5 text-gray-500"}),(G==null?void 0:G.label)??X("apiKey")]}),p.jsx(Fx,{id:"apiKey",value:m,isSet:M==null?void 0:M.apiKeySet,onChange:D=>h(D.target.value),placeholder:M!=null&&M.apiKeySet?X("apiKeySet"):(G==null?void 0:G.placeholder)??"Enter API Key",className:"rounded-xl"})]}),p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Th,{className:"h-3.5 w-3.5 text-gray-500"}),(B==null?void 0:B.label)??X("apiBase")]}),p.jsx(qe,{id:"apiBase",type:"text",value:S,onChange:D=>y(D.target.value),placeholder:(w==null?void 0:w.defaultApiBase)||(B==null?void 0:B.placeholder)||"https://api.example.com",className:"rounded-xl"}),(B==null?void 0:B.help)&&p.jsx("p",{className:"text-xs text-gray-500",children:B.help})]}),(w==null?void 0:w.supportsWireApi)&&p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(qu,{className:"h-3.5 w-3.5 text-gray-500"}),(z==null?void 0:z.label)??X("wireApi")]}),p.jsx("select",{id:"wireApi",value:j,onChange:D=>v(D.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(w.wireApiOptions||["auto","chat","responses"]).map(D=>p.jsx("option",{value:D,children:X(D==="chat"?"wireApiChat":D==="responses"?"wireApiResponses":"wireApiAuto")},D))})]}),p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(qu,{className:"h-3.5 w-3.5 text-gray-500"}),(A==null?void 0:A.label)??X("extraHeaders")]}),p.jsx(Ux,{value:C,onChange:N})]})]}),p.jsxs(vc,{className:"pt-4 flex-shrink-0",children:[p.jsx(vt,{type:"button",variant:"outline",onClick:o,children:X("cancel")}),p.jsx(vt,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":X("save")})]})]})]})})}function Sm({tabs:r,activeTab:o,onChange:a,className:l}){return p.jsx("div",{className:Re("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return p.jsxs("button",{onClick:()=>a(c.id),className:Re("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&p.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&p.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-primary animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function bm({name:r,src:o,className:a,imgClassName:l,fallback:c}){const[d,m]=k.useState(!1),h=!!o&&!d;return p.jsx("div",{className:Re("flex items-center justify-center",a),children:h?p.jsx("img",{src:o,alt:`${r} logo`,className:Re("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??p.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const Wx={openrouter:"openrouter.svg",aihubmix:"aihubmix.png",anthropic:"anthropic.svg",openai:"openai.svg",gemini:"gemini.svg",deepseek:"deepseek.png",zhipu:"zhipu.svg",dashscope:"dashscope.png",moonshot:"moonshot.png",minimax:"minimax.svg",vllm:"vllm.svg",groq:"groq.svg"},Vx={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",wecom:"wecom.svg",mochat:"mochat.svg",email:"email.svg"};function km(r,o){const a=o.toLowerCase(),l=r[a];return l?`/logos/${l}`:null}function $x(r){return km(Wx,r)}function Qx(r){return km(Vx,r)}function Hx(){const{data:r}=Yo(),{data:o}=fc(),{data:a}=Xo(),{openProviderModal:l}=Xr(),[c,d]=k.useState("installed"),m=a==null?void 0:a.uiHints;if(!r||!o)return p.jsx("div",{className:"p-8",children:"Loading..."});const h=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(y=>r.providers[y].apiKeySet).length:0},{id:"all",label:"All Providers"}],S=c==="installed"?o.providers.filter(y=>{var C;return(C=r.providers[y.name])==null?void 0:C.apiKeySet}):o.providers;return p.jsxs("div",{className:"animate-fade-in pb-20",children:[p.jsx("div",{className:"flex items-center justify-between mb-8",children:p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),p.jsx(Sm,{tabs:h,activeTab:c,onChange:d}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(y=>{const C=r.providers[y.name],N=C==null?void 0:C.apiKeySet,j=wt(`providers.${y.name}`,m),v=(j==null?void 0:j.help)||"Configure AI services for your agents";return p.jsxs("div",{className:Re("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsx(bm,{name:y.name,src:$x(y.name),className:Re("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:p.jsx("span",{className:Re("text-lg font-bold uppercase",N?"text-gray-900":"text-gray-500"),children:y.name[0]})}),N?p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[p.jsx(qv,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[p.jsx(Ih,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),p.jsxs("div",{className:"flex-1",children:[p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:y.displayName||y.name}),p.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),p.jsx("div",{className:"mt-4 pt-3",children:p.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Add Provider",p.jsx(Rh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},y.name)})}),S.length===0&&p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[p.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:p.jsx(Ti,{className:"h-8 w-8 text-gray-400"})}),p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),p.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Add an AI provider to start using the platform. Click on any provider to configure it."})]}),p.jsx(Bx,{})]})}const Sc=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:a,...l},c)=>p.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Re("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",o?"bg-primary":"bg-gray-200 hover:bg-gray-300",r),onClick:()=>a==null?void 0:a(!o),...l,children:p.jsx("span",{className:Re("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",o?"translate-x-5":"translate-x-0")})}));Sc.displayName="Switch";function Kx({value:r,onChange:o,className:a,placeholder:l="Type and press Enter..."}){const[c,d]=k.useState(""),m=S=>{S.key==="Enter"&&c.trim()?(S.preventDefault(),o([...r,c.trim()]),d("")):S.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},h=S=>{o(r.filter((y,C)=>C!==S))};return p.jsxs("div",{className:Re("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",a),children:[r.map((S,y)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[S,p.jsx("button",{type:"button",onClick:()=>h(y),className:"hover:text-red-300 transition-colors",children:p.jsx(zh,{className:"h-3 w-3"})})]},y)),p.jsx("input",{type:"text",value:c,onChange:S=>d(S.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const $p=[{value:"pairing",label:"pairing"},{value:"allowlist",label:"allowlist"},{value:"open",label:"open"},{value:"disabled",label:"disabled"}],Qp=[{value:"open",label:"open"},{value:"allowlist",label:"allowlist"},{value:"disabled",label:"disabled"}],Gx=r=>r.includes("token")||r.includes("secret")||r.includes("password")?p.jsx(Ti,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?p.jsx(Th,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?p.jsx(cc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?p.jsx(qu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?p.jsx(i0,{className:"h-3.5 w-3.5 text-gray-500"}):p.jsx(Ih,{className:"h-3.5 w-3.5 text-gray-500"}),qx={telegram:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"token",type:"password",label:X("botToken")},{name:"allowFrom",type:"tags",label:X("allowFrom")},{name:"proxy",type:"text",label:X("proxy")},{name:"accountId",type:"text",label:"Account ID"},{name:"dmPolicy",type:"select",label:"DM Policy",options:$p},{name:"groupPolicy",type:"select",label:"Group Policy",options:Qp},{name:"groupAllowFrom",type:"tags",label:"Group Allow From"},{name:"requireMention",type:"boolean",label:"Require Mention"},{name:"mentionPatterns",type:"tags",label:"Mention Patterns"},{name:"groups",type:"json",label:"Group Rules (JSON)"}],discord:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"token",type:"password",label:X("botToken")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"allowFrom",type:"tags",label:X("allowFrom")},{name:"gatewayUrl",type:"text",label:X("gatewayUrl")},{name:"intents",type:"number",label:X("intents")},{name:"proxy",type:"text",label:X("proxy")},{name:"mediaMaxMb",type:"number",label:"Attachment Max Size (MB)"},{name:"accountId",type:"text",label:"Account ID"},{name:"dmPolicy",type:"select",label:"DM Policy",options:$p},{name:"groupPolicy",type:"select",label:"Group Policy",options:Qp},{name:"groupAllowFrom",type:"tags",label:"Group Allow From"},{name:"requireMention",type:"boolean",label:"Require Mention"},{name:"mentionPatterns",type:"tags",label:"Mention Patterns"},{name:"groups",type:"json",label:"Group Rules (JSON)"}],whatsapp:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"bridgeUrl",type:"text",label:X("bridgeUrl")},{name:"allowFrom",type:"tags",label:X("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"appId",type:"text",label:X("appId")},{name:"appSecret",type:"password",label:X("appSecret")},{name:"encryptKey",type:"password",label:X("encryptKey")},{name:"verificationToken",type:"password",label:X("verificationToken")},{name:"allowFrom",type:"tags",label:X("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"clientId",type:"text",label:X("clientId")},{name:"clientSecret",type:"password",label:X("clientSecret")},{name:"allowFrom",type:"tags",label:X("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"corpId",type:"text",label:X("corpId")},{name:"agentId",type:"text",label:X("agentId")},{name:"secret",type:"password",label:X("secret")},{name:"token",type:"password",label:X("token")},{name:"callbackPort",type:"number",label:X("callbackPort")},{name:"callbackPath",type:"text",label:X("callbackPath")},{name:"allowFrom",type:"tags",label:X("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"mode",type:"text",label:X("mode")},{name:"webhookPath",type:"text",label:X("webhookPath")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"botToken",type:"password",label:X("botToken")},{name:"appToken",type:"password",label:X("appToken")}],email:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"consentGranted",type:"boolean",label:X("consentGranted")},{name:"imapHost",type:"text",label:X("imapHost")},{name:"imapPort",type:"number",label:X("imapPort")},{name:"imapUsername",type:"text",label:X("imapUsername")},{name:"imapPassword",type:"password",label:X("imapPassword")},{name:"fromAddress",type:"email",label:X("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"baseUrl",type:"text",label:X("baseUrl")},{name:"clawToken",type:"password",label:X("clawToken")},{name:"agentUserId",type:"text",label:X("agentUserId")},{name:"allowFrom",type:"tags",label:X("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:X("enabled")},{name:"appId",type:"text",label:X("appId")},{name:"secret",type:"password",label:X("appSecret")},{name:"markdownSupport",type:"boolean",label:X("markdownSupport")},{name:"allowFrom",type:"tags",label:X("allowFrom")}]},Hp={telegram:Si,slack:Si,email:cc,default:Si},Kp={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 Oi(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Cm(r,o){const a={...r};for(const[l,c]of Object.entries(o)){const d=a[l];if(Oi(d)&&Oi(c)){a[l]=Cm(d,c);continue}a[l]=c}return a}function Yx(r,o){const a=r.split("."),l={};let c=l;for(let d=0;d<a.length-1;d+=1){const m=a[d];c[m]={},c=c[m]}return c[a[a.length-1]]=o,l}function Xx(){var te,re;const{channelModal:r,closeChannelModal:o}=Xr(),{data:a}=Yo(),{data:l}=Xo(),c=J0(),d=t1(),[m,h]=k.useState({}),[S,y]=k.useState({}),[C,N]=k.useState(null),j=r.channel,v=j?a==null?void 0:a.channels[j]:null,_=k.useMemo(()=>j?qx[j]:[],[j]),w=l==null?void 0:l.uiHints,M=j?`channels.${j}`:null,V=((te=l==null?void 0:l.actions)==null?void 0:te.filter(F=>F.scope===M))??[],G=j&&(((re=wt(`channels.${j}`,w))==null?void 0:re.label)??j);k.useEffect(()=>{if(v){h({...v});const F={};_.filter(H=>H.type==="json").forEach(H=>{const pe=v[H.name];F[H.name]=JSON.stringify(pe??{},null,2)}),y(F)}else h({}),y({})},[v,j,_]);const B=(F,H)=>{h(pe=>({...pe,[F]:H}))},A=F=>{if(F.preventDefault(),!j)return;const H={...m};for(const pe of _){if(pe.type!=="json")continue;const we=S[pe.name]??"";try{H[pe.name]=we.trim()?JSON.parse(we):{}}catch{xt.error(`Invalid JSON for ${pe.name}`);return}}c.mutate({channel:j,data:H},{onSuccess:()=>o()})},z=F=>{if(!F||!j)return;const H=F.channels;if(!Oi(H))return;const pe=H[j];Oi(pe)&&h(we=>Cm(we,pe))},Q=async F=>{if(!(!j||!M)){N(F.id);try{let H={...m};F.saveBeforeRun&&(H={...H,...F.savePatch??{}},h(H),await c.mutateAsync({channel:j,data:H}));const pe=await d.mutateAsync({actionId:F.id,data:{scope:M,draftConfig:Yx(M,H)}});z(pe.patch),pe.ok?xt.success(pe.message||X("success")):xt.error(pe.message||X("error"))}catch(H){const pe=H instanceof Error?H.message:String(H);xt.error(`${X("error")}: ${pe}`)}finally{N(null)}}},D=Hp[j||""]||Hp.default,L=Kp[j||""]||Kp.default;return p.jsx(xm,{open:r.open,onOpenChange:o,children:p.jsxs(gc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[p.jsx(yc,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${L} flex items-center justify-center`,children:p.jsx(D,{className:"h-5 w-5 text-white"})}),p.jsxs("div",{children:[p.jsx(xc,{className:"capitalize",children:G}),p.jsx(wc,{children:"Configure message channel parameters"})]})]})}),p.jsxs("form",{onSubmit:A,className:"flex flex-col flex-1 overflow-hidden",children:[p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:_.map(F=>{const H=j?wt(`channels.${j}.${F.name}`,w):void 0,pe=(H==null?void 0:H.label)??F.label,we=H==null?void 0:H.placeholder;return p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:F.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Gx(F.name),pe]}),F.type==="boolean"&&p.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[p.jsx("span",{className:"text-sm text-gray-500",children:m[F.name]?X("enabled"):X("disabled")}),p.jsx(Sc,{id:F.name,checked:m[F.name]||!1,onCheckedChange:ve=>B(F.name,ve),className:"data-[state=checked]:bg-emerald-500"})]}),(F.type==="text"||F.type==="email")&&p.jsx(qe,{id:F.name,type:F.type,value:m[F.name]||"",onChange:ve=>B(F.name,ve.target.value),placeholder:we,className:"rounded-xl"}),F.type==="password"&&p.jsx(qe,{id:F.name,type:"password",value:m[F.name]||"",onChange:ve=>B(F.name,ve.target.value),placeholder:we??"Leave blank to keep unchanged",className:"rounded-xl"}),F.type==="number"&&p.jsx(qe,{id:F.name,type:"number",value:m[F.name]||0,onChange:ve=>B(F.name,parseInt(ve.target.value)||0),placeholder:we,className:"rounded-xl"}),F.type==="tags"&&p.jsx(Kx,{value:m[F.name]||[],onChange:ve=>B(F.name,ve)}),F.type==="select"&&p.jsx("select",{id:F.name,value:m[F.name]||"",onChange:ve=>B(F.name,ve.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:(F.options??[]).map(ve=>p.jsx("option",{value:ve.value,children:ve.label},ve.value))}),F.type==="json"&&p.jsx("textarea",{id:F.name,value:S[F.name]??"{}",onChange:ve=>y(je=>({...je,[F.name]:ve.target.value})),className:"min-h-[120px] w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs font-mono"})]},F.name)})}),p.jsxs(vc,{className:"pt-4 flex-shrink-0",children:[p.jsx(vt,{type:"button",variant:"outline",onClick:o,children:X("cancel")}),p.jsx(vt,{type:"submit",disabled:c.isPending||!!C,children:c.isPending?"Saving...":X("save")}),V.filter(F=>F.trigger==="manual").map(F=>p.jsx(vt,{type:"button",onClick:()=>Q(F),disabled:c.isPending||!!C,variant:"secondary",children:C===F.id?X("connecting"):F.title},F.id))]})]})]})})}const Gp={telegram:Si,slack:s0,email:cc,webhook:Gv,default:dc},Zx={telegram:"Connect with Telegram bots for instant messaging",slack:"Integrate with Slack workspaces for team collaboration",email:"Send and receive messages via email protocols",webhook:"Receive HTTP webhooks for custom integrations",discord:"Connect Discord bots to your community servers",feishu:"Enterprise messaging and collaboration platform"};function Jx(){const{data:r}=Yo(),{data:o}=fc(),{data:a}=Xo(),{openChannelModal:l}=Xr(),[c,d]=k.useState("active"),m=a==null?void 0:a.uiHints;if(!r||!o)return p.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const h=[{id:"active",label:"Enabled",count:o.channels.filter(y=>{var C;return(C=r.channels[y.name])==null?void 0:C.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],S=o.channels.filter(y=>{var N;const C=((N=r.channels[y.name])==null?void 0:N.enabled)||!1;return c==="all"||C});return p.jsxs("div",{className:"animate-fade-in pb-20",children:[p.jsx("div",{className:"flex items-center justify-between mb-8",children:p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),p.jsx(Sm,{tabs:h,activeTab:c,onChange:d}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(y=>{const C=r.channels[y.name],N=(C==null?void 0:C.enabled)||!1,j=Gp[y.name]||Gp.default,v=wt(`channels.${y.name}`,m),_=(v==null?void 0:v.help)||Zx[y.name]||"Configure this communication channel";return p.jsxs("div",{className:Re("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsx(bm,{name:y.name,src:Qx(y.name),className:Re("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:p.jsx(j,{className:"h-6 w-6"})}),N?p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[p.jsx(l0,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[p.jsx(r0,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),p.jsxs("div",{className:"flex-1",children:[p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:y.displayName||y.name}),p.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:_})]}),p.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[p.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Enable",p.jsx(Rh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.tutorialUrl&&p.jsx("a",{href:y.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:w=>w.stopPropagation(),className:"flex items-center justify-center h-7 w-7 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors",title:"View Guide",children:p.jsx(Xv,{className:"h-3.5 w-3.5"})})]})]},y.name)})}),S.length===0&&p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[p.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:p.jsx(dc,{className:"h-8 w-8 text-gray-400"})}),p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),p.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Enable a messaging channel to start receiving messages. Click on any channel to configure it."})]}),p.jsx(Xx,{})]})}const ew=[{value:"main",label:"main"},{value:"per-peer",label:"per-peer"},{value:"per-channel-peer",label:"per-channel-peer"},{value:"per-account-channel-peer",label:"per-account-channel-peer"}];function tw(){return{id:"",default:!1,workspace:"",model:"",maxTokens:void 0,maxToolIterations:void 0}}function nw(){return{agentId:"",match:{channel:"",accountId:""}}}function qp(r){const o=r.trim();if(!o)return;const a=Number.parseInt(o,10);return Number.isFinite(a)?a:void 0}function rw(){const{data:r,isLoading:o}=Yo(),{data:a}=Xo(),l=e1(),[c,d]=k.useState([]),[m,h]=k.useState([]),[S,y]=k.useState("per-channel-peer"),[C,N]=k.useState(0);k.useEffect(()=>{var z,Q,D;r&&(d((r.agents.list??[]).map(L=>({id:L.id??"",default:!!L.default,workspace:L.workspace??"",model:L.model??"",maxTokens:L.maxTokens,maxToolIterations:L.maxToolIterations}))),h((r.bindings??[]).map(L=>{var te,re,F;return{agentId:L.agentId??"",match:{channel:((te=L.match)==null?void 0:te.channel)??"",accountId:((re=L.match)==null?void 0:re.accountId)??"",peer:(F=L.match)!=null&&F.peer?{kind:L.match.peer.kind,id:L.match.peer.id}:void 0}}})),y(((z=r.session)==null?void 0:z.dmScope)??"per-channel-peer"),N(((D=(Q=r.session)==null?void 0:Q.agentToAgent)==null?void 0:D.maxPingPongTurns)??0))},[r]);const j=a==null?void 0:a.uiHints,v=wt("session.dmScope",j),_=wt("session.agentToAgent.maxPingPongTurns",j),w=wt("agents.list",j),M=wt("bindings",j),V=k.useMemo(()=>{const z=new Set(["main"]);return c.forEach(Q=>{const D=Q.id.trim();D&&z.add(D)}),z},[c]),G=(z,Q)=>{d(D=>D.map((L,te)=>te===z?{...L,...Q}:L))},B=(z,Q)=>{h(D=>D.map((L,te)=>te===z?Q:L))},A=()=>{try{const z=c.map((L,te)=>{var H,pe;const re=L.id.trim();if(!re)throw new Error(`agents.list[${te}].id is required`);const F={id:re};return L.default&&(F.default=!0),(H=L.workspace)!=null&&H.trim()&&(F.workspace=L.workspace.trim()),(pe=L.model)!=null&&pe.trim()&&(F.model=L.model.trim()),typeof L.maxTokens=="number"&&(F.maxTokens=L.maxTokens),typeof L.maxToolIterations=="number"&&(F.maxToolIterations=L.maxToolIterations),F}),Q=z.map(L=>L.id).filter((L,te,re)=>re.indexOf(L)!==te);if(Q.length>0){xt.error(`Duplicate agent id: ${Q[0]}`);return}const D=m.map((L,te)=>{var je,ke,Y,K;const re=L.agentId.trim(),F=L.match.channel.trim(),H=((je=L.match.accountId)==null?void 0:je.trim())??"",pe=(ke=L.match.peer)==null?void 0:ke.kind,we=((K=(Y=L.match.peer)==null?void 0:Y.id)==null?void 0:K.trim())??"";if(!re)throw new Error(`bindings[${te}].agentId is required`);if(!V.has(re))throw new Error(`bindings[${te}].agentId '${re}' not found in agents.list/main`);if(!F)throw new Error(`bindings[${te}].match.channel is required`);const ve={agentId:re,match:{channel:F}};if(H&&(ve.match.accountId=H),pe){if(!we)throw new Error(`bindings[${te}].match.peer.id is required when peer.kind is set`);ve.match.peer={kind:pe,id:we}}return ve});l.mutate({data:{agents:{list:z},bindings:D,session:{dmScope:S,agentToAgent:{maxPingPongTurns:Math.min(5,Math.max(0,C))}}}})}catch(z){const Q=z instanceof Error?z.message:String(z);xt.error(Q)}};return o||!r?p.jsx("div",{className:"p-8 text-gray-400",children:"Loading runtime settings..."}):p.jsxs("div",{className:"space-y-6 pb-20 animate-fade-in",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Routing & Runtime"}),p.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Align multi-agent routing with OpenClaw: bindings, agent pool, and DM scope."})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(v==null?void 0:v.label)??"DM Scope"}),p.jsx(Ci,{children:(v==null?void 0:v.help)??"Control how direct-message sessions are isolated."})]}),p.jsxs(Ei,{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium text-gray-800",children:(v==null?void 0:v.label)??"DM Scope"}),p.jsx("select",{value:S,onChange:z=>y(z.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:ew.map(z=>p.jsx("option",{value:z.value,children:z.label},z.value))})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium text-gray-800",children:(_==null?void 0:_.label)??"Max Ping-Pong Turns"}),p.jsx(qe,{type:"number",min:0,max:5,value:C,onChange:z=>N(Math.max(0,Number.parseInt(z.target.value,10)||0))}),p.jsx("p",{className:"text-xs text-gray-500",children:(_==null?void 0:_.help)??"Set to 0 to block automatic agent-to-agent ping-pong loops."})]})]})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(w==null?void 0:w.label)??"Agent List"}),p.jsx(Ci,{children:(w==null?void 0:w.help)??"Run multiple fixed-role agents in one gateway process."})]}),p.jsxs(Ei,{className:"space-y-3",children:[c.map((z,Q)=>p.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[p.jsx(qe,{value:z.id,onChange:D=>G(Q,{id:D.target.value}),placeholder:"Agent ID (e.g. engineer)"}),p.jsx(qe,{value:z.workspace??"",onChange:D=>G(Q,{workspace:D.target.value}),placeholder:"Workspace override (optional)"}),p.jsx(qe,{value:z.model??"",onChange:D=>G(Q,{model:D.target.value}),placeholder:"Model override (optional)"}),p.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[p.jsx(qe,{type:"number",min:1,value:z.maxTokens??"",onChange:D=>G(Q,{maxTokens:qp(D.target.value)}),placeholder:"Max tokens"}),p.jsx(qe,{type:"number",min:1,value:z.maxToolIterations??"",onChange:D=>G(Q,{maxToolIterations:qp(D.target.value)}),placeholder:"Max tools"})]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[p.jsx(Sc,{checked:!!z.default,onCheckedChange:D=>{if(!D){G(Q,{default:!1});return}d(L=>L.map((te,re)=>({...te,default:re===Q})))}}),p.jsx("span",{children:"Default agent"})]}),p.jsxs(vt,{type:"button",variant:"outline",size:"sm",onClick:()=>d(D=>D.filter((L,te)=>te!==Q)),children:[p.jsx(Xu,{className:"h-4 w-4 mr-1"}),"Remove"]})]})]},`${Q}-${z.id}`)),p.jsxs(vt,{type:"button",variant:"outline",onClick:()=>d(z=>[...z,tw()]),children:[p.jsx(Yu,{className:"h-4 w-4 mr-2"}),"Add Agent"]})]})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(M==null?void 0:M.label)??"Bindings"}),p.jsx(Ci,{children:(M==null?void 0:M.help)??"Route inbound message by channel + account + peer to target agent."})]}),p.jsxs(Ei,{className:"space-y-3",children:[m.map((z,Q)=>{var L,te;const D=((L=z.match.peer)==null?void 0:L.kind)??"";return p.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[p.jsx(qe,{value:z.agentId,onChange:re=>B(Q,{...z,agentId:re.target.value}),placeholder:"Target agent ID"}),p.jsx(qe,{value:z.match.channel,onChange:re=>B(Q,{...z,match:{...z.match,channel:re.target.value}}),placeholder:"Channel (e.g. discord)"}),p.jsx(qe,{value:z.match.accountId??"",onChange:re=>B(Q,{...z,match:{...z.match,accountId:re.target.value}}),placeholder:"Account ID (optional)"}),p.jsxs("select",{value:D,onChange:re=>{var H;const F=re.target.value;if(!F){B(Q,{...z,match:{...z.match,peer:void 0}});return}B(Q,{...z,match:{...z.match,peer:{kind:F,id:((H=z.match.peer)==null?void 0:H.id)??""}}})},className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:[p.jsx("option",{value:"",children:"Peer kind (optional)"}),p.jsx("option",{value:"direct",children:"direct"}),p.jsx("option",{value:"group",children:"group"}),p.jsx("option",{value:"channel",children:"channel"})]}),p.jsx(qe,{value:((te=z.match.peer)==null?void 0:te.id)??"",onChange:re=>B(Q,{...z,match:{...z.match,peer:D?{kind:D,id:re.target.value}:void 0}}),placeholder:"Peer ID (requires peer kind)"})]}),p.jsx("div",{className:"flex justify-end",children:p.jsxs(vt,{type:"button",variant:"outline",size:"sm",onClick:()=>h(re=>re.filter((F,H)=>H!==Q)),children:[p.jsx(Xu,{className:"h-4 w-4 mr-1"}),"Remove"]})})]},`${Q}-${z.agentId}`)}),p.jsxs(vt,{type:"button",variant:"outline",onClick:()=>h(z=>[...z,nw()]),children:[p.jsx(Yu,{className:"h-4 w-4 mr-2"}),"Add Binding"]})]})]}),p.jsx("div",{className:"flex justify-end",children:p.jsxs(vt,{type:"button",onClick:A,disabled:l.isPending,children:[p.jsx(o0,{className:"h-4 w-4 mr-2"}),l.isPending?"Saving...":"Save Runtime Settings"]})})]})}class ow{constructor(o){this.url=o,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=o=>{try{const a=JSON.parse(o.data);this.emit(a)}catch(a){console.error("Failed to parse WebSocket message:",a)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=o=>{console.error("WebSocket error:",o)}}on(o,a){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(a)}off(o,a){var l;(l=this.handlers.get(o))==null||l.delete(a)}emit(o){const a=this.handlers.get(o.type);a==null||a.forEach(l=>l(o))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var o;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(o=this.ws)==null||o.close(),this.ws=null}}function sw(r){const[o,a]=k.useState(null),{setConnectionStatus:l}=Xr();return k.useEffect(()=>{const c=(()=>{const m=Ni==null?void 0:Ni.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const h=new URL(m,window.location.origin);return`${h.protocol==="https:"?"wss:":h.protocol==="http:"?"ws:":h.protocol}//${h.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),d=new ow(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),a(d),()=>d.disconnect()},[l,r]),o}const Yp=new Yy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function aw(){const{activeTab:r}=Xr();sw(Yp);const o=()=>{switch(r){case"model":return p.jsx(Rp,{});case"providers":return p.jsx(Hx,{});case"channels":return p.jsx(Jx,{});case"runtime":return p.jsx(rw,{});default:return p.jsx(Rp,{})}};return p.jsxs(Xy,{client:Yp,children:[p.jsx(d0,{children:p.jsx("div",{className:"animate-fade-in",children:o()},r)}),p.jsx(Y0,{position:"top-right",richColors:!0})]})}Ny.createRoot(document.getElementById("root")).render(p.jsx(k.StrictMode,{children:p.jsx(aw,{})}));
|