@nextclaw/ui 0.2.4 → 0.2.5

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/assets/index-BV3Gyu8h.js +225 -0
  3. package/dist/assets/index-iSLahgqA.css +1 -0
  4. package/dist/index.html +2 -2
  5. package/dist/logos/aihubmix.png +0 -0
  6. package/dist/logos/anthropic.svg +1 -0
  7. package/dist/logos/dashscope.png +0 -0
  8. package/dist/logos/deepseek.png +0 -0
  9. package/dist/logos/dingtalk.svg +1 -0
  10. package/dist/logos/discord.svg +1 -0
  11. package/dist/logos/email.svg +1 -0
  12. package/dist/logos/feishu.svg +12 -0
  13. package/dist/logos/gemini.svg +1 -0
  14. package/dist/logos/groq.svg +1 -0
  15. package/dist/logos/minimax.svg +1 -0
  16. package/dist/logos/mochat.svg +6 -0
  17. package/dist/logos/moonshot.png +0 -0
  18. package/dist/logos/openai.svg +1 -0
  19. package/dist/logos/openrouter.svg +1 -0
  20. package/dist/logos/qq.svg +1 -0
  21. package/dist/logos/slack.svg +1 -0
  22. package/dist/logos/telegram.svg +1 -0
  23. package/dist/logos/vllm.svg +1 -0
  24. package/dist/logos/whatsapp.svg +1 -0
  25. package/dist/logos/zhipu.svg +15 -0
  26. package/package.json +1 -1
  27. package/public/logos/aihubmix.png +0 -0
  28. package/public/logos/anthropic.svg +1 -0
  29. package/public/logos/dashscope.png +0 -0
  30. package/public/logos/deepseek.png +0 -0
  31. package/public/logos/dingtalk.svg +1 -0
  32. package/public/logos/discord.svg +1 -0
  33. package/public/logos/email.svg +1 -0
  34. package/public/logos/feishu.svg +12 -0
  35. package/public/logos/gemini.svg +1 -0
  36. package/public/logos/groq.svg +1 -0
  37. package/public/logos/minimax.svg +1 -0
  38. package/public/logos/mochat.svg +6 -0
  39. package/public/logos/moonshot.png +0 -0
  40. package/public/logos/openai.svg +1 -0
  41. package/public/logos/openrouter.svg +1 -0
  42. package/public/logos/qq.svg +1 -0
  43. package/public/logos/slack.svg +1 -0
  44. package/public/logos/telegram.svg +1 -0
  45. package/public/logos/vllm.svg +1 -0
  46. package/public/logos/whatsapp.svg +1 -0
  47. package/public/logos/zhipu.svg +15 -0
  48. package/src/App.tsx +0 -3
  49. package/src/api/config.ts +0 -19
  50. package/src/api/types.ts +0 -8
  51. package/src/components/common/LogoBadge.tsx +35 -0
  52. package/src/components/common/StatusBadge.tsx +4 -4
  53. package/src/components/config/ChannelForm.tsx +16 -18
  54. package/src/components/config/ChannelsList.tsx +87 -37
  55. package/src/components/config/ModelConfig.tsx +25 -25
  56. package/src/components/config/ProviderForm.tsx +9 -11
  57. package/src/components/config/ProvidersList.tsx +90 -38
  58. package/src/components/layout/Header.tsx +7 -7
  59. package/src/components/layout/Sidebar.tsx +10 -23
  60. package/src/components/ui/HighlightCard.tsx +29 -29
  61. package/src/components/ui/button.tsx +13 -8
  62. package/src/components/ui/card.tsx +8 -7
  63. package/src/components/ui/dialog.tsx +8 -8
  64. package/src/components/ui/input.tsx +1 -1
  65. package/src/components/ui/label.tsx +1 -1
  66. package/src/components/ui/switch.tsx +3 -3
  67. package/src/components/ui/tabs-custom.tsx +6 -6
  68. package/src/components/ui/tabs.tsx +7 -6
  69. package/src/hooks/useConfig.ts +2 -29
  70. package/src/index.css +103 -56
  71. package/src/lib/i18n.ts +3 -6
  72. package/src/lib/logos.ts +42 -0
  73. package/src/stores/ui.store.ts +1 -1
  74. package/src/styles/design-system.css +248 -0
  75. package/tailwind.config.js +118 -10
  76. package/dist/assets/index-C4OKhpdC.css +0 -1
  77. package/dist/assets/index-C8nOCIVG.js +0 -240
  78. package/src/components/config/UiConfig.tsx +0 -189
@@ -0,0 +1,225 @@
1
+ var Bf=r=>{throw TypeError(r)};var lu=(r,o,i)=>o.has(r)||Bf("Cannot "+i);var w=(r,o,i)=>(lu(r,o,"read from private field"),i?i.call(r):o.get(r)),se=(r,o,i)=>o.has(r)?Bf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),K=(r,o,i,l)=>(lu(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ge=(r,o,i)=>(lu(r,o,"access private method"),i);var aa=(r,o,i,l)=>({set _(c){K(r,o,c,i)},get _(){return w(r,o,l)}});function ry(r,o){for(var i=0;i<o.length;i++){const l=o[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(r,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const 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 f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function $p(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var uu={exports:{}},_s={},cu={exports:{}},xe={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Wf;function oy(){if(Wf)return xe;Wf=1;var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.iterator;function M(C){return C===null||typeof C!="object"?null:(C=j&&C[j]||C["@@iterator"],typeof C=="function"?C:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,E={};function N(C,_,X){this.props=C,this.context=_,this.refs=E,this.updater=X||v}N.prototype.isReactComponent={},N.prototype.setState=function(C,_){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,_,"setState")},N.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function z(){}z.prototype=N.prototype;function Q(C,_,X){this.props=C,this.context=_,this.refs=E,this.updater=X||v}var $=Q.prototype=new z;$.constructor=Q,B($,N.prototype),$.isPureReactComponent=!0;var L=Array.isArray,ee=Object.prototype.hasOwnProperty,oe={current:null},ne={key:!0,ref:!0,__self:!0,__source:!0};function ie(C,_,X){var te,de={},ve=null,ce=null;if(_!=null)for(te in _.ref!==void 0&&(ce=_.ref),_.key!==void 0&&(ve=""+_.key),_)ee.call(_,te)&&!ne.hasOwnProperty(te)&&(de[te]=_[te]);var ke=arguments.length-2;if(ke===1)de.children=X;else if(1<ke){for(var je=Array(ke),Ze=0;Ze<ke;Ze++)je[Ze]=arguments[Ze+2];de.children=je}if(C&&C.defaultProps)for(te in ke=C.defaultProps,ke)de[te]===void 0&&(de[te]=ke[te]);return{$$typeof:r,type:C,key:ve,ref:ce,props:de,_owner:oe.current}}function he(C,_){return{$$typeof:r,type:C.type,key:_,ref:C.ref,props:C.props,_owner:C._owner}}function ye(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function Pe(C){var _={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(X){return _[X]})}var ae=/\/+/g;function Ae(C,_){return typeof C=="object"&&C!==null&&C.key!=null?Pe(""+C.key):_.toString(36)}function Te(C,_,X,te,de){var ve=typeof C;(ve==="undefined"||ve==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ve){case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case r:case o:ce=!0}}if(ce)return ce=C,de=de(ce),C=te===""?"."+Ae(ce,0):te,L(de)?(X="",C!=null&&(X=C.replace(ae,"$&/")+"/"),Te(de,_,X,"",function(Ze){return Ze})):de!=null&&(ye(de)&&(de=he(de,X+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+C)),_.push(de)),1;if(ce=0,te=te===""?".":te+":",L(C))for(var ke=0;ke<C.length;ke++){ve=C[ke];var je=te+Ae(ve,ke);ce+=Te(ve,_,X,je,de)}else if(je=M(C),typeof je=="function")for(C=je.call(C),ke=0;!(ve=C.next()).done;)ve=ve.value,je=te+Ae(ve,ke++),ce+=Te(ve,_,X,je,de);else if(ve==="object")throw _=String(C),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(C,_,X){if(C==null)return C;var te=[],de=0;return Te(C,te,"","",function(ve){return _.call(X,ve,de++)}),te}function Oe(C){if(C._status===-1){var _=C._result;_=_(),_.then(function(X){(C._status===0||C._status===-1)&&(C._status=1,C._result=X)},function(X){(C._status===0||C._status===-1)&&(C._status=2,C._result=X)}),C._status===-1&&(C._status=0,C._result=_)}if(C._status===1)return C._result.default;throw C._result}var we={current:null},V={transition:null},F={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:V,ReactCurrentOwner:oe};function W(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:Be,forEach:function(C,_,X){Be(C,function(){_.apply(this,arguments)},X)},count:function(C){var _=0;return Be(C,function(){_++}),_},toArray:function(C){return Be(C,function(_){return _})||[]},only:function(C){if(!ye(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},xe.Component=N,xe.Fragment=i,xe.Profiler=c,xe.PureComponent=Q,xe.StrictMode=l,xe.Suspense=y,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,xe.act=W,xe.cloneElement=function(C,_,X){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var te=B({},C.props),de=C.key,ve=C.ref,ce=C._owner;if(_!=null){if(_.ref!==void 0&&(ve=_.ref,ce=oe.current),_.key!==void 0&&(de=""+_.key),C.type&&C.type.defaultProps)var ke=C.type.defaultProps;for(je in _)ee.call(_,je)&&!ne.hasOwnProperty(je)&&(te[je]=_[je]===void 0&&ke!==void 0?ke[je]:_[je])}var je=arguments.length-2;if(je===1)te.children=X;else if(1<je){ke=Array(je);for(var Ze=0;Ze<je;Ze++)ke[Ze]=arguments[Ze+2];te.children=ke}return{$$typeof:r,type:C.type,key:de,ref:ve,props:te,_owner:ce}},xe.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:f,_context:C},C.Consumer=C},xe.createElement=ie,xe.createFactory=function(C){var _=ie.bind(null,C);return _.type=C,_},xe.createRef=function(){return{current:null}},xe.forwardRef=function(C){return{$$typeof:p,render:C}},xe.isValidElement=ye,xe.lazy=function(C){return{$$typeof:P,_payload:{_status:-1,_result:C},_init:Oe}},xe.memo=function(C,_){return{$$typeof:x,type:C,compare:_===void 0?null:_}},xe.startTransition=function(C){var _=V.transition;V.transition={};try{C()}finally{V.transition=_}},xe.unstable_act=W,xe.useCallback=function(C,_){return we.current.useCallback(C,_)},xe.useContext=function(C){return we.current.useContext(C)},xe.useDebugValue=function(){},xe.useDeferredValue=function(C){return we.current.useDeferredValue(C)},xe.useEffect=function(C,_){return we.current.useEffect(C,_)},xe.useId=function(){return we.current.useId()},xe.useImperativeHandle=function(C,_,X){return we.current.useImperativeHandle(C,_,X)},xe.useInsertionEffect=function(C,_){return we.current.useInsertionEffect(C,_)},xe.useLayoutEffect=function(C,_){return we.current.useLayoutEffect(C,_)},xe.useMemo=function(C,_){return we.current.useMemo(C,_)},xe.useReducer=function(C,_,X){return we.current.useReducer(C,_,X)},xe.useRef=function(C){return we.current.useRef(C)},xe.useState=function(C){return we.current.useState(C)},xe.useSyncExternalStore=function(C,_,X){return we.current.useSyncExternalStore(C,_,X)},xe.useTransition=function(){return we.current.useTransition()},xe.version="18.3.1",xe}var Vf;function Hu(){return Vf||(Vf=1,cu.exports=oy()),cu.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 Hf;function sy(){if(Hf)return _s;Hf=1;var r=Hu(),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(p,y,x){var P,j={},M=null,v=null;x!==void 0&&(M=""+x),y.key!==void 0&&(M=""+y.key),y.ref!==void 0&&(v=y.ref);for(P in y)l.call(y,P)&&!f.hasOwnProperty(P)&&(j[P]=y[P]);if(p&&p.defaultProps)for(P in y=p.defaultProps,y)j[P]===void 0&&(j[P]=y[P]);return{$$typeof:o,type:p,key:M,ref:v,props:j,_owner:c.current}}return _s.Fragment=i,_s.jsx=m,_s.jsxs=m,_s}var Qf;function iy(){return Qf||(Qf=1,uu.exports=sy()),uu.exports}var h=iy(),k=Hu();const H=$p(k),Kp=ry({__proto__:null,default:H},[k]);var la={},du={exports:{}},Ct={},fu={exports:{}},pu={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var $f;function ay(){return $f||($f=1,(function(r){function o(V,F){var W=V.length;V.push(F);e:for(;0<W;){var C=W-1>>>1,_=V[C];if(0<c(_,F))V[C]=F,V[W]=_,W=C;else break e}}function i(V){return V.length===0?null:V[0]}function l(V){if(V.length===0)return null;var F=V[0],W=V.pop();if(W!==F){V[0]=W;e:for(var C=0,_=V.length,X=_>>>1;C<X;){var te=2*(C+1)-1,de=V[te],ve=te+1,ce=V[ve];if(0>c(de,W))ve<_&&0>c(ce,de)?(V[C]=ce,V[ve]=W,C=ve):(V[C]=de,V[te]=W,C=te);else if(ve<_&&0>c(ce,W))V[C]=ce,V[ve]=W,C=ve;else break e}}return F}function c(V,F){var W=V.sortIndex-F.sortIndex;return W!==0?W:V.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var y=[],x=[],P=1,j=null,M=3,v=!1,B=!1,E=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(V){for(var F=i(x);F!==null;){if(F.callback===null)l(x);else if(F.startTime<=V)l(x),F.sortIndex=F.expirationTime,o(y,F);else break;F=i(x)}}function L(V){if(E=!1,$(V),!B)if(i(y)!==null)B=!0,Oe(ee);else{var F=i(x);F!==null&&we(L,F.startTime-V)}}function ee(V,F){B=!1,E&&(E=!1,z(ie),ie=-1),v=!0;var W=M;try{for($(F),j=i(y);j!==null&&(!(j.expirationTime>F)||V&&!Pe());){var C=j.callback;if(typeof C=="function"){j.callback=null,M=j.priorityLevel;var _=C(j.expirationTime<=F);F=r.unstable_now(),typeof _=="function"?j.callback=_:j===i(y)&&l(y),$(F)}else l(y);j=i(y)}if(j!==null)var X=!0;else{var te=i(x);te!==null&&we(L,te.startTime-F),X=!1}return X}finally{j=null,M=W,v=!1}}var oe=!1,ne=null,ie=-1,he=5,ye=-1;function Pe(){return!(r.unstable_now()-ye<he)}function ae(){if(ne!==null){var V=r.unstable_now();ye=V;var F=!0;try{F=ne(!0,V)}finally{F?Ae():(oe=!1,ne=null)}}else oe=!1}var Ae;if(typeof Q=="function")Ae=function(){Q(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,Ae=function(){Be.postMessage(null)}}else Ae=function(){N(ae,0)};function Oe(V){ne=V,oe||(oe=!0,Ae())}function we(V,F){ie=N(function(){V(r.unstable_now())},F)}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(V){V.callback=null},r.unstable_continueExecution=function(){B||v||(B=!0,Oe(ee))},r.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<V?Math.floor(1e3/V):5},r.unstable_getCurrentPriorityLevel=function(){return M},r.unstable_getFirstCallbackNode=function(){return i(y)},r.unstable_next=function(V){switch(M){case 1:case 2:case 3:var F=3;break;default:F=M}var W=M;M=F;try{return V()}finally{M=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(V,F){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=M;M=V;try{return F()}finally{M=W}},r.unstable_scheduleCallback=function(V,F,W){var C=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?C+W:C):W=C,V){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=W+_,V={id:P++,callback:F,priorityLevel:V,startTime:W,expirationTime:_,sortIndex:-1},W>C?(V.sortIndex=W,o(x,V),i(y)===null&&V===i(x)&&(E?(z(ie),ie=-1):E=!0,we(L,W-C))):(V.sortIndex=_,o(y,V),B||v||(B=!0,Oe(ee))),V},r.unstable_shouldYield=Pe,r.unstable_wrapCallback=function(V){var F=M;return function(){var W=M;M=F;try{return V.apply(this,arguments)}finally{M=W}}}})(pu)),pu}var Kf;function ly(){return Kf||(Kf=1,fu.exports=ay()),fu.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 Gf;function uy(){if(Gf)return Ct;Gf=1;var r=Hu(),o=ly();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function f(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P={},j={};function M(e){return y.call(j,e)?!0:y.call(P,e)?!1:x.test(e)?j[e]=!0:(P[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 B(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 E(e,t,n,s,a,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function Q(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(z,Q);N[t]=new E(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(z,Q);N[t]=new E(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(z,Q);N[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,n,s){var a=N.hasOwnProperty(t)?N[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(B(t,n,a,s)&&(n=null),s||a===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ee=Symbol.for("react.element"),oe=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),V=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,C;function _(e){if(C===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||""}return`
34
+ `+C+e}var X=!1;function te(e,t){if(!e||X)return"";X=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(O){var s=O}Reflect.construct(e,[],t)}else{try{t.call()}catch(O){s=O}e.call(t.prototype)}else{try{throw Error()}catch(O){s=O}e()}}catch(O){if(O&&s&&typeof O.stack=="string"){for(var a=O.stack.split(`
35
+ `),u=s.stack.split(`
36
+ `),d=a.length-1,g=u.length-1;1<=d&&0<=g&&a[d]!==u[g];)g--;for(;1<=d&&0<=g;d--,g--)if(a[d]!==u[g]){if(d!==1||g!==1)do if(d--,g--,0>g||a[d]!==u[g]){var S=`
37
+ `+a[d].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=d&&0<=g);break}}}finally{X=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function de(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ne:return"Fragment";case oe:return"Portal";case he:return"Profiler";case ie:return"StrictMode";case Ae:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=je(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 a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(d){s=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Xr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=je(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ko(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ks(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=ke(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 Go(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function qo(e,t){Go(e,t);var n=ke(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")?Yo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yo(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zr(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 Yo(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function _t(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Jr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rn(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(An(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function Gs(e,t){var n=ke(t.value),s=ke(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 qs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dt(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 on(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eo,Ys=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Xs=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Xs.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function to(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function wn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=to(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var Zs=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(Zs[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Xo(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 Zo=null;function no(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ro=null,Fn=null,ln=null;function Vt(e){if(e=vs(e)){if(typeof ro!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ki(t),ro(e.stateNode,e.type,t))}}function Js(e){Fn?ln?ln.push(e):ln=[e]:Fn=e}function pe(){if(Fn){var e=Fn,t=ln;if(ln=Fn=null,Vt(e),t)for(e=0;e<t.length;e++)Vt(t[e])}}function Ne(e,t){return e(t)}function _e(){}var ft=!1;function yt(e,t,n){if(ft)return e(t,n);ft=!0;try{return Ne(e,t,n)}finally{ft=!1,(Fn!==null||ln!==null)&&(_e(),pe())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=ki(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(i(231,t,typeof n));return n}var Ht=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Ht=!1}function un(e,t,n,s,a,u,d,g,S){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(D){this.onError(D)}}var Jo=!1,ei=null,ti=!1,Pa=null,cm={onError:function(e){Jo=!0,ei=e}};function dm(e,t,n,s,a,u,d,g,S){Jo=!1,ei=null,un.apply(cm,arguments)}function fm(e,t,n,s,a,u,d,g,S){if(dm.apply(this,arguments),Jo){if(Jo){var O=ei;Jo=!1,ei=null}else throw Error(i(198));ti||(ti=!0,Pa=O)}}function br(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 uc(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 cc(e){if(br(e)!==e)throw Error(i(188))}function pm(e){var t=e.alternate;if(!t){if(t=br(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return cc(a),e;if(u===s)return cc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var d=!1,g=a.child;g;){if(g===n){d=!0,n=a,s=u;break}if(g===s){d=!0,s=a,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,s=a;break}if(g===s){d=!0,s=u,n=a;break}g=g.sibling}if(!d)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function dc(e){return e=pm(e),e!==null?fc(e):null}function fc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fc(e);if(t!==null)return t;e=e.sibling}return null}var pc=o.unstable_scheduleCallback,hc=o.unstable_cancelCallback,hm=o.unstable_shouldYield,mm=o.unstable_requestPaint,$e=o.unstable_now,gm=o.unstable_getCurrentPriorityLevel,ja=o.unstable_ImmediatePriority,mc=o.unstable_UserBlockingPriority,ni=o.unstable_NormalPriority,ym=o.unstable_LowPriority,gc=o.unstable_IdlePriority,ri=null,cn=null;function vm(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(ri,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:Sm,xm=Math.log,wm=Math.LN2;function Sm(e){return e>>>=0,e===0?32:31-(xm(e)/wm|0)|0}var oi=64,si=4194304;function es(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 ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~a;g!==0?s=es(g):(u&=d,u!==0&&(s=es(u)))}else d=n&~a,d!==0?s=es(d):u!==0&&(s=es(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&a)===0&&(a=s&-s,u=t&-t,a>=u||a===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-Qt(t),a=1<<n,s|=e[n],t&=~a;return s}function km(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 bm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-Qt(u),g=1<<d,S=a[d];S===-1?((g&n)===0||(g&s)!==0)&&(a[d]=km(g,t)):S<=t&&(e.expiredLanes|=g),u&=~g}}function Ra(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yc(){var e=oi;return oi<<=1,(oi&4194240)===0&&(oi=64),e}function Ma(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function Cm(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 a=31-Qt(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function Ta(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Qt(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Me=0;function vc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var xc,Oa,wc,Sc,kc,_a=!1,ai=[],Un=null,Bn=null,Wn=null,ns=new Map,rs=new Map,Vn=[],Em="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 bc(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function os(e,t,n,s,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[a]},t!==null&&(t=vs(t),t!==null&&Oa(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Nm(e,t,n,s,a){switch(t){case"focusin":return Un=os(Un,e,t,n,s,a),!0;case"dragenter":return Bn=os(Bn,e,t,n,s,a),!0;case"mouseover":return Wn=os(Wn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return ns.set(u,os(ns.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,rs.set(u,os(rs.get(u)||null,e,t,n,s,a)),!0}return!1}function Cc(e){var t=Cr(e.target);if(t!==null){var n=br(t);if(n!==null){if(t=n.tag,t===13){if(t=uc(n),t!==null){e.blockedOn=t,kc(e.priority,function(){wc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ia(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Zo=s,n.target.dispatchEvent(s),Zo=null}else return t=vs(n),t!==null&&Oa(t),e.blockedOn=n,!1;t.shift()}return!0}function Ec(e,t,n){li(e)&&n.delete(t)}function Pm(){_a=!1,Un!==null&&li(Un)&&(Un=null),Bn!==null&&li(Bn)&&(Bn=null),Wn!==null&&li(Wn)&&(Wn=null),ns.forEach(Ec),rs.forEach(Ec)}function ss(e,t){e.blockedOn===t&&(e.blockedOn=null,_a||(_a=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pm)))}function is(e){function t(a){return ss(a,e)}if(0<ai.length){ss(ai[0],e);for(var n=1;n<ai.length;n++){var s=ai[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Un!==null&&ss(Un,e),Bn!==null&&ss(Bn,e),Wn!==null&&ss(Wn,e),ns.forEach(t),rs.forEach(t),n=0;n<Vn.length;n++)s=Vn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)Cc(n),n.blockedOn===null&&Vn.shift()}var oo=L.ReactCurrentBatchConfig,ui=!0;function jm(e,t,n,s){var a=Me,u=oo.transition;oo.transition=null;try{Me=1,za(e,t,n,s)}finally{Me=a,oo.transition=u}}function Rm(e,t,n,s){var a=Me,u=oo.transition;oo.transition=null;try{Me=4,za(e,t,n,s)}finally{Me=a,oo.transition=u}}function za(e,t,n,s){if(ui){var a=Ia(e,t,n,s);if(a===null)Za(e,t,s,ci,n),bc(e,s);else if(Nm(a,e,t,n,s))s.stopPropagation();else if(bc(e,s),t&4&&-1<Em.indexOf(e)){for(;a!==null;){var u=vs(a);if(u!==null&&xc(u),u=Ia(e,t,n,s),u===null&&Za(e,t,s,ci,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else Za(e,t,s,null,n)}}var ci=null;function Ia(e,t,n,s){if(ci=null,e=no(s),e=Cr(e),e!==null)if(t=br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=uc(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 ci=e,null}function Nc(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(gm()){case ja:return 1;case mc:return 4;case ni:case ym:return 16;case gc:return 536870912;default:return 16}default:return 16}}var Hn=null,La=null,di=null;function Pc(){if(di)return di;var e,t=La,n=t.length,s,a="value"in Hn?Hn.value:Hn.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var d=n-e;for(s=1;s<=d&&t[n-s]===a[u-s];s++);return di=a.slice(e,1<s?1-s:void 0)}function fi(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 pi(){return!0}function jc(){return!1}function jt(e){function t(n,s,a,u,d){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pi:jc,this.isPropagationStopped=jc,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Da=jt(so),as=W({},so,{view:0,detail:0}),Mm=jt(as),Aa,Fa,ls,hi=W({},as,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ba,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!==ls&&(ls&&e.type==="mousemove"?(Aa=e.screenX-ls.screenX,Fa=e.screenY-ls.screenY):Fa=Aa=0,ls=e),Aa)},movementY:function(e){return"movementY"in e?e.movementY:Fa}}),Rc=jt(hi),Tm=W({},hi,{dataTransfer:0}),Om=jt(Tm),_m=W({},as,{relatedTarget:0}),Ua=jt(_m),zm=W({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),Im=jt(zm),Lm=W({},so,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dm=jt(Lm),Am=W({},so,{data:0}),Mc=jt(Am),Fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Um={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Bm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bm[e])?!!t[e]:!1}function Ba(){return Wm}var Vm=W({},as,{key:function(e){if(e.key){var t=Fm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ba,charCode:function(e){return e.type==="keypress"?fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hm=jt(Vm),Qm=W({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tc=jt(Qm),$m=W({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ba}),Km=jt($m),Gm=W({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),qm=jt(Gm),Ym=W({},hi,{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}),Xm=jt(Ym),Zm=[9,13,27,32],Wa=p&&"CompositionEvent"in window,us=null;p&&"documentMode"in document&&(us=document.documentMode);var Jm=p&&"TextEvent"in window&&!us,Oc=p&&(!Wa||us&&8<us&&11>=us),_c=" ",zc=!1;function Ic(e,t){switch(e){case"keyup":return Zm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function eg(e,t){switch(e){case"compositionend":return Lc(t);case"keypress":return t.which!==32?null:(zc=!0,_c);case"textInput":return e=t.data,e===_c&&zc?null:e;default:return null}}function tg(e,t){if(io)return e==="compositionend"||!Wa&&Ic(e,t)?(e=Pc(),di=La=Hn=null,io=!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 Oc&&t.locale!=="ko"?null:t.data;default:return null}}var ng={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 Dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ng[e.type]:t==="textarea"}function Ac(e,t,n,s){Js(s),t=xi(t,"onChange"),0<t.length&&(n=new Da("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var cs=null,ds=null;function rg(e){nd(e,0)}function mi(e){var t=fo(e);if(Xr(t))return e}function og(e,t){if(e==="change")return t}var Fc=!1;if(p){var Va;if(p){var Ha="oninput"in document;if(!Ha){var Uc=document.createElement("div");Uc.setAttribute("oninput","return;"),Ha=typeof Uc.oninput=="function"}Va=Ha}else Va=!1;Fc=Va&&(!document.documentMode||9<document.documentMode)}function Bc(){cs&&(cs.detachEvent("onpropertychange",Wc),ds=cs=null)}function Wc(e){if(e.propertyName==="value"&&mi(ds)){var t=[];Ac(t,ds,e,no(e)),yt(rg,t)}}function sg(e,t,n){e==="focusin"?(Bc(),cs=t,ds=n,cs.attachEvent("onpropertychange",Wc)):e==="focusout"&&Bc()}function ig(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mi(ds)}function ag(e,t){if(e==="click")return mi(t)}function lg(e,t){if(e==="input"||e==="change")return mi(t)}function ug(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:ug;function fs(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!y.call(t,a)||!$t(e[a],t[a]))return!1}return!0}function Vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hc(e,t){var n=Vc(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=Vc(n)}}function Qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sr(e.document)}return t}function Qa(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 cg(e){var t=$c(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qc(n.ownerDocument.documentElement,n)){if(s!==null&&Qa(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 a=n.textContent.length,u=Math.min(s.start,a);s=s.end===void 0?u:Math.min(s.end,a),!e.extend&&u>s&&(a=s,s=u,u=a),a=Hc(n,u);var d=Hc(n,s);a&&d&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dg=p&&"documentMode"in document&&11>=document.documentMode,ao=null,$a=null,ps=null,Ka=!1;function Kc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ka||ao==null||ao!==Sr(s)||(s=ao,"selectionStart"in s&&Qa(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}),ps&&fs(ps,s)||(ps=s,s=xi($a,"onSelect"),0<s.length&&(t=new Da("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=ao)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lo={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},Ga={},Gc={};p&&(Gc=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function yi(e){if(Ga[e])return Ga[e];if(!lo[e])return e;var t=lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gc)return Ga[e]=t[n];return e}var qc=yi("animationend"),Yc=yi("animationiteration"),Xc=yi("animationstart"),Zc=yi("transitionend"),Jc=new Map,ed="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 Qn(e,t){Jc.set(e,t),f(t,[e])}for(var qa=0;qa<ed.length;qa++){var Ya=ed[qa],fg=Ya.toLowerCase(),pg=Ya[0].toUpperCase()+Ya.slice(1);Qn(fg,"on"+pg)}Qn(qc,"onAnimationEnd"),Qn(Yc,"onAnimationIteration"),Qn(Xc,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(Zc,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hs="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(" "),hg=new Set("cancel close invalid load scroll toggle".split(" ").concat(hs));function td(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,fm(s,t,void 0,e),e.currentTarget=null}function nd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var d=s.length-1;0<=d;d--){var g=s[d],S=g.instance,O=g.currentTarget;if(g=g.listener,S!==u&&a.isPropagationStopped())break e;td(a,g,O),u=S}else for(d=0;d<s.length;d++){if(g=s[d],S=g.instance,O=g.currentTarget,g=g.listener,S!==u&&a.isPropagationStopped())break e;td(a,g,O),u=S}}}if(ti)throw e=Pa,ti=!1,Pa=null,e}function Ie(e,t){var n=t[ol];n===void 0&&(n=t[ol]=new Set);var s=e+"__bubble";n.has(s)||(rd(t,e,2,!1),n.add(s))}function Xa(e,t,n){var s=0;t&&(s|=4),rd(n,e,s,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[vi]){e[vi]=!0,l.forEach(function(n){n!=="selectionchange"&&(hg.has(n)||Xa(n,!1,e),Xa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,Xa("selectionchange",!1,t))}}function rd(e,t,n,s){switch(Nc(t)){case 1:var a=jm;break;case 4:a=Rm;break;default:a=za}n=a.bind(null,t,n,e),a=void 0,!Ht||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Za(e,t,n,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var d=s.tag;if(d===3||d===4){var g=s.stateNode.containerInfo;if(g===a||g.nodeType===8&&g.parentNode===a)break;if(d===4)for(d=s.return;d!==null;){var S=d.tag;if((S===3||S===4)&&(S=d.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;d=d.return}for(;g!==null;){if(d=Cr(g),d===null)return;if(S=d.tag,S===5||S===6){s=u=d;continue e}g=g.parentNode}}s=s.return}yt(function(){var O=u,D=no(n),A=[];e:{var I=Jc.get(e);if(I!==void 0){var G=Da,Z=e;switch(e){case"keypress":if(fi(n)===0)break e;case"keydown":case"keyup":G=Hm;break;case"focusin":Z="focus",G=Ua;break;case"focusout":Z="blur",G=Ua;break;case"beforeblur":case"afterblur":G=Ua;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":G=Rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Km;break;case qc:case Yc:case Xc:G=Im;break;case Zc:G=qm;break;case"scroll":G=Mm;break;case"wheel":G=Xm;break;case"copy":case"cut":case"paste":G=Dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Tc}var J=(t&4)!==0,Ke=!J&&e==="scroll",R=J?I!==null?I+"Capture":null:I;J=[];for(var b=O,T;b!==null;){T=b;var U=T.stateNode;if(T.tag===5&&U!==null&&(T=U,R!==null&&(U=vt(b,R),U!=null&&J.push(gs(b,U,T)))),Ke)break;b=b.return}0<J.length&&(I=new G(I,Z,null,n,D),A.push({event:I,listeners:J}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",I&&n!==Zo&&(Z=n.relatedTarget||n.fromElement)&&(Cr(Z)||Z[Sn]))break e;if((G||I)&&(I=D.window===D?D:(I=D.ownerDocument)?I.defaultView||I.parentWindow:window,G?(Z=n.relatedTarget||n.toElement,G=O,Z=Z?Cr(Z):null,Z!==null&&(Ke=br(Z),Z!==Ke||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(G=null,Z=O),G!==Z)){if(J=Rc,U="onMouseLeave",R="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(J=Tc,U="onPointerLeave",R="onPointerEnter",b="pointer"),Ke=G==null?I:fo(G),T=Z==null?I:fo(Z),I=new J(U,b+"leave",G,n,D),I.target=Ke,I.relatedTarget=T,U=null,Cr(D)===O&&(J=new J(R,b+"enter",Z,n,D),J.target=T,J.relatedTarget=Ke,U=J),Ke=U,G&&Z)t:{for(J=G,R=Z,b=0,T=J;T;T=uo(T))b++;for(T=0,U=R;U;U=uo(U))T++;for(;0<b-T;)J=uo(J),b--;for(;0<T-b;)R=uo(R),T--;for(;b--;){if(J===R||R!==null&&J===R.alternate)break t;J=uo(J),R=uo(R)}J=null}else J=null;G!==null&&od(A,I,G,J,!1),Z!==null&&Ke!==null&&od(A,Ke,Z,J,!0)}}e:{if(I=O?fo(O):window,G=I.nodeName&&I.nodeName.toLowerCase(),G==="select"||G==="input"&&I.type==="file")var re=og;else if(Dc(I))if(Fc)re=lg;else{re=ig;var le=sg}else(G=I.nodeName)&&G.toLowerCase()==="input"&&(I.type==="checkbox"||I.type==="radio")&&(re=ag);if(re&&(re=re(e,O))){Ac(A,re,n,D);break e}le&&le(e,I,O),e==="focusout"&&(le=I._wrapperState)&&le.controlled&&I.type==="number"&&Yo(I,"number",I.value)}switch(le=O?fo(O):window,e){case"focusin":(Dc(le)||le.contentEditable==="true")&&(ao=le,$a=O,ps=null);break;case"focusout":ps=$a=ao=null;break;case"mousedown":Ka=!0;break;case"contextmenu":case"mouseup":case"dragend":Ka=!1,Kc(A,n,D);break;case"selectionchange":if(dg)break;case"keydown":case"keyup":Kc(A,n,D)}var ue;if(Wa)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else io?Ic(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Oc&&n.locale!=="ko"&&(io||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&io&&(ue=Pc()):(Hn=D,La="value"in Hn?Hn.value:Hn.textContent,io=!0)),le=xi(O,fe),0<le.length&&(fe=new Mc(fe,e,null,n,D),A.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Lc(n),ue!==null&&(fe.data=ue)))),(ue=Jm?eg(e,n):tg(e,n))&&(O=xi(O,"onBeforeInput"),0<O.length&&(D=new Mc("onBeforeInput","beforeinput",null,n,D),A.push({event:D,listeners:O}),D.data=ue))}nd(A,t)})}function gs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xi(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=vt(e,n),u!=null&&s.unshift(gs(e,u,a)),u=vt(e,t),u!=null&&s.push(gs(e,u,a))),e=e.return}return s}function uo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function od(e,t,n,s,a){for(var u=t._reactName,d=[];n!==null&&n!==s;){var g=n,S=g.alternate,O=g.stateNode;if(S!==null&&S===s)break;g.tag===5&&O!==null&&(g=O,a?(S=vt(n,u),S!=null&&d.unshift(gs(n,S,g))):a||(S=vt(n,u),S!=null&&d.push(gs(n,S,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var mg=/\r\n?/g,gg=/\u0000|\uFFFD/g;function sd(e){return(typeof e=="string"?e:""+e).replace(mg,`
38
+ `).replace(gg,"")}function wi(e,t,n){if(t=sd(t),sd(e)!==t&&n)throw Error(i(425))}function Si(){}var Ja=null,el=null;function tl(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 nl=typeof setTimeout=="function"?setTimeout:void 0,yg=typeof clearTimeout=="function"?clearTimeout:void 0,id=typeof Promise=="function"?Promise:void 0,vg=typeof queueMicrotask=="function"?queueMicrotask:typeof id<"u"?function(e){return id.resolve(null).then(e).catch(xg)}:nl;function xg(e){setTimeout(function(){throw e})}function rl(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),is(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);is(t)}function $n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ad(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 co=Math.random().toString(36).slice(2),dn="__reactFiber$"+co,ys="__reactProps$"+co,Sn="__reactContainer$"+co,ol="__reactEvents$"+co,wg="__reactListeners$"+co,Sg="__reactHandles$"+co;function Cr(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ad(e);e!==null;){if(n=e[dn])return n;e=ad(e)}return t}e=n,n=e.parentNode}return null}function vs(e){return e=e[dn]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ki(e){return e[ys]||null}var sl=[],po=-1;function Kn(e){return{current:e}}function Le(e){0>po||(e.current=sl[po],sl[po]=null,po--)}function ze(e,t){po++,sl[po]=e.current,e.current=t}var Gn={},it=Kn(Gn),xt=Kn(!1),Er=Gn;function ho(e,t){var n=e.type.contextTypes;if(!n)return Gn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function wt(e){return e=e.childContextTypes,e!=null}function bi(){Le(xt),Le(it)}function ld(e,t,n){if(it.current!==Gn)throw Error(i(168));ze(it,t),ze(xt,n)}function ud(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return W({},n,s)}function Ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,Er=it.current,ze(it,e),ze(xt,xt.current),!0}function cd(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=ud(e,t,Er),s.__reactInternalMemoizedMergedChildContext=e,Le(xt),Le(it),ze(it,e)):Le(xt),ze(xt,n)}var kn=null,Ei=!1,il=!1;function dd(e){kn===null?kn=[e]:kn.push(e)}function kg(e){Ei=!0,dd(e)}function qn(){if(!il&&kn!==null){il=!0;var e=0,t=Me;try{var n=kn;for(Me=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}kn=null,Ei=!1}catch(a){throw kn!==null&&(kn=kn.slice(e+1)),pc(ja,qn),a}finally{Me=t,il=!1}}return null}var mo=[],go=0,Ni=null,Pi=0,zt=[],It=0,Nr=null,bn=1,Cn="";function Pr(e,t){mo[go++]=Pi,mo[go++]=Ni,Ni=e,Pi=t}function fd(e,t,n){zt[It++]=bn,zt[It++]=Cn,zt[It++]=Nr,Nr=e;var s=bn;e=Cn;var a=32-Qt(s)-1;s&=~(1<<a),n+=1;var u=32-Qt(t)+a;if(30<u){var d=a-a%5;u=(s&(1<<d)-1).toString(32),s>>=d,a-=d,bn=1<<32-Qt(t)+a|n<<a|s,Cn=u+e}else bn=1<<u|n<<a|s,Cn=e}function al(e){e.return!==null&&(Pr(e,1),fd(e,1,0))}function ll(e){for(;e===Ni;)Ni=mo[--go],mo[go]=null,Pi=mo[--go],mo[go]=null;for(;e===Nr;)Nr=zt[--It],zt[It]=null,Cn=zt[--It],zt[It]=null,bn=zt[--It],zt[It]=null}var Rt=null,Mt=null,Fe=!1,Kt=null;function pd(e,t){var n=Ft(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 hd(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,Rt=e,Mt=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nr!==null?{id:bn,overflow:Cn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function ul(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cl(e){if(Fe){var t=Mt;if(t){var n=t;if(!hd(e,t)){if(ul(e))throw Error(i(418));t=$n(n.nextSibling);var s=Rt;t&&hd(e,t)?pd(s,n):(e.flags=e.flags&-4097|2,Fe=!1,Rt=e)}}else{if(ul(e))throw Error(i(418));e.flags=e.flags&-4097|2,Fe=!1,Rt=e}}}function md(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function ji(e){if(e!==Rt)return!1;if(!Fe)return md(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tl(e.type,e.memoizedProps)),t&&(t=Mt)){if(ul(e))throw gd(),Error(i(418));for(;t;)pd(e,t),t=$n(t.nextSibling)}if(md(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mt=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?$n(e.stateNode.nextSibling):null;return!0}function gd(){for(var e=Mt;e;)e=$n(e.nextSibling)}function yo(){Mt=Rt=null,Fe=!1}function dl(e){Kt===null?Kt=[e]:Kt.push(e)}var bg=L.ReactCurrentBatchConfig;function xs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var g=a.refs;d===null?delete g[u]:g[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yd(e){var t=e._init;return t(e._payload)}function vd(e){function t(R,b){if(e){var T=R.deletions;T===null?(R.deletions=[b],R.flags|=16):T.push(b)}}function n(R,b){if(!e)return null;for(;b!==null;)t(R,b),b=b.sibling;return null}function s(R,b){for(R=new Map;b!==null;)b.key!==null?R.set(b.key,b):R.set(b.index,b),b=b.sibling;return R}function a(R,b){return R=rr(R,b),R.index=0,R.sibling=null,R}function u(R,b,T){return R.index=T,e?(T=R.alternate,T!==null?(T=T.index,T<b?(R.flags|=2,b):T):(R.flags|=2,b)):(R.flags|=1048576,b)}function d(R){return e&&R.alternate===null&&(R.flags|=2),R}function g(R,b,T,U){return b===null||b.tag!==6?(b=nu(T,R.mode,U),b.return=R,b):(b=a(b,T),b.return=R,b)}function S(R,b,T,U){var re=T.type;return re===ne?D(R,b,T.props.children,U,T.key):b!==null&&(b.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Oe&&yd(re)===b.type)?(U=a(b,T.props),U.ref=xs(R,b,T),U.return=R,U):(U=Ji(T.type,T.key,T.props,null,R.mode,U),U.ref=xs(R,b,T),U.return=R,U)}function O(R,b,T,U){return b===null||b.tag!==4||b.stateNode.containerInfo!==T.containerInfo||b.stateNode.implementation!==T.implementation?(b=ru(T,R.mode,U),b.return=R,b):(b=a(b,T.children||[]),b.return=R,b)}function D(R,b,T,U,re){return b===null||b.tag!==7?(b=Ir(T,R.mode,U,re),b.return=R,b):(b=a(b,T),b.return=R,b)}function A(R,b,T){if(typeof b=="string"&&b!==""||typeof b=="number")return b=nu(""+b,R.mode,T),b.return=R,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ee:return T=Ji(b.type,b.key,b.props,null,R.mode,T),T.ref=xs(R,null,b),T.return=R,T;case oe:return b=ru(b,R.mode,T),b.return=R,b;case Oe:var U=b._init;return A(R,U(b._payload),T)}if(An(b)||F(b))return b=Ir(b,R.mode,T,null),b.return=R,b;Ri(R,b)}return null}function I(R,b,T,U){var re=b!==null?b.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return re!==null?null:g(R,b,""+T,U);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ee:return T.key===re?S(R,b,T,U):null;case oe:return T.key===re?O(R,b,T,U):null;case Oe:return re=T._init,I(R,b,re(T._payload),U)}if(An(T)||F(T))return re!==null?null:D(R,b,T,U,null);Ri(R,T)}return null}function G(R,b,T,U,re){if(typeof U=="string"&&U!==""||typeof U=="number")return R=R.get(T)||null,g(b,R,""+U,re);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ee:return R=R.get(U.key===null?T:U.key)||null,S(b,R,U,re);case oe:return R=R.get(U.key===null?T:U.key)||null,O(b,R,U,re);case Oe:var le=U._init;return G(R,b,T,le(U._payload),re)}if(An(U)||F(U))return R=R.get(T)||null,D(b,R,U,re,null);Ri(b,U)}return null}function Z(R,b,T,U){for(var re=null,le=null,ue=b,fe=b=0,tt=null;ue!==null&&fe<T.length;fe++){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var Ce=I(R,ue,T[fe],U);if(Ce===null){ue===null&&(ue=tt);break}e&&ue&&Ce.alternate===null&&t(R,ue),b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce,ue=tt}if(fe===T.length)return n(R,ue),Fe&&Pr(R,fe),re;if(ue===null){for(;fe<T.length;fe++)ue=A(R,T[fe],U),ue!==null&&(b=u(ue,b,fe),le===null?re=ue:le.sibling=ue,le=ue);return Fe&&Pr(R,fe),re}for(ue=s(R,ue);fe<T.length;fe++)tt=G(ue,R,fe,T[fe],U),tt!==null&&(e&&tt.alternate!==null&&ue.delete(tt.key===null?fe:tt.key),b=u(tt,b,fe),le===null?re=tt:le.sibling=tt,le=tt);return e&&ue.forEach(function(or){return t(R,or)}),Fe&&Pr(R,fe),re}function J(R,b,T,U){var re=F(T);if(typeof re!="function")throw Error(i(150));if(T=re.call(T),T==null)throw Error(i(151));for(var le=re=null,ue=b,fe=b=0,tt=null,Ce=T.next();ue!==null&&!Ce.done;fe++,Ce=T.next()){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var or=I(R,ue,Ce.value,U);if(or===null){ue===null&&(ue=tt);break}e&&ue&&or.alternate===null&&t(R,ue),b=u(or,b,fe),le===null?re=or:le.sibling=or,le=or,ue=tt}if(Ce.done)return n(R,ue),Fe&&Pr(R,fe),re;if(ue===null){for(;!Ce.done;fe++,Ce=T.next())Ce=A(R,Ce.value,U),Ce!==null&&(b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return Fe&&Pr(R,fe),re}for(ue=s(R,ue);!Ce.done;fe++,Ce=T.next())Ce=G(ue,R,fe,Ce.value,U),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(ny){return t(R,ny)}),Fe&&Pr(R,fe),re}function Ke(R,b,T,U){if(typeof T=="object"&&T!==null&&T.type===ne&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case ee:e:{for(var re=T.key,le=b;le!==null;){if(le.key===re){if(re=T.type,re===ne){if(le.tag===7){n(R,le.sibling),b=a(le,T.props.children),b.return=R,R=b;break e}}else if(le.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Oe&&yd(re)===le.type){n(R,le.sibling),b=a(le,T.props),b.ref=xs(R,le,T),b.return=R,R=b;break e}n(R,le);break}else t(R,le);le=le.sibling}T.type===ne?(b=Ir(T.props.children,R.mode,U,T.key),b.return=R,R=b):(U=Ji(T.type,T.key,T.props,null,R.mode,U),U.ref=xs(R,b,T),U.return=R,R=U)}return d(R);case oe:e:{for(le=T.key;b!==null;){if(b.key===le)if(b.tag===4&&b.stateNode.containerInfo===T.containerInfo&&b.stateNode.implementation===T.implementation){n(R,b.sibling),b=a(b,T.children||[]),b.return=R,R=b;break e}else{n(R,b);break}else t(R,b);b=b.sibling}b=ru(T,R.mode,U),b.return=R,R=b}return d(R);case Oe:return le=T._init,Ke(R,b,le(T._payload),U)}if(An(T))return Z(R,b,T,U);if(F(T))return J(R,b,T,U);Ri(R,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,b!==null&&b.tag===6?(n(R,b.sibling),b=a(b,T),b.return=R,R=b):(n(R,b),b=nu(T,R.mode,U),b.return=R,R=b),d(R)):n(R,b)}return Ke}var vo=vd(!0),xd=vd(!1),Mi=Kn(null),Ti=null,xo=null,fl=null;function pl(){fl=xo=Ti=null}function hl(e){var t=Mi.current;Le(Mi),e._currentValue=t}function ml(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 wo(e,t){Ti=e,fl=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(fl!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if(Ti===null)throw Error(i(308));xo=e,Ti.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var jr=null;function gl(e){jr===null?jr=[e]:jr.push(e)}function wd(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,gl(t)):(n.next=a.next,a.next=n),t.interleaved=n,En(e,s)}function En(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 Yn=!1;function yl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sd(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 Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(be&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,En(e,n)}return a=s.interleaved,a===null?(t.next=t,gl(s)):(t.next=a.next,a.next=t),s.interleaved=t,En(e,n)}function Oi(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,Ta(e,n)}}function kd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:s.baseState,firstBaseUpdate:a,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 _i(e,t,n,s){var a=e.updateQueue;Yn=!1;var u=a.firstBaseUpdate,d=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var S=g,O=S.next;S.next=null,d===null?u=O:d.next=O,d=S;var D=e.alternate;D!==null&&(D=D.updateQueue,g=D.lastBaseUpdate,g!==d&&(g===null?D.firstBaseUpdate=O:g.next=O,D.lastBaseUpdate=S))}if(u!==null){var A=a.baseState;d=0,D=O=S=null,g=u;do{var I=g.lane,G=g.eventTime;if((s&I)===I){D!==null&&(D=D.next={eventTime:G,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var Z=e,J=g;switch(I=t,G=n,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){A=Z.call(G,A,I);break e}A=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,I=typeof Z=="function"?Z.call(G,A,I):Z,I==null)break e;A=W({},A,I);break e;case 2:Yn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,I=a.effects,I===null?a.effects=[g]:I.push(g))}else G={eventTime:G,lane:I,tag:g.tag,payload:g.payload,callback:g.callback,next:null},D===null?(O=D=G,S=A):D=D.next=G,d|=I;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;I=g,g=I.next,I.next=null,a.lastBaseUpdate=I,a.shared.pending=null}}while(!0);if(D===null&&(S=A),a.baseState=S,a.firstBaseUpdate=O,a.lastBaseUpdate=D,t=a.shared.interleaved,t!==null){a=t;do d|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Tr|=d,e.lanes=d,e.memoizedState=A}}function bd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(i(191,a));a.call(s)}}}var ws={},fn=Kn(ws),Ss=Kn(ws),ks=Kn(ws);function Rr(e){if(e===ws)throw Error(i(174));return e}function vl(e,t){switch(ze(ks,t),ze(Ss,e),ze(fn,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:on(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=on(t,e)}Le(fn),ze(fn,t)}function So(){Le(fn),Le(Ss),Le(ks)}function Cd(e){Rr(ks.current);var t=Rr(fn.current),n=on(t,e.type);t!==n&&(ze(Ss,e),ze(fn,n))}function xl(e){Ss.current===e&&(Le(fn),Le(Ss))}var We=Kn(0);function zi(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 wl=[];function Sl(){for(var e=0;e<wl.length;e++)wl[e]._workInProgressVersionPrimary=null;wl.length=0}var Ii=L.ReactCurrentDispatcher,kl=L.ReactCurrentBatchConfig,Mr=0,Ve=null,qe=null,Je=null,Li=!1,bs=!1,Cs=0,Cg=0;function at(){throw Error(i(321))}function bl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$t(e[n],t[n]))return!1;return!0}function Cl(e,t,n,s,a,u){if(Mr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ii.current=e===null||e.memoizedState===null?jg:Rg,e=n(s,a),bs){u=0;do{if(bs=!1,Cs=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Ii.current=Mg,e=n(s,a)}while(bs)}if(Ii.current=Fi,t=qe!==null&&qe.next!==null,Mr=0,Je=qe=Ve=null,Li=!1,t)throw Error(i(300));return e}function El(){var e=Cs!==0;return Cs=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ve.memoizedState=Je=e:Je=Je.next=e,Je}function Dt(){if(qe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ve.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ve.memoizedState=Je=e:Je=Je.next=e}return Je}function Es(e,t){return typeof t=="function"?t(e):t}function Nl(e){var t=Dt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=qe,a=s.baseQueue,u=n.pending;if(u!==null){if(a!==null){var d=a.next;a.next=u.next,u.next=d}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var g=d=null,S=null,O=u;do{var D=O.lane;if((Mr&D)===D)S!==null&&(S=S.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var A={lane:D,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};S===null?(g=S=A,d=s):S=S.next=A,Ve.lanes|=D,Tr|=D}O=O.next}while(O!==null&&O!==u);S===null?d=s:S.next=g,$t(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=d,t.baseQueue=S,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Tr|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pl(e){var t=Dt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var d=a=a.next;do u=e(u,d.action),d=d.next;while(d!==a);$t(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Ed(){}function Nd(e,t){var n=Ve,s=Dt(),a=t(),u=!$t(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,jl(Rd.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ns(9,jd.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Mr&30)!==0||Pd(n,t,a)}return a}function Pd(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 jd(e,t,n,s){t.value=n,t.getSnapshot=s,Md(t)&&Td(e)}function Rd(e,t,n){return n(function(){Md(t)&&Td(e)})}function Md(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$t(e,n)}catch{return!0}}function Td(e){var t=En(e,1);t!==null&&Xt(t,e,1,-1)}function Od(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:e},t.queue=e,e=e.dispatch=Pg.bind(null,Ve,e),[t.memoizedState,e]}function Ns(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 _d(){return Dt().memoizedState}function Di(e,t,n,s){var a=pn();Ve.flags|=e,a.memoizedState=Ns(1|t,n,void 0,s===void 0?null:s)}function Ai(e,t,n,s){var a=Dt();s=s===void 0?null:s;var u=void 0;if(qe!==null){var d=qe.memoizedState;if(u=d.destroy,s!==null&&bl(s,d.deps)){a.memoizedState=Ns(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ns(1|t,n,u,s)}function zd(e,t){return Di(8390656,8,e,t)}function jl(e,t){return Ai(2048,8,e,t)}function Id(e,t){return Ai(4,2,e,t)}function Ld(e,t){return Ai(4,4,e,t)}function Dd(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 Ad(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,Dd.bind(null,t,e),n)}function Rl(){}function Fd(e,t){var n=Dt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&bl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Ud(e,t){var n=Dt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&bl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Bd(e,t,n){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):($t(n,t)||(n=yc(),Ve.lanes|=n,Tr|=n,e.baseState=!0),t)}function Eg(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var s=kl.transition;kl.transition={};try{e(!1),t()}finally{Me=n,kl.transition=s}}function Wd(){return Dt().memoizedState}function Ng(e,t,n){var s=tr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Vd(e))Hd(t,n);else if(n=wd(e,t,n,s),n!==null){var a=ht();Xt(n,e,s,a),Qd(n,t,s)}}function Pg(e,t,n){var s=tr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vd(e))Hd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(a.hasEagerState=!0,a.eagerState=g,$t(g,d)){var S=t.interleaved;S===null?(a.next=a,gl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=wd(e,t,a,s),n!==null&&(a=ht(),Xt(n,e,s,a),Qd(n,t,s))}}function Vd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Hd(e,t){bs=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ta(e,n)}}var Fi={readContext:Lt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},jg={readContext:Lt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:zd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,Dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=pn();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=Ng.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Od,useDebugValue:Rl,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Od(!1),t=e[0];return e=Eg.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=pn();if(Fe){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Mr&30)!==0||Pd(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,zd(Rd.bind(null,s,u,e),[e]),s.flags|=2048,Ns(9,jd.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=pn(),t=et.identifierPrefix;if(Fe){var n=Cn,s=bn;n=(s&~(1<<32-Qt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Cg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rg={readContext:Lt,useCallback:Fd,useContext:Lt,useEffect:jl,useImperativeHandle:Ad,useInsertionEffect:Id,useLayoutEffect:Ld,useMemo:Ud,useReducer:Nl,useRef:_d,useState:function(){return Nl(Es)},useDebugValue:Rl,useDeferredValue:function(e){var t=Dt();return Bd(t,qe.memoizedState,e)},useTransition:function(){var e=Nl(Es)[0],t=Dt().memoizedState;return[e,t]},useMutableSource:Ed,useSyncExternalStore:Nd,useId:Wd,unstable_isNewReconciler:!1},Mg={readContext:Lt,useCallback:Fd,useContext:Lt,useEffect:jl,useImperativeHandle:Ad,useInsertionEffect:Id,useLayoutEffect:Ld,useMemo:Ud,useReducer:Pl,useRef:_d,useState:function(){return Pl(Es)},useDebugValue:Rl,useDeferredValue:function(e){var t=Dt();return qe===null?t.memoizedState=e:Bd(t,qe.memoizedState,e)},useTransition:function(){var e=Pl(Es)[0],t=Dt().memoizedState;return[e,t]},useMutableSource:Ed,useSyncExternalStore:Nd,useId:Wd,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ml(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return(e=e._reactInternals)?br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=tr(e),u=Nn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Xn(e,u,a),t!==null&&(Xt(t,e,a,s),Oi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=tr(e),u=Nn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Xn(e,u,a),t!==null&&(Xt(t,e,a,s),Oi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=tr(e),a=Nn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Xn(e,a,s),t!==null&&(Xt(t,e,s,n),Oi(t,e,s))}};function $d(e,t,n,s,a,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,d):t.prototype&&t.prototype.isPureReactComponent?!fs(n,s)||!fs(a,u):!0}function Kd(e,t,n){var s=!1,a=Gn,u=t.contextType;return typeof u=="object"&&u!==null?u=Lt(u):(a=wt(t)?Er:it.current,s=t.contextTypes,u=(s=s!=null)?ho(e,a):Gn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Gd(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&&Ui.enqueueReplaceState(t,t.state,null)}function Tl(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},yl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=Lt(u):(u=wt(t)?Er:it.current,a.context=ho(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ml(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Ui.enqueueReplaceState(a,a.state,null),_i(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function ko(e,t){try{var n="",s=t;do n+=de(s),s=s.return;while(s);var a=n}catch(u){a=`
39
+ Error generating stack: `+u.message+`
40
+ `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _l(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tg=typeof WeakMap=="function"?WeakMap:Map;function qd(e,t,n){n=Nn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Ki||(Ki=!0,Gl=s),_l(e,t)},n}function Yd(e,t,n){n=Nn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){_l(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){_l(e,t),typeof s!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function Xd(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Tg;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=Qg.bind(null,e,t,n),t.then(e,e))}function Zd(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 Jd(e,t,n,s,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nn(-1,1),t.tag=2,Xn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Og=L.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?xd(t,null,n,s):vo(t,e.child,n,s)}function ef(e,t,n,s,a){n=n.render;var u=t.ref;return wo(t,a),s=Cl(e,t,n,s,u,a),n=El(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Pn(e,t,a)):(Fe&&n&&al(t),t.flags|=1,pt(e,t,s,a),t.child)}function tf(e,t,n,s,a){if(e===null){var u=n.type;return typeof u=="function"&&!tu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,nf(e,t,u,s,a)):(e=Ji(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:fs,n(d,s)&&e.ref===t.ref)return Pn(e,t,a)}return t.flags|=1,e=rr(u,s),e.ref=t.ref,e.return=t,t.child=e}function nf(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(fs(u,s)&&e.ref===t.ref)if(St=!1,t.pendingProps=s=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,Pn(e,t,a)}return zl(e,t,n,s,a)}function rf(e,t,n){var s=t.pendingProps,a=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},ze(Co,Tt),Tt|=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,ze(Co,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,ze(Co,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,ze(Co,Tt),Tt|=s;return pt(e,t,a,n),t.child}function of(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zl(e,t,n,s,a){var u=wt(n)?Er:it.current;return u=ho(t,u),wo(t,a),n=Cl(e,t,n,s,u,a),s=El(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Pn(e,t,a)):(Fe&&s&&al(t),t.flags|=1,pt(e,t,n,a),t.child)}function sf(e,t,n,s,a){if(wt(n)){var u=!0;Ci(t)}else u=!1;if(wo(t,a),t.stateNode===null)Wi(e,t),Kd(t,n,s),Tl(t,n,s,a),s=!0;else if(e===null){var d=t.stateNode,g=t.memoizedProps;d.props=g;var S=d.context,O=n.contextType;typeof O=="object"&&O!==null?O=Lt(O):(O=wt(n)?Er:it.current,O=ho(t,O));var D=n.getDerivedStateFromProps,A=typeof D=="function"||typeof d.getSnapshotBeforeUpdate=="function";A||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==s||S!==O)&&Gd(t,d,s,O),Yn=!1;var I=t.memoizedState;d.state=I,_i(t,s,d,a),S=t.memoizedState,g!==s||I!==S||xt.current||Yn?(typeof D=="function"&&(Ml(t,n,D,s),S=t.memoizedState),(g=Yn||$d(t,n,g,s,I,S,O))?(A||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=S),d.props=s,d.state=S,d.context=O,s=g):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,Sd(e,t),g=t.memoizedProps,O=t.type===t.elementType?g:Gt(t.type,g),d.props=O,A=t.pendingProps,I=d.context,S=n.contextType,typeof S=="object"&&S!==null?S=Lt(S):(S=wt(n)?Er:it.current,S=ho(t,S));var G=n.getDerivedStateFromProps;(D=typeof G=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==A||I!==S)&&Gd(t,d,s,S),Yn=!1,I=t.memoizedState,d.state=I,_i(t,s,d,a);var Z=t.memoizedState;g!==A||I!==Z||xt.current||Yn?(typeof G=="function"&&(Ml(t,n,G,s),Z=t.memoizedState),(O=Yn||$d(t,n,O,s,I,Z,S)||!1)?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,Z,S),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,Z,S)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Z),d.props=s,d.state=Z,d.context=S,s=O):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),s=!1)}return Il(e,t,n,s,u,a)}function Il(e,t,n,s,a,u){of(e,t);var d=(t.flags&128)!==0;if(!s&&!d)return a&&cd(t,n,!1),Pn(e,t,u);s=t.stateNode,Og.current=t;var g=d&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&d?(t.child=vo(t,e.child,null,u),t.child=vo(t,null,g,u)):pt(e,t,g,u),t.memoizedState=s.state,a&&cd(t,n,!0),t.child}function af(e){var t=e.stateNode;t.pendingContext?ld(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ld(e,t.context,!1),vl(e,t.containerInfo)}function lf(e,t,n,s,a){return yo(),dl(a),t.flags|=256,pt(e,t,n,s),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function uf(e,t,n){var s=t.pendingProps,a=We.current,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(a&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ze(We,a&1),e===null)return cl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=s.children,e=s.fallback,u?(s=t.mode,u=t.child,d={mode:"hidden",children:d},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=ea(d,s,0,null),e=Ir(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Dl(n),t.memoizedState=Ll,e):Al(t,d));if(a=e.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return _g(e,t,d,s,g,a,n);if(u){u=s.fallback,d=t.mode,a=e.child,g=a.sibling;var S={mode:"hidden",children:s.children};return(d&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=S,t.deletions=null):(s=rr(a,S),s.subtreeFlags=a.subtreeFlags&14680064),g!==null?u=rr(g,u):(u=Ir(u,d,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,d=e.child.memoizedState,d=d===null?Dl(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Ll,s}return u=e.child,e=u.sibling,s=rr(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 Al(e,t){return t=ea({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bi(e,t,n,s){return s!==null&&dl(s),vo(t,e.child,null,n),e=Al(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _g(e,t,n,s,a,u,d){if(n)return t.flags&256?(t.flags&=-257,s=Ol(Error(i(422))),Bi(e,t,d,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=ea({mode:"visible",children:s.children},a,0,null),u=Ir(u,a,d,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&vo(t,e.child,null,d),t.child.memoizedState=Dl(d),t.memoizedState=Ll,u);if((t.mode&1)===0)return Bi(e,t,d,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(i(419)),s=Ol(u,s,void 0),Bi(e,t,d,s)}if(g=(d&e.childLanes)!==0,St||g){if(s=et,s!==null){switch(d&-d){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(s.suspendedLanes|d))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,En(e,a),Xt(s,e,a,-1))}return eu(),s=Ol(Error(i(421))),Bi(e,t,d,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=$g.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=$n(a.nextSibling),Rt=t,Fe=!0,Kt=null,e!==null&&(zt[It++]=bn,zt[It++]=Cn,zt[It++]=Nr,bn=e.id,Cn=e.overflow,Nr=t),t=Al(t,s.children),t.flags|=4096,t)}function cf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ml(e.return,t,n)}function Fl(e,t,n,s,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=a)}function df(e,t,n){var s=t.pendingProps,a=s.revealOrder,u=s.tail;if(pt(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&&cf(e,n,t);else if(e.tag===19)cf(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(ze(We,s),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&zi(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Fl(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&zi(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Fl(t,!0,n,null,u);break;case"together":Fl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=rr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zg(e,t,n){switch(t.tag){case 3:af(t),yo();break;case 5:Cd(t);break;case 1:wt(t.type)&&Ci(t);break;case 4:vl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;ze(Mi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?uf(e,t,n):(ze(We,We.current&1),e=Pn(e,t,n),e!==null?e.sibling:null);ze(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return df(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ze(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,rf(e,t,n)}return Pn(e,t,n)}var ff,Ul,pf,hf;ff=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}},Ul=function(){},pf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Rr(fn.current);var u=null;switch(n){case"input":a=Ko(e,a),s=Ko(e,s),u=[];break;case"select":a=W({},a,{value:void 0}),s=W({},s,{value:void 0}),u=[];break;case"textarea":a=Jr(e,a),s=Jr(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Si)}an(n,s);var d;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var g=a[O];for(d in g)g.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(c.hasOwnProperty(O)?u||(u=[]):(u=u||[]).push(O,null));for(O in s){var S=s[O];if(g=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&S!==g&&(S!=null||g!=null))if(O==="style")if(g){for(d in g)!g.hasOwnProperty(d)||S&&S.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in S)S.hasOwnProperty(d)&&g[d]!==S[d]&&(n||(n={}),n[d]=S[d])}else n||(u||(u=[]),u.push(O,n)),n=S;else O==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,g=g?g.__html:void 0,S!=null&&g!==S&&(u=u||[]).push(O,S)):O==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(O,""+S):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(S!=null&&O==="onScroll"&&Ie("scroll",e),u||g===S||(u=[])):(u=u||[]).push(O,S))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},hf=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ps(e,t){if(!Fe)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 lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Ig(e,t,n){var s=t.pendingProps;switch(ll(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return wt(t.type)&&bi(),lt(t),null;case 3:return s=t.stateNode,So(),Le(xt),Le(it),Sl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kt!==null&&(Xl(Kt),Kt=null))),Ul(e,t),lt(t),null;case 5:xl(t);var a=Rr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)pf(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return lt(t),null}if(e=Rr(fn.current),ji(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[dn]=t,s[ys]=u,e=(t.mode&1)!==0,n){case"dialog":Ie("cancel",s),Ie("close",s);break;case"iframe":case"object":case"embed":Ie("load",s);break;case"video":case"audio":for(a=0;a<hs.length;a++)Ie(hs[a],s);break;case"source":Ie("error",s);break;case"img":case"image":case"link":Ie("error",s),Ie("load",s);break;case"details":Ie("toggle",s);break;case"input":Ks(s,u),Ie("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ie("invalid",s);break;case"textarea":rn(s,u),Ie("invalid",s)}an(n,u),a=null;for(var d in u)if(u.hasOwnProperty(d)){var g=u[d];d==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&wi(s.textContent,g,e),a=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&wi(s.textContent,g,e),a=["children",""+g]):c.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&Ie("scroll",s)}switch(n){case"input":nn(s),Zr(s,u,!0);break;case"textarea":nn(s),qs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=Si)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{d=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=d.createElement(n,{is:s.is}):(e=d.createElement(n),n==="select"&&(d=e,s.multiple?d.multiple=!0:s.size&&(d.size=s.size))):e=d.createElementNS(e,n),e[dn]=t,e[ys]=s,ff(e,t,!1,!1),t.stateNode=e;e:{switch(d=Xo(n,s),n){case"dialog":Ie("cancel",e),Ie("close",e),a=s;break;case"iframe":case"object":case"embed":Ie("load",e),a=s;break;case"video":case"audio":for(a=0;a<hs.length;a++)Ie(hs[a],e);a=s;break;case"source":Ie("error",e),a=s;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),a=s;break;case"details":Ie("toggle",e),a=s;break;case"input":Ks(e,s),a=Ko(e,s),Ie("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=W({},s,{value:void 0}),Ie("invalid",e);break;case"textarea":rn(e,s),a=Jr(e,s),Ie("invalid",e);break;default:a=s}an(n,a),g=a;for(u in g)if(g.hasOwnProperty(u)){var S=g[u];u==="style"?wn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Ys(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&sn(e,S):typeof S=="number"&&sn(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&Ie("scroll",e):S!=null&&$(e,u,S,d))}switch(n){case"input":nn(e),Zr(e,s,!1);break;case"textarea":nn(e),qs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ke(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?_t(e,!!s.multiple,u,!1):s.defaultValue!=null&&_t(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Si)}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 lt(t),null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Rr(ks.current),Rr(fn.current),ji(t)){if(s=t.stateNode,n=t.memoizedProps,s[dn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:wi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[dn]=t,t.stateNode=s}return lt(t),null;case 13:if(Le(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)gd(),yo(),t.flags|=98560,u=!1;else if(u=ji(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[dn]=t}else yo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else Kt!==null&&(Xl(Kt),Kt=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?Ye===0&&(Ye=3):eu())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return So(),Ul(e,t),e===null&&ms(t.stateNode.containerInfo),lt(t),null;case 10:return hl(t.type._context),lt(t),null;case 17:return wt(t.type)&&bi(),lt(t),null;case 19:if(Le(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,d=u.rendering,d===null)if(s)Ps(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=zi(e),d!==null){for(t.flags|=128,Ps(u,!1),s=d.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,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ze(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&$e()>Eo&&(t.flags|=128,s=!0,Ps(u,!1),t.lanes=4194304)}else{if(!s)if(e=zi(d),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ps(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Fe)return lt(t),null}else 2*$e()-u.renderingStartTime>Eo&&n!==1073741824&&(t.flags|=128,s=!0,Ps(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=$e(),t.sibling=null,n=We.current,ze(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return Jl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Lg(e,t){switch(ll(t),t.tag){case 1:return wt(t.type)&&bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Le(xt),Le(it),Sl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xl(t),null;case 13:if(Le(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(We),null;case 4:return So(),null;case 10:return hl(t.type._context),null;case 22:case 23:return Jl(),null;case 24:return null;default:return null}}var Vi=!1,ut=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Y=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){He(e,t,s)}else n.current=null}function Bl(e,t,n){try{n()}catch(s){He(e,t,s)}}var mf=!1;function Ag(e,t){if(Ja=ui,e=$c(),Qa(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 a=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,S=-1,O=0,D=0,A=e,I=null;t:for(;;){for(var G;A!==n||a!==0&&A.nodeType!==3||(g=d+a),A!==u||s!==0&&A.nodeType!==3||(S=d+s),A.nodeType===3&&(d+=A.nodeValue.length),(G=A.firstChild)!==null;)I=A,A=G;for(;;){if(A===e)break t;if(I===n&&++O===a&&(g=d),I===u&&++D===s&&(S=d),(G=A.nextSibling)!==null)break;A=I,I=A.parentNode}A=G}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(el={focusedElem:e,selectionRange:n},ui=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var J=Z.memoizedProps,Ke=Z.memoizedState,R=t.stateNode,b=R.getSnapshotBeforeUpdate(t.elementType===t.type?J:Gt(t.type,J),Ke);R.__reactInternalSnapshotBeforeUpdate=b}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(i(163))}}catch(U){He(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return Z=mf,mf=!1,Z}function js(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Bl(t,n,u)}a=a.next}while(a!==s)}}function Hi(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 Wl(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 gf(e){var t=e.alternate;t!==null&&(e.alternate=null,gf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[ys],delete t[ol],delete t[wg],delete t[Sg])),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 yf(e){return e.tag===5||e.tag===3||e.tag===4}function vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yf(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 Vl(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=Si));else if(s!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}function Hl(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(Hl(e,t,n),e=e.sibling;e!==null;)Hl(e,t,n),e=e.sibling}var ot=null,qt=!1;function Zn(e,t,n){for(n=n.child;n!==null;)xf(e,t,n),n=n.sibling}function xf(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(ri,n)}catch{}switch(n.tag){case 5:ut||bo(n,t);case 6:var s=ot,a=qt;ot=null,Zn(e,t,n),ot=s,qt=a,ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),is(e)):rl(ot,n.stateNode));break;case 4:s=ot,a=qt,ot=n.stateNode.containerInfo,qt=!0,Zn(e,t,n),ot=s,qt=a;break;case 0:case 11:case 14:case 15:if(!ut&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var u=a,d=u.destroy;u=u.tag,d!==void 0&&((u&2)!==0||(u&4)!==0)&&Bl(n,t,d),a=a.next}while(a!==s)}Zn(e,t,n);break;case 1:if(!ut&&(bo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){He(n,t,g)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,Zn(e,t,n),ut=s):Zn(e,t,n);break;default:Zn(e,t,n)}}function wf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dg),t.forEach(function(s){var a=Kg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 5:ot=g.stateNode,qt=!1;break e;case 3:ot=g.stateNode.containerInfo,qt=!0;break e;case 4:ot=g.stateNode.containerInfo,qt=!0;break e}g=g.return}if(ot===null)throw Error(i(160));xf(u,d,a),ot=null,qt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(O){He(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sf(t,e),t=t.sibling}function Sf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),hn(e),s&4){try{js(3,e,e.return),Hi(3,e)}catch(J){He(e,e.return,J)}try{js(5,e,e.return)}catch(J){He(e,e.return,J)}}break;case 1:Yt(t,e),hn(e),s&512&&n!==null&&bo(n,n.return);break;case 5:if(Yt(t,e),hn(e),s&512&&n!==null&&bo(n,n.return),e.flags&32){var a=e.stateNode;try{sn(a,"")}catch(J){He(e,e.return,J)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,g=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Go(a,u),Xo(g,d);var O=Xo(g,u);for(d=0;d<S.length;d+=2){var D=S[d],A=S[d+1];D==="style"?wn(a,A):D==="dangerouslySetInnerHTML"?Ys(a,A):D==="children"?sn(a,A):$(a,D,A,O)}switch(g){case"input":qo(a,u);break;case"textarea":Gs(a,u);break;case"select":var I=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var G=u.value;G!=null?_t(a,!!u.multiple,G,!1):I!==!!u.multiple&&(u.defaultValue!=null?_t(a,!!u.multiple,u.defaultValue,!0):_t(a,!!u.multiple,u.multiple?[]:"",!1))}a[ys]=u}catch(J){He(e,e.return,J)}}break;case 6:if(Yt(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(J){He(e,e.return,J)}}break;case 3:if(Yt(t,e),hn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(J){He(e,e.return,J)}break;case 4:Yt(t,e),hn(e);break;case 13:Yt(t,e),hn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Kl=$e())),s&4&&wf(e);break;case 22:if(D=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||D,Yt(t,e),ut=O):Yt(t,e),hn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!D&&(e.mode&1)!==0)for(Y=e,D=e.child;D!==null;){for(A=Y=D;Y!==null;){switch(I=Y,G=I.child,I.tag){case 0:case 11:case 14:case 15:js(4,I,I.return);break;case 1:bo(I,I.return);var Z=I.stateNode;if(typeof Z.componentWillUnmount=="function"){s=I,n=I.return;try{t=s,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){He(s,n,J)}}break;case 5:bo(I,I.return);break;case 22:if(I.memoizedState!==null){Cf(A);continue}}G!==null?(G.return=I,Y=G):Cf(A)}D=D.sibling}e:for(D=null,A=e;;){if(A.tag===5){if(D===null){D=A;try{a=A.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=A.stateNode,S=A.memoizedProps.style,d=S!=null&&S.hasOwnProperty("display")?S.display:null,g.style.display=to("display",d))}catch(J){He(e,e.return,J)}}}else if(A.tag===6){if(D===null)try{A.stateNode.nodeValue=O?"":A.memoizedProps}catch(J){He(e,e.return,J)}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===e)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===e)break e;for(;A.sibling===null;){if(A.return===null||A.return===e)break e;D===A&&(D=null),A=A.return}D===A&&(D=null),A.sibling.return=A.return,A=A.sibling}}break;case 19:Yt(t,e),hn(e),s&4&&wf(e);break;case 21:break;default:Yt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yf(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(sn(a,""),s.flags&=-33);var u=vf(e);Hl(e,u,a);break;case 3:case 4:var d=s.stateNode.containerInfo,g=vf(e);Vl(e,g,d);break;default:throw Error(i(161))}}catch(S){He(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fg(e,t,n){Y=e,kf(e)}function kf(e,t,n){for(var s=(e.mode&1)!==0;Y!==null;){var a=Y,u=a.child;if(a.tag===22&&s){var d=a.memoizedState!==null||Vi;if(!d){var g=a.alternate,S=g!==null&&g.memoizedState!==null||ut;g=Vi;var O=ut;if(Vi=d,(ut=S)&&!O)for(Y=a;Y!==null;)d=Y,S=d.child,d.tag===22&&d.memoizedState!==null?Ef(a):S!==null?(S.return=d,Y=S):Ef(a);for(;u!==null;)Y=u,kf(u),u=u.sibling;Y=a,Vi=g,ut=O}bf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,Y=u):bf(e)}}function bf(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ut||Hi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ut)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Gt(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&bd(t,u,s);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bd(t,d,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&n.focus();break;case"img":S.src&&(n.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var D=O.memoizedState;if(D!==null){var A=D.dehydrated;A!==null&&is(A)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&Wl(t)}catch(I){He(t,t.return,I)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Cf(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Ef(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(S){He(t,n,S)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(S){He(t,a,S)}}var u=t.return;try{Wl(t)}catch(S){He(t,u,S)}break;case 5:var d=t.return;try{Wl(t)}catch(S){He(t,d,S)}}}catch(S){He(t,t.return,S)}if(t===e){Y=null;break}var g=t.sibling;if(g!==null){g.return=t.return,Y=g;break}Y=t.return}}var Ug=Math.ceil,Qi=L.ReactCurrentDispatcher,Ql=L.ReactCurrentOwner,At=L.ReactCurrentBatchConfig,be=0,et=null,Ge=null,st=0,Tt=0,Co=Kn(0),Ye=0,Rs=null,Tr=0,$i=0,$l=0,Ms=null,kt=null,Kl=0,Eo=1/0,jn=null,Ki=!1,Gl=null,Jn=null,Gi=!1,er=null,qi=0,Ts=0,ql=null,Yi=-1,Xi=0;function ht(){return(be&6)!==0?$e():Yi!==-1?Yi:Yi=$e()}function tr(e){return(e.mode&1)===0?1:(be&2)!==0&&st!==0?st&-st:bg.transition!==null?(Xi===0&&(Xi=yc()),Xi):(e=Me,e!==0||(e=window.event,e=e===void 0?16:Nc(e.type)),e)}function Xt(e,t,n,s){if(50<Ts)throw Ts=0,ql=null,Error(i(185));ts(e,n,s),((be&2)===0||e!==et)&&(e===et&&((be&2)===0&&($i|=n),Ye===4&&nr(e,st)),bt(e,s),n===1&&be===0&&(t.mode&1)===0&&(Eo=$e()+500,Ei&&qn()))}function bt(e,t){var n=e.callbackNode;bm(e,t);var s=ii(e,e===et?st:0);if(s===0)n!==null&&hc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&hc(n),t===1)e.tag===0?kg(Pf.bind(null,e)):dd(Pf.bind(null,e)),vg(function(){(be&6)===0&&qn()}),n=null;else{switch(vc(s)){case 1:n=ja;break;case 4:n=mc;break;case 16:n=ni;break;case 536870912:n=gc;break;default:n=ni}n=If(n,Nf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nf(e,t){if(Yi=-1,Xi=0,(be&6)!==0)throw Error(i(327));var n=e.callbackNode;if(No()&&e.callbackNode!==n)return null;var s=ii(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Zi(e,s);else{t=s;var a=be;be|=2;var u=Rf();(et!==e||st!==t)&&(jn=null,Eo=$e()+500,_r(e,t));do try{Vg();break}catch(g){jf(e,g)}while(!0);pl(),Qi.current=u,be=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=Ra(e),a!==0&&(s=a,t=Yl(e,a))),t===1)throw n=Rs,_r(e,0),nr(e,s),bt(e,$e()),n;if(t===6)nr(e,s);else{if(a=e.current.alternate,(s&30)===0&&!Bg(a)&&(t=Zi(e,s),t===2&&(u=Ra(e),u!==0&&(s=u,t=Yl(e,u))),t===1))throw n=Rs,_r(e,0),nr(e,s),bt(e,$e()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:zr(e,kt,jn);break;case 3:if(nr(e,s),(s&130023424)===s&&(t=Kl+500-$e(),10<t)){if(ii(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=nl(zr.bind(null,e,kt,jn),t);break}zr(e,kt,jn);break;case 4:if(nr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var d=31-Qt(s);u=1<<d,d=t[d],d>a&&(a=d),s&=~u}if(s=a,s=$e()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Ug(s/1960))-s,10<s){e.timeoutHandle=nl(zr.bind(null,e,kt,jn),s);break}zr(e,kt,jn);break;case 5:zr(e,kt,jn);break;default:throw Error(i(329))}}}return bt(e,$e()),e.callbackNode===n?Nf.bind(null,e):null}function Yl(e,t){var n=Ms;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=Zi(e,t),e!==2&&(t=kt,kt=n,t!==null&&Xl(t)),e}function Xl(e){kt===null?kt=e:kt.push.apply(kt,e)}function Bg(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 a=n[s],u=a.getSnapshot;a=a.value;try{if(!$t(u(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&=~$l,t&=~$i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qt(t),s=1<<n;e[n]=-1,t&=~s}}function Pf(e){if((be&6)!==0)throw Error(i(327));No();var t=ii(e,0);if((t&1)===0)return bt(e,$e()),null;var n=Zi(e,t);if(e.tag!==0&&n===2){var s=Ra(e);s!==0&&(t=s,n=Yl(e,s))}if(n===1)throw n=Rs,_r(e,0),nr(e,t),bt(e,$e()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zr(e,kt,jn),bt(e,$e()),null}function Zl(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(Eo=$e()+500,Ei&&qn())}}function Or(e){er!==null&&er.tag===0&&(be&6)===0&&No();var t=be;be|=1;var n=At.transition,s=Me;try{if(At.transition=null,Me=1,e)return e()}finally{Me=s,At.transition=n,be=t,(be&6)===0&&qn()}}function Jl(){Tt=Co.current,Le(Co)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(ll(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&bi();break;case 3:So(),Le(xt),Le(it),Sl();break;case 5:xl(s);break;case 4:So();break;case 13:Le(We);break;case 19:Le(We);break;case 10:hl(s.type._context);break;case 22:case 23:Jl()}n=n.return}if(et=e,Ge=e=rr(e.current,null),st=Tt=t,Ye=0,Rs=null,$l=$i=Tr=0,kt=Ms=null,jr!==null){for(t=0;t<jr.length;t++)if(n=jr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var d=u.next;u.next=a,s.next=d}n.pending=s}jr=null}return e}function jf(e,t){do{var n=Ge;try{if(pl(),Ii.current=Fi,Li){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Li=!1}if(Mr=0,Je=qe=Ve=null,bs=!1,Cs=0,Ql.current=null,n===null||n.return===null){Ye=1,Rs=t,Ge=null;break}e:{var u=e,d=n.return,g=n,S=t;if(t=st,g.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=S,D=g,A=D.tag;if((D.mode&1)===0&&(A===0||A===11||A===15)){var I=D.alternate;I?(D.updateQueue=I.updateQueue,D.memoizedState=I.memoizedState,D.lanes=I.lanes):(D.updateQueue=null,D.memoizedState=null)}var G=Zd(d);if(G!==null){G.flags&=-257,Jd(G,d,g,u,t),G.mode&1&&Xd(u,O,t),t=G,S=O;var Z=t.updateQueue;if(Z===null){var J=new Set;J.add(S),t.updateQueue=J}else Z.add(S);break e}else{if((t&1)===0){Xd(u,O,t),eu();break e}S=Error(i(426))}}else if(Fe&&g.mode&1){var Ke=Zd(d);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Jd(Ke,d,g,u,t),dl(ko(S,g));break e}}u=S=ko(S,g),Ye!==4&&(Ye=2),Ms===null?Ms=[u]:Ms.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var R=qd(u,S,t);kd(u,R);break e;case 1:g=S;var b=u.type,T=u.stateNode;if((u.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Jn===null||!Jn.has(T)))){u.flags|=65536,t&=-t,u.lanes|=t;var U=Yd(u,g,t);kd(u,U);break e}}u=u.return}while(u!==null)}Tf(n)}catch(re){t=re,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function Rf(){var e=Qi.current;return Qi.current=Fi,e===null?Fi:e}function eu(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Tr&268435455)===0&&($i&268435455)===0||nr(et,st)}function Zi(e,t){var n=be;be|=2;var s=Rf();(et!==e||st!==t)&&(jn=null,_r(e,t));do try{Wg();break}catch(a){jf(e,a)}while(!0);if(pl(),be=n,Qi.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function Wg(){for(;Ge!==null;)Mf(Ge)}function Vg(){for(;Ge!==null&&!hm();)Mf(Ge)}function Mf(e){var t=zf(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Tf(e):Ge=t,Ql.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Ig(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Lg(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Ye===0&&(Ye=5)}function zr(e,t,n){var s=Me,a=At.transition;try{At.transition=null,Me=1,Hg(e,t,n,s)}finally{At.transition=a,Me=s}return null}function Hg(e,t,n,s){do No();while(er!==null);if((be&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Cm(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Gi||(Gi=!0,If(ni,function(){return No(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=At.transition,At.transition=null;var d=Me;Me=1;var g=be;be|=4,Ql.current=null,Ag(e,n),Sf(n,e),cg(el),ui=!!Ja,el=Ja=null,e.current=n,Fg(n),mm(),be=g,Me=d,At.transition=u}else e.current=n;if(Gi&&(Gi=!1,er=e,qi=a),u=e.pendingLanes,u===0&&(Jn=null),vm(n.stateNode),bt(e,$e()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(Ki)throw Ki=!1,e=Gl,Gl=null,e;return(qi&1)!==0&&e.tag!==0&&No(),u=e.pendingLanes,(u&1)!==0?e===ql?Ts++:(Ts=0,ql=e):Ts=0,qn(),null}function No(){if(er!==null){var e=vc(qi),t=At.transition,n=Me;try{if(At.transition=null,Me=16>e?16:e,er===null)var s=!1;else{if(e=er,er=null,qi=0,(be&6)!==0)throw Error(i(331));var a=be;for(be|=4,Y=e.current;Y!==null;){var u=Y,d=u.child;if((Y.flags&16)!==0){var g=u.deletions;if(g!==null){for(var S=0;S<g.length;S++){var O=g[S];for(Y=O;Y!==null;){var D=Y;switch(D.tag){case 0:case 11:case 15:js(8,D,u)}var A=D.child;if(A!==null)A.return=D,Y=A;else for(;Y!==null;){D=Y;var I=D.sibling,G=D.return;if(gf(D),D===O){Y=null;break}if(I!==null){I.return=G,Y=I;break}Y=G}}}var Z=u.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ke=J.sibling;J.sibling=null,J=Ke}while(J!==null)}}Y=u}}if((u.subtreeFlags&2064)!==0&&d!==null)d.return=u,Y=d;else e:for(;Y!==null;){if(u=Y,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:js(9,u,u.return)}var R=u.sibling;if(R!==null){R.return=u.return,Y=R;break e}Y=u.return}}var b=e.current;for(Y=b;Y!==null;){d=Y;var T=d.child;if((d.subtreeFlags&2064)!==0&&T!==null)T.return=d,Y=T;else e:for(d=b;Y!==null;){if(g=Y,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Hi(9,g)}}catch(re){He(g,g.return,re)}if(g===d){Y=null;break e}var U=g.sibling;if(U!==null){U.return=g.return,Y=U;break e}Y=g.return}}if(be=a,qn(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(ri,e)}catch{}s=!0}return s}finally{Me=n,At.transition=t}}return!1}function Of(e,t,n){t=ko(n,t),t=qd(e,t,1),e=Xn(e,t,1),t=ht(),e!==null&&(ts(e,1,t),bt(e,t))}function He(e,t,n){if(e.tag===3)Of(e,e,n);else for(;t!==null;){if(t.tag===3){Of(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Jn===null||!Jn.has(s))){e=ko(n,e),e=Yd(t,e,1),t=Xn(t,e,1),e=ht(),t!==null&&(ts(t,1,e),bt(t,e));break}}t=t.return}}function Qg(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=ht(),e.pingedLanes|=e.suspendedLanes&n,et===e&&(st&n)===n&&(Ye===4||Ye===3&&(st&130023424)===st&&500>$e()-Kl?_r(e,0):$l|=n),bt(e,t)}function _f(e,t){t===0&&((e.mode&1)===0?t=1:(t=si,si<<=1,(si&130023424)===0&&(si=4194304)));var n=ht();e=En(e,t),e!==null&&(ts(e,t,n),bt(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function Kg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),_f(e,n)}var zf;zf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,zg(e,t,n);St=(e.flags&131072)!==0}else St=!1,Fe&&(t.flags&1048576)!==0&&fd(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Wi(e,t),e=t.pendingProps;var a=ho(t,it.current);wo(t,n),a=Cl(null,t,s,e,a,n);var u=El();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(s)?(u=!0,Ci(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,yl(t),a.updater=Ui,t.stateNode=a,a._reactInternals=t,Tl(t,s,e,n),t=Il(null,t,s,!0,u,n)):(t.tag=0,Fe&&u&&al(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=qg(s),e=Gt(s,e),a){case 0:t=zl(null,t,s,e,n);break e;case 1:t=sf(null,t,s,e,n);break e;case 11:t=ef(null,t,s,e,n);break e;case 14:t=tf(null,t,s,Gt(s.type,e),n);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),zl(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),sf(e,t,s,a,n);case 3:e:{if(af(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,Sd(e,t),_i(t,s,null,n);var d=t.memoizedState;if(s=d.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=ko(Error(i(423)),t),t=lf(e,t,s,n,a);break e}else if(s!==a){a=ko(Error(i(424)),t),t=lf(e,t,s,n,a);break e}else for(Mt=$n(t.stateNode.containerInfo.firstChild),Rt=t,Fe=!0,Kt=null,n=xd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yo(),s===a){t=Pn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Cd(t),e===null&&cl(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,d=a.children,tl(s,a)?d=null:u!==null&&tl(s,u)&&(t.flags|=32),of(e,t),pt(e,t,d,n),t.child;case 6:return e===null&&cl(t),null;case 13:return uf(e,t,n);case 4:return vl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=vo(t,null,s,n):pt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),ef(e,t,s,a,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,u=t.memoizedProps,d=a.value,ze(Mi,s._currentValue),s._currentValue=d,u!==null)if($t(u.value,d)){if(u.children===a.children&&!xt.current){t=Pn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){d=u.child;for(var S=g.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=Nn(-1,n&-n),S.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var D=O.pending;D===null?S.next=S:(S.next=D.next,D.next=S),O.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),ml(u.return,n,t),g.lanes|=n;break}S=S.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(i(341));d.lanes|=n,g=d.alternate,g!==null&&(g.lanes|=n),ml(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,wo(t,n),a=Lt(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=Gt(s,t.pendingProps),a=Gt(s.type,a),tf(e,t,s,a,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),Wi(e,t),t.tag=1,wt(s)?(e=!0,Ci(t)):e=!1,wo(t,n),Kd(t,s,a),Tl(t,s,a,n),Il(null,t,s,!0,e,n);case 19:return df(e,t,n);case 22:return rf(e,t,n)}throw Error(i(156,t.tag))};function If(e,t){return pc(e,t)}function Gg(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 Ft(e,t,n,s){return new Gg(e,t,n,s)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qg(e){if(typeof e=="function")return tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===Be)return 14}return 2}function rr(e,t){var n=e.alternate;return n===null?(n=Ft(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 Ji(e,t,n,s,a,u){var d=2;if(s=e,typeof e=="function")tu(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ne:return Ir(n.children,a,u,t);case ie:d=8,a|=8;break;case he:return e=Ft(12,n,t,a|2),e.elementType=he,e.lanes=u,e;case Ae:return e=Ft(13,n,t,a),e.elementType=Ae,e.lanes=u,e;case Te:return e=Ft(19,n,t,a),e.elementType=Te,e.lanes=u,e;case we:return ea(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:d=10;break e;case Pe:d=9;break e;case ae:d=11;break e;case Be:d=14;break e;case Oe:d=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ft(d,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ir(e,t,n,s){return e=Ft(7,e,s,t),e.lanes=n,e}function ea(e,t,n,s){return e=Ft(22,e,s,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yg(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,s,a,u,d,g,S){return e=new Yg(e,t,n,g,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yl(u),e}function Xg(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oe,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Lf(e){if(!e)return Gn;e=e._reactInternals;e:{if(br(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(wt(n))return ud(e,n,t)}return t}function Df(e,t,n,s,a,u,d,g,S){return e=ou(n,s,!0,e,a,u,d,g,S),e.context=Lf(null),n=e.current,s=ht(),a=tr(n),u=Nn(s,a),u.callback=t??null,Xn(n,u,a),e.current.lanes=a,ts(e,a,s),bt(e,s),e}function ta(e,t,n,s){var a=t.current,u=ht(),d=tr(a);return n=Lf(n),t.context===null?t.context=n:t.pendingContext=n,t=Nn(u,d),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Xn(a,t,d),e!==null&&(Xt(e,a,d,u),Oi(e,a,d)),d}function na(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 Af(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){Af(e,t),(e=e.alternate)&&Af(e,t)}function Zg(){return null}var Ff=typeof reportError=="function"?reportError:function(e){console.error(e)};function iu(e){this._internalRoot=e}ra.prototype.render=iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ta(e,t,null,null)},ra.prototype.unmount=iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){ta(null,e,null,null)}),t[Sn]=null}};function ra(e){this._internalRoot=e}ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vn.length&&t!==0&&t<Vn[n].priority;n++);Vn.splice(n,0,e),n===0&&Cc(e)}};function au(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uf(){}function Jg(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=na(d);u.call(O)}}var d=Df(t,s,e,0,null,!1,!1,"",Uf);return e._reactRootContainer=d,e[Sn]=d.current,ms(e.nodeType===8?e.parentNode:e),Or(),d}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var g=s;s=function(){var O=na(S);g.call(O)}}var S=ou(e,0,!1,null,null,!1,!1,"",Uf);return e._reactRootContainer=S,e[Sn]=S.current,ms(e.nodeType===8?e.parentNode:e),Or(function(){ta(t,S,n,s)}),S}function sa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var d=u;if(typeof a=="function"){var g=a;a=function(){var S=na(d);g.call(S)}}ta(t,d,e,a)}else d=Jg(n,t,e,a,s);return na(d)}xc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=es(t.pendingLanes);n!==0&&(Ta(t,n|1),bt(t,$e()),(be&6)===0&&(Eo=$e()+500,qn()))}break;case 13:Or(function(){var s=En(e,1);if(s!==null){var a=ht();Xt(s,e,1,a)}}),su(e,1)}},Oa=function(e){if(e.tag===13){var t=En(e,134217728);if(t!==null){var n=ht();Xt(t,e,134217728,n)}su(e,134217728)}},wc=function(e){if(e.tag===13){var t=tr(e),n=En(e,t);if(n!==null){var s=ht();Xt(n,e,t,s)}su(e,t)}},Sc=function(){return Me},kc=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},ro=function(e,t,n){switch(t){case"input":if(qo(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 a=ki(s);if(!a)throw Error(i(90));Xr(s),qo(s,a)}}}break;case"textarea":Gs(e,n);break;case"select":t=n.value,t!=null&&_t(e,!!n.multiple,t,!1)}},Ne=Zl,_e=Or;var ey={usingClientEntryPoint:!1,Events:[vs,fo,ki,Js,pe,Zl]},Os={findFiberByHostInstance:Cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ty={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dc(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||Zg,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 ia=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ia.isDisabled&&ia.supportsFiber)try{ri=ia.inject(ty),cn=ia}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ey,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!au(t))throw Error(i(200));return Xg(e,t,null,n)},Ct.createRoot=function(e,t){if(!au(e))throw Error(i(299));var n=!1,s="",a=Ff;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,s,a),e[Sn]=t.current,ms(e.nodeType===8?e.parentNode:e),new iu(t)},Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=dc(t),e=e===null?null:e.stateNode,e},Ct.flushSync=function(e){return Or(e)},Ct.hydrate=function(e,t,n){if(!oa(t))throw Error(i(200));return sa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!au(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",d=Ff;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Df(t,null,e,1,n??null,a,!1,u,d),e[Sn]=t.current,ms(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new ra(t)},Ct.render=function(e,t,n){if(!oa(t))throw Error(i(200));return sa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!oa(e))throw Error(i(40));return e._reactRootContainer?(Or(function(){sa(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},Ct.unstable_batchedUpdates=Zl,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!oa(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return sa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var qf;function Gp(){if(qf)return du.exports;qf=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(),du.exports=uy(),du.exports}var Yf;function cy(){if(Yf)return la;Yf=1;var r=Gp();return la.createRoot=r.createRoot,la.hydrateRoot=r.hydrateRoot,la}var dy=cy(),Ho=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(){}},fy={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},ur,Vu,Ip,py=(Ip=class{constructor(){se(this,ur,fy);se(this,Vu,!1)}setTimeoutProvider(r){K(this,ur,r)}setTimeout(r,o){return w(this,ur).setTimeout(r,o)}clearTimeout(r){w(this,ur).clearTimeout(r)}setInterval(r,o){return w(this,ur).setInterval(r,o)}clearInterval(r){w(this,ur).clearInterval(r)}},ur=new WeakMap,Vu=new WeakMap,Ip),Lr=new py;function hy(r){setTimeout(r,0)}var $r=typeof window>"u"||"Deno"in globalThis;function gt(){}function my(r,o){return typeof r=="function"?r(o):r}function Cu(r){return typeof r=="number"&&r>=0&&r!==1/0}function qp(r,o){return Math.max(r+(o||0)-Date.now(),0)}function vr(r,o){return typeof r=="function"?r(o):r}function Bt(r,o){return typeof r=="function"?r(o):r}function Xf(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:f,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==Qu(m,o.options))return!1}else if(!Ds(o.queryKey,m))return!1}if(i!=="all"){const y=o.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||f&&!f(o))}function Zf(r,o){const{exact:i,status:l,predicate:c,mutationKey:f}=r;if(f){if(!o.options.mutationKey)return!1;if(i){if(Kr(o.options.mutationKey)!==Kr(f))return!1}else if(!Ds(o.options.mutationKey,f))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function Qu(r,o){return((o==null?void 0:o.queryKeyHashFn)||Kr)(r)}function Kr(r){return JSON.stringify(r,(o,i)=>Eu(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Ds(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(i=>Ds(r[i],o[i])):!1}var gy=Object.prototype.hasOwnProperty;function Yp(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=Jf(r)&&Jf(o);if(!l&&!(Eu(r)&&Eu(o)))return o;const f=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,y=l?new Array(p):{};let x=0;for(let P=0;P<p;P++){const j=l?P:m[P],M=r[j],v=o[j];if(M===v){y[j]=M,(l?P<f:gy.call(r,j))&&x++;continue}if(M===null||v===null||typeof M!="object"||typeof v!="object"){y[j]=v;continue}const B=Yp(M,v,i+1);y[j]=B,B===M&&x++}return f===p&&x===f?r:y}function wa(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const i in r)if(r[i]!==o[i])return!1;return!0}function Jf(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Eu(r){if(!ep(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!ep(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function ep(r){return Object.prototype.toString.call(r)==="[object Object]"}function yy(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Nu(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?Yp(r,o):o}function vy(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function xy(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var $u=Symbol();function Xp(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===$u?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Ku(r,o){return typeof r=="function"?r(...o):!!r}function wy(r,o,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Dr,cr,Oo,Lp,Sy=(Lp=class extends Ho{constructor(){super();se(this,Dr);se(this,cr);se(this,Oo);K(this,Oo,o=>{if(!$r&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,cr)||this.setEventListener(w(this,Oo))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,cr))==null||o.call(this),K(this,cr,void 0))}setEventListener(o){var i;K(this,Oo,o),(i=w(this,cr))==null||i.call(this),K(this,cr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Dr)!==o&&(K(this,Dr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(i=>{i(o)})}isFocused(){var o;return typeof w(this,Dr)=="boolean"?w(this,Dr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Dr=new WeakMap,cr=new WeakMap,Oo=new WeakMap,Lp),Gu=new Sy;function Pu(){let r,o;const i=new Promise((c,f)=>{r=c,o=f});i.status="pending",i.catch(()=>{});function l(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},i.reject=c=>{l({status:"rejected",reason:c}),o(c)},i}var ky=hy;function by(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=ky;const f=p=>{o?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(y=>{i(y)})})})};return{batch:p=>{let y;o++;try{y=p()}finally{o--,o||m()}return y},batchCalls:p=>(...y)=>{f(()=>{p(...y)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=by(),_o,dr,zo,Dp,Cy=(Dp=class extends Ho{constructor(){super();se(this,_o,!0);se(this,dr);se(this,zo);K(this,zo,o=>{if(!$r&&window.addEventListener){const i=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){w(this,dr)||this.setEventListener(w(this,zo))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,dr))==null||o.call(this),K(this,dr,void 0))}setEventListener(o){var i;K(this,zo,o),(i=w(this,dr))==null||i.call(this),K(this,dr,o(this.setOnline.bind(this)))}setOnline(o){w(this,_o)!==o&&(K(this,_o,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,_o)}},_o=new WeakMap,dr=new WeakMap,zo=new WeakMap,Dp),Sa=new Cy;function Ey(r){return Math.min(1e3*2**r,3e4)}function Zp(r){return(r??"online")==="online"?Sa.isOnline():!0}var ju=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function Jp(r){let o=!1,i=0,l;const c=Pu(),f=()=>c.status!=="pending",m=E=>{var N;if(!f()){const z=new ju(E);M(z),(N=r.onCancel)==null||N.call(r,z)}},p=()=>{o=!0},y=()=>{o=!1},x=()=>Gu.isFocused()&&(r.networkMode==="always"||Sa.isOnline())&&r.canRun(),P=()=>Zp(r.networkMode)&&r.canRun(),j=E=>{f()||(l==null||l(),c.resolve(E))},M=E=>{f()||(l==null||l(),c.reject(E))},v=()=>new Promise(E=>{var N;l=z=>{(f()||x())&&E(z)},(N=r.onPause)==null||N.call(r)}).then(()=>{var E;l=void 0,f()||(E=r.onContinue)==null||E.call(r)}),B=()=>{if(f())return;let E;const N=i===0?r.initialPromise:void 0;try{E=N??r.fn()}catch(z){E=Promise.reject(z)}Promise.resolve(E).then(j).catch(z=>{var oe;if(f())return;const Q=r.retry??($r?0:3),$=r.retryDelay??Ey,L=typeof $=="function"?$(i,z):$,ee=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,z);if(o||!ee){M(z);return}i++,(oe=r.onFail)==null||oe.call(r,i,z),yy(L).then(()=>x()?void 0:v()).then(()=>{o?M(z):B()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:y,canStart:P,start:()=>(P()?B():v().then(B),c)}}var Ar,Ap,eh=(Ap=class{constructor(){se(this,Ar)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cu(this.gcTime)&&K(this,Ar,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??($r?1/0:300*1e3))}clearGcTimeout(){w(this,Ar)&&(Lr.clearTimeout(w(this,Ar)),K(this,Ar,void 0))}},Ar=new WeakMap,Ap),Fr,Io,Ut,Ur,nt,Us,Br,Jt,Mn,Fp,Ny=(Fp=class extends eh{constructor(o){super();se(this,Jt);se(this,Fr);se(this,Io);se(this,Ut);se(this,Ur);se(this,nt);se(this,Us);se(this,Br);K(this,Br,!1),K(this,Us,o.defaultOptions),this.setOptions(o.options),this.observers=[],K(this,Ur,o.client),K(this,Ut,w(this,Ur).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,K(this,Fr,np(this.options)),this.state=o.state??w(this,Fr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=w(this,nt))==null?void 0:o.promise}setOptions(o){if(this.options={...w(this,Us),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=np(this.options);i.data!==void 0&&(this.setState(tp(i.data,i.dataUpdatedAt)),K(this,Fr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Ut).remove(this)}setData(o,i){const l=Nu(this.state.data,o,this.options);return ge(this,Jt,Mn).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ge(this,Jt,Mn).call(this,{type:"setState",state:o,setStateOptions:i})}cancel(o){var l,c;const i=(l=w(this,nt))==null?void 0:l.promise;return(c=w(this,nt))==null||c.cancel(o),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,Fr))}isActive(){return this.observers.some(o=>Bt(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$u||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>vr(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:!qp(this.state.dataUpdatedAt,o)}onFocus(){var i;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}onOnline(){var i;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),w(this,Ut).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(i=>i!==o),this.observers.length||(w(this,nt)&&(w(this,Br)?w(this,nt).cancel({revert:!0}):w(this,nt).cancelRetry()),this.scheduleGc()),w(this,Ut).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Jt,Mn).call(this,{type:"invalidate"})}async fetch(o,i){var y,x,P,j,M,v,B,E,N,z,Q,$;if(this.state.fetchStatus!=="idle"&&((y=w(this,nt))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(w(this,nt))return w(this,nt).continueRetry(),w(this,nt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const L=this.observers.find(ee=>ee.options.queryFn);L&&this.setOptions(L.options)}const l=new AbortController,c=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(K(this,Br,!0),l.signal)})},f=()=>{const L=Xp(this.options,i),oe=(()=>{const ne={client:w(this,Ur),queryKey:this.queryKey,meta:this.meta};return c(ne),ne})();return K(this,Br,!1),this.options.persister?this.options.persister(L,oe,this):L(oe)},p=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,Ur),state:this.state,fetchFn:f};return c(L),L})();(x=this.options.behavior)==null||x.onFetch(p,this),K(this,Io,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=p.fetchOptions)==null?void 0:P.meta))&&ge(this,Jt,Mn).call(this,{type:"fetch",meta:(j=p.fetchOptions)==null?void 0:j.meta}),K(this,nt,Jp({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:L=>{L instanceof ju&&L.revert&&this.setState({...w(this,Io),fetchStatus:"idle"}),l.abort()},onFail:(L,ee)=>{ge(this,Jt,Mn).call(this,{type:"failed",failureCount:L,error:ee})},onPause:()=>{ge(this,Jt,Mn).call(this,{type:"pause"})},onContinue:()=>{ge(this,Jt,Mn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const L=await w(this,nt).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(v=(M=w(this,Ut).config).onSuccess)==null||v.call(M,L,this),(E=(B=w(this,Ut).config).onSettled)==null||E.call(B,L,this.state.error,this),L}catch(L){if(L instanceof ju){if(L.silent)return w(this,nt).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw ge(this,Jt,Mn).call(this,{type:"error",error:L}),(z=(N=w(this,Ut).config).onError)==null||z.call(N,L,this),($=(Q=w(this,Ut).config).onSettled)==null||$.call(Q,this.state.data,L,this),L}finally{this.scheduleGc()}}},Fr=new WeakMap,Io=new WeakMap,Ut=new WeakMap,Ur=new WeakMap,nt=new WeakMap,Us=new WeakMap,Br=new WeakMap,Jt=new WeakSet,Mn=function(o){const i=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,...th(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...tp(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return K(this,Io,o.manual?c:void 0),c;case"error":const f=o.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Ut).notify({query:this,type:"updated",action:o})})},Fp);function th(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zp(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function tp(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function np(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,i=o!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Et,Se,Bs,mt,Wr,Lo,Tn,fr,Ws,Do,Ao,Vr,Hr,pr,Fo,Re,Ls,Ru,Mu,Tu,Ou,_u,zu,Iu,nh,Up,Py=(Up=class extends Ho{constructor(o,i){super();se(this,Re);se(this,Et);se(this,Se);se(this,Bs);se(this,mt);se(this,Wr);se(this,Lo);se(this,Tn);se(this,fr);se(this,Ws);se(this,Do);se(this,Ao);se(this,Vr);se(this,Hr);se(this,pr);se(this,Fo,new Set);this.options=i,K(this,Et,o),K(this,fr,null),K(this,Tn,Pu()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Se).addObserver(this),rp(w(this,Se),this.options)?ge(this,Re,Ls).call(this):this.updateResult(),ge(this,Re,Ou).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lu(w(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lu(w(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,Re,_u).call(this),ge(this,Re,zu).call(this),w(this,Se).removeObserver(this)}setOptions(o){const i=this.options,l=w(this,Se);if(this.options=w(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,w(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,Re,Iu).call(this),w(this,Se).setOptions(this.options),i._defaulted&&!wa(this.options,i)&&w(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Se),observer:this});const c=this.hasListeners();c&&op(w(this,Se),l,this.options,i)&&ge(this,Re,Ls).call(this),this.updateResult(),c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||vr(this.options.staleTime,w(this,Se))!==vr(i.staleTime,w(this,Se)))&&ge(this,Re,Ru).call(this);const f=ge(this,Re,Mu).call(this);c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||f!==w(this,pr))&&ge(this,Re,Tu).call(this,f)}getOptimisticResult(o){const i=w(this,Et).getQueryCache().build(w(this,Et),o),l=this.createResult(i,o);return Ry(this,l)&&(K(this,mt,l),K(this,Lo,this.options),K(this,Wr,w(this,Se).state)),l}getCurrentResult(){return w(this,mt)}trackResult(o,i){return new Proxy(o,{get:(l,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,Tn).status==="pending"&&w(this,Tn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Fo).add(o)}getCurrentQuery(){return w(this,Se)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const i=w(this,Et).defaultQueryOptions(o),l=w(this,Et).getQueryCache().build(w(this,Et),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(o){return ge(this,Re,Ls).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,mt)))}createResult(o,i){var he;const l=w(this,Se),c=this.options,f=w(this,mt),m=w(this,Wr),p=w(this,Lo),x=o!==l?o.state:w(this,Bs),{state:P}=o;let j={...P},M=!1,v;if(i._optimisticResults){const ye=this.hasListeners(),Pe=!ye&&rp(o,i),ae=ye&&op(o,l,i,c);(Pe||ae)&&(j={...j,...th(P.data,o.options)}),i._optimisticResults==="isRestoring"&&(j.fetchStatus="idle")}let{error:B,errorUpdatedAt:E,status:N}=j;v=j.data;let z=!1;if(i.placeholderData!==void 0&&v===void 0&&N==="pending"){let ye;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ye=f.data,z=!0):ye=typeof i.placeholderData=="function"?i.placeholderData((he=w(this,Ao))==null?void 0:he.state.data,w(this,Ao)):i.placeholderData,ye!==void 0&&(N="success",v=Nu(f==null?void 0:f.data,ye,i),M=!0)}if(i.select&&v!==void 0&&!z)if(f&&v===(m==null?void 0:m.data)&&i.select===w(this,Ws))v=w(this,Do);else try{K(this,Ws,i.select),v=i.select(v),v=Nu(f==null?void 0:f.data,v,i),K(this,Do,v),K(this,fr,null)}catch(ye){K(this,fr,ye)}w(this,fr)&&(B=w(this,fr),v=w(this,Do),E=Date.now(),N="error");const Q=j.fetchStatus==="fetching",$=N==="pending",L=N==="error",ee=$&&Q,oe=v!==void 0,ie={status:N,fetchStatus:j.fetchStatus,isPending:$,isSuccess:N==="success",isError:L,isInitialLoading:ee,isLoading:ee,data:v,dataUpdatedAt:j.dataUpdatedAt,error:B,errorUpdatedAt:E,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>x.dataUpdateCount||j.errorUpdateCount>x.errorUpdateCount,isFetching:Q,isRefetching:Q&&!$,isLoadingError:L&&!oe,isPaused:j.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:L&&oe,isStale:qu(o,i),refetch:this.refetch,promise:w(this,Tn),isEnabled:Bt(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const ye=ie.data!==void 0,Pe=ie.status==="error"&&!ye,ae=Be=>{Pe?Be.reject(ie.error):ye&&Be.resolve(ie.data)},Ae=()=>{const Be=K(this,Tn,ie.promise=Pu());ae(Be)},Te=w(this,Tn);switch(Te.status){case"pending":o.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Pe||ie.data!==Te.value)&&Ae();break;case"rejected":(!Pe||ie.error!==Te.reason)&&Ae();break}}return ie}updateResult(){const o=w(this,mt),i=this.createResult(w(this,Se),this.options);if(K(this,Wr,w(this,Se).state),K(this,Lo,this.options),w(this,Wr).data!==void 0&&K(this,Ao,w(this,Se)),wa(i,o))return;K(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!w(this,Fo).size)return!0;const m=new Set(f??w(this,Fo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,mt)).some(p=>{const y=p;return w(this,mt)[y]!==o[y]&&m.has(y)})};ge(this,Re,nh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,Re,Ou).call(this)}},Et=new WeakMap,Se=new WeakMap,Bs=new WeakMap,mt=new WeakMap,Wr=new WeakMap,Lo=new WeakMap,Tn=new WeakMap,fr=new WeakMap,Ws=new WeakMap,Do=new WeakMap,Ao=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,pr=new WeakMap,Fo=new WeakMap,Re=new WeakSet,Ls=function(o){ge(this,Re,Iu).call(this);let i=w(this,Se).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},Ru=function(){ge(this,Re,_u).call(this);const o=vr(this.options.staleTime,w(this,Se));if($r||w(this,mt).isStale||!Cu(o))return;const l=qp(w(this,mt).dataUpdatedAt,o)+1;K(this,Vr,Lr.setTimeout(()=>{w(this,mt).isStale||this.updateResult()},l))},Mu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Se)):this.options.refetchInterval)??!1},Tu=function(o){ge(this,Re,zu).call(this),K(this,pr,o),!($r||Bt(this.options.enabled,w(this,Se))===!1||!Cu(w(this,pr))||w(this,pr)===0)&&K(this,Hr,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||Gu.isFocused())&&ge(this,Re,Ls).call(this)},w(this,pr)))},Ou=function(){ge(this,Re,Ru).call(this),ge(this,Re,Tu).call(this,ge(this,Re,Mu).call(this))},_u=function(){w(this,Vr)&&(Lr.clearTimeout(w(this,Vr)),K(this,Vr,void 0))},zu=function(){w(this,Hr)&&(Lr.clearInterval(w(this,Hr)),K(this,Hr,void 0))},Iu=function(){const o=w(this,Et).getQueryCache().build(w(this,Et),this.options);if(o===w(this,Se))return;const i=w(this,Se);K(this,Se,o),K(this,Bs,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},nh=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(w(this,mt))}),w(this,Et).getQueryCache().notify({query:w(this,Se),type:"observerResultsUpdated"})})},Up);function jy(r,o){return Bt(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function rp(r,o){return jy(r,o)||r.state.data!==void 0&&Lu(r,o,o.refetchOnMount)}function Lu(r,o,i){if(Bt(o.enabled,r)!==!1&&vr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&qu(r,o)}return!1}function op(r,o,i,l){return(r!==o||Bt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&qu(r,i)}function qu(r,o){return Bt(o.enabled,r)!==!1&&r.isStaleByTime(vr(o.staleTime,r))}function Ry(r,o){return!wa(r.getCurrentResult(),o)}function sp(r){return{onFetch:(o,i)=>{var P,j,M,v,B;const l=o.options,c=(M=(j=(P=o.fetchOptions)==null?void 0:P.meta)==null?void 0:j.fetchMore)==null?void 0:M.direction,f=((v=o.state.data)==null?void 0:v.pages)||[],m=((B=o.state.data)==null?void 0:B.pageParams)||[];let p={pages:[],pageParams:[]},y=0;const x=async()=>{let E=!1;const N=$=>{wy($,()=>o.signal,()=>E=!0)},z=Xp(o.options,o.fetchOptions),Q=async($,L,ee)=>{if(E)return Promise.reject();if(L==null&&$.pages.length)return Promise.resolve($);const ne=(()=>{const Pe={client:o.client,queryKey:o.queryKey,pageParam:L,direction:ee?"backward":"forward",meta:o.options.meta};return N(Pe),Pe})(),ie=await z(ne),{maxPages:he}=o.options,ye=ee?xy:vy;return{pages:ye($.pages,ie,he),pageParams:ye($.pageParams,L,he)}};if(c&&f.length){const $=c==="backward",L=$?My:ip,ee={pages:f,pageParams:m},oe=L(l,ee);p=await Q(ee,oe,$)}else{const $=r??f.length;do{const L=y===0?m[0]??l.initialPageParam:ip(l,p);if(y>0&&L==null)break;p=await Q(p,L),y++}while(y<$)}return p};o.options.persister?o.fetchFn=()=>{var E,N;return(N=(E=o.options).persister)==null?void 0:N.call(E,x,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=x}}}function ip(r,{pages:o,pageParams:i}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,i[l],i):void 0}function My(r,{pages:o,pageParams:i}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,i[0],i):void 0}var Vs,mn,ct,Qr,gn,ar,Bp,Ty=(Bp=class extends eh{constructor(o){super();se(this,gn);se(this,Vs);se(this,mn);se(this,ct);se(this,Qr);K(this,Vs,o.client),this.mutationId=o.mutationId,K(this,ct,o.mutationCache),K(this,mn,[]),this.state=o.state||rh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){w(this,mn).includes(o)||(w(this,mn).push(o),this.clearGcTimeout(),w(this,ct).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){K(this,mn,w(this,mn).filter(i=>i!==o)),this.scheduleGc(),w(this,ct).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){w(this,mn).length||(this.state.status==="pending"?this.scheduleGc():w(this,ct).remove(this))}continue(){var o;return((o=w(this,Qr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,y,x,P,j,M,v,B,E,N,z,Q,$,L,ee,oe,ne;const i=()=>{ge(this,gn,ar).call(this,{type:"continue"})},l={client:w(this,Vs),meta:this.options.meta,mutationKey:this.options.mutationKey};K(this,Qr,Jp({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(ie,he)=>{ge(this,gn,ar).call(this,{type:"failed",failureCount:ie,error:he})},onPause:()=>{ge(this,gn,ar).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,ct).canRun(this)}));const c=this.state.status==="pending",f=!w(this,Qr).canStart();try{if(c)i();else{ge(this,gn,ar).call(this,{type:"pending",variables:o,isPaused:f}),w(this,ct).config.onMutate&&await w(this,ct).config.onMutate(o,this,l);const he=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));he!==this.state.context&&ge(this,gn,ar).call(this,{type:"pending",context:he,variables:o,isPaused:f})}const ie=await w(this,Qr).start();return await((x=(y=w(this,ct).config).onSuccess)==null?void 0:x.call(y,ie,o,this.state.context,this,l)),await((j=(P=this.options).onSuccess)==null?void 0:j.call(P,ie,o,this.state.context,l)),await((v=(M=w(this,ct).config).onSettled)==null?void 0:v.call(M,ie,null,this.state.variables,this.state.context,this,l)),await((E=(B=this.options).onSettled)==null?void 0:E.call(B,ie,null,o,this.state.context,l)),ge(this,gn,ar).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((z=(N=w(this,ct).config).onError)==null?void 0:z.call(N,ie,o,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await(($=(Q=this.options).onError)==null?void 0:$.call(Q,ie,o,this.state.context,l))}catch(he){Promise.reject(he)}try{await((ee=(L=w(this,ct).config).onSettled)==null?void 0:ee.call(L,void 0,ie,this.state.variables,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await((ne=(oe=this.options).onSettled)==null?void 0:ne.call(oe,void 0,ie,o,this.state.context,l))}catch(he){Promise.reject(he)}throw ge(this,gn,ar).call(this,{type:"error",error:ie}),ie}finally{w(this,ct).runNext(this)}}},Vs=new WeakMap,mn=new WeakMap,ct=new WeakMap,Qr=new WeakMap,gn=new WeakSet,ar=function(o){const i=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=i(this.state),Xe.batch(()=>{w(this,mn).forEach(l=>{l.onMutationUpdate(o)}),w(this,ct).notify({mutation:this,type:"updated",action:o})})},Bp);function rh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var On,en,Hs,Wp,Oy=(Wp=class extends Ho{constructor(o={}){super();se(this,On);se(this,en);se(this,Hs);this.config=o,K(this,On,new Set),K(this,en,new Map),K(this,Hs,0)}build(o,i,l){const c=new Ty({client:o,mutationCache:this,mutationId:++aa(this,Hs)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){w(this,On).add(o);const i=ua(o);if(typeof i=="string"){const l=w(this,en).get(i);l?l.push(o):w(this,en).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,On).delete(o)){const i=ua(o);if(typeof i=="string"){const l=w(this,en).get(i);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&w(this,en).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=ua(o);if(typeof i=="string"){const l=w(this,en).get(i),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=ua(o);if(typeof i=="string"){const c=(l=w(this,en).get(i))==null?void 0:l.find(f=>f!==o&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{w(this,On).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,On).clear(),w(this,en).clear()})}getAll(){return Array.from(w(this,On))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>Zf(i,l))}findAll(o={}){return this.getAll().filter(i=>Zf(o,i))}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}resumePausedMutations(){const o=this.getAll().filter(i=>i.state.isPaused);return Xe.batch(()=>Promise.all(o.map(i=>i.continue().catch(gt))))}},On=new WeakMap,en=new WeakMap,Hs=new WeakMap,Wp);function ua(r){var o;return(o=r.options.scope)==null?void 0:o.id}var _n,hr,Nt,zn,Ln,ga,Du,Vp,_y=(Vp=class extends Ho{constructor(i,l){super();se(this,Ln);se(this,_n);se(this,hr);se(this,Nt);se(this,zn);K(this,_n,i),this.setOptions(l),this.bindMethods(),ge(this,Ln,ga).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const l=this.options;this.options=w(this,_n).defaultMutationOptions(i),wa(this.options,l)||w(this,_n).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Kr(l.mutationKey)!==Kr(this.options.mutationKey)?this.reset():((c=w(this,Nt))==null?void 0:c.state.status)==="pending"&&w(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=w(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){ge(this,Ln,ga).call(this),ge(this,Ln,Du).call(this,i)}getCurrentResult(){return w(this,hr)}reset(){var i;(i=w(this,Nt))==null||i.removeObserver(this),K(this,Nt,void 0),ge(this,Ln,ga).call(this),ge(this,Ln,Du).call(this)}mutate(i,l){var c;return K(this,zn,l),(c=w(this,Nt))==null||c.removeObserver(this),K(this,Nt,w(this,_n).getMutationCache().build(w(this,_n),this.options)),w(this,Nt).addObserver(this),w(this,Nt).execute(i)}},_n=new WeakMap,hr=new WeakMap,Nt=new WeakMap,zn=new WeakMap,Ln=new WeakSet,ga=function(){var l;const i=((l=w(this,Nt))==null?void 0:l.state)??rh();K(this,hr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Du=function(i){Xe.batch(()=>{var l,c,f,m,p,y,x,P;if(w(this,zn)&&this.hasListeners()){const j=w(this,hr).variables,M=w(this,hr).context,v={client:w(this,_n),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=w(this,zn)).onSuccess)==null||c.call(l,i.data,j,M,v)}catch(B){Promise.reject(B)}try{(m=(f=w(this,zn)).onSettled)==null||m.call(f,i.data,null,j,M,v)}catch(B){Promise.reject(B)}}else if((i==null?void 0:i.type)==="error"){try{(y=(p=w(this,zn)).onError)==null||y.call(p,i.error,j,M,v)}catch(B){Promise.reject(B)}try{(P=(x=w(this,zn)).onSettled)==null||P.call(x,void 0,i.error,j,M,v)}catch(B){Promise.reject(B)}}}this.listeners.forEach(j=>{j(w(this,hr))})})},Vp),yn,Hp,zy=(Hp=class extends Ho{constructor(o={}){super();se(this,yn);this.config=o,K(this,yn,new Map)}build(o,i,l){const c=i.queryKey,f=i.queryHash??Qu(c,i);let m=this.get(f);return m||(m=new Ny({client:o,queryKey:c,queryHash:f,options:o.defaultQueryOptions(i),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){w(this,yn).has(o.queryHash)||(w(this,yn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const i=w(this,yn).get(o.queryHash);i&&(o.destroy(),i===o&&w(this,yn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Xe.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return w(this,yn).get(o)}getAll(){return[...w(this,yn).values()]}find(o){const i={exact:!0,...o};return this.getAll().find(l=>Xf(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>Xf(o,l)):i}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},yn=new WeakMap,Hp),Qe,mr,gr,Uo,Bo,yr,Wo,Vo,Qp,Iy=(Qp=class{constructor(r={}){se(this,Qe);se(this,mr);se(this,gr);se(this,Uo);se(this,Bo);se(this,yr);se(this,Wo);se(this,Vo);K(this,Qe,r.queryCache||new zy),K(this,mr,r.mutationCache||new Oy),K(this,gr,r.defaultOptions||{}),K(this,Uo,new Map),K(this,Bo,new Map),K(this,yr,0)}mount(){aa(this,yr)._++,w(this,yr)===1&&(K(this,Wo,Gu.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,Qe).onFocus())})),K(this,Vo,Sa.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,Qe).onOnline())})))}unmount(){var r,o;aa(this,yr)._--,w(this,yr)===0&&((r=w(this,Wo))==null||r.call(this),K(this,Wo,void 0),(o=w(this,Vo))==null||o.call(this),K(this,Vo,void 0))}isFetching(r){return w(this,Qe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,mr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,Qe).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=w(this,Qe).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(vr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,Qe).findAll(r).map(({queryKey:o,state:i})=>{const l=i.data;return[o,l]})}setQueryData(r,o,i){const l=this.defaultQueryOptions({queryKey:r}),c=w(this,Qe).get(l.queryHash),f=c==null?void 0:c.state.data,m=my(o,f);if(m!==void 0)return w(this,Qe).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>w(this,Qe).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,i)]))}getQueryState(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,Qe).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=w(this,Qe);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=w(this,Qe);return Xe.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const i={revert:!0,...o},l=Xe.batch(()=>w(this,Qe).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(w(this,Qe).findAll(r).forEach(i=>{i.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},o)))}refetchQueries(r,o={}){const i={...o,cancelRefetch:o.cancelRefetch??!0},l=Xe.batch(()=>w(this,Qe).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(gt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=w(this,Qe).build(this,o);return i.isStaleByTime(vr(o.staleTime,i))?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=sp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=sp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Sa.isOnline()?w(this,mr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,Qe)}getMutationCache(){return w(this,mr)}getDefaultOptions(){return w(this,gr)}setDefaultOptions(r){K(this,gr,r)}setQueryDefaults(r,o){w(this,Uo).set(Kr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Uo).values()],i={};return o.forEach(l=>{Ds(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){w(this,Bo).set(Kr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,Bo).values()],i={};return o.forEach(l=>{Ds(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const o={...w(this,gr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=Qu(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===$u&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,gr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,Qe).clear(),w(this,mr).clear()}},Qe=new WeakMap,mr=new WeakMap,gr=new WeakMap,Uo=new WeakMap,Bo=new WeakMap,yr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,Qp),oh=k.createContext(void 0),Qs=r=>{const o=k.useContext(oh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Ly=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(oh.Provider,{value:r,children:o})),sh=k.createContext(!1),Dy=()=>k.useContext(sh);sh.Provider;function Ay(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Fy=k.createContext(Ay()),Uy=()=>k.useContext(Fy),By=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Ku(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},Wy=r=>{k.useEffect(()=>{r.clearReset()},[r])},Vy=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Ku(i,[r.error,l])),Hy=r=>{if(r.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>i(l(...c)):i(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Qy=(r,o)=>r.isLoading&&r.isFetching&&!o,$y=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,ap=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Ky(r,o,i){var M,v,B,E;const l=Dy(),c=Uy(),f=Qs(),m=f.defaultQueryOptions(r);(v=(M=f.getDefaultOptions().queries)==null?void 0:M._experimental_beforeQuery)==null||v.call(M,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Hy(m),By(m,c,p),Wy(c);const y=!f.getQueryCache().get(m.queryHash),[x]=k.useState(()=>new o(f,m)),P=x.getOptimisticResult(m),j=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(N=>{const z=j?x.subscribe(Xe.batchCalls(N)):gt;return x.updateResult(),z},[x,j]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),k.useEffect(()=>{x.setOptions(m)},[m,x]),$y(m,P))throw ap(m,x,c);if(Vy({result:P,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw P.error;if((E=(B=f.getDefaultOptions().queries)==null?void 0:B._experimental_afterQuery)==null||E.call(B,m,P),m.experimental_prefetchInRender&&!$r&&Qy(P,l)){const N=y?ap(m,x,c):p==null?void 0:p.promise;N==null||N.catch(gt).finally(()=>{x.updateResult()})}return m.notifyOnChangeProps?P:x.trackResult(P)}function ih(r,o){return Ky(r,Py)}function Yu(r,o){const i=Qs(),[l]=k.useState(()=>new _y(i,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=k.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Ku(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const lp=r=>{let o;const i=new Set,l=(x,P)=>{const j=typeof x=="function"?x(o):x;if(!Object.is(j,o)){const M=o;o=P??(typeof j!="object"||j===null)?j:Object.assign({},o,j),i.forEach(v=>v(o,M))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>y,subscribe:x=>(i.add(x),()=>i.delete(x))},y=o=r(l,c,p);return p},Gy=(r=>r?lp(r):lp),qy=r=>r;function Yy(r,o=qy){const i=H.useSyncExternalStore(r.subscribe,H.useCallback(()=>o(r.getState()),[r,o]),H.useCallback(()=>o(r.getInitialState()),[r,o]));return H.useDebugValue(i),i}const up=r=>{const o=Gy(r),i=l=>Yy(o,l);return Object.assign(i,o),i},Xy=(r=>r?up(r):up),qr=Xy(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 ah(r){var o,i,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(o=0;o<c;o++)r[o]&&(i=ah(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function lh(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=ah(r))&&(l&&(l+=" "),l+=o);return l}const Xu="-",Zy=r=>{const o=ev(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(Xu);return p[0]===""&&p.length!==1&&p.shift(),uh(p,o)||Jy(m)},getConflictingClassGroupIds:(m,p)=>{const y=i[m]||[];return p&&l[m]?[...y,...l[m]]:y}}},uh=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?uh(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const f=r.join(Xu);return(m=o.validators.find(({validator:p})=>p(f)))==null?void 0:m.classGroupId},cp=/^\[(.+)\]$/,Jy=r=>{if(cp.test(r)){const o=cp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},ev=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return nv(Object.entries(r.classGroups),i).forEach(([f,m])=>{Au(m,l,f,o)}),l},Au=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const f=c===""?o:dp(o,c);f.classGroupId=i;return}if(typeof c=="function"){if(tv(c)){Au(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,m])=>{Au(m,dp(o,f),i,l)})})},dp=(r,o)=>{let i=r;return o.split(Xu).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},tv=r=>r.isThemeGetter,nv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(f=>typeof f=="string"?o+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,p])=>[o+m,p])):f);return[i,c]}):r,rv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(f,m)=>{i.set(f,m),o++,o>r&&(o=0,l=i,i=new Map)};return{get(f){let m=i.get(f);if(m!==void 0)return m;if((m=l.get(f))!==void 0)return c(f,m),m},set(f,m){i.has(f)?i.set(f,m):c(f,m)}}},ch="!",ov=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],f=o.length,m=p=>{const y=[];let x=0,P=0,j;for(let N=0;N<p.length;N++){let z=p[N];if(x===0){if(z===c&&(l||p.slice(N,N+f)===o)){y.push(p.slice(P,N)),P=N+f;continue}if(z==="/"){j=N;continue}}z==="["?x++:z==="]"&&x--}const M=y.length===0?p:p.substring(P),v=M.startsWith(ch),B=v?M.substring(1):M,E=j&&j>P?j-P:void 0;return{modifiers:y,hasImportantModifier:v,baseClassName:B,maybePostfixModifierPosition:E}};return i?p=>i({className:p,parseClassName:m}):m},sv=r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(l=>{l[0]==="["?(o.push(...i.sort(),l),i=[]):i.push(l)}),o.push(...i.sort()),o},iv=r=>({cache:rv(r.cacheSize),parseClassName:ov(r),...Zy(r)}),av=/\s+/,lv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,f=[],m=r.trim().split(av);let p="";for(let y=m.length-1;y>=0;y-=1){const x=m[y],{modifiers:P,hasImportantModifier:j,baseClassName:M,maybePostfixModifierPosition:v}=i(x);let B=!!v,E=l(B?M.substring(0,v):M);if(!E){if(!B){p=x+(p.length>0?" "+p:p);continue}if(E=l(M),!E){p=x+(p.length>0?" "+p:p);continue}B=!1}const N=sv(P).join(":"),z=j?N+ch:N,Q=z+E;if(f.includes(Q))continue;f.push(Q);const $=c(E,B);for(let L=0;L<$.length;++L){const ee=$[L];f.push(z+ee)}p=x+(p.length>0?" "+p:p)}return p};function uv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=dh(o))&&(l&&(l+=" "),l+=i);return l}const dh=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=dh(r[l]))&&(i&&(i+=" "),i+=o);return i};function cv(r,...o){let i,l,c,f=m;function m(y){const x=o.reduce((P,j)=>j(P),r());return i=iv(x),l=i.cache.get,c=i.cache.set,f=p,p(y)}function p(y){const x=l(y);if(x)return x;const P=lv(y,i);return c(y,P),P}return function(){return f(uv.apply(null,arguments))}}const De=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},fh=/^\[(?:([a-z-]+):)?(.+)\]$/i,dv=/^\d+\/\d+$/,fv=new Set(["px","full","screen"]),pv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hv=/\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$/,mv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=r=>Mo(r)||fv.has(r)||dv.test(r),sr=r=>Qo(r,"length",Ev),Mo=r=>!!r&&!Number.isNaN(Number(r)),hu=r=>Qo(r,"number",Mo),zs=r=>!!r&&Number.isInteger(Number(r)),vv=r=>r.endsWith("%")&&Mo(r.slice(0,-1)),me=r=>fh.test(r),ir=r=>pv.test(r),xv=new Set(["length","size","percentage"]),wv=r=>Qo(r,xv,ph),Sv=r=>Qo(r,"position",ph),kv=new Set(["image","url"]),bv=r=>Qo(r,kv,Pv),Cv=r=>Qo(r,"",Nv),Is=()=>!0,Qo=(r,o,i)=>{const l=fh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},Ev=r=>hv.test(r)&&!mv.test(r),ph=()=>!1,Nv=r=>gv.test(r),Pv=r=>yv.test(r),jv=()=>{const r=De("colors"),o=De("spacing"),i=De("blur"),l=De("brightness"),c=De("borderColor"),f=De("borderRadius"),m=De("borderSpacing"),p=De("borderWidth"),y=De("contrast"),x=De("grayscale"),P=De("hueRotate"),j=De("invert"),M=De("gap"),v=De("gradientColorStops"),B=De("gradientColorStopPositions"),E=De("inset"),N=De("margin"),z=De("opacity"),Q=De("padding"),$=De("saturate"),L=De("scale"),ee=De("sepia"),oe=De("skew"),ne=De("space"),ie=De("translate"),he=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto",me,o],ae=()=>[me,o],Ae=()=>["",Rn,sr],Te=()=>["auto",Mo,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",me],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[Mo,me];return{cacheSize:500,separator:":",theme:{colors:[Is],spacing:[Rn,sr],blur:["none","",ir,me],brightness:C(),borderColor:[r],borderRadius:["none","","full",ir,me],borderSpacing:ae(),borderWidth:Ae(),contrast:C(),grayscale:F(),hueRotate:C(),invert:F(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[vv,sr],inset:Pe(),margin:Pe(),opacity:C(),padding:ae(),saturate:C(),scale:C(),sepia:F(),skew:C(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ir]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Be(),me]}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zs,me]}],basis:[{basis:Pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",zs,me]}],"grid-cols":[{"grid-cols":[Is]}],"col-start-end":[{col:["auto",{span:["full",zs,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[Is]}],"row-start-end":[{row:["auto",{span:[zs,me]},me]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[M]}],"gap-x":[{"gap-x":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,o]}],"min-w":[{"min-w":[me,o,"min","max","fit"]}],"max-w":[{"max-w":[me,o,"none","full","min","max","fit","prose",{screen:[ir]},ir]}],h:[{h:[me,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,o,"auto","min","max","fit"]}],"font-size":[{text:["base",ir,sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hu]}],"font-family":[{font:[Is]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Mo,hu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,sr]}],"underline-offset":[{"underline-offset":["auto",Rn,me]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Sv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...Oe(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:Oe()}],"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:["",...Oe()]}],"outline-offset":[{"outline-offset":[Rn,me]}],"outline-w":[{outline:[Rn,sr]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Rn,sr]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ir,Cv]}],"shadow-color":[{shadow:[Is]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",ir,me]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[j]}],saturate:[{saturate:[$]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[zs,me]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Rn,sr,hu]}],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"]}}},Rv=cv(jv);function Ee(...r){return Rv(lh(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 Mv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hh=(...r)=>r.filter((o,i,l)=>!!o&&o.trim()!==""&&l.indexOf(o)===i).join(" ").trim();/**
46
+ * @license lucide-react v0.462.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Tv={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 Ov=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:m,...p},y)=>k.createElement("svg",{ref:y,...Tv,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:hh("lucide",c),...p},[...m.map(([x,P])=>k.createElement(x,P)),...Array.isArray(f)?f:[f]]));/**
56
+ * @license lucide-react v0.462.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Ue=(r,o)=>{const i=k.forwardRef(({className:l,...c},f)=>k.createElement(Ov,{ref:f,iconNode:o,className:hh(`lucide-${Mv(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
61
+ * @license lucide-react v0.462.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const _v=Ue("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
66
+ * @license lucide-react v0.462.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const zv=Ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
+ * @license lucide-react v0.462.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Iv=Ue("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"}]]);/**
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 Lv=Ue("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"}]]);/**
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 Dv=Ue("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"}]]);/**
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 Av=Ue("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"}]]);/**
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 Fv=Ue("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"}]]);/**
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 mh=Ue("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"}]]);/**
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 gh=Ue("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"}]]);/**
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 ka=Ue("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"}]]);/**
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 Uv=Ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 Zu=Ue("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"}]]);/**
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 ya=Ue("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
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 Ju=Ue("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"}]]);/**
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 Bv=Ue("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 Wv=Ue("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"}]]);/**
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 yh=Ue("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"}]]);/**
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 Vv=Ue("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"}]]);/**
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 Hv=Ue("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"}]]);/**
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 vh=Ue("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"}]]);/**
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 Qv=Ue("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"}]]);/**
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 $v=Ue("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"}]]);/**
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 xh=Ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
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 Kv=Ue("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"}]]),Gv=[{id:"model",label:"Models",icon:Iv},{id:"providers",label:"Providers",icon:vh},{id:"channels",label:"Channels",icon:Ju}];function qv(){const{activeTab:r,setActiveTab:o}=qr();return h.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[h.jsx("div",{className:"px-3 mb-8",children:h.jsxs("div",{className:"flex items-center gap-2 group cursor-pointer",children:[h.jsx("div",{className:"h-7 w-7 rounded-lg overflow-hidden flex items-center justify-center transition-transform duration-fast group-hover:scale-110",children:h.jsx("img",{src:"/logo.svg",alt:"NextClaw Logo",className:"h-full w-full object-contain"})}),h.jsx("h1",{className:"text-lg font-bold text-gray-900 tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:Gv.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Ee("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:[h.jsx(l,{className:Ee("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})})]})}function Yv({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(qv,{}),h.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white rounded-[2rem] shadow-sm overflow-hidden border border-[hsl(40,10%,94%)]",children:h.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:h.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const fp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,pp=lh,Xv=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return pp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=o,m=Object.keys(c).map(x=>{const P=i==null?void 0:i[x],j=f==null?void 0:f[x];if(P===null)return null;const M=fp(P)||fp(j);return c[x][M]}),p=i&&Object.entries(i).reduce((x,P)=>{let[j,M]=P;return M===void 0||(x[j]=M),x},{}),y=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((x,P)=>{let{class:j,className:M,...v}=P;return Object.entries(v).every(B=>{let[E,N]=B;return Array.isArray(N)?N.includes({...f,...p}[E]):{...f,...p}[E]===N})?[...x,j,M]:x},[]);return pp(r,m,y,i==null?void 0:i.class,i==null?void 0:i.className)},Zv=Xv("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"}}),Wt=k.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Ee(Zv({variant:o,size:i,className:r})),ref:c,...l}));Wt.displayName="Button";const Fu=k.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Ee("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),...i}));Fu.displayName="Card";const Jv=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex flex-col space-y-2 p-6",r),...o}));Jv.displayName="CardHeader";const e0=k.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));e0.displayName="CardTitle";const t0=k.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));t0.displayName="CardDescription";const n0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("p-6 pt-0",r),...o}));n0.displayName="CardContent";const r0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex items-center justify-between p-6 pt-0",r),...o}));r0.displayName="CardFooter";const xn=k.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Ee("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,...i}));xn.displayName="Input";const In=k.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Ee("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));In.displayName="Label";function Ot({className:r,...o}){return h.jsx("div",{className:Ee("animate-pulse rounded-md bg-slate-200",r),...o})}const o0="http://127.0.0.1:18791";async function mu(r,o={}){const i=`${o0}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let f=null;if(c)try{f=JSON.parse(c)}catch{}if(!f){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,f}const $o={get:r=>mu(r,{method:"GET"}),put:(r,o)=>mu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>mu(r,{method:"POST",body:JSON.stringify(o)})};async function s0(){const r=await $o.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function i0(){const r=await $o.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function a0(r){const o=await $o.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function l0(r,o){const i=await $o.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function u0(r,o){const i=await $o.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function c0(){const r=await $o.post("/api/channels/feishu/probe",{});if(!r.ok)throw new Error(r.error.message);return r.data}var wh=Gp();const Sh=$p(wh);var d0=r=>{switch(r){case"success":return h0;case"info":return g0;case"warning":return m0;case"error":return y0;default:return null}},f0=Array(12).fill(0),p0=({visible:r,className:o})=>H.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},H.createElement("div",{className:"sonner-spinner"},f0.map((i,l)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),h0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),m0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},H.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"})),g0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),y0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v0=H.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"},H.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),H.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),x0=()=>{let[r,o]=H.useState(document.hidden);return H.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Uu=1,w0=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:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Uu++,f=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:i}),{...p,...r,id:c,dismissible:m,title:i}):p):this.addToast({title:i,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({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 i;o.loading!==void 0&&(i=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=i!==void 0,f,m=l.then(async y=>{if(f=["resolve",y],H.isValidElement(y))c=!1,this.create({id:i,type:"default",message:y});else if(k0(y)&&!y.ok){c=!1;let x=typeof o.error=="function"?await o.error(`HTTP error! status: ${y.status}`):o.error,P=typeof o.description=="function"?await o.description(`HTTP error! status: ${y.status}`):o.description;this.create({id:i,type:"error",message:x,description:P})}else if(o.success!==void 0){c=!1;let x=typeof o.success=="function"?await o.success(y):o.success,P=typeof o.description=="function"?await o.description(y):o.description;this.create({id:i,type:"success",message:x,description:P})}}).catch(async y=>{if(f=["reject",y],o.error!==void 0){c=!1;let x=typeof o.error=="function"?await o.error(y):o.error,P=typeof o.description=="function"?await o.description(y):o.description;this.create({id:i,type:"error",message:x,description:P})}}).finally(()=>{var y;c&&(this.dismiss(i),i=void 0),(y=o.finally)==null||y.call(o)}),p=()=>new Promise((y,x)=>m.then(()=>f[0]==="reject"?x(f[1]):y(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(r,o)=>{let i=(o==null?void 0:o.id)||Uu++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Pt=new w0,S0=(r,o)=>{let i=(o==null?void 0:o.id)||Uu++;return Pt.addToast({title:r,...o,id:i}),i},k0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",b0=S0,C0=()=>Pt.toasts,E0=()=>Pt.getActiveToasts(),wr=Object.assign(b0,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:C0,getToasts:E0});function N0(r,{insertAt:o}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}N0(`: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%)}
181
+ `);function ca(r){return r.label!==void 0}var P0=3,j0="32px",R0="16px",hp=4e3,M0=356,T0=14,O0=20,_0=200;function Zt(...r){return r.filter(Boolean).join(" ")}function z0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var I0=r=>{var o,i,l,c,f,m,p,y,x,P,j;let{invert:M,toast:v,unstyled:B,interacting:E,setHeights:N,visibleToasts:z,heights:Q,index:$,toasts:L,expanded:ee,removeToast:oe,defaultRichColors:ne,closeButton:ie,style:he,cancelButtonStyle:ye,actionButtonStyle:Pe,className:ae="",descriptionClassName:Ae="",duration:Te,position:Be,gap:Oe,loadingIcon:we,expandByDefault:V,classNames:F,icons:W,closeButtonAriaLabel:C="Close toast",pauseWhenPageIsHidden:_}=r,[X,te]=H.useState(null),[de,ve]=H.useState(null),[ce,ke]=H.useState(!1),[je,Ze]=H.useState(!1),[nn,Xr]=H.useState(!1),[Sr,Ko]=H.useState(!1),[Ks,Go]=H.useState(!1),[qo,Zr]=H.useState(0),[Yo,An]=H.useState(0),_t=H.useRef(v.duration||Te||hp),Jr=H.useRef(null),rn=H.useRef(null),Gs=$===0,qs=$+1<=z,dt=v.type,on=v.dismissible!==!1,eo=v.className||"",Ys=v.descriptionClassName||"",sn=H.useMemo(()=>Q.findIndex(pe=>pe.toastId===v.id)||0,[Q,v.id]),kr=H.useMemo(()=>{var pe;return(pe=v.closeButton)!=null?pe:ie},[v.closeButton,ie]),Xs=H.useMemo(()=>v.duration||Te||hp,[v.duration,Te]),to=H.useRef(0),wn=H.useRef(0),Zs=H.useRef(0),an=H.useRef(null),[Xo,Zo]=Be.split("-"),no=H.useMemo(()=>Q.reduce((pe,Ne,_e)=>_e>=sn?pe:pe+Ne.height,0),[Q,sn]),ro=x0(),Fn=v.invert||M,ln=dt==="loading";wn.current=H.useMemo(()=>sn*Oe+no,[sn,no]),H.useEffect(()=>{_t.current=Xs},[Xs]),H.useEffect(()=>{ke(!0)},[]),H.useEffect(()=>{let pe=rn.current;if(pe){let Ne=pe.getBoundingClientRect().height;return An(Ne),N(_e=>[{toastId:v.id,height:Ne,position:v.position},..._e]),()=>N(_e=>_e.filter(ft=>ft.toastId!==v.id))}},[N,v.id]),H.useLayoutEffect(()=>{if(!ce)return;let pe=rn.current,Ne=pe.style.height;pe.style.height="auto";let _e=pe.getBoundingClientRect().height;pe.style.height=Ne,An(_e),N(ft=>ft.find(yt=>yt.toastId===v.id)?ft.map(yt=>yt.toastId===v.id?{...yt,height:_e}:yt):[{toastId:v.id,height:_e,position:v.position},...ft])},[ce,v.title,v.description,N,v.id]);let Vt=H.useCallback(()=>{Ze(!0),Zr(wn.current),N(pe=>pe.filter(Ne=>Ne.toastId!==v.id)),setTimeout(()=>{oe(v)},_0)},[v,oe,N,wn]);H.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let pe;return ee||E||_&&ro?(()=>{if(Zs.current<to.current){let Ne=new Date().getTime()-to.current;_t.current=_t.current-Ne}Zs.current=new Date().getTime()})():_t.current!==1/0&&(to.current=new Date().getTime(),pe=setTimeout(()=>{var Ne;(Ne=v.onAutoClose)==null||Ne.call(v,v),Vt()},_t.current)),()=>clearTimeout(pe)},[ee,E,v,dt,_,ro,Vt]),H.useEffect(()=>{v.delete&&Vt()},[Vt,v.delete]);function Js(){var pe,Ne,_e;return W!=null&&W.loading?H.createElement("div",{className:Zt(F==null?void 0:F.loader,(pe=v==null?void 0:v.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":dt==="loading"},W.loading):we?H.createElement("div",{className:Zt(F==null?void 0:F.loader,(Ne=v==null?void 0:v.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":dt==="loading"},we):H.createElement(p0,{className:Zt(F==null?void 0:F.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:dt==="loading"})}return H.createElement("li",{tabIndex:0,ref:rn,className:Zt(ae,eo,F==null?void 0:F.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,F==null?void 0:F.default,F==null?void 0:F[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:ne,"data-styled":!(v.jsx||v.unstyled||B),"data-mounted":ce,"data-promise":!!v.promise,"data-swiped":Ks,"data-removed":je,"data-visible":qs,"data-y-position":Xo,"data-x-position":Zo,"data-index":$,"data-front":Gs,"data-swiping":nn,"data-dismissible":on,"data-type":dt,"data-invert":Fn,"data-swipe-out":Sr,"data-swipe-direction":de,"data-expanded":!!(ee||V&&ce),style:{"--index":$,"--toasts-before":$,"--z-index":L.length-$,"--offset":`${je?qo:wn.current}px`,"--initial-height":V?"auto":`${Yo}px`,...he,...v.style},onDragEnd:()=>{Xr(!1),te(null),an.current=null},onPointerDown:pe=>{ln||!on||(Jr.current=new Date,Zr(wn.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Xr(!0),an.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Ne,_e,ft;if(Sr||!on)return;an.current=null;let yt=Number(((pe=rn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((Ne=rn.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ht=new Date().getTime()-((_e=Jr.current)==null?void 0:_e.getTime()),rt=X==="x"?yt:vt,un=Math.abs(rt)/Ht;if(Math.abs(rt)>=O0||un>.11){Zr(wn.current),(ft=v.onDismiss)==null||ft.call(v,v),ve(X==="x"?yt>0?"right":"left":vt>0?"down":"up"),Vt(),Ko(!0),Go(!1);return}Xr(!1),te(null)},onPointerMove:pe=>{var Ne,_e,ft,yt;if(!an.current||!on||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let vt=pe.clientY-an.current.y,Ht=pe.clientX-an.current.x,rt=(_e=r.swipeDirections)!=null?_e:z0(Be);!X&&(Math.abs(Ht)>1||Math.abs(vt)>1)&&te(Math.abs(Ht)>Math.abs(vt)?"x":"y");let un={x:0,y:0};X==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(un.y=vt):X==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Ht<0||rt.includes("right")&&Ht>0)&&(un.x=Ht),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&Go(!0),(ft=rn.current)==null||ft.style.setProperty("--swipe-amount-x",`${un.x}px`),(yt=rn.current)==null||yt.style.setProperty("--swipe-amount-y",`${un.y}px`)}},kr&&!v.jsx?H.createElement("button",{"aria-label":C,"data-disabled":ln,"data-close-button":!0,onClick:ln||!on?()=>{}:()=>{var pe;Vt(),(pe=v.onDismiss)==null||pe.call(v,v)},className:Zt(F==null?void 0:F.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(f=W==null?void 0:W.close)!=null?f:v0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:H.createElement(H.Fragment,null,dt||v.icon||v.promise?H.createElement("div",{"data-icon":"",className:Zt(F==null?void 0:F.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Js():null,v.type!=="loading"?v.icon||(W==null?void 0:W[dt])||d0(dt):null):null,H.createElement("div",{"data-content":"",className:Zt(F==null?void 0:F.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},H.createElement("div",{"data-title":"",className:Zt(F==null?void 0:F.title,(y=v==null?void 0:v.classNames)==null?void 0:y.title)},typeof v.title=="function"?v.title():v.title),v.description?H.createElement("div",{"data-description":"",className:Zt(Ae,Ys,F==null?void 0:F.description,(x=v==null?void 0:v.classNames)==null?void 0:x.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&ca(v.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||ye,onClick:pe=>{var Ne,_e;ca(v.cancel)&&on&&((_e=(Ne=v.cancel).onClick)==null||_e.call(Ne,pe),Vt())},className:Zt(F==null?void 0:F.cancelButton,(P=v==null?void 0:v.classNames)==null?void 0:P.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&ca(v.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||Pe,onClick:pe=>{var Ne,_e;ca(v.action)&&((_e=(Ne=v.action).onClick)==null||_e.call(Ne,pe),!pe.defaultPrevented&&Vt())},className:Zt(F==null?void 0:F.actionButton,(j=v==null?void 0:v.classNames)==null?void 0:j.actionButton)},v.action.label):null))};function mp(){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 L0(r,o){let i={};return[r,o].forEach((l,c)=>{let f=c===1,m=f?"--mobile-offset":"--offset",p=f?R0:j0;function y(x){["top","right","bottom","left"].forEach(P=>{i[`${m}-${P}`]=typeof x=="number"?`${x}px`:x})}typeof l=="number"||typeof l=="string"?y(l):typeof l=="object"?["top","right","bottom","left"].forEach(x=>{l[x]===void 0?i[`${m}-${x}`]=p:i[`${m}-${x}`]=typeof l[x]=="number"?`${l[x]}px`:l[x]}):y(p)}),i}var D0=k.forwardRef(function(r,o){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:m,className:p,offset:y,mobileOffset:x,theme:P="light",richColors:j,duration:M,style:v,visibleToasts:B=P0,toastOptions:E,dir:N=mp(),gap:z=T0,loadingIcon:Q,icons:$,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:ee}=r,[oe,ne]=H.useState([]),ie=H.useMemo(()=>Array.from(new Set([l].concat(oe.filter(_=>_.position).map(_=>_.position)))),[oe,l]),[he,ye]=H.useState([]),[Pe,ae]=H.useState(!1),[Ae,Te]=H.useState(!1),[Be,Oe]=H.useState(P!=="system"?P:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),we=H.useRef(null),V=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=H.useRef(null),W=H.useRef(!1),C=H.useCallback(_=>{ne(X=>{var te;return(te=X.find(de=>de.id===_.id))!=null&&te.delete||Pt.dismiss(_.id),X.filter(({id:de})=>de!==_.id)})},[]);return H.useEffect(()=>Pt.subscribe(_=>{if(_.dismiss){ne(X=>X.map(te=>te.id===_.id?{...te,delete:!0}:te));return}setTimeout(()=>{Sh.flushSync(()=>{ne(X=>{let te=X.findIndex(de=>de.id===_.id);return te!==-1?[...X.slice(0,te),{...X[te],..._},...X.slice(te+1)]:[_,...X]})})})}),[]),H.useEffect(()=>{if(P!=="system"){Oe(P);return}if(P==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Oe("dark"):Oe("light")),typeof window>"u")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:X})=>{Oe(X?"dark":"light")})}catch{_.addListener(({matches:te})=>{try{Oe(te?"dark":"light")}catch(de){console.error(de)}})}},[P]),H.useEffect(()=>{oe.length<=1&&ae(!1)},[oe]),H.useEffect(()=>{let _=X=>{var te,de;c.every(ve=>X[ve]||X.code===ve)&&(ae(!0),(te=we.current)==null||te.focus()),X.code==="Escape"&&(document.activeElement===we.current||(de=we.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),H.useEffect(()=>{if(we.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,W.current=!1)}},[we.current]),H.createElement("section",{ref:o,"aria-label":`${L} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((_,X)=>{var te;let[de,ve]=_.split("-");return oe.length?H.createElement("ol",{key:_,dir:N==="auto"?mp():N,tabIndex:-1,ref:we,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Pe&&oe.length>1&&!f,"data-x-position":ve,style:{"--front-toast-height":`${((te=he[0])==null?void 0:te.height)||0}px`,"--width":`${M0}px`,"--gap":`${z}px`,...v,...L0(y,x)},onBlur:ce=>{W.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(W.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||W.current||(W.current=!0,F.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{Ae||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},oe.filter(ce=>!ce.position&&X===0||ce.position===_).map((ce,ke)=>{var je,Ze;return H.createElement(I0,{key:ce.id,icons:$,index:ke,toast:ce,defaultRichColors:j,duration:(je=E==null?void 0:E.duration)!=null?je:M,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:B,closeButton:(Ze=E==null?void 0:E.closeButton)!=null?Ze:m,interacting:Ae,position:_,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,removeToast:C,toasts:oe.filter(nn=>nn.position==ce.position),heights:he.filter(nn=>nn.position==ce.position),setHeights:ye,expandByDefault:f,gap:z,loadingIcon:Q,expanded:Pe,pauseWhenPageIsHidden:ee,swipeDirections:r.swipeDirections})})):null}))});const gp={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"},temperature:{zh:"温度",en:"Temperature"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},appSecret:{zh:"App Secret",en:"App Secret"},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"},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 q(r,o="en"){var i,l;return((i=gp[r])==null?void 0:i[o])||((l=gp[r])==null?void 0:l.en)||r}function $s(){return ih({queryKey:["config"],queryFn:s0,staleTime:3e4,refetchOnWindowFocus:!0})}function ec(){return ih({queryKey:["config-meta"],queryFn:i0,staleTime:1/0})}function A0(){const r=Qs();return Yu({mutationFn:a0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wr.success(q("configSaved"))},onError:o=>{wr.error(q("configSaveFailed")+": "+o.message)}})}function F0(){const r=Qs();return Yu({mutationFn:({provider:o,data:i})=>l0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wr.success(q("configSaved"))},onError:o=>{wr.error(q("configSaveFailed")+": "+o.message)}})}function U0(){const r=Qs();return Yu({mutationFn:({channel:o,data:i})=>u0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wr.success(q("configSavedApplied"))},onError:o=>{wr.error(q("configSaveFailed")+": "+o.message)}})}function yp(){const{data:r,isLoading:o}=$s(),i=A0(),[l,c]=k.useState(""),[f,m]=k.useState(""),[p,y]=k.useState(8192),[x,P]=k.useState(.7);k.useEffect(()=>{var M;(M=r==null?void 0:r.agents)!=null&&M.defaults&&(c(r.agents.defaults.model||""),m(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192),P(r.agents.defaults.temperature||.7))},[r]);const j=M=>{M.preventDefault(),i.mutate({model:l})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-8 w-32"}),h.jsx(Ot,{className:"h-4 w-48"})]}),h.jsxs(Fu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Ot,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-5 w-24"}),h.jsx(Ot,{className:"h-3 w-32"})]})]}),h.jsx(Ot,{className:"h-4 w-20 mb-2"}),h.jsx(Ot,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Fu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Ot,{className:"h-5 w-24 mb-2"}),h.jsx(Ot,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-28 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-32 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]})]})]})]}):h.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and behavior parameters"})]}),h.jsxs("form",{onSubmit:j,className:"space-y-8",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(vh,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(In,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Model Name"}),h.jsx(xn,{id:"model",value:l,onChange:M=>c(M.target.value),placeholder:"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:"Examples: minimax/MiniMax-M2.1 · anthropic/claude-opus-4-5"})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Fv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(In,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Default Path"}),h.jsx(xn,{id:"workspace",value:f,onChange:M=>m(M.target.value),placeholder:"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Hv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(In,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:p.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:p,onChange:M=>y(parseInt(M.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(In,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Temperature"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:x,onChange:M=>P(parseFloat(M.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(Wt,{type:"submit",disabled:i.isPending,size:"lg",children:i.isPending?h.jsx(Uv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function xr(r,o,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function vp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function kh(...r){return o=>{let i=!1;const l=r.map(c=>{const f=vp(c,o);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<l.length;c++){const f=l[c];typeof f=="function"?f():vp(r[c],null)}}}}function Yr(...r){return k.useCallback(kh(...r),r)}function B0(r,o){const i=k.createContext(o),l=f=>{const{children:m,...p}=f,y=k.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:y,children:m})};l.displayName=r+"Provider";function c(f){const m=k.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,c]}function W0(r,o=[]){let i=[];function l(f,m){const p=k.createContext(m),y=i.length;i=[...i,m];const x=j=>{var z;const{scope:M,children:v,...B}=j,E=((z=M==null?void 0:M[r])==null?void 0:z[y])||p,N=k.useMemo(()=>B,Object.values(B));return h.jsx(E.Provider,{value:N,children:v})};x.displayName=f+"Provider";function P(j,M){var E;const v=((E=M==null?void 0:M[r])==null?void 0:E[y])||p,B=k.useContext(v);if(B)return B;if(m!==void 0)return m;throw new Error(`\`${j}\` must be used within \`${f}\``)}return[x,P]}const c=()=>{const f=i.map(m=>k.createContext(m));return function(p){const y=(p==null?void 0:p[r])||f;return k.useMemo(()=>({[`__scope${r}`]:{...p,[r]:y}}),[p,y])}};return c.scopeName=r,[l,V0(c,...o)]}function V0(...r){const o=r[0];if(r.length===1)return o;const i=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const m=l.reduce((p,{useScope:y,scopeName:x})=>{const j=y(f)[`__scope${x}`];return{...p,...j}},{});return k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var As=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},H0=Kp[" useId ".trim().toString()]||(()=>{}),Q0=0;function gu(r){const[o,i]=k.useState(H0());return As(()=>{i(l=>l??String(Q0++))},[r]),r||(o?`radix-${o}`:"")}var $0=Kp[" useInsertionEffect ".trim().toString()]||As;function K0({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,f,m]=G0({defaultProp:o,onChange:i}),p=r!==void 0,y=p?r:c;{const P=k.useRef(r!==void 0);k.useEffect(()=>{const j=P.current;j!==p&&console.warn(`${l} is changing from ${j?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),P.current=p},[p,l])}const x=k.useCallback(P=>{var j;if(p){const M=q0(P)?P(r):P;M!==r&&((j=m.current)==null||j.call(m,M))}else f(P)},[p,r,f,m]);return[y,x]}function G0({defaultProp:r,onChange:o}){const[i,l]=k.useState(r),c=k.useRef(i),f=k.useRef(o);return $0(()=>{f.current=o},[o]),k.useEffect(()=>{var m;c.current!==i&&((m=f.current)==null||m.call(f,i),c.current=i)},[i,c]),[i,l,f]}function q0(r){return typeof r=="function"}function bh(r){const o=Y0(r),i=k.forwardRef((l,c)=>{const{children:f,...m}=l,p=k.Children.toArray(f),y=p.find(Z0);if(y){const x=y.props.children,P=p.map(j=>j===y?k.Children.count(x)>1?k.Children.only(null):k.isValidElement(x)?x.props.children:null:j);return h.jsx(o,{...m,ref:c,children:k.isValidElement(x)?k.cloneElement(x,void 0,P):null})}return h.jsx(o,{...m,ref:c,children:f})});return i.displayName=`${r}.Slot`,i}function Y0(r){const o=k.forwardRef((i,l)=>{const{children:c,...f}=i;if(k.isValidElement(c)){const m=e1(c),p=J0(f,c.props);return c.type!==k.Fragment&&(p.ref=l?kh(l,m):m),k.cloneElement(c,p)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var X0=Symbol("radix.slottable");function Z0(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===X0}function J0(r,o){const i={...o};for(const l in o){const c=r[l],f=o[l];/^on[A-Z]/.test(l)?c&&f?i[l]=(...p)=>{const y=f(...p);return c(...p),y}:c&&(i[l]=c):l==="style"?i[l]={...c,...f}:l==="className"&&(i[l]=[c,f].filter(Boolean).join(" "))}return{...r,...i}}function e1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var t1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dn=t1.reduce((r,o)=>{const i=bh(`Primitive.${o}`),l=k.forwardRef((c,f)=>{const{asChild:m,...p}=c,y=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...p,ref:f})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function n1(r,o){r&&wh.flushSync(()=>r.dispatchEvent(o))}function Fs(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function r1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[i,o])}var o1="DismissableLayer",Bu="dismissableLayer.update",s1="dismissableLayer.pointerDownOutside",i1="dismissableLayer.focusOutside",xp,Ch=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...y}=r,x=k.useContext(Ch),[P,j]=k.useState(null),M=(P==null?void 0:P.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),B=Yr(o,ne=>j(ne)),E=Array.from(x.layers),[N]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),z=E.indexOf(N),Q=P?E.indexOf(P):-1,$=x.layersWithOutsidePointerEventsDisabled.size>0,L=Q>=z,ee=u1(ne=>{const ie=ne.target,he=[...x.branches].some(ye=>ye.contains(ie));!L||he||(c==null||c(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},M),oe=c1(ne=>{const ie=ne.target;[...x.branches].some(ye=>ye.contains(ie))||(f==null||f(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},M);return r1(ne=>{Q===x.layers.size-1&&(l==null||l(ne),!ne.defaultPrevented&&p&&(ne.preventDefault(),p()))},M),k.useEffect(()=>{if(P)return i&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(xp=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(P)),x.layers.add(P),wp(),()=>{i&&x.layersWithOutsidePointerEventsDisabled.size===1&&(M.body.style.pointerEvents=xp)}},[P,M,i,x]),k.useEffect(()=>()=>{P&&(x.layers.delete(P),x.layersWithOutsidePointerEventsDisabled.delete(P),wp())},[P,x]),k.useEffect(()=>{const ne=()=>v({});return document.addEventListener(Bu,ne),()=>document.removeEventListener(Bu,ne)},[]),h.jsx(Dn.div,{...y,ref:B,style:{pointerEvents:$?L?"auto":"none":void 0,...r.style},onFocusCapture:xr(r.onFocusCapture,oe.onFocusCapture),onBlurCapture:xr(r.onBlurCapture,oe.onBlurCapture),onPointerDownCapture:xr(r.onPointerDownCapture,ee.onPointerDownCapture)})});Eh.displayName=o1;var a1="DismissableLayerBranch",l1=k.forwardRef((r,o)=>{const i=k.useContext(Ch),l=k.useRef(null),c=Yr(o,l);return k.useEffect(()=>{const f=l.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),h.jsx(Dn.div,{...r,ref:c})});l1.displayName=a1;function u1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const f=p=>{if(p.target&&!l.current){let y=function(){Nh(s1,i,x,{discrete:!0})};const x={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=y,o.addEventListener("click",c.current,{once:!0})):y()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",f),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function c1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r),l=k.useRef(!1);return k.useEffect(()=>{const c=f=>{f.target&&!l.current&&Nh(i1,i,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function wp(){const r=new CustomEvent(Bu);document.dispatchEvent(r)}function Nh(r,o,i,{discrete:l}){const c=i.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?n1(c,f):c.dispatchEvent(f)}var yu="focusScope.autoFocusOnMount",vu="focusScope.autoFocusOnUnmount",Sp={bubbles:!1,cancelable:!0},d1="FocusScope",Ph=k.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...m}=r,[p,y]=k.useState(null),x=Fs(c),P=Fs(f),j=k.useRef(null),M=Yr(o,E=>y(E)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let E=function($){if(v.paused||!p)return;const L=$.target;p.contains(L)?j.current=L:lr(j.current,{select:!0})},N=function($){if(v.paused||!p)return;const L=$.relatedTarget;L!==null&&(p.contains(L)||lr(j.current,{select:!0}))},z=function($){if(document.activeElement===document.body)for(const ee of $)ee.removedNodes.length>0&&lr(p)};document.addEventListener("focusin",E),document.addEventListener("focusout",N);const Q=new MutationObserver(z);return p&&Q.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",N),Q.disconnect()}}},[l,p,v.paused]),k.useEffect(()=>{if(p){bp.add(v);const E=document.activeElement;if(!p.contains(E)){const z=new CustomEvent(yu,Sp);p.addEventListener(yu,x),p.dispatchEvent(z),z.defaultPrevented||(f1(y1(jh(p)),{select:!0}),document.activeElement===E&&lr(p))}return()=>{p.removeEventListener(yu,x),setTimeout(()=>{const z=new CustomEvent(vu,Sp);p.addEventListener(vu,P),p.dispatchEvent(z),z.defaultPrevented||lr(E??document.body,{select:!0}),p.removeEventListener(vu,P),bp.remove(v)},0)}}},[p,x,P,v]);const B=k.useCallback(E=>{if(!i&&!l||v.paused)return;const N=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,z=document.activeElement;if(N&&z){const Q=E.currentTarget,[$,L]=p1(Q);$&&L?!E.shiftKey&&z===L?(E.preventDefault(),i&&lr($,{select:!0})):E.shiftKey&&z===$&&(E.preventDefault(),i&&lr(L,{select:!0})):z===Q&&E.preventDefault()}},[i,l,v.paused]);return h.jsx(Dn.div,{tabIndex:-1,...m,ref:M,onKeyDown:B})});Ph.displayName=d1;function f1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(lr(l,{select:o}),document.activeElement!==i)return}function p1(r){const o=jh(r),i=kp(o,r),l=kp(o.reverse(),r);return[i,l]}function jh(r){const o=[],i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function kp(r,o){for(const i of r)if(!h1(i,{upTo:o}))return i}function h1(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 m1(r){return r instanceof HTMLInputElement&&"select"in r}function lr(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&m1(r)&&o&&r.select()}}var bp=g1();function g1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Cp(r,o),r.unshift(o)},remove(o){var i;r=Cp(r,o),(i=r[0])==null||i.resume()}}}function Cp(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function y1(r){return r.filter(o=>o.tagName!=="A")}var v1="Portal",Rh=k.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,f]=k.useState(!1);As(()=>f(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Sh.createPortal(h.jsx(Dn.div,{...l,ref:o}),m):null});Rh.displayName=v1;function x1(r,o){return k.useReducer((i,l)=>o[i][l]??i,r)}var Ca=r=>{const{present:o,children:i}=r,l=w1(o),c=typeof i=="function"?i({present:l.isPresent}):k.Children.only(i),f=Yr(l.ref,S1(c));return typeof i=="function"||l.isPresent?k.cloneElement(c,{ref:f}):null};Ca.displayName="Presence";function w1(r){const[o,i]=k.useState(),l=k.useRef(null),c=k.useRef(r),f=k.useRef("none"),m=r?"mounted":"unmounted",[p,y]=x1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const x=da(l.current);f.current=p==="mounted"?x:"none"},[p]),As(()=>{const x=l.current,P=c.current;if(P!==r){const M=f.current,v=da(x);r?y("MOUNT"):v==="none"||(x==null?void 0:x.display)==="none"?y("UNMOUNT"):y(P&&M!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,y]),As(()=>{if(o){let x;const P=o.ownerDocument.defaultView??window,j=v=>{const E=da(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&E&&(y("ANIMATION_END"),!c.current)){const N=o.style.animationFillMode;o.style.animationFillMode="forwards",x=P.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=N)})}},M=v=>{v.target===o&&(f.current=da(l.current))};return o.addEventListener("animationstart",M),o.addEventListener("animationcancel",j),o.addEventListener("animationend",j),()=>{P.clearTimeout(x),o.removeEventListener("animationstart",M),o.removeEventListener("animationcancel",j),o.removeEventListener("animationend",j)}}else y("ANIMATION_END")},[o,y]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:k.useCallback(x=>{l.current=x?getComputedStyle(x):null,i(x)},[])}}function da(r){return(r==null?void 0:r.animationName)||"none"}function S1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var xu=0;function k1(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Ep()),document.body.insertAdjacentElement("beforeend",r[1]??Ep()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),xu--}},[])}function Ep(){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 vn=function(){return vn=Object.assign||function(o){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(o[f]=i[f])}return o},vn.apply(this,arguments)};function Mh(r,o){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(i[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)o.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function b1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,f;l<c;l++)(f||!(l in o))&&(f||(f=Array.prototype.slice.call(o,0,l)),f[l]=o[l]);return r.concat(f||Array.prototype.slice.call(o))}var va="right-scroll-bar-position",xa="width-before-scroll-bar",C1="with-scroll-bars-hidden",E1="--removed-body-scroll-bar-size";function wu(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function N1(r,o){var i=k.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(l){var c=i.value;c!==l&&(i.value=l,i.callback(l,c))}}}})[0];return i.callback=o,i.facade}var P1=typeof window<"u"?k.useLayoutEffect:k.useEffect,Np=new WeakMap;function j1(r,o){var i=N1(null,function(l){return r.forEach(function(c){return wu(c,l)})});return P1(function(){var l=Np.get(i);if(l){var c=new Set(l),f=new Set(r),m=i.current;c.forEach(function(p){f.has(p)||wu(p,null)}),f.forEach(function(p){c.has(p)||wu(p,m)})}Np.set(i,r)},[r]),i}function R1(r){return r}function M1(r,o){o===void 0&&(o=R1);var i=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:r},useMedium:function(f){var m=o(f,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(f){for(l=!0;i.length;){var m=i;i=[],m.forEach(f)}i={push:function(p){return f(p)},filter:function(){return i}}},assignMedium:function(f){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(f),m=i}var y=function(){var P=m;m=[],P.forEach(f)},x=function(){return Promise.resolve().then(y)};x(),i={push:function(P){m.push(P),x()},filter:function(P){return m=m.filter(P),i}}}};return c}function T1(r){r===void 0&&(r={});var o=M1(null);return o.options=vn({async:!0,ssr:!1},r),o}var Th=function(r){var o=r.sideCar,i=Mh(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,vn({},i))};Th.isSideCarExport=!0;function O1(r,o){return r.useMedium(o),Th}var Oh=T1(),Su=function(){},Ea=k.forwardRef(function(r,o){var i=k.useRef(null),l=k.useState({onScrollCapture:Su,onWheelCapture:Su,onTouchMoveCapture:Su}),c=l[0],f=l[1],m=r.forwardProps,p=r.children,y=r.className,x=r.removeScrollBar,P=r.enabled,j=r.shards,M=r.sideCar,v=r.noRelative,B=r.noIsolation,E=r.inert,N=r.allowPinchZoom,z=r.as,Q=z===void 0?"div":z,$=r.gapMode,L=Mh(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=M,oe=j1([i,o]),ne=vn(vn({},L),c);return k.createElement(k.Fragment,null,P&&k.createElement(ee,{sideCar:Oh,removeScrollBar:x,shards:j,noRelative:v,noIsolation:B,inert:E,setCallbacks:f,allowPinchZoom:!!N,lockRef:i,gapMode:$}),m?k.cloneElement(k.Children.only(p),vn(vn({},ne),{ref:oe})):k.createElement(Q,vn({},ne,{className:y,ref:oe}),p))});Ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ea.classNames={fullWidth:xa,zeroRight:va};var _1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function z1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=_1();return o&&r.setAttribute("nonce",o),r}function I1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function L1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var D1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=z1())&&(I1(o,i),L1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},A1=function(){var r=D1();return function(o,i){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},_h=function(){var r=A1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},F1={left:0,top:0,right:0,gap:0},ku=function(r){return parseInt(r||"",10)||0},U1=function(r){var o=window.getComputedStyle(document.body),i=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[ku(i),ku(l),ku(c)]},B1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return F1;var o=U1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-i+o[2]-o[0])}},W1=_h(),To="data-scroll-locked",V1=function(r,o,i,l){var c=r.left,f=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
182
+ .`.concat(C1,` {
183
+ overflow: hidden `).concat(l,`;
184
+ padding-right: `).concat(p,"px ").concat(l,`;
185
+ }
186
+ body[`).concat(To,`] {
187
+ overflow: hidden `).concat(l,`;
188
+ overscroll-behavior: contain;
189
+ `).concat([o&&"position: relative ".concat(l,";"),i==="margin"&&`
190
+ padding-left: `.concat(c,`px;
191
+ padding-top: `).concat(f,`px;
192
+ padding-right: `).concat(m,`px;
193
+ margin-left:0;
194
+ margin-top:0;
195
+ margin-right: `).concat(p,"px ").concat(l,`;
196
+ `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
197
+ }
198
+
199
+ .`).concat(va,` {
200
+ right: `).concat(p,"px ").concat(l,`;
201
+ }
202
+
203
+ .`).concat(xa,` {
204
+ margin-right: `).concat(p,"px ").concat(l,`;
205
+ }
206
+
207
+ .`).concat(va," .").concat(va,` {
208
+ right: 0 `).concat(l,`;
209
+ }
210
+
211
+ .`).concat(xa," .").concat(xa,` {
212
+ margin-right: 0 `).concat(l,`;
213
+ }
214
+
215
+ body[`).concat(To,`] {
216
+ `).concat(E1,": ").concat(p,`px;
217
+ }
218
+ `)},Pp=function(){var r=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(r)?r:0},H1=function(){k.useEffect(function(){return document.body.setAttribute(To,(Pp()+1).toString()),function(){var r=Pp()-1;r<=0?document.body.removeAttribute(To):document.body.setAttribute(To,r.toString())}},[])},Q1=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;H1();var f=k.useMemo(function(){return B1(c)},[c]);return k.createElement(W1,{styles:V1(f,!o,c,i?"":"!important")})},Wu=!1;if(typeof window<"u")try{var fa=Object.defineProperty({},"passive",{get:function(){return Wu=!0,!0}});window.addEventListener("test",fa,fa),window.removeEventListener("test",fa,fa)}catch{Wu=!1}var Po=Wu?{passive:!1}:!1,$1=function(r){return r.tagName==="TEXTAREA"},zh=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!$1(r)&&i[o]==="visible")},K1=function(r){return zh(r,"overflowY")},G1=function(r){return zh(r,"overflowX")},jp=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Ih(r,l);if(c){var f=Lh(r,l),m=f[1],p=f[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},q1=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},Y1=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Ih=function(r,o){return r==="v"?K1(o):G1(o)},Lh=function(r,o){return r==="v"?q1(o):Y1(o)},X1=function(r,o){return r==="h"&&o==="rtl"?-1:1},Z1=function(r,o,i,l,c){var f=X1(r,window.getComputedStyle(o).direction),m=f*l,p=i.target,y=o.contains(p),x=!1,P=m>0,j=0,M=0;do{if(!p)break;var v=Lh(r,p),B=v[0],E=v[1],N=v[2],z=E-N-f*B;(B||z)&&Ih(r,p)&&(j+=z,M+=B);var Q=p.parentNode;p=Q&&Q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Q.host:Q}while(!y&&p!==document.body||y&&(o.contains(p)||o===p));return(P&&Math.abs(j)<1||!P&&Math.abs(M)<1)&&(x=!0),x},pa=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Rp=function(r){return[r.deltaX,r.deltaY]},Mp=function(r){return r&&"current"in r?r.current:r},J1=function(r,o){return r[0]===o[0]&&r[1]===o[1]},ex=function(r){return`
219
+ .block-interactivity-`.concat(r,` {pointer-events: none;}
220
+ .allow-interactivity-`).concat(r,` {pointer-events: all;}
221
+ `)},tx=0,jo=[];function nx(r){var o=k.useRef([]),i=k.useRef([0,0]),l=k.useRef(),c=k.useState(tx++)[0],f=k.useState(_h)[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 E=b1([r.lockRef.current],(r.shards||[]).map(Mp),!0).filter(Boolean);return E.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=k.useCallback(function(E,N){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var z=pa(E),Q=i.current,$="deltaX"in E?E.deltaX:Q[0]-z[0],L="deltaY"in E?E.deltaY:Q[1]-z[1],ee,oe=E.target,ne=Math.abs($)>Math.abs(L)?"h":"v";if("touches"in E&&ne==="h"&&oe.type==="range")return!1;var ie=window.getSelection(),he=ie&&ie.anchorNode,ye=he?he===oe||he.contains(oe):!1;if(ye)return!1;var Pe=jp(ne,oe);if(!Pe)return!0;if(Pe?ee=ne:(ee=ne==="v"?"h":"v",Pe=jp(ne,oe)),!Pe)return!1;if(!l.current&&"changedTouches"in E&&($||L)&&(l.current=ee),!ee)return!0;var ae=l.current||ee;return Z1(ae,N,E,ae==="h"?$:L)},[]),y=k.useCallback(function(E){var N=E;if(!(!jo.length||jo[jo.length-1]!==f)){var z="deltaY"in N?Rp(N):pa(N),Q=o.current.filter(function(ee){return ee.name===N.type&&(ee.target===N.target||N.target===ee.shadowParent)&&J1(ee.delta,z)})[0];if(Q&&Q.should){N.cancelable&&N.preventDefault();return}if(!Q){var $=(m.current.shards||[]).map(Mp).filter(Boolean).filter(function(ee){return ee.contains(N.target)}),L=$.length>0?p(N,$[0]):!m.current.noIsolation;L&&N.cancelable&&N.preventDefault()}}},[]),x=k.useCallback(function(E,N,z,Q){var $={name:E,delta:N,target:z,should:Q,shadowParent:rx(z)};o.current.push($),setTimeout(function(){o.current=o.current.filter(function(L){return L!==$})},1)},[]),P=k.useCallback(function(E){i.current=pa(E),l.current=void 0},[]),j=k.useCallback(function(E){x(E.type,Rp(E),E.target,p(E,r.lockRef.current))},[]),M=k.useCallback(function(E){x(E.type,pa(E),E.target,p(E,r.lockRef.current))},[]);k.useEffect(function(){return jo.push(f),r.setCallbacks({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:M}),document.addEventListener("wheel",y,Po),document.addEventListener("touchmove",y,Po),document.addEventListener("touchstart",P,Po),function(){jo=jo.filter(function(E){return E!==f}),document.removeEventListener("wheel",y,Po),document.removeEventListener("touchmove",y,Po),document.removeEventListener("touchstart",P,Po)}},[]);var v=r.removeScrollBar,B=r.inert;return k.createElement(k.Fragment,null,B?k.createElement(f,{styles:ex(c)}):null,v?k.createElement(Q1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function rx(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const ox=O1(Oh,nx);var Dh=k.forwardRef(function(r,o){return k.createElement(Ea,vn({},r,{ref:o,sideCar:ox}))});Dh.classNames=Ea.classNames;var sx=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},Ro=new WeakMap,ha=new WeakMap,ma={},bu=0,Ah=function(r){return r&&(r.host||Ah(r.parentNode))},ix=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Ah(i);return l&&r.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",r,". Doing nothing"),null)}).filter(function(i){return!!i})},ax=function(r,o,i,l){var c=ix(o,Array.isArray(r)?r:[r]);ma[i]||(ma[i]=new WeakMap);var f=ma[i],m=[],p=new Set,y=new Set(c),x=function(j){!j||p.has(j)||(p.add(j),x(j.parentNode))};c.forEach(x);var P=function(j){!j||y.has(j)||Array.prototype.forEach.call(j.children,function(M){if(p.has(M))P(M);else try{var v=M.getAttribute(l),B=v!==null&&v!=="false",E=(Ro.get(M)||0)+1,N=(f.get(M)||0)+1;Ro.set(M,E),f.set(M,N),m.push(M),E===1&&B&&ha.set(M,!0),N===1&&M.setAttribute(i,"true"),B||M.setAttribute(l,"true")}catch(z){console.error("aria-hidden: cannot operate on ",M,z)}})};return P(o),p.clear(),bu++,function(){m.forEach(function(j){var M=Ro.get(j)-1,v=f.get(j)-1;Ro.set(j,M),f.set(j,v),M||(ha.has(j)||j.removeAttribute(l),ha.delete(j)),v||j.removeAttribute(i)}),bu--,bu||(Ro=new WeakMap,Ro=new WeakMap,ha=new WeakMap,ma={})}},lx=function(r,o,i){i===void 0&&(i="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"))),ax(l,c,i,"aria-hidden")):function(){return null}},Na="Dialog",[Fh]=W0(Na),[ux,tn]=Fh(Na),Uh=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:f,modal:m=!0}=r,p=k.useRef(null),y=k.useRef(null),[x,P]=K0({prop:l,defaultProp:c??!1,onChange:f,caller:Na});return h.jsx(ux,{scope:o,triggerRef:p,contentRef:y,contentId:gu(),titleId:gu(),descriptionId:gu(),open:x,onOpenChange:P,onOpenToggle:k.useCallback(()=>P(j=>!j),[P]),modal:m,children:i})};Uh.displayName=Na;var Bh="DialogTrigger",cx=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Bh,i),f=Yr(o,c.triggerRef);return h.jsx(Dn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":rc(c.open),...l,ref:f,onClick:xr(r.onClick,c.onOpenToggle)})});cx.displayName=Bh;var tc="DialogPortal",[dx,Wh]=Fh(tc,{forceMount:void 0}),Vh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,f=tn(tc,o);return h.jsx(dx,{scope:o,forceMount:i,children:k.Children.map(l,m=>h.jsx(Ca,{present:i||f.open,children:h.jsx(Rh,{asChild:!0,container:c,children:m})}))})};Vh.displayName=tc;var ba="DialogOverlay",Hh=k.forwardRef((r,o)=>{const i=Wh(ba,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=tn(ba,r.__scopeDialog);return f.modal?h.jsx(Ca,{present:l||f.open,children:h.jsx(px,{...c,ref:o})}):null});Hh.displayName=ba;var fx=bh("DialogOverlay.RemoveScroll"),px=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(ba,i);return h.jsx(Dh,{as:fx,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Dn.div,{"data-state":rc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),Gr="DialogContent",Qh=k.forwardRef((r,o)=>{const i=Wh(Gr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=tn(Gr,r.__scopeDialog);return h.jsx(Ca,{present:l||f.open,children:f.modal?h.jsx(hx,{...c,ref:o}):h.jsx(mx,{...c,ref:o})})});Qh.displayName=Gr;var hx=k.forwardRef((r,o)=>{const i=tn(Gr,r.__scopeDialog),l=k.useRef(null),c=Yr(o,i.contentRef,l);return k.useEffect(()=>{const f=l.current;if(f)return lx(f)},[]),h.jsx($h,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xr(r.onCloseAutoFocus,f=>{var m;f.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:xr(r.onPointerDownOutside,f=>{const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&f.preventDefault()}),onFocusOutside:xr(r.onFocusOutside,f=>f.preventDefault())})}),mx=k.forwardRef((r,o)=>{const i=tn(Gr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return h.jsx($h,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,f),f.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),f.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:f=>{var y,x;(y=r.onInteractOutside)==null||y.call(r,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=f.target;((x=i.triggerRef.current)==null?void 0:x.contains(m))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),$h=k.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,...m}=r,p=tn(Gr,i),y=k.useRef(null),x=Yr(o,y);return k1(),h.jsxs(h.Fragment,{children:[h.jsx(Ph,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:f,children:h.jsx(Eh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":rc(p.open),...m,ref:x,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(gx,{titleId:p.titleId}),h.jsx(vx,{contentRef:y,descriptionId:p.descriptionId})]})]})}),nc="DialogTitle",Kh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(nc,i);return h.jsx(Dn.h2,{id:c.titleId,...l,ref:o})});Kh.displayName=nc;var Gh="DialogDescription",qh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Gh,i);return h.jsx(Dn.p,{id:c.descriptionId,...l,ref:o})});qh.displayName=Gh;var Yh="DialogClose",Xh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Yh,i);return h.jsx(Dn.button,{type:"button",...l,ref:o,onClick:xr(r.onClick,()=>c.onOpenChange(!1))})});Xh.displayName=Yh;function rc(r){return r?"open":"closed"}var Zh="DialogTitleWarning",[Wx,Jh]=B0(Zh,{contentName:Gr,titleName:nc,docsSlug:"dialog"}),gx=({titleId:r})=>{const o=Jh(Zh),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
222
+
223
+ If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
224
+
225
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},yx="DialogDescriptionWarning",vx=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jh(yx).contentName}}.`;return k.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},xx=Uh,wx=Vh,em=Hh,tm=Qh,nm=Kh,rm=qh,Sx=Xh;const om=xx,kx=wx,sm=k.forwardRef(({className:r,...o},i)=>h.jsx(em,{ref:i,className:Ee("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}));sm.displayName=em.displayName;const oc=k.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(kx,{children:[h.jsx(sm,{}),h.jsxs(tm,{ref:l,className:Ee("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),...i,children:[o,h.jsxs(Sx,{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:[h.jsx(xh,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));oc.displayName=tm.displayName;const sc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col space-y-2 text-center sm:text-left",r),...o});sc.displayName="DialogHeader";const ic=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});ic.displayName="DialogFooter";const ac=k.forwardRef(({className:r,...o},i)=>h.jsx(nm,{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));ac.displayName=nm.displayName;const lc=k.forwardRef(({className:r,...o},i)=>h.jsx(rm,{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));lc.displayName=rm.displayName;function bx({maskedValue:r,isSet:o,className:i,...l}){const[c,f]=k.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(xn,{type:c?"text":"password",className:Ee("pr-20",i),placeholder:o?`${q("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&h.jsx(Wt,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(!c),children:c?h.jsx(Dv,{className:"h-4 w-4"}):h.jsx(Av,{className:"h-4 w-4"})})})]})}function Cx({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,y,x)=>{const P=[...l];P[p]=[y,x],o(Object.fromEntries(P))},f=()=>{o({...r,"":""})},m=p=>{const y=l.filter((x,P)=>P!==p);o(Object.fromEntries(y))};return h.jsxs("div",{className:Ee("space-y-2",i),children:[l.map(([p,y],x)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(xn,{type:"text",value:p,onChange:P=>c(x,P.target.value,y),placeholder:q("headerName"),className:"flex-1"}),h.jsx(xn,{type:"text",value:y,onChange:P=>c(x,p,P.target.value),placeholder:q("headerValue"),className:"flex-1"}),h.jsx(Wt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(x),children:h.jsx($v,{className:"h-4 w-4 text-red-500"})})]},x)),h.jsxs(Wt,{type:"button",variant:"outline",size:"sm",onClick:f,children:[h.jsx(Bv,{className:"h-4 w-4 mr-2"}),q("add")]})]})}function Ex(){const{providerModal:r,closeProviderModal:o}=qr(),{data:i}=$s(),{data:l}=ec(),c=F0(),[f,m]=k.useState(""),[p,y]=k.useState(""),[x,P]=k.useState(null),j=r.provider,M=l==null?void 0:l.providers.find(E=>E.name===j),v=j?i==null?void 0:i.providers[j]:null;k.useEffect(()=>{v&&(y(v.apiBase||(M==null?void 0:M.defaultApiBase)||""),P(v.extraHeaders||null),m(""))},[v,M]);const B=E=>{E.preventDefault();const N={};f!==""&&(N.apiKey=f),p&&p!==(M==null?void 0:M.defaultApiBase)&&(N.apiBase=p),x&&Object.keys(x).length>0&&(N.extraHeaders=x),j&&c.mutate({provider:j,data:N},{onSuccess:()=>o()})};return h.jsx(om,{open:r.open,onOpenChange:o,children:h.jsxs(oc,{className:"sm:max-w-[500px]",children:[h.jsx(sc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:h.jsx(ka,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(ac,{children:(M==null?void 0:M.displayName)||j}),h.jsx(lc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:B,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(In,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(ka,{className:"h-3.5 w-3.5 text-gray-500"}),q("apiKey")]}),h.jsx(bx,{id:"apiKey",value:f,isSet:v==null?void 0:v.apiKeySet,onChange:E=>m(E.target.value),placeholder:v!=null&&v.apiKeySet?q("apiKeySet"):"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(In,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(mh,{className:"h-3.5 w-3.5 text-gray-500"}),q("apiBase")]}),h.jsx(xn,{id:"apiBase",type:"text",value:p,onChange:E=>y(E.target.value),placeholder:(M==null?void 0:M.defaultApiBase)||"https://api.example.com",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(In,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(gh,{className:"h-3.5 w-3.5 text-gray-500"}),q("extraHeaders")]}),h.jsx(Cx,{value:x,onChange:P})]}),h.jsxs(ic,{className:"pt-4",children:[h.jsx(Wt,{type:"button",variant:"outline",onClick:o,children:q("cancel")}),h.jsx(Wt,{type:"submit",disabled:c.isPending,children:c.isPending?"Saving...":q("save")})]})]})]})})}function im({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Ee("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const f=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Ee("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",f?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),f&&h.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 am({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[f,m]=k.useState(!1),p=!!o&&!f;return h.jsx("div",{className:Ee("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Ee("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??h.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const Nx={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"},Px={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",mochat:"mochat.svg",email:"email.svg"};function lm(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function jx(r){return lm(Nx,r)}function Rx(r){return lm(Px,r)}function Mx(){const{data:r}=$s(),{data:o}=ec(),{openProviderModal:i}=qr(),[l,c]=k.useState("installed");if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const f=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(p=>r.providers[p].apiKeySet).length:0},{id:"all",label:"All Providers"}],m=l==="installed"?o.providers.filter(p=>{var y;return(y=r.providers[p.name])==null?void 0:y.apiKeySet}):o.providers;return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),h.jsx(im,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:m.map(p=>{const y=r.providers[p.name],x=y==null?void 0:y.apiKeySet;return h.jsxs("div",{className:Ee("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",x?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>i(p.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(am,{name:p.name,src:jx(p.name),className:Ee("h-12 w-12 rounded-xl border transition-all",x?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Ee("text-lg font-bold uppercase",x?"text-gray-900":"text-gray-500"),children:p.name[0]})}),x?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(zv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(yh,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:p.displayName||p.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:p.name==="openai"?"Leading AI models including GPT-4 and GPT-3.5":"Configure AI services for your agents"})]}),h.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:h.jsx(Wt,{variant:x?"ghost":"default",size:"sm",className:"w-full rounded-xl text-xs font-semibold h-9",onClick:P=>{P.stopPropagation(),i(p.name)},children:x?"Configure":"Add Provider"})})]},p.name)})}),m.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(ka,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),h.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."})]}),h.jsx(Ex,{})]})}const um=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Ee("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:()=>i==null?void 0:i(!o),...l,children:h.jsx("span",{className:Ee("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")})}));um.displayName="Switch";function Tx({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,f]=k.useState(""),m=y=>{y.key==="Enter"&&c.trim()?(y.preventDefault(),o([...r,c.trim()]),f("")):y.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=y=>{o(r.filter((x,P)=>P!==y))};return h.jsxs("div",{className:Ee("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((y,x)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[y,h.jsx("button",{type:"button",onClick:()=>p(x),className:"hover:text-red-300 transition-colors",children:h.jsx(xh,{className:"h-3 w-3"})})]},x)),h.jsx("input",{type:"text",value:c,onChange:y=>f(y.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Ox=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(ka,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(mh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(Zu,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(gh,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx(Qv,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(yh,{className:"h-3.5 w-3.5 text-gray-500"}),_x={telegram:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"token",type:"password",label:q("botToken")},{name:"allowFrom",type:"tags",label:q("allowFrom")},{name:"proxy",type:"text",label:q("proxy")}],discord:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"token",type:"password",label:q("botToken")},{name:"allowFrom",type:"tags",label:q("allowFrom")},{name:"gatewayUrl",type:"text",label:q("gatewayUrl")},{name:"intents",type:"number",label:q("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"bridgeUrl",type:"text",label:q("bridgeUrl")},{name:"allowFrom",type:"tags",label:q("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"appId",type:"text",label:q("appId")},{name:"appSecret",type:"password",label:q("appSecret")},{name:"encryptKey",type:"password",label:q("encryptKey")},{name:"verificationToken",type:"password",label:q("verificationToken")},{name:"allowFrom",type:"tags",label:q("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"clientId",type:"text",label:q("clientId")},{name:"clientSecret",type:"password",label:q("clientSecret")},{name:"allowFrom",type:"tags",label:q("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"mode",type:"text",label:q("mode")},{name:"webhookPath",type:"text",label:q("webhookPath")},{name:"botToken",type:"password",label:q("botToken")},{name:"appToken",type:"password",label:q("appToken")}],email:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"consentGranted",type:"boolean",label:q("consentGranted")},{name:"imapHost",type:"text",label:q("imapHost")},{name:"imapPort",type:"number",label:q("imapPort")},{name:"imapUsername",type:"text",label:q("imapUsername")},{name:"imapPassword",type:"password",label:q("imapPassword")},{name:"fromAddress",type:"email",label:q("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"baseUrl",type:"text",label:q("baseUrl")},{name:"clawToken",type:"password",label:q("clawToken")},{name:"agentUserId",type:"text",label:q("agentUserId")},{name:"allowFrom",type:"tags",label:q("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:q("enabled")},{name:"appId",type:"text",label:q("appId")},{name:"secret",type:"password",label:q("appSecret")},{name:"markdownSupport",type:"boolean",label:q("markdownSupport")},{name:"allowFrom",type:"tags",label:q("allowFrom")}]},Tp={telegram:ya,slack:ya,email:Zu,default:ya},Op={telegram:"from-sky-400 to-blue-500",slack:"from-purple-400 to-indigo-500",email:"from-rose-400 to-pink-500",default:"from-slate-400 to-gray-500"};function zx(){const{channelModal:r,closeChannelModal:o}=qr(),{data:i}=$s(),l=U0(),[c,f]=k.useState({}),[m,p]=k.useState(!1),y=r.channel,x=y?i==null?void 0:i.channels[y]:null,P=y?_x[y]:[];k.useEffect(()=>{f(x?{...x}:{})},[x,y]);const j=(N,z)=>{f(Q=>({...Q,[N]:z}))},M=N=>{N.preventDefault(),y&&l.mutate({channel:y,data:c},{onSuccess:()=>o()})},v=async()=>{if(!(!y||y!=="feishu")){p(!0);try{const N={...c,enabled:!0};c.enabled||f(N),await l.mutateAsync({channel:y,data:N});const z=await c0(),Q=z.botName?` (${z.botName})`:"";wr.success(q("feishuVerifySuccess")+Q)}catch(N){const z=N instanceof Error?N.message:String(N);wr.error(`${q("feishuVerifyFailed")}: ${z}`)}finally{p(!1)}}},B=Tp[y||""]||Tp.default,E=Op[y||""]||Op.default;return h.jsx(om,{open:r.open,onOpenChange:o,children:h.jsxs(oc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(sc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${E} flex items-center justify-center`,children:h.jsx(B,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(ac,{className:"capitalize",children:y}),h.jsx(lc,{children:"Configure message channel parameters"})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2",children:h.jsxs("form",{onSubmit:M,className:"space-y-5 pr-2",children:[P.map(N=>h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(In,{htmlFor:N.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Ox(N.name),N.label]}),N.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[h.jsx("span",{className:"text-sm text-gray-500",children:c[N.name]?q("enabled"):q("disabled")}),h.jsx(um,{id:N.name,checked:c[N.name]||!1,onCheckedChange:z=>j(N.name,z),className:"data-[state=checked]:bg-emerald-500"})]}),(N.type==="text"||N.type==="email")&&h.jsx(xn,{id:N.name,type:N.type,value:c[N.name]||"",onChange:z=>j(N.name,z.target.value),className:"rounded-xl"}),N.type==="password"&&h.jsx(xn,{id:N.name,type:"password",value:c[N.name]||"",onChange:z=>j(N.name,z.target.value),placeholder:"Leave blank to keep unchanged",className:"rounded-xl"}),N.type==="number"&&h.jsx(xn,{id:N.name,type:"number",value:c[N.name]||0,onChange:z=>j(N.name,parseInt(z.target.value)||0),className:"rounded-xl"}),N.type==="tags"&&h.jsx(Tx,{value:c[N.name]||[],onChange:z=>j(N.name,z)})]},N.name)),h.jsxs(ic,{className:"pt-4",children:[h.jsx(Wt,{type:"button",variant:"outline",onClick:o,children:q("cancel")}),h.jsx(Wt,{type:"submit",disabled:l.isPending||m,children:l.isPending?"Saving...":q("save")}),y==="feishu"&&h.jsx(Wt,{type:"button",onClick:v,disabled:l.isPending||m,variant:"secondary",children:q(m?"feishuConnecting":"saveVerifyConnect")})]})]})})]})})}const _p={telegram:ya,slack:Vv,email:Zu,webhook:_v,default:Ju},Ix={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 Lx(){const{data:r}=$s(),{data:o}=ec(),{openChannelModal:i}=qr(),[l,c]=k.useState("active");if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const f=[{id:"active",label:"Enabled",count:o.channels.filter(p=>{var y;return(y=r.channels[p.name])==null?void 0:y.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],m=o.channels.filter(p=>{var x;const y=((x=r.channels[p.name])==null?void 0:x.enabled)||!1;return l==="all"||y});return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),h.jsx(im,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:m.map(p=>{const y=r.channels[p.name],x=(y==null?void 0:y.enabled)||!1,P=_p[p.name]||_p.default;return h.jsxs("div",{className:Ee("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",x?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>i(p.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(am,{name:p.name,src:Rx(p.name),className:Ee("h-12 w-12 rounded-xl border transition-all",x?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(P,{className:"h-6 w-6"})}),x?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Kv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(Wv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:p.displayName||p.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:Ix[p.name]||"Configure this communication channel"})]}),h.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100 flex items-center gap-2",children:[p.tutorialUrl&&h.jsx("a",{href:p.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:j=>j.stopPropagation(),className:"flex items-center justify-center h-9 w-9 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-600 transition-colors",title:"View Guide",children:h.jsx(Lv,{className:"h-4 w-4"})}),h.jsx(Wt,{variant:x?"ghost":"default",size:"sm",className:"flex-1 rounded-xl text-xs font-semibold h-9",onClick:j=>{j.stopPropagation(),i(p.name)},children:x?"Configure":"Enable"})]})]},p.name)})}),m.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(Ju,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),h.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."})]}),h.jsx(zx,{})]})}class Dx{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 i=JSON.parse(o.data);this.emit(i)}catch(i){console.error("Failed to parse WebSocket message:",i)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=o=>{console.error("WebSocket error:",o)}}on(o,i){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(i)}off(o,i){var l;(l=this.handlers.get(o))==null||l.delete(i)}emit(o){const i=this.handlers.get(o.type);i==null||i.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 Ax(r){const[o,i]=k.useState(null),{setConnectionStatus:l}=qr();return k.useEffect(()=>{const c="ws://127.0.0.1:18791/ws",f=new Dx(c);return f.on("connection.open",()=>{l("connected")}),f.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),f.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),f.connect(),i(f),()=>f.disconnect()},[l,r]),o}const zp=new Iy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Fx(){const{activeTab:r}=qr();Ax(zp);const o=()=>{switch(r){case"model":return h.jsx(yp,{});case"providers":return h.jsx(Mx,{});case"channels":return h.jsx(Lx,{});default:return h.jsx(yp,{})}};return h.jsxs(Ly,{client:zp,children:[h.jsx(Yv,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(D0,{position:"top-right",richColors:!0})]})}dy.createRoot(document.getElementById("root")).render(h.jsx(k.StrictMode,{children:h.jsx(Fx,{})}));