nextclaw 0.6.21 → 0.6.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(r,o,i)=>(pu(r,o,"read from private field"),i?i.call(r):o.get(r)),ue=(r,o,i)=>o.has(r)?Kf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),q=(r,o,i,l)=>(pu(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ve=(r,o,i)=>(pu(r,o,"access private method"),i);var ua=(r,o,i,l)=>({set _(c){q(r,o,c,i)},get _(){return w(r,o,l)}});function uy(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 d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function Zp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hu={exports:{}},zs={},mu={exports:{}},xe={};/**
1
+ var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(r,o,i)=>(pu(r,o,"read from private field"),i?i.call(r):o.get(r)),ue=(r,o,i)=>o.has(r)?Kf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),Y=(r,o,i,l)=>(pu(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ve=(r,o,i)=>(pu(r,o,"access private method"),i);var ua=(r,o,i,l)=>({set _(c){Y(r,o,c,i)},get _(){return w(r,o,l)}});function uy(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 d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function Zp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hu={exports:{}},_s={},mu={exports:{}},xe={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Gf;function cy(){if(Gf)return xe;Gf=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"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),N=Symbol.iterator;function T(P){return P===null||typeof P!="object"?null:(P=N&&P[N]||P["@@iterator"],typeof P=="function"?P:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,S={};function M(P,_,ee){this.props=P,this.context=_,this.refs=S,this.updater=ee||v}M.prototype.isReactComponent={},M.prototype.setState=function(P,_){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,_,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function L(){}L.prototype=M.prototype;function Q(P,_,ee){this.props=P,this.context=_,this.refs=S,this.updater=ee||v}var W=Q.prototype=new L;W.constructor=Q,z(W,M.prototype),W.isPureReactComponent=!0;var I=Array.isArray,Z=Object.prototype.hasOwnProperty,oe={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function te(P,_,ee){var ie,pe={},we=null,fe=null;if(_!=null)for(ie in _.ref!==void 0&&(fe=_.ref),_.key!==void 0&&(we=""+_.key),_)Z.call(_,ie)&&!G.hasOwnProperty(ie)&&(pe[ie]=_[ie]);var Ce=arguments.length-2;if(Ce===1)pe.children=ee;else if(1<Ce){for(var Re=Array(Ce),Ze=0;Ze<Ce;Ze++)Re[Ze]=arguments[Ze+2];pe.children=Re}if(P&&P.defaultProps)for(ie in Ce=P.defaultProps,Ce)pe[ie]===void 0&&(pe[ie]=Ce[ie]);return{$$typeof:r,type:P,key:we,ref:fe,props:pe,_owner:oe.current}}function U(P,_){return{$$typeof:r,type:P.type,key:_,ref:P.ref,props:P.props,_owner:P._owner}}function se(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function ge(P){var _={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ee){return _[ee]})}var le=/\/+/g;function be(P,_){return typeof P=="object"&&P!==null&&P.key!=null?ge(""+P.key):_.toString(36)}function Oe(P,_,ee,ie,pe){var we=typeof P;(we==="undefined"||we==="boolean")&&(P=null);var fe=!1;if(P===null)fe=!0;else switch(we){case"string":case"number":fe=!0;break;case"object":switch(P.$$typeof){case r:case o:fe=!0}}if(fe)return fe=P,pe=pe(fe),P=ie===""?"."+be(fe,0):ie,I(pe)?(ee="",P!=null&&(ee=P.replace(le,"$&/")+"/"),Oe(pe,_,ee,"",function(Ze){return Ze})):pe!=null&&(se(pe)&&(pe=U(pe,ee+(!pe.key||fe&&fe.key===pe.key?"":(""+pe.key).replace(le,"$&/")+"/")+P)),_.push(pe)),1;if(fe=0,ie=ie===""?".":ie+":",I(P))for(var Ce=0;Ce<P.length;Ce++){we=P[Ce];var Re=ie+be(we,Ce);fe+=Oe(we,_,ee,Re,pe)}else if(Re=T(P),typeof Re=="function")for(P=Re.call(P),Ce=0;!(we=P.next()).done;)we=we.value,Re=ie+be(we,Ce++),fe+=Oe(we,_,ee,Re,pe);else if(we==="object")throw _=String(P),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return fe}function Be(P,_,ee){if(P==null)return P;var ie=[],pe=0;return Oe(P,ie,"","",function(we){return _.call(ee,we,pe++)}),ie}function _e(P){if(P._status===-1){var _=P._result;_=_(),_.then(function(ee){(P._status===0||P._status===-1)&&(P._status=1,P._result=ee)},function(ee){(P._status===0||P._status===-1)&&(P._status=2,P._result=ee)}),P._status===-1&&(P._status=0,P._result=_)}if(P._status===1)return P._result.default;throw P._result}var Se={current:null},H={transition:null},B={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:H,ReactCurrentOwner:oe};function $(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:Be,forEach:function(P,_,ee){Be(P,function(){_.apply(this,arguments)},ee)},count:function(P){var _=0;return Be(P,function(){_++}),_},toArray:function(P){return Be(P,function(_){return _})||[]},only:function(P){if(!se(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},xe.Component=M,xe.Fragment=i,xe.Profiler=c,xe.PureComponent=Q,xe.StrictMode=l,xe.Suspense=x,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,xe.act=$,xe.cloneElement=function(P,_,ee){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var ie=z({},P.props),pe=P.key,we=P.ref,fe=P._owner;if(_!=null){if(_.ref!==void 0&&(we=_.ref,fe=oe.current),_.key!==void 0&&(pe=""+_.key),P.type&&P.type.defaultProps)var Ce=P.type.defaultProps;for(Re in _)Z.call(_,Re)&&!G.hasOwnProperty(Re)&&(ie[Re]=_[Re]===void 0&&Ce!==void 0?Ce[Re]:_[Re])}var Re=arguments.length-2;if(Re===1)ie.children=ee;else if(1<Re){Ce=Array(Re);for(var Ze=0;Ze<Re;Ze++)Ce[Ze]=arguments[Ze+2];ie.children=Ce}return{$$typeof:r,type:P.type,key:pe,ref:we,props:ie,_owner:fe}},xe.createContext=function(P){return P={$$typeof:m,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},xe.createElement=te,xe.createFactory=function(P){var _=te.bind(null,P);return _.type=P,_},xe.createRef=function(){return{current:null}},xe.forwardRef=function(P){return{$$typeof:p,render:P}},xe.isValidElement=se,xe.lazy=function(P){return{$$typeof:k,_payload:{_status:-1,_result:P},_init:_e}},xe.memo=function(P,_){return{$$typeof:y,type:P,compare:_===void 0?null:_}},xe.startTransition=function(P){var _=H.transition;H.transition={};try{P()}finally{H.transition=_}},xe.unstable_act=$,xe.useCallback=function(P,_){return Se.current.useCallback(P,_)},xe.useContext=function(P){return Se.current.useContext(P)},xe.useDebugValue=function(){},xe.useDeferredValue=function(P){return Se.current.useDeferredValue(P)},xe.useEffect=function(P,_){return Se.current.useEffect(P,_)},xe.useId=function(){return Se.current.useId()},xe.useImperativeHandle=function(P,_,ee){return Se.current.useImperativeHandle(P,_,ee)},xe.useInsertionEffect=function(P,_){return Se.current.useInsertionEffect(P,_)},xe.useLayoutEffect=function(P,_){return Se.current.useLayoutEffect(P,_)},xe.useMemo=function(P,_){return Se.current.useMemo(P,_)},xe.useReducer=function(P,_,ee){return Se.current.useReducer(P,_,ee)},xe.useRef=function(P){return Se.current.useRef(P)},xe.useState=function(P){return Se.current.useState(P)},xe.useSyncExternalStore=function(P,_,ee){return Se.current.useSyncExternalStore(P,_,ee)},xe.useTransition=function(){return Se.current.useTransition()},xe.version="18.3.1",xe}var qf;function Yu(){return qf||(qf=1,mu.exports=cy()),mu.exports}/**
9
+ */var Gf;function cy(){if(Gf)return xe;Gf=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"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),N=Symbol.iterator;function T(P){return P===null||typeof P!="object"?null:(P=N&&P[N]||P["@@iterator"],typeof P=="function"?P:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function M(P,z,ee){this.props=P,this.context=z,this.refs=S,this.updater=ee||v}M.prototype.isReactComponent={},M.prototype.setState=function(P,z){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,z,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function D(){}D.prototype=M.prototype;function Q(P,z,ee){this.props=P,this.context=z,this.refs=S,this.updater=ee||v}var W=Q.prototype=new D;W.constructor=Q,_(W,M.prototype),W.isPureReactComponent=!0;var I=Array.isArray,Z=Object.prototype.hasOwnProperty,oe={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function te(P,z,ee){var ie,pe={},we=null,fe=null;if(z!=null)for(ie in z.ref!==void 0&&(fe=z.ref),z.key!==void 0&&(we=""+z.key),z)Z.call(z,ie)&&!q.hasOwnProperty(ie)&&(pe[ie]=z[ie]);var Ce=arguments.length-2;if(Ce===1)pe.children=ee;else if(1<Ce){for(var Re=Array(Ce),Ze=0;Ze<Ce;Ze++)Re[Ze]=arguments[Ze+2];pe.children=Re}if(P&&P.defaultProps)for(ie in Ce=P.defaultProps,Ce)pe[ie]===void 0&&(pe[ie]=Ce[ie]);return{$$typeof:r,type:P,key:we,ref:fe,props:pe,_owner:oe.current}}function U(P,z){return{$$typeof:r,type:P.type,key:z,ref:P.ref,props:P.props,_owner:P._owner}}function se(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function ge(P){var z={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ee){return z[ee]})}var le=/\/+/g;function ke(P,z){return typeof P=="object"&&P!==null&&P.key!=null?ge(""+P.key):z.toString(36)}function Oe(P,z,ee,ie,pe){var we=typeof P;(we==="undefined"||we==="boolean")&&(P=null);var fe=!1;if(P===null)fe=!0;else switch(we){case"string":case"number":fe=!0;break;case"object":switch(P.$$typeof){case r:case o:fe=!0}}if(fe)return fe=P,pe=pe(fe),P=ie===""?"."+ke(fe,0):ie,I(pe)?(ee="",P!=null&&(ee=P.replace(le,"$&/")+"/"),Oe(pe,z,ee,"",function(Ze){return Ze})):pe!=null&&(se(pe)&&(pe=U(pe,ee+(!pe.key||fe&&fe.key===pe.key?"":(""+pe.key).replace(le,"$&/")+"/")+P)),z.push(pe)),1;if(fe=0,ie=ie===""?".":ie+":",I(P))for(var Ce=0;Ce<P.length;Ce++){we=P[Ce];var Re=ie+ke(we,Ce);fe+=Oe(we,z,ee,Re,pe)}else if(Re=T(P),typeof Re=="function")for(P=Re.call(P),Ce=0;!(we=P.next()).done;)we=we.value,Re=ie+ke(we,Ce++),fe+=Oe(we,z,ee,Re,pe);else if(we==="object")throw z=String(P),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return fe}function Be(P,z,ee){if(P==null)return P;var ie=[],pe=0;return Oe(P,ie,"","",function(we){return z.call(ee,we,pe++)}),ie}function ze(P){if(P._status===-1){var z=P._result;z=z(),z.then(function(ee){(P._status===0||P._status===-1)&&(P._status=1,P._result=ee)},function(ee){(P._status===0||P._status===-1)&&(P._status=2,P._result=ee)}),P._status===-1&&(P._status=0,P._result=z)}if(P._status===1)return P._result.default;throw P._result}var Se={current:null},H={transition:null},B={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:H,ReactCurrentOwner:oe};function $(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:Be,forEach:function(P,z,ee){Be(P,function(){z.apply(this,arguments)},ee)},count:function(P){var z=0;return Be(P,function(){z++}),z},toArray:function(P){return Be(P,function(z){return z})||[]},only:function(P){if(!se(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},xe.Component=M,xe.Fragment=i,xe.Profiler=c,xe.PureComponent=Q,xe.StrictMode=l,xe.Suspense=x,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,xe.act=$,xe.cloneElement=function(P,z,ee){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var ie=_({},P.props),pe=P.key,we=P.ref,fe=P._owner;if(z!=null){if(z.ref!==void 0&&(we=z.ref,fe=oe.current),z.key!==void 0&&(pe=""+z.key),P.type&&P.type.defaultProps)var Ce=P.type.defaultProps;for(Re in z)Z.call(z,Re)&&!q.hasOwnProperty(Re)&&(ie[Re]=z[Re]===void 0&&Ce!==void 0?Ce[Re]:z[Re])}var Re=arguments.length-2;if(Re===1)ie.children=ee;else if(1<Re){Ce=Array(Re);for(var Ze=0;Ze<Re;Ze++)Ce[Ze]=arguments[Ze+2];ie.children=Ce}return{$$typeof:r,type:P.type,key:pe,ref:we,props:ie,_owner:fe}},xe.createContext=function(P){return P={$$typeof:m,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},xe.createElement=te,xe.createFactory=function(P){var z=te.bind(null,P);return z.type=P,z},xe.createRef=function(){return{current:null}},xe.forwardRef=function(P){return{$$typeof:p,render:P}},xe.isValidElement=se,xe.lazy=function(P){return{$$typeof:b,_payload:{_status:-1,_result:P},_init:ze}},xe.memo=function(P,z){return{$$typeof:y,type:P,compare:z===void 0?null:z}},xe.startTransition=function(P){var z=H.transition;H.transition={};try{P()}finally{H.transition=z}},xe.unstable_act=$,xe.useCallback=function(P,z){return Se.current.useCallback(P,z)},xe.useContext=function(P){return Se.current.useContext(P)},xe.useDebugValue=function(){},xe.useDeferredValue=function(P){return Se.current.useDeferredValue(P)},xe.useEffect=function(P,z){return Se.current.useEffect(P,z)},xe.useId=function(){return Se.current.useId()},xe.useImperativeHandle=function(P,z,ee){return Se.current.useImperativeHandle(P,z,ee)},xe.useInsertionEffect=function(P,z){return Se.current.useInsertionEffect(P,z)},xe.useLayoutEffect=function(P,z){return Se.current.useLayoutEffect(P,z)},xe.useMemo=function(P,z){return Se.current.useMemo(P,z)},xe.useReducer=function(P,z,ee){return Se.current.useReducer(P,z,ee)},xe.useRef=function(P){return Se.current.useRef(P)},xe.useState=function(P){return Se.current.useState(P)},xe.useSyncExternalStore=function(P,z,ee){return Se.current.useSyncExternalStore(P,z,ee)},xe.useTransition=function(){return Se.current.useTransition()},xe.version="18.3.1",xe}var qf;function Yu(){return qf||(qf=1,mu.exports=cy()),mu.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Yf;function dy(){if(Yf)return zs;Yf=1;var r=Yu(),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,d={key:!0,ref:!0,__self:!0,__source:!0};function m(p,x,y){var k,N={},T=null,v=null;y!==void 0&&(T=""+y),x.key!==void 0&&(T=""+x.key),x.ref!==void 0&&(v=x.ref);for(k in x)l.call(x,k)&&!d.hasOwnProperty(k)&&(N[k]=x[k]);if(p&&p.defaultProps)for(k in x=p.defaultProps,x)N[k]===void 0&&(N[k]=x[k]);return{$$typeof:o,type:p,key:T,ref:v,props:N,_owner:c.current}}return zs.Fragment=i,zs.jsx=m,zs.jsxs=m,zs}var Xf;function fy(){return Xf||(Xf=1,hu.exports=dy()),hu.exports}var h=fy(),C=Yu();const K=Zp(C),Jp=uy({__proto__:null,default:K},[C]);var ca={},gu={exports:{}},Ct={},yu={exports:{}},vu={};/**
17
+ */var Yf;function dy(){if(Yf)return _s;Yf=1;var r=Yu(),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,d={key:!0,ref:!0,__self:!0,__source:!0};function m(p,x,y){var b,N={},T=null,v=null;y!==void 0&&(T=""+y),x.key!==void 0&&(T=""+x.key),x.ref!==void 0&&(v=x.ref);for(b in x)l.call(x,b)&&!d.hasOwnProperty(b)&&(N[b]=x[b]);if(p&&p.defaultProps)for(b in x=p.defaultProps,x)N[b]===void 0&&(N[b]=x[b]);return{$$typeof:o,type:p,key:T,ref:v,props:N,_owner:c.current}}return _s.Fragment=i,_s.jsx=m,_s.jsxs=m,_s}var Xf;function fy(){return Xf||(Xf=1,hu.exports=dy()),hu.exports}var h=fy(),C=Yu();const G=Zp(C),Jp=uy({__proto__:null,default:G},[C]);var ca={},gu={exports:{}},Ct={},yu={exports:{}},vu={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Zf;function py(){return Zf||(Zf=1,(function(r){function o(H,B){var $=H.length;H.push(B);e:for(;0<$;){var P=$-1>>>1,_=H[P];if(0<c(_,B))H[P]=B,H[$]=_,$=P;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var B=H[0],$=H.pop();if($!==B){H[0]=$;e:for(var P=0,_=H.length,ee=_>>>1;P<ee;){var ie=2*(P+1)-1,pe=H[ie],we=ie+1,fe=H[we];if(0>c(pe,$))we<_&&0>c(fe,pe)?(H[P]=fe,H[we]=$,P=we):(H[P]=pe,H[ie]=$,P=ie);else if(we<_&&0>c(fe,$))H[P]=fe,H[we]=$,P=we;else break e}}return B}function c(H,B){var $=H.sortIndex-B.sortIndex;return $!==0?$:H.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var x=[],y=[],k=1,N=null,T=3,v=!1,z=!1,S=!1,M=typeof setTimeout=="function"?setTimeout:null,L=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 W(H){for(var B=i(y);B!==null;){if(B.callback===null)l(y);else if(B.startTime<=H)l(y),B.sortIndex=B.expirationTime,o(x,B);else break;B=i(y)}}function I(H){if(S=!1,W(H),!z)if(i(x)!==null)z=!0,_e(Z);else{var B=i(y);B!==null&&Se(I,B.startTime-H)}}function Z(H,B){z=!1,S&&(S=!1,L(te),te=-1),v=!0;var $=T;try{for(W(B),N=i(x);N!==null&&(!(N.expirationTime>B)||H&&!ge());){var P=N.callback;if(typeof P=="function"){N.callback=null,T=N.priorityLevel;var _=P(N.expirationTime<=B);B=r.unstable_now(),typeof _=="function"?N.callback=_:N===i(x)&&l(x),W(B)}else l(x);N=i(x)}if(N!==null)var ee=!0;else{var ie=i(y);ie!==null&&Se(I,ie.startTime-B),ee=!1}return ee}finally{N=null,T=$,v=!1}}var oe=!1,G=null,te=-1,U=5,se=-1;function ge(){return!(r.unstable_now()-se<U)}function le(){if(G!==null){var H=r.unstable_now();se=H;var B=!0;try{B=G(!0,H)}finally{B?be():(oe=!1,G=null)}}else oe=!1}var be;if(typeof Q=="function")be=function(){Q(le)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Be=Oe.port2;Oe.port1.onmessage=le,be=function(){Be.postMessage(null)}}else be=function(){M(le,0)};function _e(H){G=H,oe||(oe=!0,be())}function Se(H,B){te=M(function(){H(r.unstable_now())},B)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){z||v||(z=!0,_e(Z))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return i(x)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var B=3;break;default:B=T}var $=T;T=B;try{return H()}finally{T=$}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,B){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var $=T;T=H;try{return B()}finally{T=$}},r.unstable_scheduleCallback=function(H,B,$){var P=r.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?P+$:P):$=P,H){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=$+_,H={id:k++,callback:B,priorityLevel:H,startTime:$,expirationTime:_,sortIndex:-1},$>P?(H.sortIndex=$,o(y,H),i(x)===null&&H===i(y)&&(S?(L(te),te=-1):S=!0,Se(I,$-P))):(H.sortIndex=_,o(x,H),z||v||(z=!0,_e(Z))),H},r.unstable_shouldYield=ge,r.unstable_wrapCallback=function(H){var B=T;return function(){var $=T;T=B;try{return H.apply(this,arguments)}finally{T=$}}}})(vu)),vu}var Jf;function hy(){return Jf||(Jf=1,yu.exports=py()),yu.exports}/**
25
+ */var Zf;function py(){return Zf||(Zf=1,(function(r){function o(H,B){var $=H.length;H.push(B);e:for(;0<$;){var P=$-1>>>1,z=H[P];if(0<c(z,B))H[P]=B,H[$]=z,$=P;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var B=H[0],$=H.pop();if($!==B){H[0]=$;e:for(var P=0,z=H.length,ee=z>>>1;P<ee;){var ie=2*(P+1)-1,pe=H[ie],we=ie+1,fe=H[we];if(0>c(pe,$))we<z&&0>c(fe,pe)?(H[P]=fe,H[we]=$,P=we):(H[P]=pe,H[ie]=$,P=ie);else if(we<z&&0>c(fe,$))H[P]=fe,H[we]=$,P=we;else break e}}return B}function c(H,B){var $=H.sortIndex-B.sortIndex;return $!==0?$:H.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var x=[],y=[],b=1,N=null,T=3,v=!1,_=!1,S=!1,M=typeof setTimeout=="function"?setTimeout:null,D=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 W(H){for(var B=i(y);B!==null;){if(B.callback===null)l(y);else if(B.startTime<=H)l(y),B.sortIndex=B.expirationTime,o(x,B);else break;B=i(y)}}function I(H){if(S=!1,W(H),!_)if(i(x)!==null)_=!0,ze(Z);else{var B=i(y);B!==null&&Se(I,B.startTime-H)}}function Z(H,B){_=!1,S&&(S=!1,D(te),te=-1),v=!0;var $=T;try{for(W(B),N=i(x);N!==null&&(!(N.expirationTime>B)||H&&!ge());){var P=N.callback;if(typeof P=="function"){N.callback=null,T=N.priorityLevel;var z=P(N.expirationTime<=B);B=r.unstable_now(),typeof z=="function"?N.callback=z:N===i(x)&&l(x),W(B)}else l(x);N=i(x)}if(N!==null)var ee=!0;else{var ie=i(y);ie!==null&&Se(I,ie.startTime-B),ee=!1}return ee}finally{N=null,T=$,v=!1}}var oe=!1,q=null,te=-1,U=5,se=-1;function ge(){return!(r.unstable_now()-se<U)}function le(){if(q!==null){var H=r.unstable_now();se=H;var B=!0;try{B=q(!0,H)}finally{B?ke():(oe=!1,q=null)}}else oe=!1}var ke;if(typeof Q=="function")ke=function(){Q(le)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Be=Oe.port2;Oe.port1.onmessage=le,ke=function(){Be.postMessage(null)}}else ke=function(){M(le,0)};function ze(H){q=H,oe||(oe=!0,ke())}function Se(H,B){te=M(function(){H(r.unstable_now())},B)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){_||v||(_=!0,ze(Z))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return i(x)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var B=3;break;default:B=T}var $=T;T=B;try{return H()}finally{T=$}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,B){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var $=T;T=H;try{return B()}finally{T=$}},r.unstable_scheduleCallback=function(H,B,$){var P=r.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?P+$:P):$=P,H){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=$+z,H={id:b++,callback:B,priorityLevel:H,startTime:$,expirationTime:z,sortIndex:-1},$>P?(H.sortIndex=$,o(y,H),i(x)===null&&H===i(y)&&(S?(D(te),te=-1):S=!0,Se(I,$-P))):(H.sortIndex=z,o(x,H),_||v||(_=!0,ze(Z))),H},r.unstable_shouldYield=ge,r.unstable_wrapCallback=function(H){var B=T;return function(){var $=T;T=B;try{return H.apply(this,arguments)}finally{T=$}}}})(vu)),vu}var Jf;function hy(){return Jf||(Jf=1,yu.exports=py()),yu.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var Kf=r=>{throw TypeError(r)};var pu=(r,o,i)=>o.has(r)||Kf("Cannot "+i);var w=(
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var ep;function my(){if(ep)return Ct;ep=1;var r=Yu(),o=hy();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 d(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k={},N={};function T(e){return x.call(N,e)?!0:x.call(k,e)?!1:y.test(e)?N[e]=!0:(k[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 z(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 S(e,t,n,s,a,u,f){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=f}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new S(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([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(L,Q);M[t]=new S(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(L,Q);M[t]=new S(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(L,Q);M[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function W(e,t,n,s){var a=M.hasOwnProperty(t)?M[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(z(t,n,a,s)&&(n=null),s||a===null?T(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 I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),oe=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ge=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),H=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var $=Object.assign,P;function _(e){if(P===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
33
+ */var ep;function my(){if(ep)return Ct;ep=1;var r=Yu(),o=hy();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 d(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},N={};function T(e){return x.call(N,e)?!0:x.call(b,e)?!1:y.test(e)?N[e]=!0:(b[e]=!0,!1)}function v(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,s){if(t===null||typeof t>"u"||v(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function S(e,t,n,s,a,u,f){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=f}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new S(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([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(D,Q);M[t]=new S(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(D,Q);M[t]=new S(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(D,Q);M[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function W(e,t,n,s){var a=M.hasOwnProperty(t)?M[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,a,s)&&(n=null),s||a===null?T(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 I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),oe=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ge=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),H=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var $=Object.assign,P;function z(e){if(P===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
34
34
  `+P+e}var ee=!1;function ie(e,t){if(!e||ee)return"";ee=!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
35
  `),u=s.stack.split(`
36
- `),f=a.length-1,g=u.length-1;1<=f&&0<=g&&a[f]!==u[g];)g--;for(;1<=f&&0<=g;f--,g--)if(a[f]!==u[g]){if(f!==1||g!==1)do if(f--,g--,0>g||a[f]!==u[g]){var b=`
37
- `+a[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=f&&0<=g);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function pe(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=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function we(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 G:return"Fragment";case oe:return"Portal";case U:return"Profiler";case te:return"StrictMode";case be:return"Suspense";case Oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case le: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:we(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}function fe(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 we(t);case 8:return t===te?"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 Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Re(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(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Re(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function kr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Go(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Ce(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 qo(e,t){t=t.checked,t!=null&&W(e,"checked",t,!1)}function Yo(e,t){qo(e,t);var n=Ce(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")?Xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xo(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xo(e,t,n){(t!=="number"||kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function Ot(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=""+Ce(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 to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return $({},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(Un(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ce(n)}}function Ys(e,t){var n=Ce(t.value),s=Ce(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 Xs(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 no,Zs=(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(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function 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 br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Js=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(e){Js.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]})});function ro(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function kn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var ei=$({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(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Zo(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 Jo=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Bn=null,ln=null;function Bt(e){if(e=ws(e)){if(typeof so!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),so(e.stateNode,e.type,t))}}function ti(e){Bn?ln?ln.push(e):ln=[e]:Bn=e}function me(){if(Bn){var e=Bn,t=ln;if(ln=Bn=null,Bt(e),t)for(e=0;e<t.length;e++)Bt(t[e])}}function je(e,t){return e(t)}function ze(){}var ft=!1;function yt(e,t,n){if(ft)return e(t,n);ft=!0;try{return je(e,t,n)}finally{ft=!1,(Bn!==null||ln!==null)&&(ze(),me())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=Ci(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 Wt=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Wt=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Wt=!1}function un(e,t,n,s,a,u,f,g,b){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(D){this.onError(D)}}var es=!1,ni=null,ri=!1,Oa=null,gm={onError:function(e){es=!0,ni=e}};function ym(e,t,n,s,a,u,f,g,b){es=!1,ni=null,un.apply(gm,arguments)}function vm(e,t,n,s,a,u,f,g,b){if(ym.apply(this,arguments),es){if(es){var O=ni;es=!1,ni=null}else throw Error(i(198));ri||(ri=!0,Oa=O)}}function Cr(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 mc(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 gc(e){if(Cr(e)!==e)throw Error(i(188))}function wm(e){var t=e.alternate;if(!t){if(t=Cr(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 gc(a),e;if(u===s)return gc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var f=!1,g=a.child;g;){if(g===n){f=!0,n=a,s=u;break}if(g===s){f=!0,s=a,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,s=a;break}if(g===s){f=!0,s=u,n=a;break}g=g.sibling}if(!f)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 yc(e){return e=wm(e),e!==null?vc(e):null}function vc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vc(e);if(t!==null)return t;e=e.sibling}return null}var wc=o.unstable_scheduleCallback,xc=o.unstable_cancelCallback,xm=o.unstable_shouldYield,Sm=o.unstable_requestPaint,He=o.unstable_now,km=o.unstable_getCurrentPriorityLevel,_a=o.unstable_ImmediatePriority,Sc=o.unstable_UserBlockingPriority,oi=o.unstable_NormalPriority,bm=o.unstable_LowPriority,kc=o.unstable_IdlePriority,si=null,cn=null;function Cm(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(si,e,void 0,(e.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Pm,Em=Math.log,Nm=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Em(e)/Nm|0)|0}var ii=64,ai=4194304;function ts(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function li(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var g=f&~a;g!==0?s=ts(g):(u&=f,u!==0&&(s=ts(u)))}else f=n&~a,f!==0?s=ts(f):u!==0&&(s=ts(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-Vt(t),a=1<<n,s|=e[n],t&=~a;return s}function jm(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 Rm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Vt(u),g=1<<f,b=a[f];b===-1?((g&n)===0||(g&s)!==0)&&(a[f]=jm(g,t)):b<=t&&(e.expiredLanes|=g),u&=~g}}function za(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function Ia(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function Mm(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-Vt(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function Aa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Vt(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Te=0;function Cc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ec,La,Nc,Pc,jc,Da=!1,ui=[],Wn=null,Vn=null,Qn=null,rs=new Map,os=new Map,$n=[],Tm="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 Rc(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function ss(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=ws(t),t!==null&&La(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Om(e,t,n,s,a){switch(t){case"focusin":return Wn=ss(Wn,e,t,n,s,a),!0;case"dragenter":return Vn=ss(Vn,e,t,n,s,a),!0;case"mouseover":return Qn=ss(Qn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return rs.set(u,ss(rs.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,os.set(u,ss(os.get(u)||null,e,t,n,s,a)),!0}return!1}function Mc(e){var t=Er(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=mc(n),t!==null){e.blockedOn=t,jc(e.priority,function(){Nc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ua(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Jo=s,n.target.dispatchEvent(s),Jo=null}else return t=ws(n),t!==null&&La(t),e.blockedOn=n,!1;t.shift()}return!0}function Tc(e,t,n){ci(e)&&n.delete(t)}function _m(){Da=!1,Wn!==null&&ci(Wn)&&(Wn=null),Vn!==null&&ci(Vn)&&(Vn=null),Qn!==null&&ci(Qn)&&(Qn=null),rs.forEach(Tc),os.forEach(Tc)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Da||(Da=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,_m)))}function as(e){function t(a){return is(a,e)}if(0<ui.length){is(ui[0],e);for(var n=1;n<ui.length;n++){var s=ui[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Wn!==null&&is(Wn,e),Vn!==null&&is(Vn,e),Qn!==null&&is(Qn,e),rs.forEach(t),os.forEach(t),n=0;n<$n.length;n++)s=$n[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Mc(n),n.blockedOn===null&&$n.shift()}var io=I.ReactCurrentBatchConfig,di=!0;function zm(e,t,n,s){var a=Te,u=io.transition;io.transition=null;try{Te=1,Fa(e,t,n,s)}finally{Te=a,io.transition=u}}function Im(e,t,n,s){var a=Te,u=io.transition;io.transition=null;try{Te=4,Fa(e,t,n,s)}finally{Te=a,io.transition=u}}function Fa(e,t,n,s){if(di){var a=Ua(e,t,n,s);if(a===null)rl(e,t,s,fi,n),Rc(e,s);else if(Om(a,e,t,n,s))s.stopPropagation();else if(Rc(e,s),t&4&&-1<Tm.indexOf(e)){for(;a!==null;){var u=ws(a);if(u!==null&&Ec(u),u=Ua(e,t,n,s),u===null&&rl(e,t,s,fi,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else rl(e,t,s,null,n)}}var fi=null;function Ua(e,t,n,s){if(fi=null,e=oo(s),e=Er(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fi=e,null}function Oc(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(km()){case _a:return 1;case Sc:return 4;case oi:case bm:return 16;case kc:return 536870912;default:return 16}default:return 16}}var Hn=null,Ba=null,pi=null;function _c(){if(pi)return pi;var e,t=Ba,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 f=n-e;for(s=1;s<=f&&t[n-s]===a[u-s];s++);return pi=a.slice(e,1<s?1-s:void 0)}function hi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function zc(){return!1}function jt(e){function t(n,s,a,u,f){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:zc,this.isPropagationStopped=zc,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=jt(ao),ls=$({},ao,{view:0,detail:0}),Am=jt(ls),Va,Qa,us,gi=$({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ha,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!==us&&(us&&e.type==="mousemove"?(Va=e.screenX-us.screenX,Qa=e.screenY-us.screenY):Qa=Va=0,us=e),Va)},movementY:function(e){return"movementY"in e?e.movementY:Qa}}),Ic=jt(gi),Lm=$({},gi,{dataTransfer:0}),Dm=jt(Lm),Fm=$({},ls,{relatedTarget:0}),$a=jt(Fm),Um=$({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Bm=jt(Um),Wm=$({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vm=jt(Wm),Qm=$({},ao,{data:0}),Ac=jt(Qm),$m={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hm={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"},Km={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Km[e])?!!t[e]:!1}function Ha(){return Gm}var qm=$({},ls,{key:function(e){if(e.key){var t=$m[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ha,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ym=jt(qm),Xm=$({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lc=jt(Xm),Zm=$({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ha}),Jm=jt(Zm),eg=$({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),tg=jt(eg),ng=$({},gi,{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}),rg=jt(ng),og=[9,13,27,32],Ka=p&&"CompositionEvent"in window,cs=null;p&&"documentMode"in document&&(cs=document.documentMode);var sg=p&&"TextEvent"in window&&!cs,Dc=p&&(!Ka||cs&&8<cs&&11>=cs),Fc=" ",Uc=!1;function Bc(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function ig(e,t){switch(e){case"compositionend":return Wc(t);case"keypress":return t.which!==32?null:(Uc=!0,Fc);case"textInput":return e=t.data,e===Fc&&Uc?null:e;default:return null}}function ag(e,t){if(lo)return e==="compositionend"||!Ka&&Bc(e,t)?(e=_c(),pi=Ba=Hn=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dc&&t.locale!=="ko"?null:t.data;default:return null}}var lg={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 Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lg[e.type]:t==="textarea"}function Qc(e,t,n,s){ti(s),t=Si(t,"onChange"),0<t.length&&(n=new Wa("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ds=null,fs=null;function ug(e){ld(e,0)}function yi(e){var t=ho(e);if(Jr(t))return e}function cg(e,t){if(e==="change")return t}var $c=!1;if(p){var Ga;if(p){var qa="oninput"in document;if(!qa){var Hc=document.createElement("div");Hc.setAttribute("oninput","return;"),qa=typeof Hc.oninput=="function"}Ga=qa}else Ga=!1;$c=Ga&&(!document.documentMode||9<document.documentMode)}function Kc(){ds&&(ds.detachEvent("onpropertychange",Gc),fs=ds=null)}function Gc(e){if(e.propertyName==="value"&&yi(fs)){var t=[];Qc(t,fs,e,oo(e)),yt(ug,t)}}function dg(e,t,n){e==="focusin"?(Kc(),ds=t,fs=n,ds.attachEvent("onpropertychange",Gc)):e==="focusout"&&Kc()}function fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(fs)}function pg(e,t){if(e==="click")return yi(t)}function hg(e,t){if(e==="input"||e==="change")return yi(t)}function mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:mg;function ps(e,t){if(Qt(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(!x.call(t,a)||!Qt(e[a],t[a]))return!1}return!0}function qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var n=qc(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=qc(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(){for(var e=window,t=kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kr(e.document)}return t}function Ya(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 gg(e){var t=Zc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xc(n.ownerDocument.documentElement,n)){if(s!==null&&Ya(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=Yc(n,u);var f=Yc(n,s);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yg=p&&"documentMode"in document&&11>=document.documentMode,uo=null,Xa=null,hs=null,Za=!1;function Jc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Za||uo==null||uo!==kr(s)||(s=uo,"selectionStart"in s&&Ya(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}),hs&&ps(hs,s)||(hs=s,s=Si(Xa,"onSelect"),0<s.length&&(t=new Wa("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},Ja={},ed={};p&&(ed=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function wi(e){if(Ja[e])return Ja[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ed)return Ja[e]=t[n];return e}var td=wi("animationend"),nd=wi("animationiteration"),rd=wi("animationstart"),od=wi("transitionend"),sd=new Map,id="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Kn(e,t){sd.set(e,t),d(t,[e])}for(var el=0;el<id.length;el++){var tl=id[el],vg=tl.toLowerCase(),wg=tl[0].toUpperCase()+tl.slice(1);Kn(vg,"on"+wg)}Kn(td,"onAnimationEnd"),Kn(nd,"onAnimationIteration"),Kn(rd,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(od,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),xg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function ad(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,vm(s,t,void 0,e),e.currentTarget=null}function ld(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 f=s.length-1;0<=f;f--){var g=s[f],b=g.instance,O=g.currentTarget;if(g=g.listener,b!==u&&a.isPropagationStopped())break e;ad(a,g,O),u=b}else for(f=0;f<s.length;f++){if(g=s[f],b=g.instance,O=g.currentTarget,g=g.listener,b!==u&&a.isPropagationStopped())break e;ad(a,g,O),u=b}}}if(ri)throw e=Oa,ri=!1,Oa=null,e}function Ae(e,t){var n=t[ul];n===void 0&&(n=t[ul]=new Set);var s=e+"__bubble";n.has(s)||(ud(t,e,2,!1),n.add(s))}function nl(e,t,n){var s=0;t&&(s|=4),ud(n,e,s,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[xi]){e[xi]=!0,l.forEach(function(n){n!=="selectionchange"&&(xg.has(n)||nl(n,!1,e),nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,nl("selectionchange",!1,t))}}function ud(e,t,n,s){switch(Oc(t)){case 1:var a=zm;break;case 4:a=Im;break;default:a=Fa}n=a.bind(null,t,n,e),a=void 0,!Wt||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 rl(e,t,n,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var g=s.stateNode.containerInfo;if(g===a||g.nodeType===8&&g.parentNode===a)break;if(f===4)for(f=s.return;f!==null;){var b=f.tag;if((b===3||b===4)&&(b=f.stateNode.containerInfo,b===a||b.nodeType===8&&b.parentNode===a))return;f=f.return}for(;g!==null;){if(f=Er(g),f===null)return;if(b=f.tag,b===5||b===6){s=u=f;continue e}g=g.parentNode}}s=s.return}yt(function(){var O=u,D=oo(n),F=[];e:{var A=sd.get(e);if(A!==void 0){var X=Wa,ne=e;switch(e){case"keypress":if(hi(n)===0)break e;case"keydown":case"keyup":X=Ym;break;case"focusin":ne="focus",X=$a;break;case"focusout":ne="blur",X=$a;break;case"beforeblur":case"afterblur":X=$a;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":X=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Jm;break;case td:case nd:case rd:X=Bm;break;case od:X=tg;break;case"scroll":X=Am;break;case"wheel":X=rg;break;case"copy":case"cut":case"paste":X=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Lc}var re=(t&4)!==0,Ke=!re&&e==="scroll",j=re?A!==null?A+"Capture":null:A;re=[];for(var E=O,R;E!==null;){R=E;var V=R.stateNode;if(R.tag===5&&V!==null&&(R=V,j!==null&&(V=vt(E,j),V!=null&&re.push(ys(E,V,R)))),Ke)break;E=E.return}0<re.length&&(A=new X(A,ne,null,n,D),F.push({event:A,listeners:re}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",A&&n!==Jo&&(ne=n.relatedTarget||n.fromElement)&&(Er(ne)||ne[bn]))break e;if((X||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,X?(ne=n.relatedTarget||n.toElement,X=O,ne=ne?Er(ne):null,ne!==null&&(Ke=Cr(ne),ne!==Ke||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(X=null,ne=O),X!==ne)){if(re=Ic,V="onMouseLeave",j="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(re=Lc,V="onPointerLeave",j="onPointerEnter",E="pointer"),Ke=X==null?A:ho(X),R=ne==null?A:ho(ne),A=new re(V,E+"leave",X,n,D),A.target=Ke,A.relatedTarget=R,V=null,Er(D)===O&&(re=new re(j,E+"enter",ne,n,D),re.target=R,re.relatedTarget=Ke,V=re),Ke=V,X&&ne)t:{for(re=X,j=ne,E=0,R=re;R;R=fo(R))E++;for(R=0,V=j;V;V=fo(V))R++;for(;0<E-R;)re=fo(re),E--;for(;0<R-E;)j=fo(j),R--;for(;E--;){if(re===j||j!==null&&re===j.alternate)break t;re=fo(re),j=fo(j)}re=null}else re=null;X!==null&&cd(F,A,X,re,!1),ne!==null&&Ke!==null&&cd(F,Ke,ne,re,!0)}}e:{if(A=O?ho(O):window,X=A.nodeName&&A.nodeName.toLowerCase(),X==="select"||X==="input"&&A.type==="file")var ae=cg;else if(Vc(A))if($c)ae=hg;else{ae=fg;var ce=dg}else(X=A.nodeName)&&X.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(ae=pg);if(ae&&(ae=ae(e,O))){Qc(F,ae,n,D);break e}ce&&ce(e,A,O),e==="focusout"&&(ce=A._wrapperState)&&ce.controlled&&A.type==="number"&&Xo(A,"number",A.value)}switch(ce=O?ho(O):window,e){case"focusin":(Vc(ce)||ce.contentEditable==="true")&&(uo=ce,Xa=O,hs=null);break;case"focusout":hs=Xa=uo=null;break;case"mousedown":Za=!0;break;case"contextmenu":case"mouseup":case"dragend":Za=!1,Jc(F,n,D);break;case"selectionchange":if(yg)break;case"keydown":case"keyup":Jc(F,n,D)}var de;if(Ka)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else lo?Bc(e,n)&&(he="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(he="onCompositionStart");he&&(Dc&&n.locale!=="ko"&&(lo||he!=="onCompositionStart"?he==="onCompositionEnd"&&lo&&(de=_c()):(Hn=D,Ba="value"in Hn?Hn.value:Hn.textContent,lo=!0)),ce=Si(O,he),0<ce.length&&(he=new Ac(he,e,null,n,D),F.push({event:he,listeners:ce}),de?he.data=de:(de=Wc(n),de!==null&&(he.data=de)))),(de=sg?ig(e,n):ag(e,n))&&(O=Si(O,"onBeforeInput"),0<O.length&&(D=new Ac("onBeforeInput","beforeinput",null,n,D),F.push({event:D,listeners:O}),D.data=de))}ld(F,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(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(ys(e,u,a)),u=vt(e,t),u!=null&&s.push(ys(e,u,a))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cd(e,t,n,s,a){for(var u=t._reactName,f=[];n!==null&&n!==s;){var g=n,b=g.alternate,O=g.stateNode;if(b!==null&&b===s)break;g.tag===5&&O!==null&&(g=O,a?(b=vt(n,u),b!=null&&f.unshift(ys(n,b,g))):a||(b=vt(n,u),b!=null&&f.push(ys(n,b,g)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Sg=/\r\n?/g,kg=/\u0000|\uFFFD/g;function dd(e){return(typeof e=="string"?e:""+e).replace(Sg,`
38
- `).replace(kg,"")}function ki(e,t,n){if(t=dd(t),dd(e)!==t&&n)throw Error(i(425))}function bi(){}var ol=null,sl=null;function il(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 al=typeof setTimeout=="function"?setTimeout:void 0,bg=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(Eg)}:al;function Eg(e){setTimeout(function(){throw e})}function ll(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),as(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);as(t)}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),dn="__reactFiber$"+po,vs="__reactProps$"+po,bn="__reactContainer$"+po,ul="__reactEvents$"+po,Ng="__reactListeners$"+po,Pg="__reactHandles$"+po;function Er(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pd(e);e!==null;){if(n=e[dn])return n;e=pd(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[dn]||e[bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[vs]||null}var cl=[],mo=-1;function qn(e){return{current:e}}function Le(e){0>mo||(e.current=cl[mo],cl[mo]=null,mo--)}function Ie(e,t){mo++,cl[mo]=e.current,e.current=t}var Yn={},it=qn(Yn),wt=qn(!1),Nr=Yn;function go(e,t){var n=e.type.contextTypes;if(!n)return Yn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xt(e){return e=e.childContextTypes,e!=null}function Ei(){Le(wt),Le(it)}function hd(e,t,n){if(it.current!==Yn)throw Error(i(168));Ie(it,t),Ie(wt,n)}function md(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,fe(e)||"Unknown",a));return $({},n,s)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,Nr=it.current,Ie(it,e),Ie(wt,wt.current),!0}function gd(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=md(e,t,Nr),s.__reactInternalMemoizedMergedChildContext=e,Le(wt),Le(it),Ie(it,e)):Le(wt),Ie(wt,n)}var Cn=null,Pi=!1,dl=!1;function yd(e){Cn===null?Cn=[e]:Cn.push(e)}function jg(e){Pi=!0,yd(e)}function Xn(){if(!dl&&Cn!==null){dl=!0;var e=0,t=Te;try{var n=Cn;for(Te=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),wc(_a,Xn),a}finally{Te=t,dl=!1}}return null}var yo=[],vo=0,ji=null,Ri=0,_t=[],zt=0,Pr=null,En=1,Nn="";function jr(e,t){yo[vo++]=Ri,yo[vo++]=ji,ji=e,Ri=t}function vd(e,t,n){_t[zt++]=En,_t[zt++]=Nn,_t[zt++]=Pr,Pr=e;var s=En;e=Nn;var a=32-Vt(s)-1;s&=~(1<<a),n+=1;var u=32-Vt(t)+a;if(30<u){var f=a-a%5;u=(s&(1<<f)-1).toString(32),s>>=f,a-=f,En=1<<32-Vt(t)+a|n<<a|s,Nn=u+e}else En=1<<u|n<<a|s,Nn=e}function fl(e){e.return!==null&&(jr(e,1),vd(e,1,0))}function pl(e){for(;e===ji;)ji=yo[--vo],yo[vo]=null,Ri=yo[--vo],yo[vo]=null;for(;e===Pr;)Pr=_t[--zt],_t[zt]=null,Nn=_t[--zt],_t[zt]=null,En=_t[--zt],_t[zt]=null}var Rt=null,Mt=null,Ue=!1,$t=null;function wd(e,t){var n=Dt(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 xd(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=Gn(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=Pr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function hl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ml(e){if(Ue){var t=Mt;if(t){var n=t;if(!xd(e,t)){if(hl(e))throw Error(i(418));t=Gn(n.nextSibling);var s=Rt;t&&xd(e,t)?wd(s,n):(e.flags=e.flags&-4097|2,Ue=!1,Rt=e)}}else{if(hl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,Rt=e}}}function Sd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Mi(e){if(e!==Rt)return!1;if(!Ue)return Sd(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!il(e.type,e.memoizedProps)),t&&(t=Mt)){if(hl(e))throw kd(),Error(i(418));for(;t;)wd(e,t),t=Gn(t.nextSibling)}if(Sd(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=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?Gn(e.stateNode.nextSibling):null;return!0}function kd(){for(var e=Mt;e;)e=Gn(e.nextSibling)}function wo(){Mt=Rt=null,Ue=!1}function gl(e){$t===null?$t=[e]:$t.push(e)}var Rg=I.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(f){var g=a.refs;f===null?delete g[u]:g[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bd(e){var t=e._init;return t(e._payload)}function Cd(e){function t(j,E){if(e){var R=j.deletions;R===null?(j.deletions=[E],j.flags|=16):R.push(E)}}function n(j,E){if(!e)return null;for(;E!==null;)t(j,E),E=E.sibling;return null}function s(j,E){for(j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function a(j,E){return j=sr(j,E),j.index=0,j.sibling=null,j}function u(j,E,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<E?(j.flags|=2,E):R):(j.flags|=2,E)):(j.flags|=1048576,E)}function f(j){return e&&j.alternate===null&&(j.flags|=2),j}function g(j,E,R,V){return E===null||E.tag!==6?(E=au(R,j.mode,V),E.return=j,E):(E=a(E,R),E.return=j,E)}function b(j,E,R,V){var ae=R.type;return ae===G?D(j,E,R.props.children,V,R.key):E!==null&&(E.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===_e&&bd(ae)===E.type)?(V=a(E,R.props),V.ref=xs(j,E,R),V.return=j,V):(V=ta(R.type,R.key,R.props,null,j.mode,V),V.ref=xs(j,E,R),V.return=j,V)}function O(j,E,R,V){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=lu(R,j.mode,V),E.return=j,E):(E=a(E,R.children||[]),E.return=j,E)}function D(j,E,R,V,ae){return E===null||E.tag!==7?(E=Ar(R,j.mode,V,ae),E.return=j,E):(E=a(E,R),E.return=j,E)}function F(j,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return E=au(""+E,j.mode,R),E.return=j,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:return R=ta(E.type,E.key,E.props,null,j.mode,R),R.ref=xs(j,null,E),R.return=j,R;case oe:return E=lu(E,j.mode,R),E.return=j,E;case _e:var V=E._init;return F(j,V(E._payload),R)}if(Un(E)||B(E))return E=Ar(E,j.mode,R,null),E.return=j,E;Ti(j,E)}return null}function A(j,E,R,V){var ae=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ae!==null?null:g(j,E,""+R,V);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:return R.key===ae?b(j,E,R,V):null;case oe:return R.key===ae?O(j,E,R,V):null;case _e:return ae=R._init,A(j,E,ae(R._payload),V)}if(Un(R)||B(R))return ae!==null?null:D(j,E,R,V,null);Ti(j,R)}return null}function X(j,E,R,V,ae){if(typeof V=="string"&&V!==""||typeof V=="number")return j=j.get(R)||null,g(E,j,""+V,ae);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case Z:return j=j.get(V.key===null?R:V.key)||null,b(E,j,V,ae);case oe:return j=j.get(V.key===null?R:V.key)||null,O(E,j,V,ae);case _e:var ce=V._init;return X(j,E,R,ce(V._payload),ae)}if(Un(V)||B(V))return j=j.get(R)||null,D(E,j,V,ae,null);Ti(E,V)}return null}function ne(j,E,R,V){for(var ae=null,ce=null,de=E,he=E=0,tt=null;de!==null&&he<R.length;he++){de.index>he?(tt=de,de=null):tt=de.sibling;var Ne=A(j,de,R[he],V);if(Ne===null){de===null&&(de=tt);break}e&&de&&Ne.alternate===null&&t(j,de),E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne,de=tt}if(he===R.length)return n(j,de),Ue&&jr(j,he),ae;if(de===null){for(;he<R.length;he++)de=F(j,R[he],V),de!==null&&(E=u(de,E,he),ce===null?ae=de:ce.sibling=de,ce=de);return Ue&&jr(j,he),ae}for(de=s(j,de);he<R.length;he++)tt=X(de,j,he,R[he],V),tt!==null&&(e&&tt.alternate!==null&&de.delete(tt.key===null?he:tt.key),E=u(tt,E,he),ce===null?ae=tt:ce.sibling=tt,ce=tt);return e&&de.forEach(function(ir){return t(j,ir)}),Ue&&jr(j,he),ae}function re(j,E,R,V){var ae=B(R);if(typeof ae!="function")throw Error(i(150));if(R=ae.call(R),R==null)throw Error(i(151));for(var ce=ae=null,de=E,he=E=0,tt=null,Ne=R.next();de!==null&&!Ne.done;he++,Ne=R.next()){de.index>he?(tt=de,de=null):tt=de.sibling;var ir=A(j,de,Ne.value,V);if(ir===null){de===null&&(de=tt);break}e&&de&&ir.alternate===null&&t(j,de),E=u(ir,E,he),ce===null?ae=ir:ce.sibling=ir,ce=ir,de=tt}if(Ne.done)return n(j,de),Ue&&jr(j,he),ae;if(de===null){for(;!Ne.done;he++,Ne=R.next())Ne=F(j,Ne.value,V),Ne!==null&&(E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne);return Ue&&jr(j,he),ae}for(de=s(j,de);!Ne.done;he++,Ne=R.next())Ne=X(de,j,he,Ne.value,V),Ne!==null&&(e&&Ne.alternate!==null&&de.delete(Ne.key===null?he:Ne.key),E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne);return e&&de.forEach(function(ly){return t(j,ly)}),Ue&&jr(j,he),ae}function Ke(j,E,R,V){if(typeof R=="object"&&R!==null&&R.type===G&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:e:{for(var ae=R.key,ce=E;ce!==null;){if(ce.key===ae){if(ae=R.type,ae===G){if(ce.tag===7){n(j,ce.sibling),E=a(ce,R.props.children),E.return=j,j=E;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===_e&&bd(ae)===ce.type){n(j,ce.sibling),E=a(ce,R.props),E.ref=xs(j,ce,R),E.return=j,j=E;break e}n(j,ce);break}else t(j,ce);ce=ce.sibling}R.type===G?(E=Ar(R.props.children,j.mode,V,R.key),E.return=j,j=E):(V=ta(R.type,R.key,R.props,null,j.mode,V),V.ref=xs(j,E,R),V.return=j,j=V)}return f(j);case oe:e:{for(ce=R.key;E!==null;){if(E.key===ce)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){n(j,E.sibling),E=a(E,R.children||[]),E.return=j,j=E;break e}else{n(j,E);break}else t(j,E);E=E.sibling}E=lu(R,j.mode,V),E.return=j,j=E}return f(j);case _e:return ce=R._init,Ke(j,E,ce(R._payload),V)}if(Un(R))return ne(j,E,R,V);if(B(R))return re(j,E,R,V);Ti(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,E!==null&&E.tag===6?(n(j,E.sibling),E=a(E,R),E.return=j,j=E):(n(j,E),E=au(R,j.mode,V),E.return=j,j=E),f(j)):n(j,E)}return Ke}var xo=Cd(!0),Ed=Cd(!1),Oi=qn(null),_i=null,So=null,yl=null;function vl(){yl=So=_i=null}function wl(e){var t=Oi.current;Le(Oi),e._currentValue=t}function xl(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 ko(e,t){_i=e,yl=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(yl!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(_i===null)throw Error(i(308));So=e,_i.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Rr=null;function Sl(e){Rr===null?Rr=[e]:Rr.push(e)}function Nd(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,Sl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,s)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zn=!1;function kl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ee&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Pn(e,n)}return a=s.interleaved,a===null?(t.next=t,Sl(s)):(t.next=a.next,a.next=t),s.interleaved=t,Pn(e,n)}function zi(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,Aa(e,n)}}function jd(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 f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=f:u=u.next=f,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 Ii(e,t,n,s){var a=e.updateQueue;Zn=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var b=g,O=b.next;b.next=null,f===null?u=O:f.next=O,f=b;var D=e.alternate;D!==null&&(D=D.updateQueue,g=D.lastBaseUpdate,g!==f&&(g===null?D.firstBaseUpdate=O:g.next=O,D.lastBaseUpdate=b))}if(u!==null){var F=a.baseState;f=0,D=O=b=null,g=u;do{var A=g.lane,X=g.eventTime;if((s&A)===A){D!==null&&(D=D.next={eventTime:X,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var ne=e,re=g;switch(A=t,X=n,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){F=ne.call(X,F,A);break e}F=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,A=typeof ne=="function"?ne.call(X,F,A):ne,A==null)break e;F=$({},F,A);break e;case 2:Zn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[g]:A.push(g))}else X={eventTime:X,lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},D===null?(O=D=X,b=F):D=D.next=X,f|=A;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;A=g,g=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(D===null&&(b=F),a.baseState=b,a.firstBaseUpdate=O,a.lastBaseUpdate=D,t=a.shared.interleaved,t!==null){a=t;do f|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=F}}function Rd(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 Ss={},fn=qn(Ss),ks=qn(Ss),bs=qn(Ss);function Mr(e){if(e===Ss)throw Error(i(174));return e}function bl(e,t){switch(Ie(bs,t),Ie(ks,e),Ie(fn,Ss),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),Ie(fn,t)}function bo(){Le(fn),Le(ks),Le(bs)}function Md(e){Mr(bs.current);var t=Mr(fn.current),n=on(t,e.type);t!==n&&(Ie(ks,e),Ie(fn,n))}function Cl(e){ks.current===e&&(Le(fn),Le(ks))}var We=qn(0);function Ai(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 El=[];function Nl(){for(var e=0;e<El.length;e++)El[e]._workInProgressVersionPrimary=null;El.length=0}var Li=I.ReactCurrentDispatcher,Pl=I.ReactCurrentBatchConfig,Tr=0,Ve=null,qe=null,Je=null,Di=!1,Cs=!1,Es=0,Mg=0;function at(){throw Error(i(321))}function jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function Rl(e,t,n,s,a,u){if(Tr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?zg:Ig,e=n(s,a),Cs){u=0;do{if(Cs=!1,Es=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Li.current=Ag,e=n(s,a)}while(Cs)}if(Li.current=Bi,t=qe!==null&&qe.next!==null,Tr=0,Je=qe=Ve=null,Di=!1,t)throw Error(i(300));return e}function Ml(){var e=Es!==0;return Es=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 At(){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 Ns(e,t){return typeof t=="function"?t(e):t}function Tl(e){var t=At(),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 f=a.next;a.next=u.next,u.next=f}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var g=f=null,b=null,O=u;do{var D=O.lane;if((Tr&D)===D)b!==null&&(b=b.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 F={lane:D,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};b===null?(g=b=F,f=s):b=b.next=F,Ve.lanes|=D,Or|=D}O=O.next}while(O!==null&&O!==u);b===null?f=s:b.next=g,Qt(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=b,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Or|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ol(e){var t=At(),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 f=a=a.next;do u=e(u,f.action),f=f.next;while(f!==a);Qt(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Td(){}function Od(e,t){var n=Ve,s=At(),a=t(),u=!Qt(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,_l(Id.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ps(9,zd.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Tr&30)!==0||_d(n,t,a)}return a}function _d(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 zd(e,t,n,s){t.value=n,t.getSnapshot=s,Ad(t)&&Ld(e)}function Id(e,t,n){return n(function(){Ad(t)&&Ld(e)})}function Ad(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function Ld(e){var t=Pn(e,1);t!==null&&qt(t,e,1,-1)}function Dd(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:Ns,lastRenderedState:e},t.queue=e,e=e.dispatch=_g.bind(null,Ve,e),[t.memoizedState,e]}function Ps(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 Fd(){return At().memoizedState}function Fi(e,t,n,s){var a=pn();Ve.flags|=e,a.memoizedState=Ps(1|t,n,void 0,s===void 0?null:s)}function Ui(e,t,n,s){var a=At();s=s===void 0?null:s;var u=void 0;if(qe!==null){var f=qe.memoizedState;if(u=f.destroy,s!==null&&jl(s,f.deps)){a.memoizedState=Ps(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ps(1|t,n,u,s)}function Ud(e,t){return Fi(8390656,8,e,t)}function _l(e,t){return Ui(2048,8,e,t)}function Bd(e,t){return Ui(4,2,e,t)}function Wd(e,t){return Ui(4,4,e,t)}function Vd(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 Qd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Vd.bind(null,t,e),n)}function zl(){}function $d(e,t){var n=At();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&jl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=At();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&jl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Kd(e,t,n){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):(Qt(n,t)||(n=bc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function Tg(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var s=Pl.transition;Pl.transition={};try{e(!1),t()}finally{Te=n,Pl.transition=s}}function Gd(){return At().memoizedState}function Og(e,t,n){var s=rr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},qd(e))Yd(t,n);else if(n=Nd(e,t,n,s),n!==null){var a=ht();qt(n,e,s,a),Xd(n,t,s)}}function _g(e,t,n){var s=rr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(qd(e))Yd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,g=u(f,n);if(a.hasEagerState=!0,a.eagerState=g,Qt(g,f)){var b=t.interleaved;b===null?(a.next=a,Sl(t)):(a.next=b.next,b.next=a),t.interleaved=a;return}}catch{}finally{}n=Nd(e,t,a,s),n!==null&&(a=ht(),qt(n,e,s,a),Xd(n,t,s))}}function qd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Yd(e,t){Cs=Di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Aa(e,n)}}var Bi={readContext:It,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},zg={readContext:It,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(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=Og.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Dd,useDebugValue:zl,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Dd(!1),t=e[0];return e=Tg.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=pn();if(Ue){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Tr&30)!==0||_d(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Ud(Id.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,zd.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=pn(),t=et.identifierPrefix;if(Ue){var n=Nn,s=En;n=(s&~(1<<32-Vt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ig={readContext:It,useCallback:$d,useContext:It,useEffect:_l,useImperativeHandle:Qd,useInsertionEffect:Bd,useLayoutEffect:Wd,useMemo:Hd,useReducer:Tl,useRef:Fd,useState:function(){return Tl(Ns)},useDebugValue:zl,useDeferredValue:function(e){var t=At();return Kd(t,qe.memoizedState,e)},useTransition:function(){var e=Tl(Ns)[0],t=At().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Od,useId:Gd,unstable_isNewReconciler:!1},Ag={readContext:It,useCallback:$d,useContext:It,useEffect:_l,useImperativeHandle:Qd,useInsertionEffect:Bd,useLayoutEffect:Wd,useMemo:Hd,useReducer:Ol,useRef:Fd,useState:function(){return Ol(Ns)},useDebugValue:zl,useDeferredValue:function(e){var t=At();return qe===null?t.memoizedState=e:Kd(t,qe.memoizedState,e)},useTransition:function(){var e=Ol(Ns)[0],t=At().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Od,useId:Gd,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=$({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Il(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:$({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=rr(e),u=jn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,a),t!==null&&(qt(t,e,a,s),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=rr(e),u=jn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,a),t!==null&&(qt(t,e,a,s),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=rr(e),a=jn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Jn(e,a,s),t!==null&&(qt(t,e,s,n),zi(t,e,s))}};function Zd(e,t,n,s,a,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ps(n,s)||!ps(a,u):!0}function Jd(e,t,n){var s=!1,a=Yn,u=t.contextType;return typeof u=="object"&&u!==null?u=It(u):(a=xt(t)?Nr:it.current,s=t.contextTypes,u=(s=s!=null)?go(e,a):Yn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function ef(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&&Wi.enqueueReplaceState(t,t.state,null)}function Al(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},kl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=It(u):(u=xt(t)?Nr:it.current,a.context=go(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Il(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=pe(s),s=s.return;while(s);var a=n}catch(u){a=`
36
+ `),f=a.length-1,g=u.length-1;1<=f&&0<=g&&a[f]!==u[g];)g--;for(;1<=f&&0<=g;f--,g--)if(a[f]!==u[g]){if(f!==1||g!==1)do if(f--,g--,0>g||a[f]!==u[g]){var k=`
37
+ `+a[f].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=f&&0<=g);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function pe(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function we(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 q:return"Fragment";case oe:return"Portal";case U:return"Profiler";case te:return"StrictMode";case ke:return"Suspense";case Oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case le: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:we(e.type)||"Memo";case ze:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}function fe(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 we(t);case 8:return t===te?"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 Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Re(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(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Re(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function br(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 Go(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Ce(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 qo(e,t){t=t.checked,t!=null&&W(e,"checked",t,!1)}function Yo(e,t){qo(e,t);var n=Ce(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")?Xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xo(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xo(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function Ot(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=""+Ce(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 to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return $({},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(Un(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ce(n)}}function Ys(e,t){var n=Ce(t.value),s=Ce(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 Xs(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 no,Zs=(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(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function 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},Js=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Js.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ro(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 bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var ei=$({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(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Zo(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 Jo=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Bn=null,ln=null;function Bt(e){if(e=ws(e)){if(typeof so!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),so(e.stateNode,e.type,t))}}function ti(e){Bn?ln?ln.push(e):ln=[e]:Bn=e}function me(){if(Bn){var e=Bn,t=ln;if(ln=Bn=null,Bt(e),t)for(e=0;e<t.length;e++)Bt(t[e])}}function je(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 je(e,t,n)}finally{ft=!1,(Bn!==null||ln!==null)&&(_e(),me())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=Ci(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 Wt=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Wt=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Wt=!1}function un(e,t,n,s,a,u,f,g,k){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(L){this.onError(L)}}var es=!1,ni=null,ri=!1,Oa=null,gm={onError:function(e){es=!0,ni=e}};function ym(e,t,n,s,a,u,f,g,k){es=!1,ni=null,un.apply(gm,arguments)}function vm(e,t,n,s,a,u,f,g,k){if(ym.apply(this,arguments),es){if(es){var O=ni;es=!1,ni=null}else throw Error(i(198));ri||(ri=!0,Oa=O)}}function Cr(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 mc(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 gc(e){if(Cr(e)!==e)throw Error(i(188))}function wm(e){var t=e.alternate;if(!t){if(t=Cr(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 gc(a),e;if(u===s)return gc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var f=!1,g=a.child;g;){if(g===n){f=!0,n=a,s=u;break}if(g===s){f=!0,s=a,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,s=a;break}if(g===s){f=!0,s=u,n=a;break}g=g.sibling}if(!f)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 yc(e){return e=wm(e),e!==null?vc(e):null}function vc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vc(e);if(t!==null)return t;e=e.sibling}return null}var wc=o.unstable_scheduleCallback,xc=o.unstable_cancelCallback,xm=o.unstable_shouldYield,Sm=o.unstable_requestPaint,He=o.unstable_now,bm=o.unstable_getCurrentPriorityLevel,za=o.unstable_ImmediatePriority,Sc=o.unstable_UserBlockingPriority,oi=o.unstable_NormalPriority,km=o.unstable_LowPriority,bc=o.unstable_IdlePriority,si=null,cn=null;function Cm(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(si,e,void 0,(e.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Pm,Em=Math.log,Nm=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Em(e)/Nm|0)|0}var ii=64,ai=4194304;function ts(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function li(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var g=f&~a;g!==0?s=ts(g):(u&=f,u!==0&&(s=ts(u)))}else f=n&~a,f!==0?s=ts(f):u!==0&&(s=ts(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-Vt(t),a=1<<n,s|=e[n],t&=~a;return s}function jm(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 Rm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Vt(u),g=1<<f,k=a[f];k===-1?((g&n)===0||(g&s)!==0)&&(a[f]=jm(g,t)):k<=t&&(e.expiredLanes|=g),u&=~g}}function _a(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function Ia(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function Mm(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-Vt(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function Aa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Vt(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Te=0;function Cc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ec,Da,Nc,Pc,jc,La=!1,ui=[],Wn=null,Vn=null,Qn=null,rs=new Map,os=new Map,$n=[],Tm="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 Rc(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function ss(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=ws(t),t!==null&&Da(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Om(e,t,n,s,a){switch(t){case"focusin":return Wn=ss(Wn,e,t,n,s,a),!0;case"dragenter":return Vn=ss(Vn,e,t,n,s,a),!0;case"mouseover":return Qn=ss(Qn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return rs.set(u,ss(rs.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,os.set(u,ss(os.get(u)||null,e,t,n,s,a)),!0}return!1}function Mc(e){var t=Er(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=mc(n),t!==null){e.blockedOn=t,jc(e.priority,function(){Nc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ua(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Jo=s,n.target.dispatchEvent(s),Jo=null}else return t=ws(n),t!==null&&Da(t),e.blockedOn=n,!1;t.shift()}return!0}function Tc(e,t,n){ci(e)&&n.delete(t)}function zm(){La=!1,Wn!==null&&ci(Wn)&&(Wn=null),Vn!==null&&ci(Vn)&&(Vn=null),Qn!==null&&ci(Qn)&&(Qn=null),rs.forEach(Tc),os.forEach(Tc)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,La||(La=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zm)))}function as(e){function t(a){return is(a,e)}if(0<ui.length){is(ui[0],e);for(var n=1;n<ui.length;n++){var s=ui[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Wn!==null&&is(Wn,e),Vn!==null&&is(Vn,e),Qn!==null&&is(Qn,e),rs.forEach(t),os.forEach(t),n=0;n<$n.length;n++)s=$n[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Mc(n),n.blockedOn===null&&$n.shift()}var io=I.ReactCurrentBatchConfig,di=!0;function _m(e,t,n,s){var a=Te,u=io.transition;io.transition=null;try{Te=1,Fa(e,t,n,s)}finally{Te=a,io.transition=u}}function Im(e,t,n,s){var a=Te,u=io.transition;io.transition=null;try{Te=4,Fa(e,t,n,s)}finally{Te=a,io.transition=u}}function Fa(e,t,n,s){if(di){var a=Ua(e,t,n,s);if(a===null)rl(e,t,s,fi,n),Rc(e,s);else if(Om(a,e,t,n,s))s.stopPropagation();else if(Rc(e,s),t&4&&-1<Tm.indexOf(e)){for(;a!==null;){var u=ws(a);if(u!==null&&Ec(u),u=Ua(e,t,n,s),u===null&&rl(e,t,s,fi,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else rl(e,t,s,null,n)}}var fi=null;function Ua(e,t,n,s){if(fi=null,e=oo(s),e=Er(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fi=e,null}function Oc(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(bm()){case za:return 1;case Sc:return 4;case oi:case km:return 16;case bc:return 536870912;default:return 16}default:return 16}}var Hn=null,Ba=null,pi=null;function zc(){if(pi)return pi;var e,t=Ba,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 f=n-e;for(s=1;s<=f&&t[n-s]===a[u-s];s++);return pi=a.slice(e,1<s?1-s:void 0)}function hi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function _c(){return!1}function jt(e){function t(n,s,a,u,f){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:_c,this.isPropagationStopped=_c,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=jt(ao),ls=$({},ao,{view:0,detail:0}),Am=jt(ls),Va,Qa,us,gi=$({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ha,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!==us&&(us&&e.type==="mousemove"?(Va=e.screenX-us.screenX,Qa=e.screenY-us.screenY):Qa=Va=0,us=e),Va)},movementY:function(e){return"movementY"in e?e.movementY:Qa}}),Ic=jt(gi),Dm=$({},gi,{dataTransfer:0}),Lm=jt(Dm),Fm=$({},ls,{relatedTarget:0}),$a=jt(Fm),Um=$({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Bm=jt(Um),Wm=$({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vm=jt(Wm),Qm=$({},ao,{data:0}),Ac=jt(Qm),$m={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hm={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"},Km={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Km[e])?!!t[e]:!1}function Ha(){return Gm}var qm=$({},ls,{key:function(e){if(e.key){var t=$m[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ha,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ym=jt(qm),Xm=$({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dc=jt(Xm),Zm=$({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ha}),Jm=jt(Zm),eg=$({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),tg=jt(eg),ng=$({},gi,{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}),rg=jt(ng),og=[9,13,27,32],Ka=p&&"CompositionEvent"in window,cs=null;p&&"documentMode"in document&&(cs=document.documentMode);var sg=p&&"TextEvent"in window&&!cs,Lc=p&&(!Ka||cs&&8<cs&&11>=cs),Fc=" ",Uc=!1;function Bc(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function ig(e,t){switch(e){case"compositionend":return Wc(t);case"keypress":return t.which!==32?null:(Uc=!0,Fc);case"textInput":return e=t.data,e===Fc&&Uc?null:e;default:return null}}function ag(e,t){if(lo)return e==="compositionend"||!Ka&&Bc(e,t)?(e=zc(),pi=Ba=Hn=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lc&&t.locale!=="ko"?null:t.data;default:return null}}var lg={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 Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lg[e.type]:t==="textarea"}function Qc(e,t,n,s){ti(s),t=Si(t,"onChange"),0<t.length&&(n=new Wa("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ds=null,fs=null;function ug(e){ld(e,0)}function yi(e){var t=ho(e);if(Jr(t))return e}function cg(e,t){if(e==="change")return t}var $c=!1;if(p){var Ga;if(p){var qa="oninput"in document;if(!qa){var Hc=document.createElement("div");Hc.setAttribute("oninput","return;"),qa=typeof Hc.oninput=="function"}Ga=qa}else Ga=!1;$c=Ga&&(!document.documentMode||9<document.documentMode)}function Kc(){ds&&(ds.detachEvent("onpropertychange",Gc),fs=ds=null)}function Gc(e){if(e.propertyName==="value"&&yi(fs)){var t=[];Qc(t,fs,e,oo(e)),yt(ug,t)}}function dg(e,t,n){e==="focusin"?(Kc(),ds=t,fs=n,ds.attachEvent("onpropertychange",Gc)):e==="focusout"&&Kc()}function fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(fs)}function pg(e,t){if(e==="click")return yi(t)}function hg(e,t){if(e==="input"||e==="change")return yi(t)}function mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:mg;function ps(e,t){if(Qt(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(!x.call(t,a)||!Qt(e[a],t[a]))return!1}return!0}function qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var n=qc(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=qc(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=br(e.document)}return t}function Ya(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 gg(e){var t=Zc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xc(n.ownerDocument.documentElement,n)){if(s!==null&&Ya(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=Yc(n,u);var f=Yc(n,s);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yg=p&&"documentMode"in document&&11>=document.documentMode,uo=null,Xa=null,hs=null,Za=!1;function Jc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Za||uo==null||uo!==br(s)||(s=uo,"selectionStart"in s&&Ya(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}),hs&&ps(hs,s)||(hs=s,s=Si(Xa,"onSelect"),0<s.length&&(t=new Wa("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},Ja={},ed={};p&&(ed=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function wi(e){if(Ja[e])return Ja[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ed)return Ja[e]=t[n];return e}var td=wi("animationend"),nd=wi("animationiteration"),rd=wi("animationstart"),od=wi("transitionend"),sd=new Map,id="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Kn(e,t){sd.set(e,t),d(t,[e])}for(var el=0;el<id.length;el++){var tl=id[el],vg=tl.toLowerCase(),wg=tl[0].toUpperCase()+tl.slice(1);Kn(vg,"on"+wg)}Kn(td,"onAnimationEnd"),Kn(nd,"onAnimationIteration"),Kn(rd,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(od,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),xg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function ad(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,vm(s,t,void 0,e),e.currentTarget=null}function ld(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 f=s.length-1;0<=f;f--){var g=s[f],k=g.instance,O=g.currentTarget;if(g=g.listener,k!==u&&a.isPropagationStopped())break e;ad(a,g,O),u=k}else for(f=0;f<s.length;f++){if(g=s[f],k=g.instance,O=g.currentTarget,g=g.listener,k!==u&&a.isPropagationStopped())break e;ad(a,g,O),u=k}}}if(ri)throw e=Oa,ri=!1,Oa=null,e}function Ae(e,t){var n=t[ul];n===void 0&&(n=t[ul]=new Set);var s=e+"__bubble";n.has(s)||(ud(t,e,2,!1),n.add(s))}function nl(e,t,n){var s=0;t&&(s|=4),ud(n,e,s,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[xi]){e[xi]=!0,l.forEach(function(n){n!=="selectionchange"&&(xg.has(n)||nl(n,!1,e),nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,nl("selectionchange",!1,t))}}function ud(e,t,n,s){switch(Oc(t)){case 1:var a=_m;break;case 4:a=Im;break;default:a=Fa}n=a.bind(null,t,n,e),a=void 0,!Wt||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 rl(e,t,n,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var g=s.stateNode.containerInfo;if(g===a||g.nodeType===8&&g.parentNode===a)break;if(f===4)for(f=s.return;f!==null;){var k=f.tag;if((k===3||k===4)&&(k=f.stateNode.containerInfo,k===a||k.nodeType===8&&k.parentNode===a))return;f=f.return}for(;g!==null;){if(f=Er(g),f===null)return;if(k=f.tag,k===5||k===6){s=u=f;continue e}g=g.parentNode}}s=s.return}yt(function(){var O=u,L=oo(n),F=[];e:{var A=sd.get(e);if(A!==void 0){var X=Wa,ne=e;switch(e){case"keypress":if(hi(n)===0)break e;case"keydown":case"keyup":X=Ym;break;case"focusin":ne="focus",X=$a;break;case"focusout":ne="blur",X=$a;break;case"beforeblur":case"afterblur":X=$a;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":X=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Jm;break;case td:case nd:case rd:X=Bm;break;case od:X=tg;break;case"scroll":X=Am;break;case"wheel":X=rg;break;case"copy":case"cut":case"paste":X=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Dc}var re=(t&4)!==0,Ke=!re&&e==="scroll",j=re?A!==null?A+"Capture":null:A;re=[];for(var E=O,R;E!==null;){R=E;var V=R.stateNode;if(R.tag===5&&V!==null&&(R=V,j!==null&&(V=vt(E,j),V!=null&&re.push(ys(E,V,R)))),Ke)break;E=E.return}0<re.length&&(A=new X(A,ne,null,n,L),F.push({event:A,listeners:re}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",A&&n!==Jo&&(ne=n.relatedTarget||n.fromElement)&&(Er(ne)||ne[kn]))break e;if((X||A)&&(A=L.window===L?L:(A=L.ownerDocument)?A.defaultView||A.parentWindow:window,X?(ne=n.relatedTarget||n.toElement,X=O,ne=ne?Er(ne):null,ne!==null&&(Ke=Cr(ne),ne!==Ke||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(X=null,ne=O),X!==ne)){if(re=Ic,V="onMouseLeave",j="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(re=Dc,V="onPointerLeave",j="onPointerEnter",E="pointer"),Ke=X==null?A:ho(X),R=ne==null?A:ho(ne),A=new re(V,E+"leave",X,n,L),A.target=Ke,A.relatedTarget=R,V=null,Er(L)===O&&(re=new re(j,E+"enter",ne,n,L),re.target=R,re.relatedTarget=Ke,V=re),Ke=V,X&&ne)t:{for(re=X,j=ne,E=0,R=re;R;R=fo(R))E++;for(R=0,V=j;V;V=fo(V))R++;for(;0<E-R;)re=fo(re),E--;for(;0<R-E;)j=fo(j),R--;for(;E--;){if(re===j||j!==null&&re===j.alternate)break t;re=fo(re),j=fo(j)}re=null}else re=null;X!==null&&cd(F,A,X,re,!1),ne!==null&&Ke!==null&&cd(F,Ke,ne,re,!0)}}e:{if(A=O?ho(O):window,X=A.nodeName&&A.nodeName.toLowerCase(),X==="select"||X==="input"&&A.type==="file")var ae=cg;else if(Vc(A))if($c)ae=hg;else{ae=fg;var ce=dg}else(X=A.nodeName)&&X.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(ae=pg);if(ae&&(ae=ae(e,O))){Qc(F,ae,n,L);break e}ce&&ce(e,A,O),e==="focusout"&&(ce=A._wrapperState)&&ce.controlled&&A.type==="number"&&Xo(A,"number",A.value)}switch(ce=O?ho(O):window,e){case"focusin":(Vc(ce)||ce.contentEditable==="true")&&(uo=ce,Xa=O,hs=null);break;case"focusout":hs=Xa=uo=null;break;case"mousedown":Za=!0;break;case"contextmenu":case"mouseup":case"dragend":Za=!1,Jc(F,n,L);break;case"selectionchange":if(yg)break;case"keydown":case"keyup":Jc(F,n,L)}var de;if(Ka)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else lo?Bc(e,n)&&(he="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(he="onCompositionStart");he&&(Lc&&n.locale!=="ko"&&(lo||he!=="onCompositionStart"?he==="onCompositionEnd"&&lo&&(de=zc()):(Hn=L,Ba="value"in Hn?Hn.value:Hn.textContent,lo=!0)),ce=Si(O,he),0<ce.length&&(he=new Ac(he,e,null,n,L),F.push({event:he,listeners:ce}),de?he.data=de:(de=Wc(n),de!==null&&(he.data=de)))),(de=sg?ig(e,n):ag(e,n))&&(O=Si(O,"onBeforeInput"),0<O.length&&(L=new Ac("onBeforeInput","beforeinput",null,n,L),F.push({event:L,listeners:O}),L.data=de))}ld(F,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(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(ys(e,u,a)),u=vt(e,t),u!=null&&s.push(ys(e,u,a))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cd(e,t,n,s,a){for(var u=t._reactName,f=[];n!==null&&n!==s;){var g=n,k=g.alternate,O=g.stateNode;if(k!==null&&k===s)break;g.tag===5&&O!==null&&(g=O,a?(k=vt(n,u),k!=null&&f.unshift(ys(n,k,g))):a||(k=vt(n,u),k!=null&&f.push(ys(n,k,g)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Sg=/\r\n?/g,bg=/\u0000|\uFFFD/g;function dd(e){return(typeof e=="string"?e:""+e).replace(Sg,`
38
+ `).replace(bg,"")}function bi(e,t,n){if(t=dd(t),dd(e)!==t&&n)throw Error(i(425))}function ki(){}var ol=null,sl=null;function il(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 al=typeof setTimeout=="function"?setTimeout:void 0,kg=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(Eg)}:al;function Eg(e){setTimeout(function(){throw e})}function ll(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),as(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);as(t)}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),dn="__reactFiber$"+po,vs="__reactProps$"+po,kn="__reactContainer$"+po,ul="__reactEvents$"+po,Ng="__reactListeners$"+po,Pg="__reactHandles$"+po;function Er(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pd(e);e!==null;){if(n=e[dn])return n;e=pd(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[dn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[vs]||null}var cl=[],mo=-1;function qn(e){return{current:e}}function De(e){0>mo||(e.current=cl[mo],cl[mo]=null,mo--)}function Ie(e,t){mo++,cl[mo]=e.current,e.current=t}var Yn={},it=qn(Yn),wt=qn(!1),Nr=Yn;function go(e,t){var n=e.type.contextTypes;if(!n)return Yn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xt(e){return e=e.childContextTypes,e!=null}function Ei(){De(wt),De(it)}function hd(e,t,n){if(it.current!==Yn)throw Error(i(168));Ie(it,t),Ie(wt,n)}function md(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,fe(e)||"Unknown",a));return $({},n,s)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,Nr=it.current,Ie(it,e),Ie(wt,wt.current),!0}function gd(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=md(e,t,Nr),s.__reactInternalMemoizedMergedChildContext=e,De(wt),De(it),Ie(it,e)):De(wt),Ie(wt,n)}var Cn=null,Pi=!1,dl=!1;function yd(e){Cn===null?Cn=[e]:Cn.push(e)}function jg(e){Pi=!0,yd(e)}function Xn(){if(!dl&&Cn!==null){dl=!0;var e=0,t=Te;try{var n=Cn;for(Te=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),wc(za,Xn),a}finally{Te=t,dl=!1}}return null}var yo=[],vo=0,ji=null,Ri=0,zt=[],_t=0,Pr=null,En=1,Nn="";function jr(e,t){yo[vo++]=Ri,yo[vo++]=ji,ji=e,Ri=t}function vd(e,t,n){zt[_t++]=En,zt[_t++]=Nn,zt[_t++]=Pr,Pr=e;var s=En;e=Nn;var a=32-Vt(s)-1;s&=~(1<<a),n+=1;var u=32-Vt(t)+a;if(30<u){var f=a-a%5;u=(s&(1<<f)-1).toString(32),s>>=f,a-=f,En=1<<32-Vt(t)+a|n<<a|s,Nn=u+e}else En=1<<u|n<<a|s,Nn=e}function fl(e){e.return!==null&&(jr(e,1),vd(e,1,0))}function pl(e){for(;e===ji;)ji=yo[--vo],yo[vo]=null,Ri=yo[--vo],yo[vo]=null;for(;e===Pr;)Pr=zt[--_t],zt[_t]=null,Nn=zt[--_t],zt[_t]=null,En=zt[--_t],zt[_t]=null}var Rt=null,Mt=null,Ue=!1,$t=null;function wd(e,t){var n=Lt(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 xd(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=Gn(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=Pr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function hl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ml(e){if(Ue){var t=Mt;if(t){var n=t;if(!xd(e,t)){if(hl(e))throw Error(i(418));t=Gn(n.nextSibling);var s=Rt;t&&xd(e,t)?wd(s,n):(e.flags=e.flags&-4097|2,Ue=!1,Rt=e)}}else{if(hl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,Rt=e}}}function Sd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Mi(e){if(e!==Rt)return!1;if(!Ue)return Sd(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!il(e.type,e.memoizedProps)),t&&(t=Mt)){if(hl(e))throw bd(),Error(i(418));for(;t;)wd(e,t),t=Gn(t.nextSibling)}if(Sd(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=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?Gn(e.stateNode.nextSibling):null;return!0}function bd(){for(var e=Mt;e;)e=Gn(e.nextSibling)}function wo(){Mt=Rt=null,Ue=!1}function gl(e){$t===null?$t=[e]:$t.push(e)}var Rg=I.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(f){var g=a.refs;f===null?delete g[u]:g[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kd(e){var t=e._init;return t(e._payload)}function Cd(e){function t(j,E){if(e){var R=j.deletions;R===null?(j.deletions=[E],j.flags|=16):R.push(E)}}function n(j,E){if(!e)return null;for(;E!==null;)t(j,E),E=E.sibling;return null}function s(j,E){for(j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function a(j,E){return j=sr(j,E),j.index=0,j.sibling=null,j}function u(j,E,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<E?(j.flags|=2,E):R):(j.flags|=2,E)):(j.flags|=1048576,E)}function f(j){return e&&j.alternate===null&&(j.flags|=2),j}function g(j,E,R,V){return E===null||E.tag!==6?(E=au(R,j.mode,V),E.return=j,E):(E=a(E,R),E.return=j,E)}function k(j,E,R,V){var ae=R.type;return ae===q?L(j,E,R.props.children,V,R.key):E!==null&&(E.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ze&&kd(ae)===E.type)?(V=a(E,R.props),V.ref=xs(j,E,R),V.return=j,V):(V=ta(R.type,R.key,R.props,null,j.mode,V),V.ref=xs(j,E,R),V.return=j,V)}function O(j,E,R,V){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=lu(R,j.mode,V),E.return=j,E):(E=a(E,R.children||[]),E.return=j,E)}function L(j,E,R,V,ae){return E===null||E.tag!==7?(E=Ar(R,j.mode,V,ae),E.return=j,E):(E=a(E,R),E.return=j,E)}function F(j,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return E=au(""+E,j.mode,R),E.return=j,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:return R=ta(E.type,E.key,E.props,null,j.mode,R),R.ref=xs(j,null,E),R.return=j,R;case oe:return E=lu(E,j.mode,R),E.return=j,E;case ze:var V=E._init;return F(j,V(E._payload),R)}if(Un(E)||B(E))return E=Ar(E,j.mode,R,null),E.return=j,E;Ti(j,E)}return null}function A(j,E,R,V){var ae=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ae!==null?null:g(j,E,""+R,V);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:return R.key===ae?k(j,E,R,V):null;case oe:return R.key===ae?O(j,E,R,V):null;case ze:return ae=R._init,A(j,E,ae(R._payload),V)}if(Un(R)||B(R))return ae!==null?null:L(j,E,R,V,null);Ti(j,R)}return null}function X(j,E,R,V,ae){if(typeof V=="string"&&V!==""||typeof V=="number")return j=j.get(R)||null,g(E,j,""+V,ae);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case Z:return j=j.get(V.key===null?R:V.key)||null,k(E,j,V,ae);case oe:return j=j.get(V.key===null?R:V.key)||null,O(E,j,V,ae);case ze:var ce=V._init;return X(j,E,R,ce(V._payload),ae)}if(Un(V)||B(V))return j=j.get(R)||null,L(E,j,V,ae,null);Ti(E,V)}return null}function ne(j,E,R,V){for(var ae=null,ce=null,de=E,he=E=0,tt=null;de!==null&&he<R.length;he++){de.index>he?(tt=de,de=null):tt=de.sibling;var Ne=A(j,de,R[he],V);if(Ne===null){de===null&&(de=tt);break}e&&de&&Ne.alternate===null&&t(j,de),E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne,de=tt}if(he===R.length)return n(j,de),Ue&&jr(j,he),ae;if(de===null){for(;he<R.length;he++)de=F(j,R[he],V),de!==null&&(E=u(de,E,he),ce===null?ae=de:ce.sibling=de,ce=de);return Ue&&jr(j,he),ae}for(de=s(j,de);he<R.length;he++)tt=X(de,j,he,R[he],V),tt!==null&&(e&&tt.alternate!==null&&de.delete(tt.key===null?he:tt.key),E=u(tt,E,he),ce===null?ae=tt:ce.sibling=tt,ce=tt);return e&&de.forEach(function(ir){return t(j,ir)}),Ue&&jr(j,he),ae}function re(j,E,R,V){var ae=B(R);if(typeof ae!="function")throw Error(i(150));if(R=ae.call(R),R==null)throw Error(i(151));for(var ce=ae=null,de=E,he=E=0,tt=null,Ne=R.next();de!==null&&!Ne.done;he++,Ne=R.next()){de.index>he?(tt=de,de=null):tt=de.sibling;var ir=A(j,de,Ne.value,V);if(ir===null){de===null&&(de=tt);break}e&&de&&ir.alternate===null&&t(j,de),E=u(ir,E,he),ce===null?ae=ir:ce.sibling=ir,ce=ir,de=tt}if(Ne.done)return n(j,de),Ue&&jr(j,he),ae;if(de===null){for(;!Ne.done;he++,Ne=R.next())Ne=F(j,Ne.value,V),Ne!==null&&(E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne);return Ue&&jr(j,he),ae}for(de=s(j,de);!Ne.done;he++,Ne=R.next())Ne=X(de,j,he,Ne.value,V),Ne!==null&&(e&&Ne.alternate!==null&&de.delete(Ne.key===null?he:Ne.key),E=u(Ne,E,he),ce===null?ae=Ne:ce.sibling=Ne,ce=Ne);return e&&de.forEach(function(ly){return t(j,ly)}),Ue&&jr(j,he),ae}function Ke(j,E,R,V){if(typeof R=="object"&&R!==null&&R.type===q&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:e:{for(var ae=R.key,ce=E;ce!==null;){if(ce.key===ae){if(ae=R.type,ae===q){if(ce.tag===7){n(j,ce.sibling),E=a(ce,R.props.children),E.return=j,j=E;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ze&&kd(ae)===ce.type){n(j,ce.sibling),E=a(ce,R.props),E.ref=xs(j,ce,R),E.return=j,j=E;break e}n(j,ce);break}else t(j,ce);ce=ce.sibling}R.type===q?(E=Ar(R.props.children,j.mode,V,R.key),E.return=j,j=E):(V=ta(R.type,R.key,R.props,null,j.mode,V),V.ref=xs(j,E,R),V.return=j,j=V)}return f(j);case oe:e:{for(ce=R.key;E!==null;){if(E.key===ce)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){n(j,E.sibling),E=a(E,R.children||[]),E.return=j,j=E;break e}else{n(j,E);break}else t(j,E);E=E.sibling}E=lu(R,j.mode,V),E.return=j,j=E}return f(j);case ze:return ce=R._init,Ke(j,E,ce(R._payload),V)}if(Un(R))return ne(j,E,R,V);if(B(R))return re(j,E,R,V);Ti(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,E!==null&&E.tag===6?(n(j,E.sibling),E=a(E,R),E.return=j,j=E):(n(j,E),E=au(R,j.mode,V),E.return=j,j=E),f(j)):n(j,E)}return Ke}var xo=Cd(!0),Ed=Cd(!1),Oi=qn(null),zi=null,So=null,yl=null;function vl(){yl=So=zi=null}function wl(e){var t=Oi.current;De(Oi),e._currentValue=t}function xl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){zi=e,yl=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(yl!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(zi===null)throw Error(i(308));So=e,zi.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Rr=null;function Sl(e){Rr===null?Rr=[e]:Rr.push(e)}function Nd(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,Sl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,s)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zn=!1;function bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ee&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Pn(e,n)}return a=s.interleaved,a===null?(t.next=t,Sl(s)):(t.next=a.next,a.next=t),s.interleaved=t,Pn(e,n)}function _i(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,Aa(e,n)}}function jd(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 f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=f:u=u.next=f,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 Ii(e,t,n,s){var a=e.updateQueue;Zn=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var k=g,O=k.next;k.next=null,f===null?u=O:f.next=O,f=k;var L=e.alternate;L!==null&&(L=L.updateQueue,g=L.lastBaseUpdate,g!==f&&(g===null?L.firstBaseUpdate=O:g.next=O,L.lastBaseUpdate=k))}if(u!==null){var F=a.baseState;f=0,L=O=k=null,g=u;do{var A=g.lane,X=g.eventTime;if((s&A)===A){L!==null&&(L=L.next={eventTime:X,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var ne=e,re=g;switch(A=t,X=n,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){F=ne.call(X,F,A);break e}F=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,A=typeof ne=="function"?ne.call(X,F,A):ne,A==null)break e;F=$({},F,A);break e;case 2:Zn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[g]:A.push(g))}else X={eventTime:X,lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},L===null?(O=L=X,k=F):L=L.next=X,f|=A;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;A=g,g=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(L===null&&(k=F),a.baseState=k,a.firstBaseUpdate=O,a.lastBaseUpdate=L,t=a.shared.interleaved,t!==null){a=t;do f|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=F}}function Rd(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 Ss={},fn=qn(Ss),bs=qn(Ss),ks=qn(Ss);function Mr(e){if(e===Ss)throw Error(i(174));return e}function kl(e,t){switch(Ie(ks,t),Ie(bs,e),Ie(fn,Ss),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)}De(fn),Ie(fn,t)}function ko(){De(fn),De(bs),De(ks)}function Md(e){Mr(ks.current);var t=Mr(fn.current),n=on(t,e.type);t!==n&&(Ie(bs,e),Ie(fn,n))}function Cl(e){bs.current===e&&(De(fn),De(bs))}var We=qn(0);function Ai(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 El=[];function Nl(){for(var e=0;e<El.length;e++)El[e]._workInProgressVersionPrimary=null;El.length=0}var Di=I.ReactCurrentDispatcher,Pl=I.ReactCurrentBatchConfig,Tr=0,Ve=null,qe=null,Je=null,Li=!1,Cs=!1,Es=0,Mg=0;function at(){throw Error(i(321))}function jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function Rl(e,t,n,s,a,u){if(Tr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Di.current=e===null||e.memoizedState===null?_g:Ig,e=n(s,a),Cs){u=0;do{if(Cs=!1,Es=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Di.current=Ag,e=n(s,a)}while(Cs)}if(Di.current=Bi,t=qe!==null&&qe.next!==null,Tr=0,Je=qe=Ve=null,Li=!1,t)throw Error(i(300));return e}function Ml(){var e=Es!==0;return Es=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 At(){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 Ns(e,t){return typeof t=="function"?t(e):t}function Tl(e){var t=At(),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 f=a.next;a.next=u.next,u.next=f}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var g=f=null,k=null,O=u;do{var L=O.lane;if((Tr&L)===L)k!==null&&(k=k.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 F={lane:L,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};k===null?(g=k=F,f=s):k=k.next=F,Ve.lanes|=L,Or|=L}O=O.next}while(O!==null&&O!==u);k===null?f=s:k.next=g,Qt(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=k,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Or|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ol(e){var t=At(),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 f=a=a.next;do u=e(u,f.action),f=f.next;while(f!==a);Qt(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Td(){}function Od(e,t){var n=Ve,s=At(),a=t(),u=!Qt(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,zl(Id.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ps(9,_d.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Tr&30)!==0||zd(n,t,a)}return a}function zd(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 _d(e,t,n,s){t.value=n,t.getSnapshot=s,Ad(t)&&Dd(e)}function Id(e,t,n){return n(function(){Ad(t)&&Dd(e)})}function Ad(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function Dd(e){var t=Pn(e,1);t!==null&&qt(t,e,1,-1)}function Ld(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:Ns,lastRenderedState:e},t.queue=e,e=e.dispatch=zg.bind(null,Ve,e),[t.memoizedState,e]}function Ps(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 Fd(){return At().memoizedState}function Fi(e,t,n,s){var a=pn();Ve.flags|=e,a.memoizedState=Ps(1|t,n,void 0,s===void 0?null:s)}function Ui(e,t,n,s){var a=At();s=s===void 0?null:s;var u=void 0;if(qe!==null){var f=qe.memoizedState;if(u=f.destroy,s!==null&&jl(s,f.deps)){a.memoizedState=Ps(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ps(1|t,n,u,s)}function Ud(e,t){return Fi(8390656,8,e,t)}function zl(e,t){return Ui(2048,8,e,t)}function Bd(e,t){return Ui(4,2,e,t)}function Wd(e,t){return Ui(4,4,e,t)}function Vd(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 Qd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Vd.bind(null,t,e),n)}function _l(){}function $d(e,t){var n=At();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&jl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=At();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&jl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Kd(e,t,n){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):(Qt(n,t)||(n=kc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function Tg(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var s=Pl.transition;Pl.transition={};try{e(!1),t()}finally{Te=n,Pl.transition=s}}function Gd(){return At().memoizedState}function Og(e,t,n){var s=rr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},qd(e))Yd(t,n);else if(n=Nd(e,t,n,s),n!==null){var a=ht();qt(n,e,s,a),Xd(n,t,s)}}function zg(e,t,n){var s=rr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(qd(e))Yd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,g=u(f,n);if(a.hasEagerState=!0,a.eagerState=g,Qt(g,f)){var k=t.interleaved;k===null?(a.next=a,Sl(t)):(a.next=k.next,k.next=a),t.interleaved=a;return}}catch{}finally{}n=Nd(e,t,a,s),n!==null&&(a=ht(),qt(n,e,s,a),Xd(n,t,s))}}function qd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Yd(e,t){Cs=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Aa(e,n)}}var Bi={readContext:It,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},_g={readContext:It,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(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=Og.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:_l,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=Tg.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=pn();if(Ue){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Tr&30)!==0||zd(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Ud(Id.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,_d.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=pn(),t=et.identifierPrefix;if(Ue){var n=Nn,s=En;n=(s&~(1<<32-Vt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ig={readContext:It,useCallback:$d,useContext:It,useEffect:zl,useImperativeHandle:Qd,useInsertionEffect:Bd,useLayoutEffect:Wd,useMemo:Hd,useReducer:Tl,useRef:Fd,useState:function(){return Tl(Ns)},useDebugValue:_l,useDeferredValue:function(e){var t=At();return Kd(t,qe.memoizedState,e)},useTransition:function(){var e=Tl(Ns)[0],t=At().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Od,useId:Gd,unstable_isNewReconciler:!1},Ag={readContext:It,useCallback:$d,useContext:It,useEffect:zl,useImperativeHandle:Qd,useInsertionEffect:Bd,useLayoutEffect:Wd,useMemo:Hd,useReducer:Ol,useRef:Fd,useState:function(){return Ol(Ns)},useDebugValue:_l,useDeferredValue:function(e){var t=At();return qe===null?t.memoizedState=e:Kd(t,qe.memoizedState,e)},useTransition:function(){var e=Ol(Ns)[0],t=At().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Od,useId:Gd,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=$({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Il(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:$({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=rr(e),u=jn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,a),t!==null&&(qt(t,e,a,s),_i(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=rr(e),u=jn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,a),t!==null&&(qt(t,e,a,s),_i(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=rr(e),a=jn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Jn(e,a,s),t!==null&&(qt(t,e,s,n),_i(t,e,s))}};function Zd(e,t,n,s,a,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ps(n,s)||!ps(a,u):!0}function Jd(e,t,n){var s=!1,a=Yn,u=t.contextType;return typeof u=="object"&&u!==null?u=It(u):(a=xt(t)?Nr:it.current,s=t.contextTypes,u=(s=s!=null)?go(e,a):Yn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function ef(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&&Wi.enqueueReplaceState(t,t.state,null)}function Al(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},bl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=It(u):(u=xt(t)?Nr:it.current,a.context=go(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Il(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=pe(s),s=s.return;while(s);var a=n}catch(u){a=`
39
39
  Error generating stack: `+u.message+`
40
- `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Ll(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Lg=typeof WeakMap=="function"?WeakMap:Map;function tf(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qi||(qi=!0,Jl=s),Dl(e,t)},n}function nf(e,t,n){n=jn(-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(){Dl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Dl(e,t),typeof s!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function rf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Lg;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=Xg.bind(null,e,t,n),t.then(e,e))}function of(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 sf(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=jn(-1,1),t.tag=2,Jn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Dg=I.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?Ed(t,null,n,s):xo(t,e.child,n,s)}function af(e,t,n,s,a){n=n.render;var u=t.ref;return ko(t,a),s=Rl(e,t,n,s,u,a),n=Ml(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&n&&fl(t),t.flags|=1,pt(e,t,s,a),t.child)}function lf(e,t,n,s,a){if(e===null){var u=n.type;return typeof u=="function"&&!iu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,uf(e,t,u,s,a)):(e=ta(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 f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(f,s)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=sr(u,s),e.ref=t.ref,e.return=t,t.child=e}function uf(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(ps(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,Rn(e,t,a)}return Fl(e,t,n,s,a)}function cf(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},Ie(No,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,Ie(No,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,Ie(No,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,Ie(No,Tt),Tt|=s;return pt(e,t,a,n),t.child}function df(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fl(e,t,n,s,a){var u=xt(n)?Nr:it.current;return u=go(t,u),ko(t,a),n=Rl(e,t,n,s,u,a),s=Ml(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&s&&fl(t),t.flags|=1,pt(e,t,n,a),t.child)}function ff(e,t,n,s,a){if(xt(n)){var u=!0;Ni(t)}else u=!1;if(ko(t,a),t.stateNode===null)Qi(e,t),Jd(t,n,s),Al(t,n,s,a),s=!0;else if(e===null){var f=t.stateNode,g=t.memoizedProps;f.props=g;var b=f.context,O=n.contextType;typeof O=="object"&&O!==null?O=It(O):(O=xt(n)?Nr:it.current,O=go(t,O));var D=n.getDerivedStateFromProps,F=typeof D=="function"||typeof f.getSnapshotBeforeUpdate=="function";F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==s||b!==O)&&ef(t,f,s,O),Zn=!1;var A=t.memoizedState;f.state=A,Ii(t,s,f,a),b=t.memoizedState,g!==s||A!==b||wt.current||Zn?(typeof D=="function"&&(Il(t,n,D,s),b=t.memoizedState),(g=Zn||Zd(t,n,g,s,A,b,O))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=b),f.props=s,f.state=b,f.context=O,s=g):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Pd(e,t),g=t.memoizedProps,O=t.type===t.elementType?g:Ht(t.type,g),f.props=O,F=t.pendingProps,A=f.context,b=n.contextType,typeof b=="object"&&b!==null?b=It(b):(b=xt(n)?Nr:it.current,b=go(t,b));var X=n.getDerivedStateFromProps;(D=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==F||A!==b)&&ef(t,f,s,b),Zn=!1,A=t.memoizedState,f.state=A,Ii(t,s,f,a);var ne=t.memoizedState;g!==F||A!==ne||wt.current||Zn?(typeof X=="function"&&(Il(t,n,X,s),ne=t.memoizedState),(O=Zn||Zd(t,n,O,s,A,ne,b)||!1)?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,ne,b),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,ne,b)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ne),f.props=s,f.state=ne,f.context=b,s=O):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),s=!1)}return Ul(e,t,n,s,u,a)}function Ul(e,t,n,s,a,u){df(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return a&&gd(t,n,!1),Rn(e,t,u);s=t.stateNode,Dg.current=t;var g=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=xo(t,e.child,null,u),t.child=xo(t,null,g,u)):pt(e,t,g,u),t.memoizedState=s.state,a&&gd(t,n,!0),t.child}function pf(e){var t=e.stateNode;t.pendingContext?hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hd(e,t.context,!1),bl(e,t.containerInfo)}function hf(e,t,n,s,a){return wo(),gl(a),t.flags|=256,pt(e,t,n,s),t.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Wl(e){return{baseLanes:e,cachePool:null,transitions:null}}function mf(e,t,n){var s=t.pendingProps,a=We.current,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(a&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ie(We,a&1),e===null)return ml(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=na(f,s,0,null),e=Ar(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Wl(n),t.memoizedState=Bl,e):Vl(t,f));if(a=e.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return Fg(e,t,f,s,g,a,n);if(u){u=s.fallback,f=t.mode,a=e.child,g=a.sibling;var b={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=b,t.deletions=null):(s=sr(a,b),s.subtreeFlags=a.subtreeFlags&14680064),g!==null?u=sr(g,u):(u=Ar(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Wl(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Bl,s}return u=e.child,e=u.sibling,s=sr(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Vl(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,s){return s!==null&&gl(s),xo(t,e.child,null,n),e=Vl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fg(e,t,n,s,a,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Ll(Error(i(422))),Vi(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=na({mode:"visible",children:s.children},a,0,null),u=Ar(u,a,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&xo(t,e.child,null,f),t.child.memoizedState=Wl(f),t.memoizedState=Bl,u);if((t.mode&1)===0)return Vi(e,t,f,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(i(419)),s=Ll(u,s,void 0),Vi(e,t,f,s)}if(g=(f&e.childLanes)!==0,St||g){if(s=et,s!==null){switch(f&-f){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|f))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),qt(s,e,a,-1))}return su(),s=Ll(Error(i(421))),Vi(e,t,f,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Zg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=Gn(a.nextSibling),Rt=t,Ue=!0,$t=null,e!==null&&(_t[zt++]=En,_t[zt++]=Nn,_t[zt++]=Pr,En=e.id,Nn=e.overflow,Pr=t),t=Vl(t,s.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),xl(e.return,t,n)}function Ql(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 yf(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&&gf(e,n,t);else if(e.tag===19)gf(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(Ie(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&&Ai(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ql(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&&Ai(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ql(t,!0,n,null,u);break;case"together":Ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ug(e,t,n){switch(t.tag){case 3:pf(t),wo();break;case 5:Md(t);break;case 1:xt(t.type)&&Ni(t);break;case 4:bl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;Ie(Oi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Ie(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?mf(e,t,n):(Ie(We,We.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);Ie(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return yf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ie(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,cf(e,t,n)}return Rn(e,t,n)}var vf,$l,wf,xf;vf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$l=function(){},wf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Mr(fn.current);var u=null;switch(n){case"input":a=Go(e,a),s=Go(e,s),u=[];break;case"select":a=$({},a,{value:void 0}),s=$({},s,{value:void 0}),u=[];break;case"textarea":a=to(e,a),s=to(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=bi)}an(n,s);var f;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var g=a[O];for(f in g)g.hasOwnProperty(f)&&(n||(n={}),n[f]="")}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 b=s[O];if(g=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&b!==g&&(b!=null||g!=null))if(O==="style")if(g){for(f in g)!g.hasOwnProperty(f)||b&&b.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in b)b.hasOwnProperty(f)&&g[f]!==b[f]&&(n||(n={}),n[f]=b[f])}else n||(u||(u=[]),u.push(O,n)),n=b;else O==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,g=g?g.__html:void 0,b!=null&&g!==b&&(u=u||[]).push(O,b)):O==="children"?typeof b!="string"&&typeof b!="number"||(u=u||[]).push(O,""+b):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(b!=null&&O==="onScroll"&&Ae("scroll",e),u||g===b||(u=[])):(u=u||[]).push(O,b))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},xf=function(e,t,n,s){n!==s&&(t.flags|=4)};function js(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var 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 Bg(e,t,n){var s=t.pendingProps;switch(pl(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 xt(t.type)&&Ei(),lt(t),null;case 3:return s=t.stateNode,bo(),Le(wt),Le(it),Nl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$t!==null&&(nu($t),$t=null))),$l(e,t),lt(t),null;case 5:Cl(t);var a=Mr(bs.current);if(n=t.type,e!==null&&t.stateNode!=null)wf(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=Mr(fn.current),Mi(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[dn]=t,s[vs]=u,e=(t.mode&1)!==0,n){case"dialog":Ae("cancel",s),Ae("close",s);break;case"iframe":case"object":case"embed":Ae("load",s);break;case"video":case"audio":for(a=0;a<ms.length;a++)Ae(ms[a],s);break;case"source":Ae("error",s);break;case"img":case"image":case"link":Ae("error",s),Ae("load",s);break;case"details":Ae("toggle",s);break;case"input":qs(s,u),Ae("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ae("invalid",s);break;case"textarea":rn(s,u),Ae("invalid",s)}an(n,u),a=null;for(var f in u)if(u.hasOwnProperty(f)){var g=u[f];f==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&ki(s.textContent,g,e),a=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&ki(s.textContent,g,e),a=["children",""+g]):c.hasOwnProperty(f)&&g!=null&&f==="onScroll"&&Ae("scroll",s)}switch(n){case"input":nn(s),eo(s,u,!0);break;case"textarea":nn(s),Xs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=bi)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=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=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[dn]=t,e[vs]=s,vf(e,t,!1,!1),t.stateNode=e;e:{switch(f=Zo(n,s),n){case"dialog":Ae("cancel",e),Ae("close",e),a=s;break;case"iframe":case"object":case"embed":Ae("load",e),a=s;break;case"video":case"audio":for(a=0;a<ms.length;a++)Ae(ms[a],e);a=s;break;case"source":Ae("error",e),a=s;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),a=s;break;case"details":Ae("toggle",e),a=s;break;case"input":qs(e,s),a=Go(e,s),Ae("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=$({},s,{value:void 0}),Ae("invalid",e);break;case"textarea":rn(e,s),a=to(e,s),Ae("invalid",e);break;default:a=s}an(n,a),g=a;for(u in g)if(g.hasOwnProperty(u)){var b=g[u];u==="style"?kn(e,b):u==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&Zs(e,b)):u==="children"?typeof b=="string"?(n!=="textarea"||b!=="")&&sn(e,b):typeof b=="number"&&sn(e,""+b):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?b!=null&&u==="onScroll"&&Ae("scroll",e):b!=null&&W(e,u,b,f))}switch(n){case"input":nn(e),eo(e,s,!1);break;case"textarea":nn(e),Xs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Ce(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?Ot(e,!!s.multiple,u,!1):s.defaultValue!=null&&Ot(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=bi)}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)xf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Mr(bs.current),Mr(fn.current),Mi(t)){if(s=t.stateNode,n=t.memoizedProps,s[dn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:ki(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ki(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(Ue&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)kd(),wo(),t.flags|=98560,u=!1;else if(u=Mi(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 wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else $t!==null&&(nu($t),$t=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):su())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return bo(),$l(e,t),e===null&&gs(t.stateNode.containerInfo),lt(t),null;case 10:return wl(t.type._context),lt(t),null;case 17:return xt(t.type)&&Ei(),lt(t),null;case 19:if(Le(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)js(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ai(e),f!==null){for(t.flags|=128,js(u,!1),s=f.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ie(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&He()>Po&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304)}else{if(!s)if(e=Ai(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),js(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Ue)return lt(t),null}else 2*He()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=He(),t.sibling=null,n=We.current,Ie(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return ou(),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 Wg(e,t){switch(pl(t),t.tag){case 1:return xt(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),Le(wt),Le(it),Nl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Cl(t),null;case 13:if(Le(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(We),null;case 4:return bo(),null;case 10:return wl(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var $i=!1,ut=!1,Vg=typeof WeakSet=="function"?WeakSet:Set,J=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Qe(e,t,s)}else n.current=null}function Hl(e,t,n){try{n()}catch(s){Qe(e,t,s)}}var Sf=!1;function Qg(e,t){if(ol=di,e=Zc(),Ya(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 f=0,g=-1,b=-1,O=0,D=0,F=e,A=null;t:for(;;){for(var X;F!==n||a!==0&&F.nodeType!==3||(g=f+a),F!==u||s!==0&&F.nodeType!==3||(b=f+s),F.nodeType===3&&(f+=F.nodeValue.length),(X=F.firstChild)!==null;)A=F,F=X;for(;;){if(F===e)break t;if(A===n&&++O===a&&(g=f),A===u&&++D===s&&(b=f),(X=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=X}n=g===-1||b===-1?null:{start:g,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},di=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,Ke=ne.memoizedState,j=t.stateNode,E=j.getSnapshotBeforeUpdate(t.elementType===t.type?re:Ht(t.type,re),Ke);j.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(V){Qe(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ne=Sf,Sf=!1,ne}function Rs(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&&Hl(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 Kl(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 kf(e){var t=e.alternate;t!==null&&(e.alternate=null,kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[vs],delete t[ul],delete t[Ng],delete t[Pg])),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 bf(e){return e.tag===5||e.tag===3||e.tag===4}function Cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(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 Gl(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=bi));else if(s!==4&&(e=e.child,e!==null))for(Gl(e,t,n),e=e.sibling;e!==null;)Gl(e,t,n),e=e.sibling}function ql(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(ql(e,t,n),e=e.sibling;e!==null;)ql(e,t,n),e=e.sibling}var ot=null,Kt=!1;function er(e,t,n){for(n=n.child;n!==null;)Ef(e,t,n),n=n.sibling}function Ef(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:ut||Eo(n,t);case 6:var s=ot,a=Kt;ot=null,er(e,t,n),ot=s,Kt=a,ot!==null&&(Kt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Kt?(e=ot,n=n.stateNode,e.nodeType===8?ll(e.parentNode,n):e.nodeType===1&&ll(e,n),as(e)):ll(ot,n.stateNode));break;case 4:s=ot,a=Kt,ot=n.stateNode.containerInfo,Kt=!0,er(e,t,n),ot=s,Kt=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,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Hl(n,t,f),a=a.next}while(a!==s)}er(e,t,n);break;case 1:if(!ut&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){Qe(n,t,g)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,er(e,t,n),ut=s):er(e,t,n);break;default:er(e,t,n)}}function Nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vg),t.forEach(function(s){var a=Jg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Gt(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,f=t,g=f;e:for(;g!==null;){switch(g.tag){case 5:ot=g.stateNode,Kt=!1;break e;case 3:ot=g.stateNode.containerInfo,Kt=!0;break e;case 4:ot=g.stateNode.containerInfo,Kt=!0;break e}g=g.return}if(ot===null)throw Error(i(160));Ef(u,f,a),ot=null,Kt=!1;var b=a.alternate;b!==null&&(b.return=null),a.return=null}catch(O){Qe(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pf(t,e),t=t.sibling}function Pf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),hn(e),s&4){try{Rs(3,e,e.return),Hi(3,e)}catch(re){Qe(e,e.return,re)}try{Rs(5,e,e.return)}catch(re){Qe(e,e.return,re)}}break;case 1:Gt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Gt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var a=e.stateNode;try{sn(a,"")}catch(re){Qe(e,e.return,re)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,g=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&qo(a,u),Zo(g,f);var O=Zo(g,u);for(f=0;f<b.length;f+=2){var D=b[f],F=b[f+1];D==="style"?kn(a,F):D==="dangerouslySetInnerHTML"?Zs(a,F):D==="children"?sn(a,F):W(a,D,F,O)}switch(g){case"input":Yo(a,u);break;case"textarea":Ys(a,u);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var X=u.value;X!=null?Ot(a,!!u.multiple,X,!1):A!==!!u.multiple&&(u.defaultValue!=null?Ot(a,!!u.multiple,u.defaultValue,!0):Ot(a,!!u.multiple,u.multiple?[]:"",!1))}a[vs]=u}catch(re){Qe(e,e.return,re)}}break;case 6:if(Gt(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(re){Qe(e,e.return,re)}}break;case 3:if(Gt(t,e),hn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(re){Qe(e,e.return,re)}break;case 4:Gt(t,e),hn(e);break;case 13:Gt(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||(Zl=He())),s&4&&Nf(e);break;case 22:if(D=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||D,Gt(t,e),ut=O):Gt(t,e),hn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!D&&(e.mode&1)!==0)for(J=e,D=e.child;D!==null;){for(F=J=D;J!==null;){switch(A=J,X=A.child,A.tag){case 0:case 11:case 14:case 15:Rs(4,A,A.return);break;case 1:Eo(A,A.return);var ne=A.stateNode;if(typeof ne.componentWillUnmount=="function"){s=A,n=A.return;try{t=s,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Qe(s,n,re)}}break;case 5:Eo(A,A.return);break;case 22:if(A.memoizedState!==null){Mf(F);continue}}X!==null?(X.return=A,J=X):Mf(F)}D=D.sibling}e:for(D=null,F=e;;){if(F.tag===5){if(D===null){D=F;try{a=F.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=F.stateNode,b=F.memoizedProps.style,f=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=ro("display",f))}catch(re){Qe(e,e.return,re)}}}else if(F.tag===6){if(D===null)try{F.stateNode.nodeValue=O?"":F.memoizedProps}catch(re){Qe(e,e.return,re)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;D===F&&(D=null),F=F.return}D===F&&(D=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Gt(t,e),hn(e),s&4&&Nf(e);break;case 21:break;default:Gt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(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=Cf(e);ql(e,u,a);break;case 3:case 4:var f=s.stateNode.containerInfo,g=Cf(e);Gl(e,g,f);break;default:throw Error(i(161))}}catch(b){Qe(e,e.return,b)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $g(e,t,n){J=e,jf(e)}function jf(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var a=J,u=a.child;if(a.tag===22&&s){var f=a.memoizedState!==null||$i;if(!f){var g=a.alternate,b=g!==null&&g.memoizedState!==null||ut;g=$i;var O=ut;if($i=f,(ut=b)&&!O)for(J=a;J!==null;)f=J,b=f.child,f.tag===22&&f.memoizedState!==null?Tf(a):b!==null?(b.return=f,J=b):Tf(a);for(;u!==null;)J=u,jf(u),u=u.sibling;J=a,$i=g,ut=O}Rf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,J=u):Rf(e)}}function Rf(e){for(;J!==null;){var t=J;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:Ht(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Rd(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Rd(t,f,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var b=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&n.focus();break;case"img":b.src&&(n.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var D=O.memoizedState;if(D!==null){var F=D.dehydrated;F!==null&&as(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&Kl(t)}catch(A){Qe(t,t.return,A)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Mf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Tf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(b){Qe(t,n,b)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(b){Qe(t,a,b)}}var u=t.return;try{Kl(t)}catch(b){Qe(t,u,b)}break;case 5:var f=t.return;try{Kl(t)}catch(b){Qe(t,f,b)}}}catch(b){Qe(t,t.return,b)}if(t===e){J=null;break}var g=t.sibling;if(g!==null){g.return=t.return,J=g;break}J=t.return}}var Hg=Math.ceil,Ki=I.ReactCurrentDispatcher,Yl=I.ReactCurrentOwner,Lt=I.ReactCurrentBatchConfig,Ee=0,et=null,Ge=null,st=0,Tt=0,No=qn(0),Ye=0,Ms=null,Or=0,Gi=0,Xl=0,Ts=null,kt=null,Zl=0,Po=1/0,Mn=null,qi=!1,Jl=null,tr=null,Yi=!1,nr=null,Xi=0,Os=0,eu=null,Zi=-1,Ji=0;function ht(){return(Ee&6)!==0?He():Zi!==-1?Zi:Zi=He()}function rr(e){return(e.mode&1)===0?1:(Ee&2)!==0&&st!==0?st&-st:Rg.transition!==null?(Ji===0&&(Ji=bc()),Ji):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Oc(e.type)),e)}function qt(e,t,n,s){if(50<Os)throw Os=0,eu=null,Error(i(185));ns(e,n,s),((Ee&2)===0||e!==et)&&(e===et&&((Ee&2)===0&&(Gi|=n),Ye===4&&or(e,st)),bt(e,s),n===1&&Ee===0&&(t.mode&1)===0&&(Po=He()+500,Pi&&Xn()))}function bt(e,t){var n=e.callbackNode;Rm(e,t);var s=li(e,e===et?st:0);if(s===0)n!==null&&xc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&xc(n),t===1)e.tag===0?jg(_f.bind(null,e)):yd(_f.bind(null,e)),Cg(function(){(Ee&6)===0&&Xn()}),n=null;else{switch(Cc(s)){case 1:n=_a;break;case 4:n=Sc;break;case 16:n=oi;break;case 536870912:n=kc;break;default:n=oi}n=Bf(n,Of.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Of(e,t){if(Zi=-1,Ji=0,(Ee&6)!==0)throw Error(i(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=li(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ea(e,s);else{t=s;var a=Ee;Ee|=2;var u=If();(et!==e||st!==t)&&(Mn=null,Po=He()+500,zr(e,t));do try{qg();break}catch(g){zf(e,g)}while(!0);vl(),Ki.current=u,Ee=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=za(e),a!==0&&(s=a,t=tu(e,a))),t===1)throw n=Ms,zr(e,0),or(e,s),bt(e,He()),n;if(t===6)or(e,s);else{if(a=e.current.alternate,(s&30)===0&&!Kg(a)&&(t=ea(e,s),t===2&&(u=za(e),u!==0&&(s=u,t=tu(e,u))),t===1))throw n=Ms,zr(e,0),or(e,s),bt(e,He()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Ir(e,kt,Mn);break;case 3:if(or(e,s),(s&130023424)===s&&(t=Zl+500-He(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=al(Ir.bind(null,e,kt,Mn),t);break}Ir(e,kt,Mn);break;case 4:if(or(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var f=31-Vt(s);u=1<<f,f=t[f],f>a&&(a=f),s&=~u}if(s=a,s=He()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Hg(s/1960))-s,10<s){e.timeoutHandle=al(Ir.bind(null,e,kt,Mn),s);break}Ir(e,kt,Mn);break;case 5:Ir(e,kt,Mn);break;default:throw Error(i(329))}}}return bt(e,He()),e.callbackNode===n?Of.bind(null,e):null}function tu(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(zr(e,t).flags|=256),e=ea(e,t),e!==2&&(t=kt,kt=n,t!==null&&nu(t)),e}function nu(e){kt===null?kt=e:kt.push.apply(kt,e)}function Kg(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(!Qt(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 or(e,t){for(t&=~Xl,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),s=1<<n;e[n]=-1,t&=~s}}function _f(e){if((Ee&6)!==0)throw Error(i(327));jo();var t=li(e,0);if((t&1)===0)return bt(e,He()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var s=za(e);s!==0&&(t=s,n=tu(e,s))}if(n===1)throw n=Ms,zr(e,0),or(e,t),bt(e,He()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ir(e,kt,Mn),bt(e,He()),null}function ru(e,t){var n=Ee;Ee|=1;try{return e(t)}finally{Ee=n,Ee===0&&(Po=He()+500,Pi&&Xn())}}function _r(e){nr!==null&&nr.tag===0&&(Ee&6)===0&&jo();var t=Ee;Ee|=1;var n=Lt.transition,s=Te;try{if(Lt.transition=null,Te=1,e)return e()}finally{Te=s,Lt.transition=n,Ee=t,(Ee&6)===0&&Xn()}}function ou(){Tt=No.current,Le(No)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(pl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ei();break;case 3:bo(),Le(wt),Le(it),Nl();break;case 5:Cl(s);break;case 4:bo();break;case 13:Le(We);break;case 19:Le(We);break;case 10:wl(s.type._context);break;case 22:case 23:ou()}n=n.return}if(et=e,Ge=e=sr(e.current,null),st=Tt=t,Ye=0,Ms=null,Xl=Gi=Or=0,kt=Ts=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=a,s.next=f}n.pending=s}Rr=null}return e}function zf(e,t){do{var n=Ge;try{if(vl(),Li.current=Bi,Di){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Di=!1}if(Tr=0,Je=qe=Ve=null,Cs=!1,Es=0,Yl.current=null,n===null||n.return===null){Ye=1,Ms=t,Ge=null;break}e:{var u=e,f=n.return,g=n,b=t;if(t=st,g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var O=b,D=g,F=D.tag;if((D.mode&1)===0&&(F===0||F===11||F===15)){var A=D.alternate;A?(D.updateQueue=A.updateQueue,D.memoizedState=A.memoizedState,D.lanes=A.lanes):(D.updateQueue=null,D.memoizedState=null)}var X=of(f);if(X!==null){X.flags&=-257,sf(X,f,g,u,t),X.mode&1&&rf(u,O,t),t=X,b=O;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(b),t.updateQueue=re}else ne.add(b);break e}else{if((t&1)===0){rf(u,O,t),su();break e}b=Error(i(426))}}else if(Ue&&g.mode&1){var Ke=of(f);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),sf(Ke,f,g,u,t),gl(Co(b,g));break e}}u=b=Co(b,g),Ye!==4&&(Ye=2),Ts===null?Ts=[u]:Ts.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var j=tf(u,b,t);jd(u,j);break e;case 1:g=b;var E=u.type,R=u.stateNode;if((u.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(tr===null||!tr.has(R)))){u.flags|=65536,t&=-t,u.lanes|=t;var V=nf(u,g,t);jd(u,V);break e}}u=u.return}while(u!==null)}Lf(n)}catch(ae){t=ae,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function If(){var e=Ki.current;return Ki.current=Bi,e===null?Bi:e}function su(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Or&268435455)===0&&(Gi&268435455)===0||or(et,st)}function ea(e,t){var n=Ee;Ee|=2;var s=If();(et!==e||st!==t)&&(Mn=null,zr(e,t));do try{Gg();break}catch(a){zf(e,a)}while(!0);if(vl(),Ee=n,Ki.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function Gg(){for(;Ge!==null;)Af(Ge)}function qg(){for(;Ge!==null&&!xm();)Af(Ge)}function Af(e){var t=Uf(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Lf(e):Ge=t,Yl.current=null}function Lf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Bg(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Wg(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 Ir(e,t,n){var s=Te,a=Lt.transition;try{Lt.transition=null,Te=1,Yg(e,t,n,s)}finally{Lt.transition=a,Te=s}return null}function Yg(e,t,n,s){do jo();while(nr!==null);if((Ee&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(Mm(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Bf(oi,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Lt.transition,Lt.transition=null;var f=Te;Te=1;var g=Ee;Ee|=4,Yl.current=null,Qg(e,n),Pf(n,e),gg(sl),di=!!ol,sl=ol=null,e.current=n,$g(n),Sm(),Ee=g,Te=f,Lt.transition=u}else e.current=n;if(Yi&&(Yi=!1,nr=e,Xi=a),u=e.pendingLanes,u===0&&(tr=null),Cm(n.stateNode),bt(e,He()),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(qi)throw qi=!1,e=Jl,Jl=null,e;return(Xi&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===eu?Os++:(Os=0,eu=e):Os=0,Xn(),null}function jo(){if(nr!==null){var e=Cc(Xi),t=Lt.transition,n=Te;try{if(Lt.transition=null,Te=16>e?16:e,nr===null)var s=!1;else{if(e=nr,nr=null,Xi=0,(Ee&6)!==0)throw Error(i(331));var a=Ee;for(Ee|=4,J=e.current;J!==null;){var u=J,f=u.child;if((J.flags&16)!==0){var g=u.deletions;if(g!==null){for(var b=0;b<g.length;b++){var O=g[b];for(J=O;J!==null;){var D=J;switch(D.tag){case 0:case 11:case 15:Rs(8,D,u)}var F=D.child;if(F!==null)F.return=D,J=F;else for(;J!==null;){D=J;var A=D.sibling,X=D.return;if(kf(D),D===O){J=null;break}if(A!==null){A.return=X,J=A;break}J=X}}}var ne=u.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var Ke=re.sibling;re.sibling=null,re=Ke}while(re!==null)}}J=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,J=f;else e:for(;J!==null;){if(u=J,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Rs(9,u,u.return)}var j=u.sibling;if(j!==null){j.return=u.return,J=j;break e}J=u.return}}var E=e.current;for(J=E;J!==null;){f=J;var R=f.child;if((f.subtreeFlags&2064)!==0&&R!==null)R.return=f,J=R;else e:for(f=E;J!==null;){if(g=J,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Hi(9,g)}}catch(ae){Qe(g,g.return,ae)}if(g===f){J=null;break e}var V=g.sibling;if(V!==null){V.return=g.return,J=V;break e}J=g.return}}if(Ee=a,Xn(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(si,e)}catch{}s=!0}return s}finally{Te=n,Lt.transition=t}}return!1}function Df(e,t,n){t=Co(n,t),t=tf(e,t,1),e=Jn(e,t,1),t=ht(),e!==null&&(ns(e,1,t),bt(e,t))}function Qe(e,t,n){if(e.tag===3)Df(e,e,n);else for(;t!==null;){if(t.tag===3){Df(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(tr===null||!tr.has(s))){e=Co(n,e),e=nf(t,e,1),t=Jn(t,e,1),e=ht(),t!==null&&(ns(t,1,e),bt(t,e));break}}t=t.return}}function Xg(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>He()-Zl?zr(e,0):Xl|=n),bt(e,t)}function Ff(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=ht();e=Pn(e,t),e!==null&&(ns(e,t,n),bt(e,n))}function Zg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ff(e,n)}function Jg(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),Ff(e,n)}var Uf;Uf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,Ug(e,t,n);St=(e.flags&131072)!==0}else St=!1,Ue&&(t.flags&1048576)!==0&&vd(t,Ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Qi(e,t),e=t.pendingProps;var a=go(t,it.current);ko(t,n),a=Rl(null,t,s,e,a,n);var u=Ml();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,xt(s)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,kl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,Al(t,s,e,n),t=Ul(null,t,s,!0,u,n)):(t.tag=0,Ue&&u&&fl(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=ty(s),e=Ht(s,e),a){case 0:t=Fl(null,t,s,e,n);break e;case 1:t=ff(null,t,s,e,n);break e;case 11:t=af(null,t,s,e,n);break e;case 14:t=lf(null,t,s,Ht(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:Ht(s,a),Fl(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ht(s,a),ff(e,t,s,a,n);case 3:e:{if(pf(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,Pd(e,t),Ii(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=Co(Error(i(423)),t),t=hf(e,t,s,n,a);break e}else if(s!==a){a=Co(Error(i(424)),t),t=hf(e,t,s,n,a);break e}else for(Mt=Gn(t.stateNode.containerInfo.firstChild),Rt=t,Ue=!0,$t=null,n=Ed(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),s===a){t=Rn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Md(t),e===null&&ml(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,f=a.children,il(s,a)?f=null:u!==null&&il(s,u)&&(t.flags|=32),df(e,t),pt(e,t,f,n),t.child;case 6:return e===null&&ml(t),null;case 13:return mf(e,t,n);case 4:return bl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=xo(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:Ht(s,a),af(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,f=a.value,Ie(Oi,s._currentValue),s._currentValue=f,u!==null)if(Qt(u.value,f)){if(u.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){f=u.child;for(var b=g.firstContext;b!==null;){if(b.context===s){if(u.tag===1){b=jn(-1,n&-n),b.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var D=O.pending;D===null?b.next=b:(b.next=D.next,D.next=b),O.pending=b}}u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),xl(u.return,n,t),g.lanes|=n;break}b=b.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(i(341));f.lanes|=n,g=f.alternate,g!==null&&(g.lanes|=n),xl(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,ko(t,n),a=It(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=Ht(s,t.pendingProps),a=Ht(s.type,a),lf(e,t,s,a,n);case 15:return uf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ht(s,a),Qi(e,t),t.tag=1,xt(s)?(e=!0,Ni(t)):e=!1,ko(t,n),Jd(t,s,a),Al(t,s,a,n),Ul(null,t,s,!0,e,n);case 19:return yf(e,t,n);case 22:return cf(e,t,n)}throw Error(i(156,t.tag))};function Bf(e,t){return wc(e,t)}function ey(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 Dt(e,t,n,s){return new ey(e,t,n,s)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===Be)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,s,a,u){var f=2;if(s=e,typeof e=="function")iu(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case G:return Ar(n.children,a,u,t);case te:f=8,a|=8;break;case U:return e=Dt(12,n,t,a|2),e.elementType=U,e.lanes=u,e;case be:return e=Dt(13,n,t,a),e.elementType=be,e.lanes=u,e;case Oe:return e=Dt(19,n,t,a),e.elementType=Oe,e.lanes=u,e;case Se:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:f=10;break e;case ge:f=9;break e;case le:f=11;break e;case Be:f=14;break e;case _e:f=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Dt(f,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ar(e,t,n,s){return e=Dt(7,e,s,t),e.lanes=n,e}function na(e,t,n,s){return e=Dt(22,e,s,t),e.elementType=Se,e.lanes=n,e.stateNode={isHidden:!1},e}function au(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function lu(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(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=Ia(0),this.expirationTimes=Ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ia(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,s,a,u,f,g,b){return e=new ny(e,t,n,g,b),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Dt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kl(u),e}function ry(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 Wf(e){if(!e)return Yn;e=e._reactInternals;e:{if(Cr(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(xt(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(xt(n))return md(e,n,t)}return t}function Vf(e,t,n,s,a,u,f,g,b){return e=uu(n,s,!0,e,a,u,f,g,b),e.context=Wf(null),n=e.current,s=ht(),a=rr(n),u=jn(s,a),u.callback=t??null,Jn(n,u,a),e.current.lanes=a,ns(e,a,s),bt(e,s),e}function ra(e,t,n,s){var a=t.current,u=ht(),f=rr(a);return n=Wf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Jn(a,t,f),e!==null&&(qt(e,a,f,u),zi(e,a,f)),f}function oa(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 Qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cu(e,t){Qf(e,t),(e=e.alternate)&&Qf(e,t)}function oy(){return null}var $f=typeof reportError=="function"?reportError:function(e){console.error(e)};function du(e){this._internalRoot=e}sa.prototype.render=du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},sa.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){ra(null,e,null,null)}),t[bn]=null}};function sa(e){this._internalRoot=e}sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Mc(e)}};function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hf(){}function sy(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=oa(f);u.call(O)}}var f=Vf(t,s,e,0,null,!1,!1,"",Hf);return e._reactRootContainer=f,e[bn]=f.current,gs(e.nodeType===8?e.parentNode:e),_r(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var g=s;s=function(){var O=oa(b);g.call(O)}}var b=uu(e,0,!1,null,null,!1,!1,"",Hf);return e._reactRootContainer=b,e[bn]=b.current,gs(e.nodeType===8?e.parentNode:e),_r(function(){ra(t,b,n,s)}),b}function aa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var f=u;if(typeof a=="function"){var g=a;a=function(){var b=oa(f);g.call(b)}}ra(t,f,e,a)}else f=sy(n,t,e,a,s);return oa(f)}Ec=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ts(t.pendingLanes);n!==0&&(Aa(t,n|1),bt(t,He()),(Ee&6)===0&&(Po=He()+500,Xn()))}break;case 13:_r(function(){var s=Pn(e,1);if(s!==null){var a=ht();qt(s,e,1,a)}}),cu(e,1)}},La=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=ht();qt(t,e,134217728,n)}cu(e,134217728)}},Nc=function(e){if(e.tag===13){var t=rr(e),n=Pn(e,t);if(n!==null){var s=ht();qt(n,e,t,s)}cu(e,t)}},Pc=function(){return Te},jc=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}},so=function(e,t,n){switch(t){case"input":if(Yo(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=Ci(s);if(!a)throw Error(i(90));Jr(s),Yo(s,a)}}}break;case"textarea":Ys(e,n);break;case"select":t=n.value,t!=null&&Ot(e,!!n.multiple,t,!1)}},je=ru,ze=_r;var iy={usingClientEntryPoint:!1,Events:[ws,ho,Ci,ti,me,ru]},_s={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ay={bundleType:_s.bundleType,version:_s.version,rendererPackageName:_s.rendererPackageName,rendererConfig:_s.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yc(e),e===null?null:e.stateNode},findFiberByHostInstance:_s.findFiberByHostInstance||oy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{si=la.inject(ay),cn=la}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iy,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(t))throw Error(i(200));return ry(e,t,null,n)},Ct.createRoot=function(e,t){if(!fu(e))throw Error(i(299));var n=!1,s="",a=$f;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,s,a),e[bn]=t.current,gs(e.nodeType===8?e.parentNode:e),new du(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=yc(t),e=e===null?null:e.stateNode,e},Ct.flushSync=function(e){return _r(e)},Ct.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!fu(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",f=$f;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Vf(t,null,e,1,n??null,a,!1,u,f),e[bn]=t.current,gs(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 sa(t)},Ct.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(_r(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[bn]=null})}),!0):!1},Ct.unstable_batchedUpdates=ru,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var tp;function eh(){if(tp)return gu.exports;tp=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(),gu.exports=my(),gu.exports}var np;function gy(){if(np)return ca;np=1;var r=eh();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var yy=gy(),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(){}},vy={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},dr,qu,Bp,wy=(Bp=class{constructor(){ue(this,dr,vy);ue(this,qu,!1)}setTimeoutProvider(r){q(this,dr,r)}setTimeout(r,o){return w(this,dr).setTimeout(r,o)}clearTimeout(r){w(this,dr).clearTimeout(r)}setInterval(r,o){return w(this,dr).setInterval(r,o)}clearInterval(r){w(this,dr).clearInterval(r)}},dr=new WeakMap,qu=new WeakMap,Bp),Lr=new wy;function xy(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function Sy(r,o){return typeof r=="function"?r(o):r}function Ru(r){return typeof r=="number"&&r>=0&&r!==1/0}function th(r,o){return Math.max(r+(o||0)-Date.now(),0)}function xr(r,o){return typeof r=="function"?r(o):r}function Ut(r,o){return typeof r=="function"?r(o):r}function rp(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==Xu(m,o.options))return!1}else if(!Ds(o.queryKey,m))return!1}if(i!=="all"){const x=o.isActive();if(i==="active"&&!x||i==="inactive"&&x)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||d&&!d(o))}function op(r,o){const{exact:i,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(i){if(Gr(o.options.mutationKey)!==Gr(d))return!1}else if(!Ds(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function Xu(r,o){return((o==null?void 0:o.queryKeyHashFn)||Gr)(r)}function Gr(r){return JSON.stringify(r,(o,i)=>Mu(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 ky=Object.prototype.hasOwnProperty;function nh(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=sp(r)&&sp(o);if(!l&&!(Mu(r)&&Mu(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,x=l?new Array(p):{};let y=0;for(let k=0;k<p;k++){const N=l?k:m[k],T=r[N],v=o[N];if(T===v){x[N]=T,(l?k<d:ky.call(r,N))&&y++;continue}if(T===null||v===null||typeof T!="object"||typeof v!="object"){x[N]=v;continue}const z=nh(T,v,i+1);x[N]=z,z===T&&y++}return d===p&&y===d?r:x}function ba(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 sp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Mu(r){if(!ip(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!ip(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function ip(r){return Object.prototype.toString.call(r)==="[object Object]"}function by(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Tu(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?nh(r,o):o}function Cy(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function Ey(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var Zu=Symbol();function rh(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===Zu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Ju(r,o){return typeof r=="function"?r(...o):!!r}function Ny(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,fr,zo,Wp,Py=(Wp=class extends Ho{constructor(){super();ue(this,Dr);ue(this,fr);ue(this,zo);q(this,zo,o=>{if(!Kr&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,fr)||this.setEventListener(w(this,zo))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,fr))==null||o.call(this),q(this,fr,void 0))}setEventListener(o){var i;q(this,zo,o),(i=w(this,fr))==null||i.call(this),q(this,fr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Dr)!==o&&(q(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,fr=new WeakMap,zo=new WeakMap,Wp),ec=new Py;function Ou(){let r,o;const i=new Promise((c,d)=>{r=c,o=d});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 jy=xy;function Ry(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=jy;const d=p=>{o?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(x=>{i(x)})})})};return{batch:p=>{let x;o++;try{x=p()}finally{o--,o||m()}return x},batchCalls:p=>(...x)=>{d(()=>{p(...x)})},schedule:d,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=Ry(),Io,pr,Ao,Vp,My=(Vp=class extends Ho{constructor(){super();ue(this,Io,!0);ue(this,pr);ue(this,Ao);q(this,Ao,o=>{if(!Kr&&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,pr)||this.setEventListener(w(this,Ao))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,pr))==null||o.call(this),q(this,pr,void 0))}setEventListener(o){var i;q(this,Ao,o),(i=w(this,pr))==null||i.call(this),q(this,pr,o(this.setOnline.bind(this)))}setOnline(o){w(this,Io)!==o&&(q(this,Io,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,Io)}},Io=new WeakMap,pr=new WeakMap,Ao=new WeakMap,Vp),Ca=new My;function Ty(r){return Math.min(1e3*2**r,3e4)}function oh(r){return(r??"online")==="online"?Ca.isOnline():!0}var _u=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function sh(r){let o=!1,i=0,l;const c=Ou(),d=()=>c.status!=="pending",m=S=>{var M;if(!d()){const L=new _u(S);T(L),(M=r.onCancel)==null||M.call(r,L)}},p=()=>{o=!0},x=()=>{o=!1},y=()=>ec.isFocused()&&(r.networkMode==="always"||Ca.isOnline())&&r.canRun(),k=()=>oh(r.networkMode)&&r.canRun(),N=S=>{d()||(l==null||l(),c.resolve(S))},T=S=>{d()||(l==null||l(),c.reject(S))},v=()=>new Promise(S=>{var M;l=L=>{(d()||y())&&S(L)},(M=r.onPause)==null||M.call(r)}).then(()=>{var S;l=void 0,d()||(S=r.onContinue)==null||S.call(r)}),z=()=>{if(d())return;let S;const M=i===0?r.initialPromise:void 0;try{S=M??r.fn()}catch(L){S=Promise.reject(L)}Promise.resolve(S).then(N).catch(L=>{var oe;if(d())return;const Q=r.retry??(Kr?0:3),W=r.retryDelay??Ty,I=typeof W=="function"?W(i,L):W,Z=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,L);if(o||!Z){T(L);return}i++,(oe=r.onFail)==null||oe.call(r,i,L),by(I).then(()=>y()?void 0:v()).then(()=>{o?T(L):z()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:x,canStart:k,start:()=>(k()?z():v().then(z),c)}}var Fr,Qp,ih=(Qp=class{constructor(){ue(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ru(this.gcTime)&&q(this,Fr,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){w(this,Fr)&&(Lr.clearTimeout(w(this,Fr)),q(this,Fr,void 0))}},Fr=new WeakMap,Qp),Ur,Lo,Ft,Br,nt,Bs,Wr,Zt,On,$p,Oy=($p=class extends ih{constructor(o){super();ue(this,Zt);ue(this,Ur);ue(this,Lo);ue(this,Ft);ue(this,Br);ue(this,nt);ue(this,Bs);ue(this,Wr);q(this,Wr,!1),q(this,Bs,o.defaultOptions),this.setOptions(o.options),this.observers=[],q(this,Br,o.client),q(this,Ft,w(this,Br).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,q(this,Ur,lp(this.options)),this.state=o.state??w(this,Ur),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,Bs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=lp(this.options);i.data!==void 0&&(this.setState(ap(i.data,i.dataUpdatedAt)),q(this,Ur,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Ft).remove(this)}setData(o,i){const l=Tu(this.state.data,o,this.options);return ve(this,Zt,On).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ve(this,Zt,On).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,Ur))}isActive(){return this.observers.some(o=>Ut(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>xr(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:!th(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,Ft).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,Wr)?w(this,nt).cancel({revert:!0}):w(this,nt).cancelRetry()),this.scheduleGc()),w(this,Ft).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Zt,On).call(this,{type:"invalidate"})}async fetch(o,i){var x,y,k,N,T,v,z,S,M,L,Q,W;if(this.state.fetchStatus!=="idle"&&((x=w(this,nt))==null?void 0:x.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 I=this.observers.find(Z=>Z.options.queryFn);I&&this.setOptions(I.options)}const l=new AbortController,c=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(q(this,Wr,!0),l.signal)})},d=()=>{const I=rh(this.options,i),oe=(()=>{const G={client:w(this,Br),queryKey:this.queryKey,meta:this.meta};return c(G),G})();return q(this,Wr,!1),this.options.persister?this.options.persister(I,oe,this):I(oe)},p=(()=>{const I={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,Br),state:this.state,fetchFn:d};return c(I),I})();(y=this.options.behavior)==null||y.onFetch(p,this),q(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((k=p.fetchOptions)==null?void 0:k.meta))&&ve(this,Zt,On).call(this,{type:"fetch",meta:(N=p.fetchOptions)==null?void 0:N.meta}),q(this,nt,sh({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:I=>{I instanceof _u&&I.revert&&this.setState({...w(this,Lo),fetchStatus:"idle"}),l.abort()},onFail:(I,Z)=>{ve(this,Zt,On).call(this,{type:"failed",failureCount:I,error:Z})},onPause:()=>{ve(this,Zt,On).call(this,{type:"pause"})},onContinue:()=>{ve(this,Zt,On).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const I=await w(this,nt).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(v=(T=w(this,Ft).config).onSuccess)==null||v.call(T,I,this),(S=(z=w(this,Ft).config).onSettled)==null||S.call(z,I,this.state.error,this),I}catch(I){if(I instanceof _u){if(I.silent)return w(this,nt).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw ve(this,Zt,On).call(this,{type:"error",error:I}),(L=(M=w(this,Ft).config).onError)==null||L.call(M,I,this),(W=(Q=w(this,Ft).config).onSettled)==null||W.call(Q,this.state.data,I,this),I}finally{this.scheduleGc()}}},Ur=new WeakMap,Lo=new WeakMap,Ft=new WeakMap,Br=new WeakMap,nt=new WeakMap,Bs=new WeakMap,Wr=new WeakMap,Zt=new WeakSet,On=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,...ah(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...ap(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Lo,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Ft).notify({query:this,type:"updated",action:o})})},$p);function ah(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function ap(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lp(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,ke,Ws,mt,Vr,Do,_n,hr,Vs,Fo,Uo,Qr,$r,mr,Bo,Me,Ls,zu,Iu,Au,Lu,Du,Fu,Uu,lh,Hp,_y=(Hp=class extends Ho{constructor(o,i){super();ue(this,Me);ue(this,Et);ue(this,ke);ue(this,Ws);ue(this,mt);ue(this,Vr);ue(this,Do);ue(this,_n);ue(this,hr);ue(this,Vs);ue(this,Fo);ue(this,Uo);ue(this,Qr);ue(this,$r);ue(this,mr);ue(this,Bo,new Set);this.options=i,q(this,Et,o),q(this,hr,null),q(this,_n,Ou()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,ke).addObserver(this),up(w(this,ke),this.options)?ve(this,Me,Ls).call(this):this.updateResult(),ve(this,Me,Lu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bu(w(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bu(w(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Me,Du).call(this),ve(this,Me,Fu).call(this),w(this,ke).removeObserver(this)}setOptions(o){const i=this.options,l=w(this,ke);if(this.options=w(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ut(this.options.enabled,w(this,ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Me,Uu).call(this),w(this,ke).setOptions(this.options),i._defaulted&&!ba(this.options,i)&&w(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,ke),observer:this});const c=this.hasListeners();c&&cp(w(this,ke),l,this.options,i)&&ve(this,Me,Ls).call(this),this.updateResult(),c&&(w(this,ke)!==l||Ut(this.options.enabled,w(this,ke))!==Ut(i.enabled,w(this,ke))||xr(this.options.staleTime,w(this,ke))!==xr(i.staleTime,w(this,ke)))&&ve(this,Me,zu).call(this);const d=ve(this,Me,Iu).call(this);c&&(w(this,ke)!==l||Ut(this.options.enabled,w(this,ke))!==Ut(i.enabled,w(this,ke))||d!==w(this,mr))&&ve(this,Me,Au).call(this,d)}getOptimisticResult(o){const i=w(this,Et).getQueryCache().build(w(this,Et),o),l=this.createResult(i,o);return Iy(this,l)&&(q(this,mt,l),q(this,Do,this.options),q(this,Vr,w(this,ke).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,_n).status==="pending"&&w(this,_n).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Bo).add(o)}getCurrentQuery(){return w(this,ke)}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 ve(this,Me,Ls).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,mt)))}createResult(o,i){var U;const l=w(this,ke),c=this.options,d=w(this,mt),m=w(this,Vr),p=w(this,Do),y=o!==l?o.state:w(this,Ws),{state:k}=o;let N={...k},T=!1,v;if(i._optimisticResults){const se=this.hasListeners(),ge=!se&&up(o,i),le=se&&cp(o,l,i,c);(ge||le)&&(N={...N,...ah(k.data,o.options)}),i._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:z,errorUpdatedAt:S,status:M}=N;v=N.data;let L=!1;if(i.placeholderData!==void 0&&v===void 0&&M==="pending"){let se;d!=null&&d.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(se=d.data,L=!0):se=typeof i.placeholderData=="function"?i.placeholderData((U=w(this,Uo))==null?void 0:U.state.data,w(this,Uo)):i.placeholderData,se!==void 0&&(M="success",v=Tu(d==null?void 0:d.data,se,i),T=!0)}if(i.select&&v!==void 0&&!L)if(d&&v===(m==null?void 0:m.data)&&i.select===w(this,Vs))v=w(this,Fo);else try{q(this,Vs,i.select),v=i.select(v),v=Tu(d==null?void 0:d.data,v,i),q(this,Fo,v),q(this,hr,null)}catch(se){q(this,hr,se)}w(this,hr)&&(z=w(this,hr),v=w(this,Fo),S=Date.now(),M="error");const Q=N.fetchStatus==="fetching",W=M==="pending",I=M==="error",Z=W&&Q,oe=v!==void 0,te={status:M,fetchStatus:N.fetchStatus,isPending:W,isSuccess:M==="success",isError:I,isInitialLoading:Z,isLoading:Z,data:v,dataUpdatedAt:N.dataUpdatedAt,error:z,errorUpdatedAt:S,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>y.dataUpdateCount||N.errorUpdateCount>y.errorUpdateCount,isFetching:Q,isRefetching:Q&&!W,isLoadingError:I&&!oe,isPaused:N.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:I&&oe,isStale:tc(o,i),refetch:this.refetch,promise:w(this,_n),isEnabled:Ut(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const se=te.data!==void 0,ge=te.status==="error"&&!se,le=Be=>{ge?Be.reject(te.error):se&&Be.resolve(te.data)},be=()=>{const Be=q(this,_n,te.promise=Ou());le(Be)},Oe=w(this,_n);switch(Oe.status){case"pending":o.queryHash===l.queryHash&&le(Oe);break;case"fulfilled":(ge||te.data!==Oe.value)&&be();break;case"rejected":(!ge||te.error!==Oe.reason)&&be();break}}return te}updateResult(){const o=w(this,mt),i=this.createResult(w(this,ke),this.options);if(q(this,Vr,w(this,ke).state),q(this,Do,this.options),w(this,Vr).data!==void 0&&q(this,Uo,w(this,ke)),ba(i,o))return;q(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!w(this,Bo).size)return!0;const m=new Set(d??w(this,Bo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,mt)).some(p=>{const x=p;return w(this,mt)[x]!==o[x]&&m.has(x)})};ve(this,Me,lh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Me,Lu).call(this)}},Et=new WeakMap,ke=new WeakMap,Ws=new WeakMap,mt=new WeakMap,Vr=new WeakMap,Do=new WeakMap,_n=new WeakMap,hr=new WeakMap,Vs=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,Qr=new WeakMap,$r=new WeakMap,mr=new WeakMap,Bo=new WeakMap,Me=new WeakSet,Ls=function(o){ve(this,Me,Uu).call(this);let i=w(this,ke).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},zu=function(){ve(this,Me,Du).call(this);const o=xr(this.options.staleTime,w(this,ke));if(Kr||w(this,mt).isStale||!Ru(o))return;const l=th(w(this,mt).dataUpdatedAt,o)+1;q(this,Qr,Lr.setTimeout(()=>{w(this,mt).isStale||this.updateResult()},l))},Iu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,ke)):this.options.refetchInterval)??!1},Au=function(o){ve(this,Me,Fu).call(this),q(this,mr,o),!(Kr||Ut(this.options.enabled,w(this,ke))===!1||!Ru(w(this,mr))||w(this,mr)===0)&&q(this,$r,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||ec.isFocused())&&ve(this,Me,Ls).call(this)},w(this,mr)))},Lu=function(){ve(this,Me,zu).call(this),ve(this,Me,Au).call(this,ve(this,Me,Iu).call(this))},Du=function(){w(this,Qr)&&(Lr.clearTimeout(w(this,Qr)),q(this,Qr,void 0))},Fu=function(){w(this,$r)&&(Lr.clearInterval(w(this,$r)),q(this,$r,void 0))},Uu=function(){const o=w(this,Et).getQueryCache().build(w(this,Et),this.options);if(o===w(this,ke))return;const i=w(this,ke);q(this,ke,o),q(this,Ws,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},lh=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(w(this,mt))}),w(this,Et).getQueryCache().notify({query:w(this,ke),type:"observerResultsUpdated"})})},Hp);function zy(r,o){return Ut(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function up(r,o){return zy(r,o)||r.state.data!==void 0&&Bu(r,o,o.refetchOnMount)}function Bu(r,o,i){if(Ut(o.enabled,r)!==!1&&xr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&tc(r,o)}return!1}function cp(r,o,i,l){return(r!==o||Ut(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&tc(r,i)}function tc(r,o){return Ut(o.enabled,r)!==!1&&r.isStaleByTime(xr(o.staleTime,r))}function Iy(r,o){return!ba(r.getCurrentResult(),o)}function dp(r){return{onFetch:(o,i)=>{var k,N,T,v,z;const l=o.options,c=(T=(N=(k=o.fetchOptions)==null?void 0:k.meta)==null?void 0:N.fetchMore)==null?void 0:T.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((z=o.state.data)==null?void 0:z.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const y=async()=>{let S=!1;const M=W=>{Ny(W,()=>o.signal,()=>S=!0)},L=rh(o.options,o.fetchOptions),Q=async(W,I,Z)=>{if(S)return Promise.reject();if(I==null&&W.pages.length)return Promise.resolve(W);const G=(()=>{const ge={client:o.client,queryKey:o.queryKey,pageParam:I,direction:Z?"backward":"forward",meta:o.options.meta};return M(ge),ge})(),te=await L(G),{maxPages:U}=o.options,se=Z?Ey:Cy;return{pages:se(W.pages,te,U),pageParams:se(W.pageParams,I,U)}};if(c&&d.length){const W=c==="backward",I=W?Ay:fp,Z={pages:d,pageParams:m},oe=I(l,Z);p=await Q(Z,oe,W)}else{const W=r??d.length;do{const I=x===0?m[0]??l.initialPageParam:fp(l,p);if(x>0&&I==null)break;p=await Q(p,I),x++}while(x<W)}return p};o.options.persister?o.fetchFn=()=>{var S,M;return(M=(S=o.options).persister)==null?void 0:M.call(S,y,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=y}}}function fp(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 Ay(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 Qs,mn,ct,Hr,gn,ur,Kp,Ly=(Kp=class extends ih{constructor(o){super();ue(this,gn);ue(this,Qs);ue(this,mn);ue(this,ct);ue(this,Hr);q(this,Qs,o.client),this.mutationId=o.mutationId,q(this,ct,o.mutationCache),q(this,mn,[]),this.state=o.state||uh(),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){q(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,Hr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,x,y,k,N,T,v,z,S,M,L,Q,W,I,Z,oe,G;const i=()=>{ve(this,gn,ur).call(this,{type:"continue"})},l={client:w(this,Qs),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Hr,sh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(te,U)=>{ve(this,gn,ur).call(this,{type:"failed",failureCount:te,error:U})},onPause:()=>{ve(this,gn,ur).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",d=!w(this,Hr).canStart();try{if(c)i();else{ve(this,gn,ur).call(this,{type:"pending",variables:o,isPaused:d}),w(this,ct).config.onMutate&&await w(this,ct).config.onMutate(o,this,l);const U=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));U!==this.state.context&&ve(this,gn,ur).call(this,{type:"pending",context:U,variables:o,isPaused:d})}const te=await w(this,Hr).start();return await((y=(x=w(this,ct).config).onSuccess)==null?void 0:y.call(x,te,o,this.state.context,this,l)),await((N=(k=this.options).onSuccess)==null?void 0:N.call(k,te,o,this.state.context,l)),await((v=(T=w(this,ct).config).onSettled)==null?void 0:v.call(T,te,null,this.state.variables,this.state.context,this,l)),await((S=(z=this.options).onSettled)==null?void 0:S.call(z,te,null,o,this.state.context,l)),ve(this,gn,ur).call(this,{type:"success",data:te}),te}catch(te){try{await((L=(M=w(this,ct).config).onError)==null?void 0:L.call(M,te,o,this.state.context,this,l))}catch(U){Promise.reject(U)}try{await((W=(Q=this.options).onError)==null?void 0:W.call(Q,te,o,this.state.context,l))}catch(U){Promise.reject(U)}try{await((Z=(I=w(this,ct).config).onSettled)==null?void 0:Z.call(I,void 0,te,this.state.variables,this.state.context,this,l))}catch(U){Promise.reject(U)}try{await((G=(oe=this.options).onSettled)==null?void 0:G.call(oe,void 0,te,o,this.state.context,l))}catch(U){Promise.reject(U)}throw ve(this,gn,ur).call(this,{type:"error",error:te}),te}finally{w(this,ct).runNext(this)}}},Qs=new WeakMap,mn=new WeakMap,ct=new WeakMap,Hr=new WeakMap,gn=new WeakSet,ur=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})})},Kp);function uh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,Jt,$s,Gp,Dy=(Gp=class extends Ho{constructor(o={}){super();ue(this,zn);ue(this,Jt);ue(this,$s);this.config=o,q(this,zn,new Set),q(this,Jt,new Map),q(this,$s,0)}build(o,i,l){const c=new Ly({client:o,mutationCache:this,mutationId:++ua(this,$s)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){w(this,zn).add(o);const i=da(o);if(typeof i=="string"){const l=w(this,Jt).get(i);l?l.push(o):w(this,Jt).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,zn).delete(o)){const i=da(o);if(typeof i=="string"){const l=w(this,Jt).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,Jt).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=da(o);if(typeof i=="string"){const l=w(this,Jt).get(i),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=da(o);if(typeof i=="string"){const c=(l=w(this,Jt).get(i))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{w(this,zn).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,zn).clear(),w(this,Jt).clear()})}getAll(){return Array.from(w(this,zn))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>op(i,l))}findAll(o={}){return this.getAll().filter(i=>op(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))))}},zn=new WeakMap,Jt=new WeakMap,$s=new WeakMap,Gp);function da(r){var o;return(o=r.options.scope)==null?void 0:o.id}var In,gr,Nt,An,Dn,va,Wu,qp,Fy=(qp=class extends Ho{constructor(i,l){super();ue(this,Dn);ue(this,In);ue(this,gr);ue(this,Nt);ue(this,An);q(this,In,i),this.setOptions(l),this.bindMethods(),ve(this,Dn,va).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,In).defaultMutationOptions(i),ba(this.options,l)||w(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Gr(l.mutationKey)!==Gr(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){ve(this,Dn,va).call(this),ve(this,Dn,Wu).call(this,i)}getCurrentResult(){return w(this,gr)}reset(){var i;(i=w(this,Nt))==null||i.removeObserver(this),q(this,Nt,void 0),ve(this,Dn,va).call(this),ve(this,Dn,Wu).call(this)}mutate(i,l){var c;return q(this,An,l),(c=w(this,Nt))==null||c.removeObserver(this),q(this,Nt,w(this,In).getMutationCache().build(w(this,In),this.options)),w(this,Nt).addObserver(this),w(this,Nt).execute(i)}},In=new WeakMap,gr=new WeakMap,Nt=new WeakMap,An=new WeakMap,Dn=new WeakSet,va=function(){var l;const i=((l=w(this,Nt))==null?void 0:l.state)??uh();q(this,gr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Wu=function(i){Xe.batch(()=>{var l,c,d,m,p,x,y,k;if(w(this,An)&&this.hasListeners()){const N=w(this,gr).variables,T=w(this,gr).context,v={client:w(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=w(this,An)).onSuccess)==null||c.call(l,i.data,N,T,v)}catch(z){Promise.reject(z)}try{(m=(d=w(this,An)).onSettled)==null||m.call(d,i.data,null,N,T,v)}catch(z){Promise.reject(z)}}else if((i==null?void 0:i.type)==="error"){try{(x=(p=w(this,An)).onError)==null||x.call(p,i.error,N,T,v)}catch(z){Promise.reject(z)}try{(k=(y=w(this,An)).onSettled)==null||k.call(y,void 0,i.error,N,T,v)}catch(z){Promise.reject(z)}}}this.listeners.forEach(N=>{N(w(this,gr))})})},qp),yn,Yp,Uy=(Yp=class extends Ho{constructor(o={}){super();ue(this,yn);this.config=o,q(this,yn,new Map)}build(o,i,l){const c=i.queryKey,d=i.queryHash??Xu(c,i);let m=this.get(d);return m||(m=new Oy({client:o,queryKey:c,queryHash:d,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=>rp(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>rp(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,Yp),$e,yr,vr,Wo,Vo,wr,Qo,$o,Xp,By=(Xp=class{constructor(r={}){ue(this,$e);ue(this,yr);ue(this,vr);ue(this,Wo);ue(this,Vo);ue(this,wr);ue(this,Qo);ue(this,$o);q(this,$e,r.queryCache||new Uy),q(this,yr,r.mutationCache||new Dy),q(this,vr,r.defaultOptions||{}),q(this,Wo,new Map),q(this,Vo,new Map),q(this,wr,0)}mount(){ua(this,wr)._++,w(this,wr)===1&&(q(this,Qo,ec.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onFocus())})),q(this,$o,Ca.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onOnline())})))}unmount(){var r,o;ua(this,wr)._--,w(this,wr)===0&&((r=w(this,Qo))==null||r.call(this),q(this,Qo,void 0),(o=w(this,$o))==null||o.call(this),q(this,$o,void 0))}isFetching(r){return w(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,yr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=w(this,$e).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(xr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,$e).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,$e).get(l.queryHash),d=c==null?void 0:c.state.data,m=Sy(o,d);if(m!==void 0)return w(this,$e).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>w(this,$e).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,$e).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=w(this,$e);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=w(this,$e);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,$e).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(w(this,$e).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,$e).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,i);return i.throwOnError||(d=d.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(gt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=w(this,$e).build(this,o);return i.isStaleByTime(xr(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=dp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=dp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ca.isOnline()?w(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,$e)}getMutationCache(){return w(this,yr)}getDefaultOptions(){return w(this,vr)}setDefaultOptions(r){q(this,vr,r)}setQueryDefaults(r,o){w(this,Wo).set(Gr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Wo).values()],i={};return o.forEach(l=>{Ds(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){w(this,Vo).set(Gr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,Vo).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,vr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=Xu(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===Zu&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,vr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,$e).clear(),w(this,yr).clear()}},$e=new WeakMap,yr=new WeakMap,vr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,wr=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Xp),ch=C.createContext(void 0),Hs=r=>{const o=C.useContext(ch);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Wy=({client:r,children:o})=>(C.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(ch.Provider,{value:r,children:o})),dh=C.createContext(!1),Vy=()=>C.useContext(dh);dh.Provider;function Qy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var $y=C.createContext(Qy()),Hy=()=>C.useContext($y),Ky=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Ju(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},Gy=r=>{C.useEffect(()=>{r.clearReset()},[r])},qy=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Ju(i,[r.error,l])),Yy=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))}},Xy=(r,o)=>r.isLoading&&r.isFetching&&!o,Zy=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,pp=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Jy(r,o,i){var T,v,z,S;const l=Vy(),c=Hy(),d=Hs(),m=d.defaultQueryOptions(r);(v=(T=d.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||v.call(T,m);const p=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Yy(m),Ky(m,c,p),Gy(c);const x=!d.getQueryCache().get(m.queryHash),[y]=C.useState(()=>new o(d,m)),k=y.getOptimisticResult(m),N=!l&&r.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(M=>{const L=N?y.subscribe(Xe.batchCalls(M)):gt;return y.updateResult(),L},[y,N]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),C.useEffect(()=>{y.setOptions(m)},[m,y]),Zy(m,k))throw pp(m,y,c);if(qy({result:k,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw k.error;if((S=(z=d.getDefaultOptions().queries)==null?void 0:z._experimental_afterQuery)==null||S.call(z,m,k),m.experimental_prefetchInRender&&!Kr&&Xy(k,l)){const M=x?pp(m,y,c):p==null?void 0:p.promise;M==null||M.catch(gt).finally(()=>{y.updateResult()})}return m.notifyOnChangeProps?k:y.trackResult(k)}function nc(r,o){return Jy(r,_y)}function ja(r,o){const i=Hs(),[l]=C.useState(()=>new Fy(i,r));C.useEffect(()=>{l.setOptions(r)},[l,r]);const c=C.useSyncExternalStore(C.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=C.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Ju(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const hp=r=>{let o;const i=new Set,l=(y,k)=>{const N=typeof y=="function"?y(o):y;if(!Object.is(N,o)){const T=o;o=k??(typeof N!="object"||N===null)?N:Object.assign({},o,N),i.forEach(v=>v(o,T))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>x,subscribe:y=>(i.add(y),()=>i.delete(y))},x=o=r(l,c,p);return p},ev=(r=>r?hp(r):hp),tv=r=>r;function nv(r,o=tv){const i=K.useSyncExternalStore(r.subscribe,K.useCallback(()=>o(r.getState()),[r,o]),K.useCallback(()=>o(r.getInitialState()),[r,o]));return K.useDebugValue(i),i}const mp=r=>{const o=ev(r),i=l=>nv(o,l);return Object.assign(i,o),i},rv=(r=>r?mp(r):mp),Yr=rv(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 fh(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=fh(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function ph(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=fh(r))&&(l&&(l+=" "),l+=o);return l}const rc="-",ov=r=>{const o=iv(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(rc);return p[0]===""&&p.length!==1&&p.shift(),hh(p,o)||sv(m)},getConflictingClassGroupIds:(m,p)=>{const x=i[m]||[];return p&&l[m]?[...x,...l[m]]:x}}},hh=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?hh(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(rc);return(m=o.validators.find(({validator:p})=>p(d)))==null?void 0:m.classGroupId},gp=/^\[(.+)\]$/,sv=r=>{if(gp.test(r)){const o=gp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},iv=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return lv(Object.entries(r.classGroups),i).forEach(([d,m])=>{Vu(m,l,d,o)}),l},Vu=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:yp(o,c);d.classGroupId=i;return}if(typeof c=="function"){if(av(c)){Vu(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([d,m])=>{Vu(m,yp(o,d),i,l)})})},yp=(r,o)=>{let i=r;return o.split(rc).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},av=r=>r.isThemeGetter,lv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,p])=>[o+m,p])):d);return[i,c]}):r,uv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(d,m)=>{i.set(d,m),o++,o>r&&(o=0,l=i,i=new Map)};return{get(d){let m=i.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){i.has(d)?i.set(d,m):c(d,m)}}},mh="!",cv=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],d=o.length,m=p=>{const x=[];let y=0,k=0,N;for(let M=0;M<p.length;M++){let L=p[M];if(y===0){if(L===c&&(l||p.slice(M,M+d)===o)){x.push(p.slice(k,M)),k=M+d;continue}if(L==="/"){N=M;continue}}L==="["?y++:L==="]"&&y--}const T=x.length===0?p:p.substring(k),v=T.startsWith(mh),z=v?T.substring(1):T,S=N&&N>k?N-k:void 0;return{modifiers:x,hasImportantModifier:v,baseClassName:z,maybePostfixModifierPosition:S}};return i?p=>i({className:p,parseClassName:m}):m},dv=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},fv=r=>({cache:uv(r.cacheSize),parseClassName:cv(r),...ov(r)}),pv=/\s+/,hv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(pv);let p="";for(let x=m.length-1;x>=0;x-=1){const y=m[x],{modifiers:k,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:v}=i(y);let z=!!v,S=l(z?T.substring(0,v):T);if(!S){if(!z){p=y+(p.length>0?" "+p:p);continue}if(S=l(T),!S){p=y+(p.length>0?" "+p:p);continue}z=!1}const M=dv(k).join(":"),L=N?M+mh:M,Q=L+S;if(d.includes(Q))continue;d.push(Q);const W=c(S,z);for(let I=0;I<W.length;++I){const Z=W[I];d.push(L+Z)}p=y+(p.length>0?" "+p:p)}return p};function mv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=gh(o))&&(l&&(l+=" "),l+=i);return l}const gh=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=gh(r[l]))&&(i&&(i+=" "),i+=o);return i};function gv(r,...o){let i,l,c,d=m;function m(x){const y=o.reduce((k,N)=>N(k),r());return i=fv(y),l=i.cache.get,c=i.cache.set,d=p,p(x)}function p(x){const y=l(x);if(y)return y;const k=hv(x,i);return c(x,k),k}return function(){return d(mv.apply(null,arguments))}}const De=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,yv=/^\d+\/\d+$/,vv=new Set(["px","full","screen"]),wv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xv=/\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$/,Sv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Oo(r)||vv.has(r)||yv.test(r),ar=r=>Ko(r,"length",Tv),Oo=r=>!!r&&!Number.isNaN(Number(r)),wu=r=>Ko(r,"number",Oo),Is=r=>!!r&&Number.isInteger(Number(r)),Cv=r=>r.endsWith("%")&&Oo(r.slice(0,-1)),ye=r=>yh.test(r),lr=r=>wv.test(r),Ev=new Set(["length","size","percentage"]),Nv=r=>Ko(r,Ev,vh),Pv=r=>Ko(r,"position",vh),jv=new Set(["image","url"]),Rv=r=>Ko(r,jv,_v),Mv=r=>Ko(r,"",Ov),As=()=>!0,Ko=(r,o,i)=>{const l=yh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},Tv=r=>xv.test(r)&&!Sv.test(r),vh=()=>!1,Ov=r=>kv.test(r),_v=r=>bv.test(r),zv=()=>{const r=De("colors"),o=De("spacing"),i=De("blur"),l=De("brightness"),c=De("borderColor"),d=De("borderRadius"),m=De("borderSpacing"),p=De("borderWidth"),x=De("contrast"),y=De("grayscale"),k=De("hueRotate"),N=De("invert"),T=De("gap"),v=De("gradientColorStops"),z=De("gradientColorStopPositions"),S=De("inset"),M=De("margin"),L=De("opacity"),Q=De("padding"),W=De("saturate"),I=De("scale"),Z=De("sepia"),oe=De("skew"),G=De("space"),te=De("translate"),U=()=>["auto","contain","none"],se=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",ye,o],le=()=>[ye,o],be=()=>["",Tn,ar],Oe=()=>["auto",Oo,ye],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_e=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",ye],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[Oo,ye];return{cacheSize:500,separator:":",theme:{colors:[As],spacing:[Tn,ar],blur:["none","",lr,ye],brightness:P(),borderColor:[r],borderRadius:["none","","full",lr,ye],borderSpacing:le(),borderWidth:be(),contrast:P(),grayscale:B(),hueRotate:P(),invert:B(),gap:le(),gradientColorStops:[r],gradientColorStopPositions:[Cv,ar],inset:ge(),margin:ge(),opacity:P(),padding:le(),saturate:P(),scale:P(),sepia:B(),skew:P(),space:le(),translate:le()},classGroups:{aspect:[{aspect:["auto","square","video",ye]}],container:["container"],columns:[{columns:[lr]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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(),ye]}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Is,ye]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ye]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Is,ye]}],"grid-cols":[{"grid-cols":[As]}],"col-start-end":[{col:["auto",{span:["full",Is,ye]},ye]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[As]}],"row-start-end":[{row:["auto",{span:[Is,ye]},ye]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ye]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ye]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ye,o]}],"min-w":[{"min-w":[ye,o,"min","max","fit"]}],"max-w":[{"max-w":[ye,o,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[ye,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ye,o,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ar]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wu]}],"font-family":[{font:[As]}],"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",ye]}],"line-clamp":[{"line-clamp":["none",Oo,wu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ye]}],"list-image":[{"list-image":["none",ye]}],"list-style-type":[{list:["none","disc","decimal",ye]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ar]}],"underline-offset":[{"underline-offset":["auto",Tn,ye]}],"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:le()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye]}],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",ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Pv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Rv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[z]}],"gradient-via-pos":[{via:[z]}],"gradient-to-pos":[{to:[z]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[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":[L]}],"border-style":[{border:[..._e(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:_e()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",..._e()]}],"outline-offset":[{"outline-offset":[Tn,ye]}],"outline-w":[{outline:[Tn,ar]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[Tn,ar]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",lr,Mv]}],"shadow-color":[{shadow:[As]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",lr,ye]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[N]}],saturate:[{saturate:[W]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ye]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",ye]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",ye]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Is,ye]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"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",ye]}],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",ye]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":le()}],"scroll-mx":[{"scroll-mx":le()}],"scroll-my":[{"scroll-my":le()}],"scroll-ms":[{"scroll-ms":le()}],"scroll-me":[{"scroll-me":le()}],"scroll-mt":[{"scroll-mt":le()}],"scroll-mr":[{"scroll-mr":le()}],"scroll-mb":[{"scroll-mb":le()}],"scroll-ml":[{"scroll-ml":le()}],"scroll-p":[{"scroll-p":le()}],"scroll-px":[{"scroll-px":le()}],"scroll-py":[{"scroll-py":le()}],"scroll-ps":[{"scroll-ps":le()}],"scroll-pe":[{"scroll-pe":le()}],"scroll-pt":[{"scroll-pt":le()}],"scroll-pr":[{"scroll-pr":le()}],"scroll-pb":[{"scroll-pb":le()}],"scroll-pl":[{"scroll-pl":le()}],"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",ye]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ar,wu]}],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"]}}},Iv=gv(zv);function Pe(...r){return Iv(ph(r))}/**
40
+ `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Dl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Dg=typeof WeakMap=="function"?WeakMap:Map;function tf(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qi||(qi=!0,Jl=s),Ll(e,t)},n}function nf(e,t,n){n=jn(-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(){Ll(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ll(e,t),typeof s!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function rf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Dg;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=Xg.bind(null,e,t,n),t.then(e,e))}function of(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 sf(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=jn(-1,1),t.tag=2,Jn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Lg=I.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?Ed(t,null,n,s):xo(t,e.child,n,s)}function af(e,t,n,s,a){n=n.render;var u=t.ref;return bo(t,a),s=Rl(e,t,n,s,u,a),n=Ml(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&n&&fl(t),t.flags|=1,pt(e,t,s,a),t.child)}function lf(e,t,n,s,a){if(e===null){var u=n.type;return typeof u=="function"&&!iu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,uf(e,t,u,s,a)):(e=ta(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 f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(f,s)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=sr(u,s),e.ref=t.ref,e.return=t,t.child=e}function uf(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(ps(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,Rn(e,t,a)}return Fl(e,t,n,s,a)}function cf(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},Ie(No,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,Ie(No,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,Ie(No,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,Ie(No,Tt),Tt|=s;return pt(e,t,a,n),t.child}function df(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fl(e,t,n,s,a){var u=xt(n)?Nr:it.current;return u=go(t,u),bo(t,a),n=Rl(e,t,n,s,u,a),s=Ml(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&s&&fl(t),t.flags|=1,pt(e,t,n,a),t.child)}function ff(e,t,n,s,a){if(xt(n)){var u=!0;Ni(t)}else u=!1;if(bo(t,a),t.stateNode===null)Qi(e,t),Jd(t,n,s),Al(t,n,s,a),s=!0;else if(e===null){var f=t.stateNode,g=t.memoizedProps;f.props=g;var k=f.context,O=n.contextType;typeof O=="object"&&O!==null?O=It(O):(O=xt(n)?Nr:it.current,O=go(t,O));var L=n.getDerivedStateFromProps,F=typeof L=="function"||typeof f.getSnapshotBeforeUpdate=="function";F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==s||k!==O)&&ef(t,f,s,O),Zn=!1;var A=t.memoizedState;f.state=A,Ii(t,s,f,a),k=t.memoizedState,g!==s||A!==k||wt.current||Zn?(typeof L=="function"&&(Il(t,n,L,s),k=t.memoizedState),(g=Zn||Zd(t,n,g,s,A,k,O))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=k),f.props=s,f.state=k,f.context=O,s=g):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Pd(e,t),g=t.memoizedProps,O=t.type===t.elementType?g:Ht(t.type,g),f.props=O,F=t.pendingProps,A=f.context,k=n.contextType,typeof k=="object"&&k!==null?k=It(k):(k=xt(n)?Nr:it.current,k=go(t,k));var X=n.getDerivedStateFromProps;(L=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==F||A!==k)&&ef(t,f,s,k),Zn=!1,A=t.memoizedState,f.state=A,Ii(t,s,f,a);var ne=t.memoizedState;g!==F||A!==ne||wt.current||Zn?(typeof X=="function"&&(Il(t,n,X,s),ne=t.memoizedState),(O=Zn||Zd(t,n,O,s,A,ne,k)||!1)?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,ne,k),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,ne,k)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ne),f.props=s,f.state=ne,f.context=k,s=O):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),s=!1)}return Ul(e,t,n,s,u,a)}function Ul(e,t,n,s,a,u){df(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return a&&gd(t,n,!1),Rn(e,t,u);s=t.stateNode,Lg.current=t;var g=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=xo(t,e.child,null,u),t.child=xo(t,null,g,u)):pt(e,t,g,u),t.memoizedState=s.state,a&&gd(t,n,!0),t.child}function pf(e){var t=e.stateNode;t.pendingContext?hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hd(e,t.context,!1),kl(e,t.containerInfo)}function hf(e,t,n,s,a){return wo(),gl(a),t.flags|=256,pt(e,t,n,s),t.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Wl(e){return{baseLanes:e,cachePool:null,transitions:null}}function mf(e,t,n){var s=t.pendingProps,a=We.current,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(a&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ie(We,a&1),e===null)return ml(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=na(f,s,0,null),e=Ar(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Wl(n),t.memoizedState=Bl,e):Vl(t,f));if(a=e.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return Fg(e,t,f,s,g,a,n);if(u){u=s.fallback,f=t.mode,a=e.child,g=a.sibling;var k={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=k,t.deletions=null):(s=sr(a,k),s.subtreeFlags=a.subtreeFlags&14680064),g!==null?u=sr(g,u):(u=Ar(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Wl(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Bl,s}return u=e.child,e=u.sibling,s=sr(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Vl(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,s){return s!==null&&gl(s),xo(t,e.child,null,n),e=Vl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fg(e,t,n,s,a,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Dl(Error(i(422))),Vi(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=na({mode:"visible",children:s.children},a,0,null),u=Ar(u,a,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&xo(t,e.child,null,f),t.child.memoizedState=Wl(f),t.memoizedState=Bl,u);if((t.mode&1)===0)return Vi(e,t,f,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(i(419)),s=Dl(u,s,void 0),Vi(e,t,f,s)}if(g=(f&e.childLanes)!==0,St||g){if(s=et,s!==null){switch(f&-f){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|f))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),qt(s,e,a,-1))}return su(),s=Dl(Error(i(421))),Vi(e,t,f,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Zg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=Gn(a.nextSibling),Rt=t,Ue=!0,$t=null,e!==null&&(zt[_t++]=En,zt[_t++]=Nn,zt[_t++]=Pr,En=e.id,Nn=e.overflow,Pr=t),t=Vl(t,s.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),xl(e.return,t,n)}function Ql(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 yf(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&&gf(e,n,t);else if(e.tag===19)gf(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(Ie(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&&Ai(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ql(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&&Ai(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ql(t,!0,n,null,u);break;case"together":Ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ug(e,t,n){switch(t.tag){case 3:pf(t),wo();break;case 5:Md(t);break;case 1:xt(t.type)&&Ni(t);break;case 4:kl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;Ie(Oi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Ie(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?mf(e,t,n):(Ie(We,We.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);Ie(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return yf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ie(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,cf(e,t,n)}return Rn(e,t,n)}var vf,$l,wf,xf;vf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$l=function(){},wf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Mr(fn.current);var u=null;switch(n){case"input":a=Go(e,a),s=Go(e,s),u=[];break;case"select":a=$({},a,{value:void 0}),s=$({},s,{value:void 0}),u=[];break;case"textarea":a=to(e,a),s=to(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=ki)}an(n,s);var f;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var g=a[O];for(f in g)g.hasOwnProperty(f)&&(n||(n={}),n[f]="")}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 k=s[O];if(g=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&k!==g&&(k!=null||g!=null))if(O==="style")if(g){for(f in g)!g.hasOwnProperty(f)||k&&k.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in k)k.hasOwnProperty(f)&&g[f]!==k[f]&&(n||(n={}),n[f]=k[f])}else n||(u||(u=[]),u.push(O,n)),n=k;else O==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,g=g?g.__html:void 0,k!=null&&g!==k&&(u=u||[]).push(O,k)):O==="children"?typeof k!="string"&&typeof k!="number"||(u=u||[]).push(O,""+k):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(k!=null&&O==="onScroll"&&Ae("scroll",e),u||g===k||(u=[])):(u=u||[]).push(O,k))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},xf=function(e,t,n,s){n!==s&&(t.flags|=4)};function js(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var 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 Bg(e,t,n){var s=t.pendingProps;switch(pl(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 xt(t.type)&&Ei(),lt(t),null;case 3:return s=t.stateNode,ko(),De(wt),De(it),Nl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$t!==null&&(nu($t),$t=null))),$l(e,t),lt(t),null;case 5:Cl(t);var a=Mr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)wf(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=Mr(fn.current),Mi(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[dn]=t,s[vs]=u,e=(t.mode&1)!==0,n){case"dialog":Ae("cancel",s),Ae("close",s);break;case"iframe":case"object":case"embed":Ae("load",s);break;case"video":case"audio":for(a=0;a<ms.length;a++)Ae(ms[a],s);break;case"source":Ae("error",s);break;case"img":case"image":case"link":Ae("error",s),Ae("load",s);break;case"details":Ae("toggle",s);break;case"input":qs(s,u),Ae("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ae("invalid",s);break;case"textarea":rn(s,u),Ae("invalid",s)}an(n,u),a=null;for(var f in u)if(u.hasOwnProperty(f)){var g=u[f];f==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,g,e),a=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,g,e),a=["children",""+g]):c.hasOwnProperty(f)&&g!=null&&f==="onScroll"&&Ae("scroll",s)}switch(n){case"input":nn(s),eo(s,u,!0);break;case"textarea":nn(s),Xs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=ki)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=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=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[dn]=t,e[vs]=s,vf(e,t,!1,!1),t.stateNode=e;e:{switch(f=Zo(n,s),n){case"dialog":Ae("cancel",e),Ae("close",e),a=s;break;case"iframe":case"object":case"embed":Ae("load",e),a=s;break;case"video":case"audio":for(a=0;a<ms.length;a++)Ae(ms[a],e);a=s;break;case"source":Ae("error",e),a=s;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),a=s;break;case"details":Ae("toggle",e),a=s;break;case"input":qs(e,s),a=Go(e,s),Ae("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=$({},s,{value:void 0}),Ae("invalid",e);break;case"textarea":rn(e,s),a=to(e,s),Ae("invalid",e);break;default:a=s}an(n,a),g=a;for(u in g)if(g.hasOwnProperty(u)){var k=g[u];u==="style"?bn(e,k):u==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Zs(e,k)):u==="children"?typeof k=="string"?(n!=="textarea"||k!=="")&&sn(e,k):typeof k=="number"&&sn(e,""+k):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?k!=null&&u==="onScroll"&&Ae("scroll",e):k!=null&&W(e,u,k,f))}switch(n){case"input":nn(e),eo(e,s,!1);break;case"textarea":nn(e),Xs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Ce(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?Ot(e,!!s.multiple,u,!1):s.defaultValue!=null&&Ot(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ki)}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)xf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Mr(ks.current),Mr(fn.current),Mi(t)){if(s=t.stateNode,n=t.memoizedProps,s[dn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:bi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bi(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(De(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)bd(),wo(),t.flags|=98560,u=!1;else if(u=Mi(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 wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else $t!==null&&(nu($t),$t=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):su())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return ko(),$l(e,t),e===null&&gs(t.stateNode.containerInfo),lt(t),null;case 10:return wl(t.type._context),lt(t),null;case 17:return xt(t.type)&&Ei(),lt(t),null;case 19:if(De(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)js(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ai(e),f!==null){for(t.flags|=128,js(u,!1),s=f.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ie(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&He()>Po&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304)}else{if(!s)if(e=Ai(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),js(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Ue)return lt(t),null}else 2*He()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=He(),t.sibling=null,n=We.current,Ie(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return ou(),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 Wg(e,t){switch(pl(t),t.tag){case 1:return xt(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),De(wt),De(it),Nl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Cl(t),null;case 13:if(De(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(We),null;case 4:return ko(),null;case 10:return wl(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var $i=!1,ut=!1,Vg=typeof WeakSet=="function"?WeakSet:Set,J=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Qe(e,t,s)}else n.current=null}function Hl(e,t,n){try{n()}catch(s){Qe(e,t,s)}}var Sf=!1;function Qg(e,t){if(ol=di,e=Zc(),Ya(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 f=0,g=-1,k=-1,O=0,L=0,F=e,A=null;t:for(;;){for(var X;F!==n||a!==0&&F.nodeType!==3||(g=f+a),F!==u||s!==0&&F.nodeType!==3||(k=f+s),F.nodeType===3&&(f+=F.nodeValue.length),(X=F.firstChild)!==null;)A=F,F=X;for(;;){if(F===e)break t;if(A===n&&++O===a&&(g=f),A===u&&++L===s&&(k=f),(X=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=X}n=g===-1||k===-1?null:{start:g,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},di=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,Ke=ne.memoizedState,j=t.stateNode,E=j.getSnapshotBeforeUpdate(t.elementType===t.type?re:Ht(t.type,re),Ke);j.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(V){Qe(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ne=Sf,Sf=!1,ne}function Rs(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&&Hl(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 Kl(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 bf(e){var t=e.alternate;t!==null&&(e.alternate=null,bf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[vs],delete t[ul],delete t[Ng],delete t[Pg])),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 kf(e){return e.tag===5||e.tag===3||e.tag===4}function Cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kf(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 Gl(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=ki));else if(s!==4&&(e=e.child,e!==null))for(Gl(e,t,n),e=e.sibling;e!==null;)Gl(e,t,n),e=e.sibling}function ql(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(ql(e,t,n),e=e.sibling;e!==null;)ql(e,t,n),e=e.sibling}var ot=null,Kt=!1;function er(e,t,n){for(n=n.child;n!==null;)Ef(e,t,n),n=n.sibling}function Ef(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:ut||Eo(n,t);case 6:var s=ot,a=Kt;ot=null,er(e,t,n),ot=s,Kt=a,ot!==null&&(Kt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Kt?(e=ot,n=n.stateNode,e.nodeType===8?ll(e.parentNode,n):e.nodeType===1&&ll(e,n),as(e)):ll(ot,n.stateNode));break;case 4:s=ot,a=Kt,ot=n.stateNode.containerInfo,Kt=!0,er(e,t,n),ot=s,Kt=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,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Hl(n,t,f),a=a.next}while(a!==s)}er(e,t,n);break;case 1:if(!ut&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){Qe(n,t,g)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,er(e,t,n),ut=s):er(e,t,n);break;default:er(e,t,n)}}function Nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vg),t.forEach(function(s){var a=Jg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Gt(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,f=t,g=f;e:for(;g!==null;){switch(g.tag){case 5:ot=g.stateNode,Kt=!1;break e;case 3:ot=g.stateNode.containerInfo,Kt=!0;break e;case 4:ot=g.stateNode.containerInfo,Kt=!0;break e}g=g.return}if(ot===null)throw Error(i(160));Ef(u,f,a),ot=null,Kt=!1;var k=a.alternate;k!==null&&(k.return=null),a.return=null}catch(O){Qe(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pf(t,e),t=t.sibling}function Pf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),hn(e),s&4){try{Rs(3,e,e.return),Hi(3,e)}catch(re){Qe(e,e.return,re)}try{Rs(5,e,e.return)}catch(re){Qe(e,e.return,re)}}break;case 1:Gt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Gt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var a=e.stateNode;try{sn(a,"")}catch(re){Qe(e,e.return,re)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,g=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&qo(a,u),Zo(g,f);var O=Zo(g,u);for(f=0;f<k.length;f+=2){var L=k[f],F=k[f+1];L==="style"?bn(a,F):L==="dangerouslySetInnerHTML"?Zs(a,F):L==="children"?sn(a,F):W(a,L,F,O)}switch(g){case"input":Yo(a,u);break;case"textarea":Ys(a,u);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var X=u.value;X!=null?Ot(a,!!u.multiple,X,!1):A!==!!u.multiple&&(u.defaultValue!=null?Ot(a,!!u.multiple,u.defaultValue,!0):Ot(a,!!u.multiple,u.multiple?[]:"",!1))}a[vs]=u}catch(re){Qe(e,e.return,re)}}break;case 6:if(Gt(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(re){Qe(e,e.return,re)}}break;case 3:if(Gt(t,e),hn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(re){Qe(e,e.return,re)}break;case 4:Gt(t,e),hn(e);break;case 13:Gt(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||(Zl=He())),s&4&&Nf(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||L,Gt(t,e),ut=O):Gt(t,e),hn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!L&&(e.mode&1)!==0)for(J=e,L=e.child;L!==null;){for(F=J=L;J!==null;){switch(A=J,X=A.child,A.tag){case 0:case 11:case 14:case 15:Rs(4,A,A.return);break;case 1:Eo(A,A.return);var ne=A.stateNode;if(typeof ne.componentWillUnmount=="function"){s=A,n=A.return;try{t=s,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Qe(s,n,re)}}break;case 5:Eo(A,A.return);break;case 22:if(A.memoizedState!==null){Mf(F);continue}}X!==null?(X.return=A,J=X):Mf(F)}L=L.sibling}e:for(L=null,F=e;;){if(F.tag===5){if(L===null){L=F;try{a=F.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=F.stateNode,k=F.memoizedProps.style,f=k!=null&&k.hasOwnProperty("display")?k.display:null,g.style.display=ro("display",f))}catch(re){Qe(e,e.return,re)}}}else if(F.tag===6){if(L===null)try{F.stateNode.nodeValue=O?"":F.memoizedProps}catch(re){Qe(e,e.return,re)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;L===F&&(L=null),F=F.return}L===F&&(L=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Gt(t,e),hn(e),s&4&&Nf(e);break;case 21:break;default:Gt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kf(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=Cf(e);ql(e,u,a);break;case 3:case 4:var f=s.stateNode.containerInfo,g=Cf(e);Gl(e,g,f);break;default:throw Error(i(161))}}catch(k){Qe(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $g(e,t,n){J=e,jf(e)}function jf(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var a=J,u=a.child;if(a.tag===22&&s){var f=a.memoizedState!==null||$i;if(!f){var g=a.alternate,k=g!==null&&g.memoizedState!==null||ut;g=$i;var O=ut;if($i=f,(ut=k)&&!O)for(J=a;J!==null;)f=J,k=f.child,f.tag===22&&f.memoizedState!==null?Tf(a):k!==null?(k.return=f,J=k):Tf(a);for(;u!==null;)J=u,jf(u),u=u.sibling;J=a,$i=g,ut=O}Rf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,J=u):Rf(e)}}function Rf(e){for(;J!==null;){var t=J;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:Ht(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Rd(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Rd(t,f,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&n.focus();break;case"img":k.src&&(n.src=k.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 L=O.memoizedState;if(L!==null){var F=L.dehydrated;F!==null&&as(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&Kl(t)}catch(A){Qe(t,t.return,A)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Mf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Tf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(k){Qe(t,n,k)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(k){Qe(t,a,k)}}var u=t.return;try{Kl(t)}catch(k){Qe(t,u,k)}break;case 5:var f=t.return;try{Kl(t)}catch(k){Qe(t,f,k)}}}catch(k){Qe(t,t.return,k)}if(t===e){J=null;break}var g=t.sibling;if(g!==null){g.return=t.return,J=g;break}J=t.return}}var Hg=Math.ceil,Ki=I.ReactCurrentDispatcher,Yl=I.ReactCurrentOwner,Dt=I.ReactCurrentBatchConfig,Ee=0,et=null,Ge=null,st=0,Tt=0,No=qn(0),Ye=0,Ms=null,Or=0,Gi=0,Xl=0,Ts=null,bt=null,Zl=0,Po=1/0,Mn=null,qi=!1,Jl=null,tr=null,Yi=!1,nr=null,Xi=0,Os=0,eu=null,Zi=-1,Ji=0;function ht(){return(Ee&6)!==0?He():Zi!==-1?Zi:Zi=He()}function rr(e){return(e.mode&1)===0?1:(Ee&2)!==0&&st!==0?st&-st:Rg.transition!==null?(Ji===0&&(Ji=kc()),Ji):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Oc(e.type)),e)}function qt(e,t,n,s){if(50<Os)throw Os=0,eu=null,Error(i(185));ns(e,n,s),((Ee&2)===0||e!==et)&&(e===et&&((Ee&2)===0&&(Gi|=n),Ye===4&&or(e,st)),kt(e,s),n===1&&Ee===0&&(t.mode&1)===0&&(Po=He()+500,Pi&&Xn()))}function kt(e,t){var n=e.callbackNode;Rm(e,t);var s=li(e,e===et?st:0);if(s===0)n!==null&&xc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&xc(n),t===1)e.tag===0?jg(zf.bind(null,e)):yd(zf.bind(null,e)),Cg(function(){(Ee&6)===0&&Xn()}),n=null;else{switch(Cc(s)){case 1:n=za;break;case 4:n=Sc;break;case 16:n=oi;break;case 536870912:n=bc;break;default:n=oi}n=Bf(n,Of.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Of(e,t){if(Zi=-1,Ji=0,(Ee&6)!==0)throw Error(i(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=li(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ea(e,s);else{t=s;var a=Ee;Ee|=2;var u=If();(et!==e||st!==t)&&(Mn=null,Po=He()+500,_r(e,t));do try{qg();break}catch(g){_f(e,g)}while(!0);vl(),Ki.current=u,Ee=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=_a(e),a!==0&&(s=a,t=tu(e,a))),t===1)throw n=Ms,_r(e,0),or(e,s),kt(e,He()),n;if(t===6)or(e,s);else{if(a=e.current.alternate,(s&30)===0&&!Kg(a)&&(t=ea(e,s),t===2&&(u=_a(e),u!==0&&(s=u,t=tu(e,u))),t===1))throw n=Ms,_r(e,0),or(e,s),kt(e,He()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Ir(e,bt,Mn);break;case 3:if(or(e,s),(s&130023424)===s&&(t=Zl+500-He(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=al(Ir.bind(null,e,bt,Mn),t);break}Ir(e,bt,Mn);break;case 4:if(or(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var f=31-Vt(s);u=1<<f,f=t[f],f>a&&(a=f),s&=~u}if(s=a,s=He()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Hg(s/1960))-s,10<s){e.timeoutHandle=al(Ir.bind(null,e,bt,Mn),s);break}Ir(e,bt,Mn);break;case 5:Ir(e,bt,Mn);break;default:throw Error(i(329))}}}return kt(e,He()),e.callbackNode===n?Of.bind(null,e):null}function tu(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=ea(e,t),e!==2&&(t=bt,bt=n,t!==null&&nu(t)),e}function nu(e){bt===null?bt=e:bt.push.apply(bt,e)}function Kg(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(!Qt(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 or(e,t){for(t&=~Xl,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),s=1<<n;e[n]=-1,t&=~s}}function zf(e){if((Ee&6)!==0)throw Error(i(327));jo();var t=li(e,0);if((t&1)===0)return kt(e,He()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var s=_a(e);s!==0&&(t=s,n=tu(e,s))}if(n===1)throw n=Ms,_r(e,0),or(e,t),kt(e,He()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ir(e,bt,Mn),kt(e,He()),null}function ru(e,t){var n=Ee;Ee|=1;try{return e(t)}finally{Ee=n,Ee===0&&(Po=He()+500,Pi&&Xn())}}function zr(e){nr!==null&&nr.tag===0&&(Ee&6)===0&&jo();var t=Ee;Ee|=1;var n=Dt.transition,s=Te;try{if(Dt.transition=null,Te=1,e)return e()}finally{Te=s,Dt.transition=n,Ee=t,(Ee&6)===0&&Xn()}}function ou(){Tt=No.current,De(No)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(pl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ei();break;case 3:ko(),De(wt),De(it),Nl();break;case 5:Cl(s);break;case 4:ko();break;case 13:De(We);break;case 19:De(We);break;case 10:wl(s.type._context);break;case 22:case 23:ou()}n=n.return}if(et=e,Ge=e=sr(e.current,null),st=Tt=t,Ye=0,Ms=null,Xl=Gi=Or=0,bt=Ts=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=a,s.next=f}n.pending=s}Rr=null}return e}function _f(e,t){do{var n=Ge;try{if(vl(),Di.current=Bi,Li){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Li=!1}if(Tr=0,Je=qe=Ve=null,Cs=!1,Es=0,Yl.current=null,n===null||n.return===null){Ye=1,Ms=t,Ge=null;break}e:{var u=e,f=n.return,g=n,k=t;if(t=st,g.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var O=k,L=g,F=L.tag;if((L.mode&1)===0&&(F===0||F===11||F===15)){var A=L.alternate;A?(L.updateQueue=A.updateQueue,L.memoizedState=A.memoizedState,L.lanes=A.lanes):(L.updateQueue=null,L.memoizedState=null)}var X=of(f);if(X!==null){X.flags&=-257,sf(X,f,g,u,t),X.mode&1&&rf(u,O,t),t=X,k=O;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(k),t.updateQueue=re}else ne.add(k);break e}else{if((t&1)===0){rf(u,O,t),su();break e}k=Error(i(426))}}else if(Ue&&g.mode&1){var Ke=of(f);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),sf(Ke,f,g,u,t),gl(Co(k,g));break e}}u=k=Co(k,g),Ye!==4&&(Ye=2),Ts===null?Ts=[u]:Ts.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var j=tf(u,k,t);jd(u,j);break e;case 1:g=k;var E=u.type,R=u.stateNode;if((u.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(tr===null||!tr.has(R)))){u.flags|=65536,t&=-t,u.lanes|=t;var V=nf(u,g,t);jd(u,V);break e}}u=u.return}while(u!==null)}Df(n)}catch(ae){t=ae,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function If(){var e=Ki.current;return Ki.current=Bi,e===null?Bi:e}function su(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Or&268435455)===0&&(Gi&268435455)===0||or(et,st)}function ea(e,t){var n=Ee;Ee|=2;var s=If();(et!==e||st!==t)&&(Mn=null,_r(e,t));do try{Gg();break}catch(a){_f(e,a)}while(!0);if(vl(),Ee=n,Ki.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function Gg(){for(;Ge!==null;)Af(Ge)}function qg(){for(;Ge!==null&&!xm();)Af(Ge)}function Af(e){var t=Uf(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Df(e):Ge=t,Yl.current=null}function Df(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Bg(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Wg(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 Ir(e,t,n){var s=Te,a=Dt.transition;try{Dt.transition=null,Te=1,Yg(e,t,n,s)}finally{Dt.transition=a,Te=s}return null}function Yg(e,t,n,s){do jo();while(nr!==null);if((Ee&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(Mm(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Bf(oi,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Dt.transition,Dt.transition=null;var f=Te;Te=1;var g=Ee;Ee|=4,Yl.current=null,Qg(e,n),Pf(n,e),gg(sl),di=!!ol,sl=ol=null,e.current=n,$g(n),Sm(),Ee=g,Te=f,Dt.transition=u}else e.current=n;if(Yi&&(Yi=!1,nr=e,Xi=a),u=e.pendingLanes,u===0&&(tr=null),Cm(n.stateNode),kt(e,He()),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(qi)throw qi=!1,e=Jl,Jl=null,e;return(Xi&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===eu?Os++:(Os=0,eu=e):Os=0,Xn(),null}function jo(){if(nr!==null){var e=Cc(Xi),t=Dt.transition,n=Te;try{if(Dt.transition=null,Te=16>e?16:e,nr===null)var s=!1;else{if(e=nr,nr=null,Xi=0,(Ee&6)!==0)throw Error(i(331));var a=Ee;for(Ee|=4,J=e.current;J!==null;){var u=J,f=u.child;if((J.flags&16)!==0){var g=u.deletions;if(g!==null){for(var k=0;k<g.length;k++){var O=g[k];for(J=O;J!==null;){var L=J;switch(L.tag){case 0:case 11:case 15:Rs(8,L,u)}var F=L.child;if(F!==null)F.return=L,J=F;else for(;J!==null;){L=J;var A=L.sibling,X=L.return;if(bf(L),L===O){J=null;break}if(A!==null){A.return=X,J=A;break}J=X}}}var ne=u.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var Ke=re.sibling;re.sibling=null,re=Ke}while(re!==null)}}J=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,J=f;else e:for(;J!==null;){if(u=J,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Rs(9,u,u.return)}var j=u.sibling;if(j!==null){j.return=u.return,J=j;break e}J=u.return}}var E=e.current;for(J=E;J!==null;){f=J;var R=f.child;if((f.subtreeFlags&2064)!==0&&R!==null)R.return=f,J=R;else e:for(f=E;J!==null;){if(g=J,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Hi(9,g)}}catch(ae){Qe(g,g.return,ae)}if(g===f){J=null;break e}var V=g.sibling;if(V!==null){V.return=g.return,J=V;break e}J=g.return}}if(Ee=a,Xn(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(si,e)}catch{}s=!0}return s}finally{Te=n,Dt.transition=t}}return!1}function Lf(e,t,n){t=Co(n,t),t=tf(e,t,1),e=Jn(e,t,1),t=ht(),e!==null&&(ns(e,1,t),kt(e,t))}function Qe(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(tr===null||!tr.has(s))){e=Co(n,e),e=nf(t,e,1),t=Jn(t,e,1),e=ht(),t!==null&&(ns(t,1,e),kt(t,e));break}}t=t.return}}function Xg(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>He()-Zl?_r(e,0):Xl|=n),kt(e,t)}function Ff(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=ht();e=Pn(e,t),e!==null&&(ns(e,t,n),kt(e,n))}function Zg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ff(e,n)}function Jg(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),Ff(e,n)}var Uf;Uf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,Ug(e,t,n);St=(e.flags&131072)!==0}else St=!1,Ue&&(t.flags&1048576)!==0&&vd(t,Ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Qi(e,t),e=t.pendingProps;var a=go(t,it.current);bo(t,n),a=Rl(null,t,s,e,a,n);var u=Ml();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,xt(s)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,bl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,Al(t,s,e,n),t=Ul(null,t,s,!0,u,n)):(t.tag=0,Ue&&u&&fl(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=ty(s),e=Ht(s,e),a){case 0:t=Fl(null,t,s,e,n);break e;case 1:t=ff(null,t,s,e,n);break e;case 11:t=af(null,t,s,e,n);break e;case 14:t=lf(null,t,s,Ht(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:Ht(s,a),Fl(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ht(s,a),ff(e,t,s,a,n);case 3:e:{if(pf(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,Pd(e,t),Ii(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=Co(Error(i(423)),t),t=hf(e,t,s,n,a);break e}else if(s!==a){a=Co(Error(i(424)),t),t=hf(e,t,s,n,a);break e}else for(Mt=Gn(t.stateNode.containerInfo.firstChild),Rt=t,Ue=!0,$t=null,n=Ed(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),s===a){t=Rn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Md(t),e===null&&ml(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,f=a.children,il(s,a)?f=null:u!==null&&il(s,u)&&(t.flags|=32),df(e,t),pt(e,t,f,n),t.child;case 6:return e===null&&ml(t),null;case 13:return mf(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=xo(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:Ht(s,a),af(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,f=a.value,Ie(Oi,s._currentValue),s._currentValue=f,u!==null)if(Qt(u.value,f)){if(u.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){f=u.child;for(var k=g.firstContext;k!==null;){if(k.context===s){if(u.tag===1){k=jn(-1,n&-n),k.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var L=O.pending;L===null?k.next=k:(k.next=L.next,L.next=k),O.pending=k}}u.lanes|=n,k=u.alternate,k!==null&&(k.lanes|=n),xl(u.return,n,t),g.lanes|=n;break}k=k.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(i(341));f.lanes|=n,g=f.alternate,g!==null&&(g.lanes|=n),xl(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,bo(t,n),a=It(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=Ht(s,t.pendingProps),a=Ht(s.type,a),lf(e,t,s,a,n);case 15:return uf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ht(s,a),Qi(e,t),t.tag=1,xt(s)?(e=!0,Ni(t)):e=!1,bo(t,n),Jd(t,s,a),Al(t,s,a,n),Ul(null,t,s,!0,e,n);case 19:return yf(e,t,n);case 22:return cf(e,t,n)}throw Error(i(156,t.tag))};function Bf(e,t){return wc(e,t)}function ey(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 Lt(e,t,n,s){return new ey(e,t,n,s)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===Be)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,s,a,u){var f=2;if(s=e,typeof e=="function")iu(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case q:return Ar(n.children,a,u,t);case te:f=8,a|=8;break;case U:return e=Lt(12,n,t,a|2),e.elementType=U,e.lanes=u,e;case ke:return e=Lt(13,n,t,a),e.elementType=ke,e.lanes=u,e;case Oe:return e=Lt(19,n,t,a),e.elementType=Oe,e.lanes=u,e;case Se:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:f=10;break e;case ge:f=9;break e;case le:f=11;break e;case Be:f=14;break e;case ze:f=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Lt(f,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ar(e,t,n,s){return e=Lt(7,e,s,t),e.lanes=n,e}function na(e,t,n,s){return e=Lt(22,e,s,t),e.elementType=Se,e.lanes=n,e.stateNode={isHidden:!1},e}function au(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function lu(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(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=Ia(0),this.expirationTimes=Ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ia(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,s,a,u,f,g,k){return e=new ny(e,t,n,g,k),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Lt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bl(u),e}function ry(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 Wf(e){if(!e)return Yn;e=e._reactInternals;e:{if(Cr(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(xt(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(xt(n))return md(e,n,t)}return t}function Vf(e,t,n,s,a,u,f,g,k){return e=uu(n,s,!0,e,a,u,f,g,k),e.context=Wf(null),n=e.current,s=ht(),a=rr(n),u=jn(s,a),u.callback=t??null,Jn(n,u,a),e.current.lanes=a,ns(e,a,s),kt(e,s),e}function ra(e,t,n,s){var a=t.current,u=ht(),f=rr(a);return n=Wf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Jn(a,t,f),e!==null&&(qt(e,a,f,u),_i(e,a,f)),f}function oa(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 Qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cu(e,t){Qf(e,t),(e=e.alternate)&&Qf(e,t)}function oy(){return null}var $f=typeof reportError=="function"?reportError:function(e){console.error(e)};function du(e){this._internalRoot=e}sa.prototype.render=du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},sa.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zr(function(){ra(null,e,null,null)}),t[kn]=null}};function sa(e){this._internalRoot=e}sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Mc(e)}};function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hf(){}function sy(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=oa(f);u.call(O)}}var f=Vf(t,s,e,0,null,!1,!1,"",Hf);return e._reactRootContainer=f,e[kn]=f.current,gs(e.nodeType===8?e.parentNode:e),zr(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var g=s;s=function(){var O=oa(k);g.call(O)}}var k=uu(e,0,!1,null,null,!1,!1,"",Hf);return e._reactRootContainer=k,e[kn]=k.current,gs(e.nodeType===8?e.parentNode:e),zr(function(){ra(t,k,n,s)}),k}function aa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var f=u;if(typeof a=="function"){var g=a;a=function(){var k=oa(f);g.call(k)}}ra(t,f,e,a)}else f=sy(n,t,e,a,s);return oa(f)}Ec=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ts(t.pendingLanes);n!==0&&(Aa(t,n|1),kt(t,He()),(Ee&6)===0&&(Po=He()+500,Xn()))}break;case 13:zr(function(){var s=Pn(e,1);if(s!==null){var a=ht();qt(s,e,1,a)}}),cu(e,1)}},Da=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=ht();qt(t,e,134217728,n)}cu(e,134217728)}},Nc=function(e){if(e.tag===13){var t=rr(e),n=Pn(e,t);if(n!==null){var s=ht();qt(n,e,t,s)}cu(e,t)}},Pc=function(){return Te},jc=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}},so=function(e,t,n){switch(t){case"input":if(Yo(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=Ci(s);if(!a)throw Error(i(90));Jr(s),Yo(s,a)}}}break;case"textarea":Ys(e,n);break;case"select":t=n.value,t!=null&&Ot(e,!!n.multiple,t,!1)}},je=ru,_e=zr;var iy={usingClientEntryPoint:!1,Events:[ws,ho,Ci,ti,me,ru]},zs={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ay={bundleType:zs.bundleType,version:zs.version,rendererPackageName:zs.rendererPackageName,rendererConfig:zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yc(e),e===null?null:e.stateNode},findFiberByHostInstance:zs.findFiberByHostInstance||oy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{si=la.inject(ay),cn=la}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iy,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(t))throw Error(i(200));return ry(e,t,null,n)},Ct.createRoot=function(e,t){if(!fu(e))throw Error(i(299));var n=!1,s="",a=$f;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,s,a),e[kn]=t.current,gs(e.nodeType===8?e.parentNode:e),new du(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=yc(t),e=e===null?null:e.stateNode,e},Ct.flushSync=function(e){return zr(e)},Ct.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!fu(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",f=$f;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Vf(t,null,e,1,n??null,a,!1,u,f),e[kn]=t.current,gs(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 sa(t)},Ct.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(zr(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Ct.unstable_batchedUpdates=ru,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var tp;function eh(){if(tp)return gu.exports;tp=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(),gu.exports=my(),gu.exports}var np;function gy(){if(np)return ca;np=1;var r=eh();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var yy=gy(),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(){}},vy={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},dr,qu,Bp,wy=(Bp=class{constructor(){ue(this,dr,vy);ue(this,qu,!1)}setTimeoutProvider(r){Y(this,dr,r)}setTimeout(r,o){return w(this,dr).setTimeout(r,o)}clearTimeout(r){w(this,dr).clearTimeout(r)}setInterval(r,o){return w(this,dr).setInterval(r,o)}clearInterval(r){w(this,dr).clearInterval(r)}},dr=new WeakMap,qu=new WeakMap,Bp),Dr=new wy;function xy(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function Sy(r,o){return typeof r=="function"?r(o):r}function Ru(r){return typeof r=="number"&&r>=0&&r!==1/0}function th(r,o){return Math.max(r+(o||0)-Date.now(),0)}function xr(r,o){return typeof r=="function"?r(o):r}function Ut(r,o){return typeof r=="function"?r(o):r}function rp(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==Xu(m,o.options))return!1}else if(!Ls(o.queryKey,m))return!1}if(i!=="all"){const x=o.isActive();if(i==="active"&&!x||i==="inactive"&&x)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||d&&!d(o))}function op(r,o){const{exact:i,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(i){if(Gr(o.options.mutationKey)!==Gr(d))return!1}else if(!Ls(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function Xu(r,o){return((o==null?void 0:o.queryKeyHashFn)||Gr)(r)}function Gr(r){return JSON.stringify(r,(o,i)=>Mu(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Ls(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(i=>Ls(r[i],o[i])):!1}var by=Object.prototype.hasOwnProperty;function nh(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=sp(r)&&sp(o);if(!l&&!(Mu(r)&&Mu(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,x=l?new Array(p):{};let y=0;for(let b=0;b<p;b++){const N=l?b:m[b],T=r[N],v=o[N];if(T===v){x[N]=T,(l?b<d:by.call(r,N))&&y++;continue}if(T===null||v===null||typeof T!="object"||typeof v!="object"){x[N]=v;continue}const _=nh(T,v,i+1);x[N]=_,_===T&&y++}return d===p&&y===d?r:x}function ka(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 sp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Mu(r){if(!ip(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!ip(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function ip(r){return Object.prototype.toString.call(r)==="[object Object]"}function ky(r){return new Promise(o=>{Dr.setTimeout(o,r)})}function Tu(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?nh(r,o):o}function Cy(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function Ey(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var Zu=Symbol();function rh(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===Zu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Ju(r,o){return typeof r=="function"?r(...o):!!r}function Ny(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 Lr,fr,_o,Wp,Py=(Wp=class extends Ho{constructor(){super();ue(this,Lr);ue(this,fr);ue(this,_o);Y(this,_o,o=>{if(!Kr&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,fr)||this.setEventListener(w(this,_o))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,fr))==null||o.call(this),Y(this,fr,void 0))}setEventListener(o){var i;Y(this,_o,o),(i=w(this,fr))==null||i.call(this),Y(this,fr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Lr)!==o&&(Y(this,Lr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(i=>{i(o)})}isFocused(){var o;return typeof w(this,Lr)=="boolean"?w(this,Lr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Lr=new WeakMap,fr=new WeakMap,_o=new WeakMap,Wp),ec=new Py;function Ou(){let r,o;const i=new Promise((c,d)=>{r=c,o=d});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 jy=xy;function Ry(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=jy;const d=p=>{o?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(x=>{i(x)})})})};return{batch:p=>{let x;o++;try{x=p()}finally{o--,o||m()}return x},batchCalls:p=>(...x)=>{d(()=>{p(...x)})},schedule:d,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=Ry(),Io,pr,Ao,Vp,My=(Vp=class extends Ho{constructor(){super();ue(this,Io,!0);ue(this,pr);ue(this,Ao);Y(this,Ao,o=>{if(!Kr&&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,pr)||this.setEventListener(w(this,Ao))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,pr))==null||o.call(this),Y(this,pr,void 0))}setEventListener(o){var i;Y(this,Ao,o),(i=w(this,pr))==null||i.call(this),Y(this,pr,o(this.setOnline.bind(this)))}setOnline(o){w(this,Io)!==o&&(Y(this,Io,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,Io)}},Io=new WeakMap,pr=new WeakMap,Ao=new WeakMap,Vp),Ca=new My;function Ty(r){return Math.min(1e3*2**r,3e4)}function oh(r){return(r??"online")==="online"?Ca.isOnline():!0}var zu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function sh(r){let o=!1,i=0,l;const c=Ou(),d=()=>c.status!=="pending",m=S=>{var M;if(!d()){const D=new zu(S);T(D),(M=r.onCancel)==null||M.call(r,D)}},p=()=>{o=!0},x=()=>{o=!1},y=()=>ec.isFocused()&&(r.networkMode==="always"||Ca.isOnline())&&r.canRun(),b=()=>oh(r.networkMode)&&r.canRun(),N=S=>{d()||(l==null||l(),c.resolve(S))},T=S=>{d()||(l==null||l(),c.reject(S))},v=()=>new Promise(S=>{var M;l=D=>{(d()||y())&&S(D)},(M=r.onPause)==null||M.call(r)}).then(()=>{var S;l=void 0,d()||(S=r.onContinue)==null||S.call(r)}),_=()=>{if(d())return;let S;const M=i===0?r.initialPromise:void 0;try{S=M??r.fn()}catch(D){S=Promise.reject(D)}Promise.resolve(S).then(N).catch(D=>{var oe;if(d())return;const Q=r.retry??(Kr?0:3),W=r.retryDelay??Ty,I=typeof W=="function"?W(i,D):W,Z=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,D);if(o||!Z){T(D);return}i++,(oe=r.onFail)==null||oe.call(r,i,D),ky(I).then(()=>y()?void 0:v()).then(()=>{o?T(D):_()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:x,canStart:b,start:()=>(b()?_():v().then(_),c)}}var Fr,Qp,ih=(Qp=class{constructor(){ue(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ru(this.gcTime)&&Y(this,Fr,Dr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){w(this,Fr)&&(Dr.clearTimeout(w(this,Fr)),Y(this,Fr,void 0))}},Fr=new WeakMap,Qp),Ur,Do,Ft,Br,nt,Bs,Wr,Zt,On,$p,Oy=($p=class extends ih{constructor(o){super();ue(this,Zt);ue(this,Ur);ue(this,Do);ue(this,Ft);ue(this,Br);ue(this,nt);ue(this,Bs);ue(this,Wr);Y(this,Wr,!1),Y(this,Bs,o.defaultOptions),this.setOptions(o.options),this.observers=[],Y(this,Br,o.client),Y(this,Ft,w(this,Br).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,Y(this,Ur,lp(this.options)),this.state=o.state??w(this,Ur),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,Bs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=lp(this.options);i.data!==void 0&&(this.setState(ap(i.data,i.dataUpdatedAt)),Y(this,Ur,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Ft).remove(this)}setData(o,i){const l=Tu(this.state.data,o,this.options);return ve(this,Zt,On).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ve(this,Zt,On).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,Ur))}isActive(){return this.observers.some(o=>Ut(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>xr(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:!th(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,Ft).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,Wr)?w(this,nt).cancel({revert:!0}):w(this,nt).cancelRetry()),this.scheduleGc()),w(this,Ft).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Zt,On).call(this,{type:"invalidate"})}async fetch(o,i){var x,y,b,N,T,v,_,S,M,D,Q,W;if(this.state.fetchStatus!=="idle"&&((x=w(this,nt))==null?void 0:x.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 I=this.observers.find(Z=>Z.options.queryFn);I&&this.setOptions(I.options)}const l=new AbortController,c=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(Y(this,Wr,!0),l.signal)})},d=()=>{const I=rh(this.options,i),oe=(()=>{const q={client:w(this,Br),queryKey:this.queryKey,meta:this.meta};return c(q),q})();return Y(this,Wr,!1),this.options.persister?this.options.persister(I,oe,this):I(oe)},p=(()=>{const I={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,Br),state:this.state,fetchFn:d};return c(I),I})();(y=this.options.behavior)==null||y.onFetch(p,this),Y(this,Do,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=p.fetchOptions)==null?void 0:b.meta))&&ve(this,Zt,On).call(this,{type:"fetch",meta:(N=p.fetchOptions)==null?void 0:N.meta}),Y(this,nt,sh({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:I=>{I instanceof zu&&I.revert&&this.setState({...w(this,Do),fetchStatus:"idle"}),l.abort()},onFail:(I,Z)=>{ve(this,Zt,On).call(this,{type:"failed",failureCount:I,error:Z})},onPause:()=>{ve(this,Zt,On).call(this,{type:"pause"})},onContinue:()=>{ve(this,Zt,On).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const I=await w(this,nt).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(v=(T=w(this,Ft).config).onSuccess)==null||v.call(T,I,this),(S=(_=w(this,Ft).config).onSettled)==null||S.call(_,I,this.state.error,this),I}catch(I){if(I instanceof zu){if(I.silent)return w(this,nt).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw ve(this,Zt,On).call(this,{type:"error",error:I}),(D=(M=w(this,Ft).config).onError)==null||D.call(M,I,this),(W=(Q=w(this,Ft).config).onSettled)==null||W.call(Q,this.state.data,I,this),I}finally{this.scheduleGc()}}},Ur=new WeakMap,Do=new WeakMap,Ft=new WeakMap,Br=new WeakMap,nt=new WeakMap,Bs=new WeakMap,Wr=new WeakMap,Zt=new WeakSet,On=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,...ah(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...ap(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Y(this,Do,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Ft).notify({query:this,type:"updated",action:o})})},$p);function ah(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function ap(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lp(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,be,Ws,mt,Vr,Lo,zn,hr,Vs,Fo,Uo,Qr,$r,mr,Bo,Me,Ds,_u,Iu,Au,Du,Lu,Fu,Uu,lh,Hp,zy=(Hp=class extends Ho{constructor(o,i){super();ue(this,Me);ue(this,Et);ue(this,be);ue(this,Ws);ue(this,mt);ue(this,Vr);ue(this,Lo);ue(this,zn);ue(this,hr);ue(this,Vs);ue(this,Fo);ue(this,Uo);ue(this,Qr);ue(this,$r);ue(this,mr);ue(this,Bo,new Set);this.options=i,Y(this,Et,o),Y(this,hr,null),Y(this,zn,Ou()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,be).addObserver(this),up(w(this,be),this.options)?ve(this,Me,Ds).call(this):this.updateResult(),ve(this,Me,Du).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bu(w(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bu(w(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Me,Lu).call(this),ve(this,Me,Fu).call(this),w(this,be).removeObserver(this)}setOptions(o){const i=this.options,l=w(this,be);if(this.options=w(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ut(this.options.enabled,w(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Me,Uu).call(this),w(this,be).setOptions(this.options),i._defaulted&&!ka(this.options,i)&&w(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,be),observer:this});const c=this.hasListeners();c&&cp(w(this,be),l,this.options,i)&&ve(this,Me,Ds).call(this),this.updateResult(),c&&(w(this,be)!==l||Ut(this.options.enabled,w(this,be))!==Ut(i.enabled,w(this,be))||xr(this.options.staleTime,w(this,be))!==xr(i.staleTime,w(this,be)))&&ve(this,Me,_u).call(this);const d=ve(this,Me,Iu).call(this);c&&(w(this,be)!==l||Ut(this.options.enabled,w(this,be))!==Ut(i.enabled,w(this,be))||d!==w(this,mr))&&ve(this,Me,Au).call(this,d)}getOptimisticResult(o){const i=w(this,Et).getQueryCache().build(w(this,Et),o),l=this.createResult(i,o);return Iy(this,l)&&(Y(this,mt,l),Y(this,Lo,this.options),Y(this,Vr,w(this,be).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,zn).status==="pending"&&w(this,zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Bo).add(o)}getCurrentQuery(){return w(this,be)}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 ve(this,Me,Ds).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,mt)))}createResult(o,i){var U;const l=w(this,be),c=this.options,d=w(this,mt),m=w(this,Vr),p=w(this,Lo),y=o!==l?o.state:w(this,Ws),{state:b}=o;let N={...b},T=!1,v;if(i._optimisticResults){const se=this.hasListeners(),ge=!se&&up(o,i),le=se&&cp(o,l,i,c);(ge||le)&&(N={...N,...ah(b.data,o.options)}),i._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:_,errorUpdatedAt:S,status:M}=N;v=N.data;let D=!1;if(i.placeholderData!==void 0&&v===void 0&&M==="pending"){let se;d!=null&&d.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(se=d.data,D=!0):se=typeof i.placeholderData=="function"?i.placeholderData((U=w(this,Uo))==null?void 0:U.state.data,w(this,Uo)):i.placeholderData,se!==void 0&&(M="success",v=Tu(d==null?void 0:d.data,se,i),T=!0)}if(i.select&&v!==void 0&&!D)if(d&&v===(m==null?void 0:m.data)&&i.select===w(this,Vs))v=w(this,Fo);else try{Y(this,Vs,i.select),v=i.select(v),v=Tu(d==null?void 0:d.data,v,i),Y(this,Fo,v),Y(this,hr,null)}catch(se){Y(this,hr,se)}w(this,hr)&&(_=w(this,hr),v=w(this,Fo),S=Date.now(),M="error");const Q=N.fetchStatus==="fetching",W=M==="pending",I=M==="error",Z=W&&Q,oe=v!==void 0,te={status:M,fetchStatus:N.fetchStatus,isPending:W,isSuccess:M==="success",isError:I,isInitialLoading:Z,isLoading:Z,data:v,dataUpdatedAt:N.dataUpdatedAt,error:_,errorUpdatedAt:S,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>y.dataUpdateCount||N.errorUpdateCount>y.errorUpdateCount,isFetching:Q,isRefetching:Q&&!W,isLoadingError:I&&!oe,isPaused:N.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:I&&oe,isStale:tc(o,i),refetch:this.refetch,promise:w(this,zn),isEnabled:Ut(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const se=te.data!==void 0,ge=te.status==="error"&&!se,le=Be=>{ge?Be.reject(te.error):se&&Be.resolve(te.data)},ke=()=>{const Be=Y(this,zn,te.promise=Ou());le(Be)},Oe=w(this,zn);switch(Oe.status){case"pending":o.queryHash===l.queryHash&&le(Oe);break;case"fulfilled":(ge||te.data!==Oe.value)&&ke();break;case"rejected":(!ge||te.error!==Oe.reason)&&ke();break}}return te}updateResult(){const o=w(this,mt),i=this.createResult(w(this,be),this.options);if(Y(this,Vr,w(this,be).state),Y(this,Lo,this.options),w(this,Vr).data!==void 0&&Y(this,Uo,w(this,be)),ka(i,o))return;Y(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!w(this,Bo).size)return!0;const m=new Set(d??w(this,Bo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,mt)).some(p=>{const x=p;return w(this,mt)[x]!==o[x]&&m.has(x)})};ve(this,Me,lh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Me,Du).call(this)}},Et=new WeakMap,be=new WeakMap,Ws=new WeakMap,mt=new WeakMap,Vr=new WeakMap,Lo=new WeakMap,zn=new WeakMap,hr=new WeakMap,Vs=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,Qr=new WeakMap,$r=new WeakMap,mr=new WeakMap,Bo=new WeakMap,Me=new WeakSet,Ds=function(o){ve(this,Me,Uu).call(this);let i=w(this,be).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},_u=function(){ve(this,Me,Lu).call(this);const o=xr(this.options.staleTime,w(this,be));if(Kr||w(this,mt).isStale||!Ru(o))return;const l=th(w(this,mt).dataUpdatedAt,o)+1;Y(this,Qr,Dr.setTimeout(()=>{w(this,mt).isStale||this.updateResult()},l))},Iu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,be)):this.options.refetchInterval)??!1},Au=function(o){ve(this,Me,Fu).call(this),Y(this,mr,o),!(Kr||Ut(this.options.enabled,w(this,be))===!1||!Ru(w(this,mr))||w(this,mr)===0)&&Y(this,$r,Dr.setInterval(()=>{(this.options.refetchIntervalInBackground||ec.isFocused())&&ve(this,Me,Ds).call(this)},w(this,mr)))},Du=function(){ve(this,Me,_u).call(this),ve(this,Me,Au).call(this,ve(this,Me,Iu).call(this))},Lu=function(){w(this,Qr)&&(Dr.clearTimeout(w(this,Qr)),Y(this,Qr,void 0))},Fu=function(){w(this,$r)&&(Dr.clearInterval(w(this,$r)),Y(this,$r,void 0))},Uu=function(){const o=w(this,Et).getQueryCache().build(w(this,Et),this.options);if(o===w(this,be))return;const i=w(this,be);Y(this,be,o),Y(this,Ws,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},lh=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(w(this,mt))}),w(this,Et).getQueryCache().notify({query:w(this,be),type:"observerResultsUpdated"})})},Hp);function _y(r,o){return Ut(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function up(r,o){return _y(r,o)||r.state.data!==void 0&&Bu(r,o,o.refetchOnMount)}function Bu(r,o,i){if(Ut(o.enabled,r)!==!1&&xr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&tc(r,o)}return!1}function cp(r,o,i,l){return(r!==o||Ut(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&tc(r,i)}function tc(r,o){return Ut(o.enabled,r)!==!1&&r.isStaleByTime(xr(o.staleTime,r))}function Iy(r,o){return!ka(r.getCurrentResult(),o)}function dp(r){return{onFetch:(o,i)=>{var b,N,T,v,_;const l=o.options,c=(T=(N=(b=o.fetchOptions)==null?void 0:b.meta)==null?void 0:N.fetchMore)==null?void 0:T.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((_=o.state.data)==null?void 0:_.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const y=async()=>{let S=!1;const M=W=>{Ny(W,()=>o.signal,()=>S=!0)},D=rh(o.options,o.fetchOptions),Q=async(W,I,Z)=>{if(S)return Promise.reject();if(I==null&&W.pages.length)return Promise.resolve(W);const q=(()=>{const ge={client:o.client,queryKey:o.queryKey,pageParam:I,direction:Z?"backward":"forward",meta:o.options.meta};return M(ge),ge})(),te=await D(q),{maxPages:U}=o.options,se=Z?Ey:Cy;return{pages:se(W.pages,te,U),pageParams:se(W.pageParams,I,U)}};if(c&&d.length){const W=c==="backward",I=W?Ay:fp,Z={pages:d,pageParams:m},oe=I(l,Z);p=await Q(Z,oe,W)}else{const W=r??d.length;do{const I=x===0?m[0]??l.initialPageParam:fp(l,p);if(x>0&&I==null)break;p=await Q(p,I),x++}while(x<W)}return p};o.options.persister?o.fetchFn=()=>{var S,M;return(M=(S=o.options).persister)==null?void 0:M.call(S,y,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=y}}}function fp(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 Ay(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 Qs,mn,ct,Hr,gn,ur,Kp,Dy=(Kp=class extends ih{constructor(o){super();ue(this,gn);ue(this,Qs);ue(this,mn);ue(this,ct);ue(this,Hr);Y(this,Qs,o.client),this.mutationId=o.mutationId,Y(this,ct,o.mutationCache),Y(this,mn,[]),this.state=o.state||uh(),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){Y(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,Hr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,x,y,b,N,T,v,_,S,M,D,Q,W,I,Z,oe,q;const i=()=>{ve(this,gn,ur).call(this,{type:"continue"})},l={client:w(this,Qs),meta:this.options.meta,mutationKey:this.options.mutationKey};Y(this,Hr,sh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(te,U)=>{ve(this,gn,ur).call(this,{type:"failed",failureCount:te,error:U})},onPause:()=>{ve(this,gn,ur).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",d=!w(this,Hr).canStart();try{if(c)i();else{ve(this,gn,ur).call(this,{type:"pending",variables:o,isPaused:d}),w(this,ct).config.onMutate&&await w(this,ct).config.onMutate(o,this,l);const U=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));U!==this.state.context&&ve(this,gn,ur).call(this,{type:"pending",context:U,variables:o,isPaused:d})}const te=await w(this,Hr).start();return await((y=(x=w(this,ct).config).onSuccess)==null?void 0:y.call(x,te,o,this.state.context,this,l)),await((N=(b=this.options).onSuccess)==null?void 0:N.call(b,te,o,this.state.context,l)),await((v=(T=w(this,ct).config).onSettled)==null?void 0:v.call(T,te,null,this.state.variables,this.state.context,this,l)),await((S=(_=this.options).onSettled)==null?void 0:S.call(_,te,null,o,this.state.context,l)),ve(this,gn,ur).call(this,{type:"success",data:te}),te}catch(te){try{await((D=(M=w(this,ct).config).onError)==null?void 0:D.call(M,te,o,this.state.context,this,l))}catch(U){Promise.reject(U)}try{await((W=(Q=this.options).onError)==null?void 0:W.call(Q,te,o,this.state.context,l))}catch(U){Promise.reject(U)}try{await((Z=(I=w(this,ct).config).onSettled)==null?void 0:Z.call(I,void 0,te,this.state.variables,this.state.context,this,l))}catch(U){Promise.reject(U)}try{await((q=(oe=this.options).onSettled)==null?void 0:q.call(oe,void 0,te,o,this.state.context,l))}catch(U){Promise.reject(U)}throw ve(this,gn,ur).call(this,{type:"error",error:te}),te}finally{w(this,ct).runNext(this)}}},Qs=new WeakMap,mn=new WeakMap,ct=new WeakMap,Hr=new WeakMap,gn=new WeakSet,ur=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})})},Kp);function uh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,Jt,$s,Gp,Ly=(Gp=class extends Ho{constructor(o={}){super();ue(this,_n);ue(this,Jt);ue(this,$s);this.config=o,Y(this,_n,new Set),Y(this,Jt,new Map),Y(this,$s,0)}build(o,i,l){const c=new Dy({client:o,mutationCache:this,mutationId:++ua(this,$s)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){w(this,_n).add(o);const i=da(o);if(typeof i=="string"){const l=w(this,Jt).get(i);l?l.push(o):w(this,Jt).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,_n).delete(o)){const i=da(o);if(typeof i=="string"){const l=w(this,Jt).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,Jt).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=da(o);if(typeof i=="string"){const l=w(this,Jt).get(i),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=da(o);if(typeof i=="string"){const c=(l=w(this,Jt).get(i))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{w(this,_n).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,_n).clear(),w(this,Jt).clear()})}getAll(){return Array.from(w(this,_n))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>op(i,l))}findAll(o={}){return this.getAll().filter(i=>op(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))))}},_n=new WeakMap,Jt=new WeakMap,$s=new WeakMap,Gp);function da(r){var o;return(o=r.options.scope)==null?void 0:o.id}var In,gr,Nt,An,Ln,va,Wu,qp,Fy=(qp=class extends Ho{constructor(i,l){super();ue(this,Ln);ue(this,In);ue(this,gr);ue(this,Nt);ue(this,An);Y(this,In,i),this.setOptions(l),this.bindMethods(),ve(this,Ln,va).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,In).defaultMutationOptions(i),ka(this.options,l)||w(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Gr(l.mutationKey)!==Gr(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){ve(this,Ln,va).call(this),ve(this,Ln,Wu).call(this,i)}getCurrentResult(){return w(this,gr)}reset(){var i;(i=w(this,Nt))==null||i.removeObserver(this),Y(this,Nt,void 0),ve(this,Ln,va).call(this),ve(this,Ln,Wu).call(this)}mutate(i,l){var c;return Y(this,An,l),(c=w(this,Nt))==null||c.removeObserver(this),Y(this,Nt,w(this,In).getMutationCache().build(w(this,In),this.options)),w(this,Nt).addObserver(this),w(this,Nt).execute(i)}},In=new WeakMap,gr=new WeakMap,Nt=new WeakMap,An=new WeakMap,Ln=new WeakSet,va=function(){var l;const i=((l=w(this,Nt))==null?void 0:l.state)??uh();Y(this,gr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Wu=function(i){Xe.batch(()=>{var l,c,d,m,p,x,y,b;if(w(this,An)&&this.hasListeners()){const N=w(this,gr).variables,T=w(this,gr).context,v={client:w(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=w(this,An)).onSuccess)==null||c.call(l,i.data,N,T,v)}catch(_){Promise.reject(_)}try{(m=(d=w(this,An)).onSettled)==null||m.call(d,i.data,null,N,T,v)}catch(_){Promise.reject(_)}}else if((i==null?void 0:i.type)==="error"){try{(x=(p=w(this,An)).onError)==null||x.call(p,i.error,N,T,v)}catch(_){Promise.reject(_)}try{(b=(y=w(this,An)).onSettled)==null||b.call(y,void 0,i.error,N,T,v)}catch(_){Promise.reject(_)}}}this.listeners.forEach(N=>{N(w(this,gr))})})},qp),yn,Yp,Uy=(Yp=class extends Ho{constructor(o={}){super();ue(this,yn);this.config=o,Y(this,yn,new Map)}build(o,i,l){const c=i.queryKey,d=i.queryHash??Xu(c,i);let m=this.get(d);return m||(m=new Oy({client:o,queryKey:c,queryHash:d,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=>rp(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>rp(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,Yp),$e,yr,vr,Wo,Vo,wr,Qo,$o,Xp,By=(Xp=class{constructor(r={}){ue(this,$e);ue(this,yr);ue(this,vr);ue(this,Wo);ue(this,Vo);ue(this,wr);ue(this,Qo);ue(this,$o);Y(this,$e,r.queryCache||new Uy),Y(this,yr,r.mutationCache||new Ly),Y(this,vr,r.defaultOptions||{}),Y(this,Wo,new Map),Y(this,Vo,new Map),Y(this,wr,0)}mount(){ua(this,wr)._++,w(this,wr)===1&&(Y(this,Qo,ec.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onFocus())})),Y(this,$o,Ca.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onOnline())})))}unmount(){var r,o;ua(this,wr)._--,w(this,wr)===0&&((r=w(this,Qo))==null||r.call(this),Y(this,Qo,void 0),(o=w(this,$o))==null||o.call(this),Y(this,$o,void 0))}isFetching(r){return w(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,yr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=w(this,$e).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(xr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,$e).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,$e).get(l.queryHash),d=c==null?void 0:c.state.data,m=Sy(o,d);if(m!==void 0)return w(this,$e).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>w(this,$e).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,$e).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=w(this,$e);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=w(this,$e);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,$e).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(w(this,$e).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,$e).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,i);return i.throwOnError||(d=d.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(gt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=w(this,$e).build(this,o);return i.isStaleByTime(xr(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=dp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=dp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ca.isOnline()?w(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,$e)}getMutationCache(){return w(this,yr)}getDefaultOptions(){return w(this,vr)}setDefaultOptions(r){Y(this,vr,r)}setQueryDefaults(r,o){w(this,Wo).set(Gr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Wo).values()],i={};return o.forEach(l=>{Ls(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){w(this,Vo).set(Gr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,Vo).values()],i={};return o.forEach(l=>{Ls(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const o={...w(this,vr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=Xu(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===Zu&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,vr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,$e).clear(),w(this,yr).clear()}},$e=new WeakMap,yr=new WeakMap,vr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,wr=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Xp),ch=C.createContext(void 0),Hs=r=>{const o=C.useContext(ch);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Wy=({client:r,children:o})=>(C.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(ch.Provider,{value:r,children:o})),dh=C.createContext(!1),Vy=()=>C.useContext(dh);dh.Provider;function Qy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var $y=C.createContext(Qy()),Hy=()=>C.useContext($y),Ky=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Ju(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},Gy=r=>{C.useEffect(()=>{r.clearReset()},[r])},qy=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Ju(i,[r.error,l])),Yy=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))}},Xy=(r,o)=>r.isLoading&&r.isFetching&&!o,Zy=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,pp=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Jy(r,o,i){var T,v,_,S;const l=Vy(),c=Hy(),d=Hs(),m=d.defaultQueryOptions(r);(v=(T=d.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||v.call(T,m);const p=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Yy(m),Ky(m,c,p),Gy(c);const x=!d.getQueryCache().get(m.queryHash),[y]=C.useState(()=>new o(d,m)),b=y.getOptimisticResult(m),N=!l&&r.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(M=>{const D=N?y.subscribe(Xe.batchCalls(M)):gt;return y.updateResult(),D},[y,N]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),C.useEffect(()=>{y.setOptions(m)},[m,y]),Zy(m,b))throw pp(m,y,c);if(qy({result:b,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw b.error;if((S=(_=d.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||S.call(_,m,b),m.experimental_prefetchInRender&&!Kr&&Xy(b,l)){const M=x?pp(m,y,c):p==null?void 0:p.promise;M==null||M.catch(gt).finally(()=>{y.updateResult()})}return m.notifyOnChangeProps?b:y.trackResult(b)}function nc(r,o){return Jy(r,zy)}function ja(r,o){const i=Hs(),[l]=C.useState(()=>new Fy(i,r));C.useEffect(()=>{l.setOptions(r)},[l,r]);const c=C.useSyncExternalStore(C.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=C.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Ju(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const hp=r=>{let o;const i=new Set,l=(y,b)=>{const N=typeof y=="function"?y(o):y;if(!Object.is(N,o)){const T=o;o=b??(typeof N!="object"||N===null)?N:Object.assign({},o,N),i.forEach(v=>v(o,T))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>x,subscribe:y=>(i.add(y),()=>i.delete(y))},x=o=r(l,c,p);return p},ev=(r=>r?hp(r):hp),tv=r=>r;function nv(r,o=tv){const i=G.useSyncExternalStore(r.subscribe,G.useCallback(()=>o(r.getState()),[r,o]),G.useCallback(()=>o(r.getInitialState()),[r,o]));return G.useDebugValue(i),i}const mp=r=>{const o=ev(r),i=l=>nv(o,l);return Object.assign(i,o),i},rv=(r=>r?mp(r):mp),Yr=rv(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 fh(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=fh(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function ph(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=fh(r))&&(l&&(l+=" "),l+=o);return l}const rc="-",ov=r=>{const o=iv(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(rc);return p[0]===""&&p.length!==1&&p.shift(),hh(p,o)||sv(m)},getConflictingClassGroupIds:(m,p)=>{const x=i[m]||[];return p&&l[m]?[...x,...l[m]]:x}}},hh=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?hh(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(rc);return(m=o.validators.find(({validator:p})=>p(d)))==null?void 0:m.classGroupId},gp=/^\[(.+)\]$/,sv=r=>{if(gp.test(r)){const o=gp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},iv=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return lv(Object.entries(r.classGroups),i).forEach(([d,m])=>{Vu(m,l,d,o)}),l},Vu=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:yp(o,c);d.classGroupId=i;return}if(typeof c=="function"){if(av(c)){Vu(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([d,m])=>{Vu(m,yp(o,d),i,l)})})},yp=(r,o)=>{let i=r;return o.split(rc).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},av=r=>r.isThemeGetter,lv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,p])=>[o+m,p])):d);return[i,c]}):r,uv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(d,m)=>{i.set(d,m),o++,o>r&&(o=0,l=i,i=new Map)};return{get(d){let m=i.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){i.has(d)?i.set(d,m):c(d,m)}}},mh="!",cv=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],d=o.length,m=p=>{const x=[];let y=0,b=0,N;for(let M=0;M<p.length;M++){let D=p[M];if(y===0){if(D===c&&(l||p.slice(M,M+d)===o)){x.push(p.slice(b,M)),b=M+d;continue}if(D==="/"){N=M;continue}}D==="["?y++:D==="]"&&y--}const T=x.length===0?p:p.substring(b),v=T.startsWith(mh),_=v?T.substring(1):T,S=N&&N>b?N-b:void 0;return{modifiers:x,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:S}};return i?p=>i({className:p,parseClassName:m}):m},dv=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},fv=r=>({cache:uv(r.cacheSize),parseClassName:cv(r),...ov(r)}),pv=/\s+/,hv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(pv);let p="";for(let x=m.length-1;x>=0;x-=1){const y=m[x],{modifiers:b,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:v}=i(y);let _=!!v,S=l(_?T.substring(0,v):T);if(!S){if(!_){p=y+(p.length>0?" "+p:p);continue}if(S=l(T),!S){p=y+(p.length>0?" "+p:p);continue}_=!1}const M=dv(b).join(":"),D=N?M+mh:M,Q=D+S;if(d.includes(Q))continue;d.push(Q);const W=c(S,_);for(let I=0;I<W.length;++I){const Z=W[I];d.push(D+Z)}p=y+(p.length>0?" "+p:p)}return p};function mv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=gh(o))&&(l&&(l+=" "),l+=i);return l}const gh=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=gh(r[l]))&&(i&&(i+=" "),i+=o);return i};function gv(r,...o){let i,l,c,d=m;function m(x){const y=o.reduce((b,N)=>N(b),r());return i=fv(y),l=i.cache.get,c=i.cache.set,d=p,p(x)}function p(x){const y=l(x);if(y)return y;const b=hv(x,i);return c(x,b),b}return function(){return d(mv.apply(null,arguments))}}const Le=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,yv=/^\d+\/\d+$/,vv=new Set(["px","full","screen"]),wv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xv=/\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$/,Sv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Oo(r)||vv.has(r)||yv.test(r),ar=r=>Ko(r,"length",Tv),Oo=r=>!!r&&!Number.isNaN(Number(r)),wu=r=>Ko(r,"number",Oo),Is=r=>!!r&&Number.isInteger(Number(r)),Cv=r=>r.endsWith("%")&&Oo(r.slice(0,-1)),ye=r=>yh.test(r),lr=r=>wv.test(r),Ev=new Set(["length","size","percentage"]),Nv=r=>Ko(r,Ev,vh),Pv=r=>Ko(r,"position",vh),jv=new Set(["image","url"]),Rv=r=>Ko(r,jv,zv),Mv=r=>Ko(r,"",Ov),As=()=>!0,Ko=(r,o,i)=>{const l=yh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},Tv=r=>xv.test(r)&&!Sv.test(r),vh=()=>!1,Ov=r=>bv.test(r),zv=r=>kv.test(r),_v=()=>{const r=Le("colors"),o=Le("spacing"),i=Le("blur"),l=Le("brightness"),c=Le("borderColor"),d=Le("borderRadius"),m=Le("borderSpacing"),p=Le("borderWidth"),x=Le("contrast"),y=Le("grayscale"),b=Le("hueRotate"),N=Le("invert"),T=Le("gap"),v=Le("gradientColorStops"),_=Le("gradientColorStopPositions"),S=Le("inset"),M=Le("margin"),D=Le("opacity"),Q=Le("padding"),W=Le("saturate"),I=Le("scale"),Z=Le("sepia"),oe=Le("skew"),q=Le("space"),te=Le("translate"),U=()=>["auto","contain","none"],se=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",ye,o],le=()=>[ye,o],ke=()=>["",Tn,ar],Oe=()=>["auto",Oo,ye],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",ye],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[Oo,ye];return{cacheSize:500,separator:":",theme:{colors:[As],spacing:[Tn,ar],blur:["none","",lr,ye],brightness:P(),borderColor:[r],borderRadius:["none","","full",lr,ye],borderSpacing:le(),borderWidth:ke(),contrast:P(),grayscale:B(),hueRotate:P(),invert:B(),gap:le(),gradientColorStops:[r],gradientColorStopPositions:[Cv,ar],inset:ge(),margin:ge(),opacity:P(),padding:le(),saturate:P(),scale:P(),sepia:B(),skew:P(),space:le(),translate:le()},classGroups:{aspect:[{aspect:["auto","square","video",ye]}],container:["container"],columns:[{columns:[lr]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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(),ye]}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Is,ye]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ye]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Is,ye]}],"grid-cols":[{"grid-cols":[As]}],"col-start-end":[{col:["auto",{span:["full",Is,ye]},ye]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[As]}],"row-start-end":[{row:["auto",{span:[Is,ye]},ye]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ye]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ye]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ye,o]}],"min-w":[{"min-w":[ye,o,"min","max","fit"]}],"max-w":[{"max-w":[ye,o,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[ye,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ye,o,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ar]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wu]}],"font-family":[{font:[As]}],"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",ye]}],"line-clamp":[{"line-clamp":["none",Oo,wu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ye]}],"list-image":[{"list-image":["none",ye]}],"list-style-type":[{list:["none","disc","decimal",ye]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ar]}],"underline-offset":[{"underline-offset":["auto",Tn,ye]}],"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:le()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye]}],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",ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Pv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Rv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[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":[D]}],"border-style":[{border:[...ze(),"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":[D]}],"divide-style":[{divide:ze()}],"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:["",...ze()]}],"outline-offset":[{"outline-offset":[Tn,ye]}],"outline-w":[{outline:[Tn,ar]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[Tn,ar]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",lr,Mv]}],"shadow-color":[{shadow:[As]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",lr,ye]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[N]}],saturate:[{saturate:[W]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ye]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",ye]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",ye]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Is,ye]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"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",ye]}],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",ye]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":le()}],"scroll-mx":[{"scroll-mx":le()}],"scroll-my":[{"scroll-my":le()}],"scroll-ms":[{"scroll-ms":le()}],"scroll-me":[{"scroll-me":le()}],"scroll-mt":[{"scroll-mt":le()}],"scroll-mr":[{"scroll-mr":le()}],"scroll-mb":[{"scroll-mb":le()}],"scroll-ml":[{"scroll-ml":le()}],"scroll-p":[{"scroll-p":le()}],"scroll-px":[{"scroll-px":le()}],"scroll-py":[{"scroll-py":le()}],"scroll-ps":[{"scroll-ps":le()}],"scroll-pe":[{"scroll-pe":le()}],"scroll-pt":[{"scroll-pt":le()}],"scroll-pr":[{"scroll-pr":le()}],"scroll-pb":[{"scroll-pb":le()}],"scroll-pl":[{"scroll-pl":le()}],"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",ye]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ar,wu]}],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"]}}},Iv=gv(_v);function Pe(...r){return Iv(ph(r))}/**
41
41
  * @license lucide-react v0.462.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
@@ -47,17 +47,17 @@ Error generating stack: `+u.message+`
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */var Lv={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"};/**
50
+ */var Dv={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
51
  * @license lucide-react v0.462.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const Dv=C.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...p},x)=>C.createElement("svg",{ref:x,...Lv,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:wh("lucide",c),...p},[...m.map(([y,k])=>C.createElement(y,k)),...Array.isArray(d)?d:[d]]));/**
55
+ */const Lv=C.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...p},x)=>C.createElement("svg",{ref:x,...Dv,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:wh("lucide",c),...p},[...m.map(([y,b])=>C.createElement(y,b)),...Array.isArray(d)?d:[d]]));/**
56
56
  * @license lucide-react v0.462.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const Fe=(r,o)=>{const i=C.forwardRef(({className:l,...c},d)=>C.createElement(Dv,{ref:d,iconNode:o,className:wh(`lucide-${Av(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
60
+ */const Fe=(r,o)=>{const i=C.forwardRef(({className:l,...c},d)=>C.createElement(Lv,{ref:d,iconNode:o,className:wh(`lucide-${Av(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
61
61
  * @license lucide-react v0.462.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
@@ -147,7 +147,7 @@ Error generating stack: `+u.message+`
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const kh=Fe("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"}]]);/**
150
+ */const bh=Fe("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"}]]);/**
151
151
  * @license lucide-react v0.462.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
@@ -162,7 +162,7 @@ Error generating stack: `+u.message+`
162
162
  *
163
163
  * This source code is licensed under the ISC license.
164
164
  * See the LICENSE file in the root directory of this source tree.
165
- */const bh=Fe("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"}]]);/**
165
+ */const kh=Fe("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"}]]);/**
166
166
  * @license lucide-react v0.462.0 - ISC
167
167
  *
168
168
  * This source code is licensed under the ISC license.
@@ -182,13 +182,13 @@ Error generating stack: `+u.message+`
182
182
  *
183
183
  * This source code is licensed under the ISC license.
184
184
  * See the LICENSE file in the root directory of this source tree.
185
- */const Jv=Fe("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"}]]),e0=[{id:"model",label:"Models",icon:Bv},{id:"providers",label:"Providers",icon:bh},{id:"channels",label:"Channels",icon:sc}];function t0(){const{activeTab:r,setActiveTab:o}=Yr();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.5 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",className:"h-full w-full object-contain"})}),h.jsx("span",{className:"text-[15px] font-bold bg-gradient-to-r from-primary to-indigo-500 bg-clip-text text-transparent tracking-[-0.02em]",children:"NextClaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:e0.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Pe("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:Pe("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 n0({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(t0,{}),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 vp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,wp=ph,r0=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return wp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(y=>{const k=i==null?void 0:i[y],N=d==null?void 0:d[y];if(k===null)return null;const T=vp(k)||vp(N);return c[y][T]}),p=i&&Object.entries(i).reduce((y,k)=>{let[N,T]=k;return T===void 0||(y[N]=T),y},{}),x=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((y,k)=>{let{class:N,className:T,...v}=k;return Object.entries(v).every(z=>{let[S,M]=z;return Array.isArray(M)?M.includes({...d,...p}[S]):{...d,...p}[S]===M})?[...y,N,T]:y},[]);return wp(r,m,x,i==null?void 0:i.class,i==null?void 0:i.className)},o0=r0("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"}}),wn=C.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Pe(o0({variant:o,size:i,className:r})),ref:c,...l}));wn.displayName="Button";const $u=C.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Pe("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}));$u.displayName="Card";const s0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("flex flex-col space-y-2 p-6",r),...o}));s0.displayName="CardHeader";const i0=C.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Pe("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));i0.displayName="CardTitle";const a0=C.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Pe("text-sm text-gray-500 leading-relaxed",r),...o}));a0.displayName="CardDescription";const l0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("p-6 pt-0",r),...o}));l0.displayName="CardContent";const u0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("flex items-center justify-between p-6 pt-0",r),...o}));u0.displayName="CardFooter";const xn=C.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Pe("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 Ln=C.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Pe("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));Ln.displayName="Label";function Yt({className:r,...o}){return h.jsx("div",{className:Pe("animate-pulse rounded-md bg-slate-200",r),...o})}const c0="http://127.0.0.1:18791",xa=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:c0})();async function xu(r,o={}){const i=`${xa}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,d}const Xr={get:r=>xu(r,{method:"GET"}),put:(r,o)=>xu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>xu(r,{method:"POST",body:JSON.stringify(o)})};async function d0(){const r=await Xr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function f0(){const r=await Xr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function p0(){const r=await Xr.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function h0(r){const o=await Xr.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function m0(r,o){const i=await Xr.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function g0(r,o){const i=await Xr.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function y0(r,o){const i=await Xr.post(`/api/config/actions/${r}/execute`,o);if(!i.ok)throw new Error(i.error.message);return i.data}var Eh=eh();const Nh=Zp(Eh);var v0=r=>{switch(r){case"success":return S0;case"info":return b0;case"warning":return k0;case"error":return C0;default:return null}},w0=Array(12).fill(0),x0=({visible:r,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},K.createElement("div",{className:"sonner-spinner"},w0.map((i,l)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),S0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),k0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.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"})),b0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),C0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),E0=K.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"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),N0=()=>{let[r,o]=K.useState(document.hidden);return K.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Hu=1,P0=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:Hu++,d=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(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,d,m=l.then(async x=>{if(d=["resolve",x],K.isValidElement(x))c=!1,this.create({id:i,type:"default",message:x});else if(R0(x)&&!x.ok){c=!1;let y=typeof o.error=="function"?await o.error(`HTTP error! status: ${x.status}`):o.error,k=typeof o.description=="function"?await o.description(`HTTP error! status: ${x.status}`):o.description;this.create({id:i,type:"error",message:y,description:k})}else if(o.success!==void 0){c=!1;let y=typeof o.success=="function"?await o.success(x):o.success,k=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"success",message:y,description:k})}}).catch(async x=>{if(d=["reject",x],o.error!==void 0){c=!1;let y=typeof o.error=="function"?await o.error(x):o.error,k=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"error",message:y,description:k})}}).finally(()=>{var x;c&&(this.dismiss(i),i=void 0),(x=o.finally)==null||x.call(o)}),p=()=>new Promise((x,y)=>m.then(()=>d[0]==="reject"?y(d[1]):x(d[1])).catch(y));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)||Hu++;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 P0,j0=(r,o)=>{let i=(o==null?void 0:o.id)||Hu++;return Pt.addToast({title:r,...o,id:i}),i},R0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",M0=j0,T0=()=>Pt.toasts,O0=()=>Pt.getActiveToasts(),Sn=Object.assign(M0,{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:T0,getToasts:O0});function _0(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))}_0(`: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%)}
186
- `);function fa(r){return r.label!==void 0}var z0=3,I0="32px",A0="16px",xp=4e3,L0=356,D0=14,F0=20,U0=200;function Xt(...r){return r.filter(Boolean).join(" ")}function B0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var W0=r=>{var o,i,l,c,d,m,p,x,y,k,N;let{invert:T,toast:v,unstyled:z,interacting:S,setHeights:M,visibleToasts:L,heights:Q,index:W,toasts:I,expanded:Z,removeToast:oe,defaultRichColors:G,closeButton:te,style:U,cancelButtonStyle:se,actionButtonStyle:ge,className:le="",descriptionClassName:be="",duration:Oe,position:Be,gap:_e,loadingIcon:Se,expandByDefault:H,classNames:B,icons:$,closeButtonAriaLabel:P="Close toast",pauseWhenPageIsHidden:_}=r,[ee,ie]=K.useState(null),[pe,we]=K.useState(null),[fe,Ce]=K.useState(!1),[Re,Ze]=K.useState(!1),[nn,Jr]=K.useState(!1),[kr,Go]=K.useState(!1),[qs,qo]=K.useState(!1),[Yo,eo]=K.useState(0),[Xo,Un]=K.useState(0),Ot=K.useRef(v.duration||Oe||xp),to=K.useRef(null),rn=K.useRef(null),Ys=W===0,Xs=W+1<=L,dt=v.type,on=v.dismissible!==!1,no=v.className||"",Zs=v.descriptionClassName||"",sn=K.useMemo(()=>Q.findIndex(me=>me.toastId===v.id)||0,[Q,v.id]),br=K.useMemo(()=>{var me;return(me=v.closeButton)!=null?me:te},[v.closeButton,te]),Js=K.useMemo(()=>v.duration||Oe||xp,[v.duration,Oe]),ro=K.useRef(0),kn=K.useRef(0),ei=K.useRef(0),an=K.useRef(null),[Zo,Jo]=Be.split("-"),oo=K.useMemo(()=>Q.reduce((me,je,ze)=>ze>=sn?me:me+je.height,0),[Q,sn]),so=N0(),Bn=v.invert||T,ln=dt==="loading";kn.current=K.useMemo(()=>sn*_e+oo,[sn,oo]),K.useEffect(()=>{Ot.current=Js},[Js]),K.useEffect(()=>{Ce(!0)},[]),K.useEffect(()=>{let me=rn.current;if(me){let je=me.getBoundingClientRect().height;return Un(je),M(ze=>[{toastId:v.id,height:je,position:v.position},...ze]),()=>M(ze=>ze.filter(ft=>ft.toastId!==v.id))}},[M,v.id]),K.useLayoutEffect(()=>{if(!fe)return;let me=rn.current,je=me.style.height;me.style.height="auto";let ze=me.getBoundingClientRect().height;me.style.height=je,Un(ze),M(ft=>ft.find(yt=>yt.toastId===v.id)?ft.map(yt=>yt.toastId===v.id?{...yt,height:ze}:yt):[{toastId:v.id,height:ze,position:v.position},...ft])},[fe,v.title,v.description,M,v.id]);let Bt=K.useCallback(()=>{Ze(!0),eo(kn.current),M(me=>me.filter(je=>je.toastId!==v.id)),setTimeout(()=>{oe(v)},U0)},[v,oe,M,kn]);K.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let me;return Z||S||_&&so?(()=>{if(ei.current<ro.current){let je=new Date().getTime()-ro.current;Ot.current=Ot.current-je}ei.current=new Date().getTime()})():Ot.current!==1/0&&(ro.current=new Date().getTime(),me=setTimeout(()=>{var je;(je=v.onAutoClose)==null||je.call(v,v),Bt()},Ot.current)),()=>clearTimeout(me)},[Z,S,v,dt,_,so,Bt]),K.useEffect(()=>{v.delete&&Bt()},[Bt,v.delete]);function ti(){var me,je,ze;return $!=null&&$.loading?K.createElement("div",{className:Xt(B==null?void 0:B.loader,(me=v==null?void 0:v.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":dt==="loading"},$.loading):Se?K.createElement("div",{className:Xt(B==null?void 0:B.loader,(je=v==null?void 0:v.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":dt==="loading"},Se):K.createElement(x0,{className:Xt(B==null?void 0:B.loader,(ze=v==null?void 0:v.classNames)==null?void 0:ze.loader),visible:dt==="loading"})}return K.createElement("li",{tabIndex:0,ref:rn,className:Xt(le,no,B==null?void 0:B.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,B==null?void 0:B.default,B==null?void 0:B[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:G,"data-styled":!(v.jsx||v.unstyled||z),"data-mounted":fe,"data-promise":!!v.promise,"data-swiped":qs,"data-removed":Re,"data-visible":Xs,"data-y-position":Zo,"data-x-position":Jo,"data-index":W,"data-front":Ys,"data-swiping":nn,"data-dismissible":on,"data-type":dt,"data-invert":Bn,"data-swipe-out":kr,"data-swipe-direction":pe,"data-expanded":!!(Z||H&&fe),style:{"--index":W,"--toasts-before":W,"--z-index":I.length-W,"--offset":`${Re?Yo:kn.current}px`,"--initial-height":H?"auto":`${Xo}px`,...U,...v.style},onDragEnd:()=>{Jr(!1),ie(null),an.current=null},onPointerDown:me=>{ln||!on||(to.current=new Date,eo(kn.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(Jr(!0),an.current={x:me.clientX,y:me.clientY}))},onPointerUp:()=>{var me,je,ze,ft;if(kr||!on)return;an.current=null;let yt=Number(((me=rn.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((je=rn.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wt=new Date().getTime()-((ze=to.current)==null?void 0:ze.getTime()),rt=ee==="x"?yt:vt,un=Math.abs(rt)/Wt;if(Math.abs(rt)>=F0||un>.11){eo(kn.current),(ft=v.onDismiss)==null||ft.call(v,v),we(ee==="x"?yt>0?"right":"left":vt>0?"down":"up"),Bt(),Go(!0),qo(!1);return}Jr(!1),ie(null)},onPointerMove:me=>{var je,ze,ft,yt;if(!an.current||!on||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let vt=me.clientY-an.current.y,Wt=me.clientX-an.current.x,rt=(ze=r.swipeDirections)!=null?ze:B0(Be);!ee&&(Math.abs(Wt)>1||Math.abs(vt)>1)&&ie(Math.abs(Wt)>Math.abs(vt)?"x":"y");let un={x:0,y:0};ee==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(un.y=vt):ee==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Wt<0||rt.includes("right")&&Wt>0)&&(un.x=Wt),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&qo(!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`)}},br&&!v.jsx?K.createElement("button",{"aria-label":P,"data-disabled":ln,"data-close-button":!0,onClick:ln||!on?()=>{}:()=>{var me;Bt(),(me=v.onDismiss)==null||me.call(v,v)},className:Xt(B==null?void 0:B.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=$==null?void 0:$.close)!=null?d:E0):null,v.jsx||C.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:K.createElement(K.Fragment,null,dt||v.icon||v.promise?K.createElement("div",{"data-icon":"",className:Xt(B==null?void 0:B.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ti():null,v.type!=="loading"?v.icon||($==null?void 0:$[dt])||v0(dt):null):null,K.createElement("div",{"data-content":"",className:Xt(B==null?void 0:B.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},K.createElement("div",{"data-title":"",className:Xt(B==null?void 0:B.title,(x=v==null?void 0:v.classNames)==null?void 0:x.title)},typeof v.title=="function"?v.title():v.title),v.description?K.createElement("div",{"data-description":"",className:Xt(be,Zs,B==null?void 0:B.description,(y=v==null?void 0:v.classNames)==null?void 0:y.description)},typeof v.description=="function"?v.description():v.description):null),C.isValidElement(v.cancel)?v.cancel:v.cancel&&fa(v.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||se,onClick:me=>{var je,ze;fa(v.cancel)&&on&&((ze=(je=v.cancel).onClick)==null||ze.call(je,me),Bt())},className:Xt(B==null?void 0:B.cancelButton,(k=v==null?void 0:v.classNames)==null?void 0:k.cancelButton)},v.cancel.label):null,C.isValidElement(v.action)?v.action:v.action&&fa(v.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ge,onClick:me=>{var je,ze;fa(v.action)&&((ze=(je=v.action).onClick)==null||ze.call(je,me),!me.defaultPrevented&&Bt())},className:Xt(B==null?void 0:B.actionButton,(N=v==null?void 0:v.classNames)==null?void 0:N.actionButton)},v.action.label):null))};function Sp(){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 V0(r,o){let i={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",p=d?A0:I0;function x(y){["top","right","bottom","left"].forEach(k=>{i[`${m}-${k}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?x(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?i[`${m}-${y}`]=p:i[`${m}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):x(p)}),i}var Q0=C.forwardRef(function(r,o){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:p,offset:x,mobileOffset:y,theme:k="light",richColors:N,duration:T,style:v,visibleToasts:z=z0,toastOptions:S,dir:M=Sp(),gap:L=D0,loadingIcon:Q,icons:W,containerAriaLabel:I="Notifications",pauseWhenPageIsHidden:Z}=r,[oe,G]=K.useState([]),te=K.useMemo(()=>Array.from(new Set([l].concat(oe.filter(_=>_.position).map(_=>_.position)))),[oe,l]),[U,se]=K.useState([]),[ge,le]=K.useState(!1),[be,Oe]=K.useState(!1),[Be,_e]=K.useState(k!=="system"?k:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Se=K.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=K.useRef(null),$=K.useRef(!1),P=K.useCallback(_=>{G(ee=>{var ie;return(ie=ee.find(pe=>pe.id===_.id))!=null&&ie.delete||Pt.dismiss(_.id),ee.filter(({id:pe})=>pe!==_.id)})},[]);return K.useEffect(()=>Pt.subscribe(_=>{if(_.dismiss){G(ee=>ee.map(ie=>ie.id===_.id?{...ie,delete:!0}:ie));return}setTimeout(()=>{Nh.flushSync(()=>{G(ee=>{let ie=ee.findIndex(pe=>pe.id===_.id);return ie!==-1?[...ee.slice(0,ie),{...ee[ie],..._},...ee.slice(ie+1)]:[_,...ee]})})})}),[]),K.useEffect(()=>{if(k!=="system"){_e(k);return}if(k==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_e("dark"):_e("light")),typeof window>"u")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:ee})=>{_e(ee?"dark":"light")})}catch{_.addListener(({matches:ie})=>{try{_e(ie?"dark":"light")}catch(pe){console.error(pe)}})}},[k]),K.useEffect(()=>{oe.length<=1&&le(!1)},[oe]),K.useEffect(()=>{let _=ee=>{var ie,pe;c.every(we=>ee[we]||ee.code===we)&&(le(!0),(ie=Se.current)==null||ie.focus()),ee.code==="Escape"&&(document.activeElement===Se.current||(pe=Se.current)!=null&&pe.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),K.useEffect(()=>{if(Se.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,$.current=!1)}},[Se.current]),K.createElement("section",{ref:o,"aria-label":`${I} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},te.map((_,ee)=>{var ie;let[pe,we]=_.split("-");return oe.length?K.createElement("ol",{key:_,dir:M==="auto"?Sp():M,tabIndex:-1,ref:Se,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":pe,"data-lifted":ge&&oe.length>1&&!d,"data-x-position":we,style:{"--front-toast-height":`${((ie=U[0])==null?void 0:ie.height)||0}px`,"--width":`${L0}px`,"--gap":`${L}px`,...v,...V0(x,y)},onBlur:fe=>{$.current&&!fe.currentTarget.contains(fe.relatedTarget)&&($.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||$.current||($.current=!0,B.current=fe.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{be||le(!1)},onDragEnd:()=>le(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||Oe(!0)},onPointerUp:()=>Oe(!1)},oe.filter(fe=>!fe.position&&ee===0||fe.position===_).map((fe,Ce)=>{var Re,Ze;return K.createElement(W0,{key:fe.id,icons:W,index:Ce,toast:fe,defaultRichColors:N,duration:(Re=S==null?void 0:S.duration)!=null?Re:T,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:i,visibleToasts:z,closeButton:(Ze=S==null?void 0:S.closeButton)!=null?Ze:m,interacting:be,position:_,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:P,toasts:oe.filter(nn=>nn.position==fe.position),heights:U.filter(nn=>nn.position==fe.position),setHeights:se,expandByDefault:d,gap:L,loadingIcon:Q,expanded:ge,pauseWhenPageIsHidden:Z,swipeDirections:r.swipeDirections})})):null}))});const kp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},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 Y(r,o="en"){var i,l;return((i=kp[r])==null?void 0:i[o])||((l=kp[r])==null?void 0:l.en)||r}function Ks(){return nc({queryKey:["config"],queryFn:d0,staleTime:3e4,refetchOnWindowFocus:!0})}function ic(){return nc({queryKey:["config-meta"],queryFn:f0,staleTime:1/0})}function Gs(){return nc({queryKey:["config-schema"],queryFn:p0,staleTime:1/0})}function $0(){const r=Hs();return ja({mutationFn:h0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(Y("configSaved"))},onError:o=>{Sn.error(Y("configSaveFailed")+": "+o.message)}})}function H0(){const r=Hs();return ja({mutationFn:({provider:o,data:i})=>m0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(Y("configSaved"))},onError:o=>{Sn.error(Y("configSaveFailed")+": "+o.message)}})}function K0(){const r=Hs();return ja({mutationFn:({channel:o,data:i})=>g0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(Y("configSavedApplied"))},onError:o=>{Sn.error(Y("configSaveFailed")+": "+o.message)}})}function G0(){return ja({mutationFn:({actionId:r,data:o})=>y0(r,o),onError:r=>{Sn.error(Y("error")+": "+r.message)}})}function q0(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function en(r,o){if(!o)return;const i=q0(r),l=o[i];if(l)return l;const c=i.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const p=d.split(".");if(p.length!==c.length)continue;let x=!0;for(let y=0;y<c.length;y+=1)if(p[y]!=="*"&&p[y]!==c[y]){x=!1;break}if(x)return m}}function bp(){const{data:r,isLoading:o}=Ks(),{data:i}=Gs(),l=$0(),[c,d]=C.useState(""),[m,p]=C.useState(""),[x,y]=C.useState(8192),k=i==null?void 0:i.uiHints,N=en("agents.defaults.model",k),T=en("agents.defaults.workspace",k),v=en("agents.defaults.maxTokens",k);C.useEffect(()=>{var S;(S=r==null?void 0:r.agents)!=null&&S.defaults&&(d(r.agents.defaults.model||""),p(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192))},[r]);const z=S=>{S.preventDefault(),l.mutate({model:c})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Yt,{className:"h-8 w-32"}),h.jsx(Yt,{className:"h-4 w-48"})]}),h.jsxs($u,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Yt,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Yt,{className:"h-5 w-24"}),h.jsx(Yt,{className:"h-3 w-32"})]})]}),h.jsx(Yt,{className:"h-4 w-20 mb-2"}),h.jsx(Yt,{className:"h-10 w-full rounded-xl"})]}),h.jsxs($u,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Yt,{className:"h-5 w-24 mb-2"}),h.jsx(Yt,{className:"h-3 w-40 mb-6"}),h.jsx("div",{className:"space-y-6",children:h.jsxs("div",{children:[h.jsx(Yt,{className:"h-4 w-28 mb-3"}),h.jsx(Yt,{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 runtime limits"})]}),h.jsxs("form",{onSubmit:z,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(bh,{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(Ln,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(N==null?void 0:N.label)??"Model Name"}),h.jsx(xn,{id:"model",value:c,onChange:S=>d(S.target.value),placeholder:(N==null?void 0:N.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:(N==null?void 0:N.help)??"Examples: minimax/MiniMax-M2.5 · minimax/MiniMax-M2.1 · openrouter/anthropic/claude-3.5-sonnet · openrouter/openai/gpt-4o-mini"})]})]}),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($v,{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(Ln,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(T==null?void 0:T.label)??"Default Path"}),h.jsx(xn,{id:"workspace",value:m,onChange:S=>p(S.target.value),placeholder:(T==null?void 0:T.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(Yv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),h.jsx("div",{className:"grid grid-cols-1 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(Ln,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:x,onChange:S=>y(parseInt(S.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(wn,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?h.jsx(Hv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function Sr(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 Cp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Ph(...r){return o=>{let i=!1;const l=r.map(c=>{const d=Cp(c,o);return!i&&typeof d=="function"&&(i=!0),d});if(i)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():Cp(r[c],null)}}}}function Zr(...r){return C.useCallback(Ph(...r),r)}function Y0(r,o){const i=C.createContext(o),l=d=>{const{children:m,...p}=d,x=C.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:x,children:m})};l.displayName=r+"Provider";function c(d){const m=C.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function X0(r,o=[]){let i=[];function l(d,m){const p=C.createContext(m),x=i.length;i=[...i,m];const y=N=>{var L;const{scope:T,children:v,...z}=N,S=((L=T==null?void 0:T[r])==null?void 0:L[x])||p,M=C.useMemo(()=>z,Object.values(z));return h.jsx(S.Provider,{value:M,children:v})};y.displayName=d+"Provider";function k(N,T){var S;const v=((S=T==null?void 0:T[r])==null?void 0:S[x])||p,z=C.useContext(v);if(z)return z;if(m!==void 0)return m;throw new Error(`\`${N}\` must be used within \`${d}\``)}return[y,k]}const c=()=>{const d=i.map(m=>C.createContext(m));return function(p){const x=(p==null?void 0:p[r])||d;return C.useMemo(()=>({[`__scope${r}`]:{...p,[r]:x}}),[p,x])}};return c.scopeName=r,[l,Z0(c,...o)]}function Z0(...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(d){const m=l.reduce((p,{useScope:x,scopeName:y})=>{const N=x(d)[`__scope${y}`];return{...p,...N}},{});return C.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var Fs=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},J0=Jp[" useId ".trim().toString()]||(()=>{}),e1=0;function Su(r){const[o,i]=C.useState(J0());return Fs(()=>{i(l=>l??String(e1++))},[r]),r||(o?`radix-${o}`:"")}var t1=Jp[" useInsertionEffect ".trim().toString()]||Fs;function n1({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,d,m]=r1({defaultProp:o,onChange:i}),p=r!==void 0,x=p?r:c;{const k=C.useRef(r!==void 0);C.useEffect(()=>{const N=k.current;N!==p&&console.warn(`${l} is changing from ${N?"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.`),k.current=p},[p,l])}const y=C.useCallback(k=>{var N;if(p){const T=o1(k)?k(r):k;T!==r&&((N=m.current)==null||N.call(m,T))}else d(k)},[p,r,d,m]);return[x,y]}function r1({defaultProp:r,onChange:o}){const[i,l]=C.useState(r),c=C.useRef(i),d=C.useRef(o);return t1(()=>{d.current=o},[o]),C.useEffect(()=>{var m;c.current!==i&&((m=d.current)==null||m.call(d,i),c.current=i)},[i,c]),[i,l,d]}function o1(r){return typeof r=="function"}function jh(r){const o=s1(r),i=C.forwardRef((l,c)=>{const{children:d,...m}=l,p=C.Children.toArray(d),x=p.find(a1);if(x){const y=x.props.children,k=p.map(N=>N===x?C.Children.count(y)>1?C.Children.only(null):C.isValidElement(y)?y.props.children:null:N);return h.jsx(o,{...m,ref:c,children:C.isValidElement(y)?C.cloneElement(y,void 0,k):null})}return h.jsx(o,{...m,ref:c,children:d})});return i.displayName=`${r}.Slot`,i}function s1(r){const o=C.forwardRef((i,l)=>{const{children:c,...d}=i;if(C.isValidElement(c)){const m=u1(c),p=l1(d,c.props);return c.type!==C.Fragment&&(p.ref=l?Ph(l,m):m),C.cloneElement(c,p)}return C.Children.count(c)>1?C.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var i1=Symbol("radix.slottable");function a1(r){return C.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===i1}function l1(r,o){const i={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?i[l]=(...p)=>{const x=d(...p);return c(...p),x}:c&&(i[l]=c):l==="style"?i[l]={...c,...d}:l==="className"&&(i[l]=[c,d].filter(Boolean).join(" "))}return{...r,...i}}function u1(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 c1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=c1.reduce((r,o)=>{const i=jh(`Primitive.${o}`),l=C.forwardRef((c,d)=>{const{asChild:m,...p}=c,x=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(x,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function d1(r,o){r&&Eh.flushSync(()=>r.dispatchEvent(o))}function Us(r){const o=C.useRef(r);return C.useEffect(()=>{o.current=r}),C.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function f1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r);C.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 p1="DismissableLayer",Ku="dismissableLayer.update",h1="dismissableLayer.pointerDownOutside",m1="dismissableLayer.focusOutside",Ep,Rh=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mh=C.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...x}=r,y=C.useContext(Rh),[k,N]=C.useState(null),T=(k==null?void 0:k.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=C.useState({}),z=Zr(o,G=>N(G)),S=Array.from(y.layers),[M]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),L=S.indexOf(M),Q=k?S.indexOf(k):-1,W=y.layersWithOutsidePointerEventsDisabled.size>0,I=Q>=L,Z=v1(G=>{const te=G.target,U=[...y.branches].some(se=>se.contains(te));!I||U||(c==null||c(G),m==null||m(G),G.defaultPrevented||p==null||p())},T),oe=w1(G=>{const te=G.target;[...y.branches].some(se=>se.contains(te))||(d==null||d(G),m==null||m(G),G.defaultPrevented||p==null||p())},T);return f1(G=>{Q===y.layers.size-1&&(l==null||l(G),!G.defaultPrevented&&p&&(G.preventDefault(),p()))},T),C.useEffect(()=>{if(k)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Ep=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(k)),y.layers.add(k),Np(),()=>{i&&y.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Ep)}},[k,T,i,y]),C.useEffect(()=>()=>{k&&(y.layers.delete(k),y.layersWithOutsidePointerEventsDisabled.delete(k),Np())},[k,y]),C.useEffect(()=>{const G=()=>v({});return document.addEventListener(Ku,G),()=>document.removeEventListener(Ku,G)},[]),h.jsx(Fn.div,{...x,ref:z,style:{pointerEvents:W?I?"auto":"none":void 0,...r.style},onFocusCapture:Sr(r.onFocusCapture,oe.onFocusCapture),onBlurCapture:Sr(r.onBlurCapture,oe.onBlurCapture),onPointerDownCapture:Sr(r.onPointerDownCapture,Z.onPointerDownCapture)})});Mh.displayName=p1;var g1="DismissableLayerBranch",y1=C.forwardRef((r,o)=>{const i=C.useContext(Rh),l=C.useRef(null),c=Zr(o,l);return C.useEffect(()=>{const d=l.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),h.jsx(Fn.div,{...r,ref:c})});y1.displayName=g1;function v1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=C.useRef(!1),c=C.useRef(()=>{});return C.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let x=function(){Th(h1,i,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=x,o.addEventListener("click",c.current,{once:!0})):x()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function w1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=C.useRef(!1);return C.useEffect(()=>{const c=d=>{d.target&&!l.current&&Th(m1,i,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Np(){const r=new CustomEvent(Ku);document.dispatchEvent(r)}function Th(r,o,i,{discrete:l}){const c=i.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?d1(c,d):c.dispatchEvent(d)}var ku="focusScope.autoFocusOnMount",bu="focusScope.autoFocusOnUnmount",Pp={bubbles:!1,cancelable:!0},x1="FocusScope",Oh=C.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[p,x]=C.useState(null),y=Us(c),k=Us(d),N=C.useRef(null),T=Zr(o,S=>x(S)),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(l){let S=function(W){if(v.paused||!p)return;const I=W.target;p.contains(I)?N.current=I:cr(N.current,{select:!0})},M=function(W){if(v.paused||!p)return;const I=W.relatedTarget;I!==null&&(p.contains(I)||cr(N.current,{select:!0}))},L=function(W){if(document.activeElement===document.body)for(const Z of W)Z.removedNodes.length>0&&cr(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",M);const Q=new MutationObserver(L);return p&&Q.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",M),Q.disconnect()}}},[l,p,v.paused]),C.useEffect(()=>{if(p){Rp.add(v);const S=document.activeElement;if(!p.contains(S)){const L=new CustomEvent(ku,Pp);p.addEventListener(ku,y),p.dispatchEvent(L),L.defaultPrevented||(S1(N1(_h(p)),{select:!0}),document.activeElement===S&&cr(p))}return()=>{p.removeEventListener(ku,y),setTimeout(()=>{const L=new CustomEvent(bu,Pp);p.addEventListener(bu,k),p.dispatchEvent(L),L.defaultPrevented||cr(S??document.body,{select:!0}),p.removeEventListener(bu,k),Rp.remove(v)},0)}}},[p,y,k,v]);const z=C.useCallback(S=>{if(!i&&!l||v.paused)return;const M=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,L=document.activeElement;if(M&&L){const Q=S.currentTarget,[W,I]=k1(Q);W&&I?!S.shiftKey&&L===I?(S.preventDefault(),i&&cr(W,{select:!0})):S.shiftKey&&L===W&&(S.preventDefault(),i&&cr(I,{select:!0})):L===Q&&S.preventDefault()}},[i,l,v.paused]);return h.jsx(Fn.div,{tabIndex:-1,...m,ref:T,onKeyDown:z})});Oh.displayName=x1;function S1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(cr(l,{select:o}),document.activeElement!==i)return}function k1(r){const o=_h(r),i=jp(o,r),l=jp(o.reverse(),r);return[i,l]}function _h(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 jp(r,o){for(const i of r)if(!b1(i,{upTo:o}))return i}function b1(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 C1(r){return r instanceof HTMLInputElement&&"select"in r}function cr(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&C1(r)&&o&&r.select()}}var Rp=E1();function E1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Mp(r,o),r.unshift(o)},remove(o){var i;r=Mp(r,o),(i=r[0])==null||i.resume()}}}function Mp(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function N1(r){return r.filter(o=>o.tagName!=="A")}var P1="Portal",zh=C.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,d]=C.useState(!1);Fs(()=>d(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Nh.createPortal(h.jsx(Fn.div,{...l,ref:o}),m):null});zh.displayName=P1;function j1(r,o){return C.useReducer((i,l)=>o[i][l]??i,r)}var Ra=r=>{const{present:o,children:i}=r,l=R1(o),c=typeof i=="function"?i({present:l.isPresent}):C.Children.only(i),d=Zr(l.ref,M1(c));return typeof i=="function"||l.isPresent?C.cloneElement(c,{ref:d}):null};Ra.displayName="Presence";function R1(r){const[o,i]=C.useState(),l=C.useRef(null),c=C.useRef(r),d=C.useRef("none"),m=r?"mounted":"unmounted",[p,x]=j1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const y=pa(l.current);d.current=p==="mounted"?y:"none"},[p]),Fs(()=>{const y=l.current,k=c.current;if(k!==r){const T=d.current,v=pa(y);r?x("MOUNT"):v==="none"||(y==null?void 0:y.display)==="none"?x("UNMOUNT"):x(k&&T!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,x]),Fs(()=>{if(o){let y;const k=o.ownerDocument.defaultView??window,N=v=>{const S=pa(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&S&&(x("ANIMATION_END"),!c.current)){const M=o.style.animationFillMode;o.style.animationFillMode="forwards",y=k.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=M)})}},T=v=>{v.target===o&&(d.current=pa(l.current))};return o.addEventListener("animationstart",T),o.addEventListener("animationcancel",N),o.addEventListener("animationend",N),()=>{k.clearTimeout(y),o.removeEventListener("animationstart",T),o.removeEventListener("animationcancel",N),o.removeEventListener("animationend",N)}}else x("ANIMATION_END")},[o,x]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:C.useCallback(y=>{l.current=y?getComputedStyle(y):null,i(y)},[])}}function pa(r){return(r==null?void 0:r.animationName)||"none"}function M1(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 Cu=0;function T1(){C.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Tp()),document.body.insertAdjacentElement("beforeend",r[1]??Tp()),Cu++,()=>{Cu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Cu--}},[])}function Tp(){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 d in i)Object.prototype.hasOwnProperty.call(i,d)&&(o[d]=i[d])}return o},vn.apply(this,arguments)};function Ih(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 O1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Sa="right-scroll-bar-position",ka="width-before-scroll-bar",_1="with-scroll-bars-hidden",z1="--removed-body-scroll-bar-size";function Eu(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function I1(r,o){var i=C.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 A1=typeof window<"u"?C.useLayoutEffect:C.useEffect,Op=new WeakMap;function L1(r,o){var i=I1(null,function(l){return r.forEach(function(c){return Eu(c,l)})});return A1(function(){var l=Op.get(i);if(l){var c=new Set(l),d=new Set(r),m=i.current;c.forEach(function(p){d.has(p)||Eu(p,null)}),d.forEach(function(p){c.has(p)||Eu(p,m)})}Op.set(i,r)},[r]),i}function D1(r){return r}function F1(r,o){o===void 0&&(o=D1);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(d){var m=o(d,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(d){for(l=!0;i.length;){var m=i;i=[],m.forEach(d)}i={push:function(p){return d(p)},filter:function(){return i}}},assignMedium:function(d){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(d),m=i}var x=function(){var k=m;m=[],k.forEach(d)},y=function(){return Promise.resolve().then(x)};y(),i={push:function(k){m.push(k),y()},filter:function(k){return m=m.filter(k),i}}}};return c}function U1(r){r===void 0&&(r={});var o=F1(null);return o.options=vn({async:!0,ssr:!1},r),o}var Ah=function(r){var o=r.sideCar,i=Ih(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 C.createElement(l,vn({},i))};Ah.isSideCarExport=!0;function B1(r,o){return r.useMedium(o),Ah}var Lh=U1(),Nu=function(){},Ma=C.forwardRef(function(r,o){var i=C.useRef(null),l=C.useState({onScrollCapture:Nu,onWheelCapture:Nu,onTouchMoveCapture:Nu}),c=l[0],d=l[1],m=r.forwardProps,p=r.children,x=r.className,y=r.removeScrollBar,k=r.enabled,N=r.shards,T=r.sideCar,v=r.noRelative,z=r.noIsolation,S=r.inert,M=r.allowPinchZoom,L=r.as,Q=L===void 0?"div":L,W=r.gapMode,I=Ih(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=T,oe=L1([i,o]),G=vn(vn({},I),c);return C.createElement(C.Fragment,null,k&&C.createElement(Z,{sideCar:Lh,removeScrollBar:y,shards:N,noRelative:v,noIsolation:z,inert:S,setCallbacks:d,allowPinchZoom:!!M,lockRef:i,gapMode:W}),m?C.cloneElement(C.Children.only(p),vn(vn({},G),{ref:oe})):C.createElement(Q,vn({},G,{className:x,ref:oe}),p))});Ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ma.classNames={fullWidth:ka,zeroRight:Sa};var W1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function V1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=W1();return o&&r.setAttribute("nonce",o),r}function Q1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function $1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var H1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=V1())&&(Q1(o,i),$1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},K1=function(){var r=H1();return function(o,i){C.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},Dh=function(){var r=K1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},G1={left:0,top:0,right:0,gap:0},Pu=function(r){return parseInt(r||"",10)||0},q1=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[Pu(i),Pu(l),Pu(c)]},Y1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return G1;var o=q1(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])}},X1=Dh(),_o="data-scroll-locked",Z1=function(r,o,i,l){var c=r.left,d=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
187
- .`.concat(_1,` {
185
+ */const Jv=Fe("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"}]]),e0=[{id:"model",label:"Models",icon:Bv},{id:"providers",label:"Providers",icon:kh},{id:"channels",label:"Channels",icon:sc}];function t0(){const{activeTab:r,setActiveTab:o}=Yr();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.5 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",className:"h-full w-full object-contain"})}),h.jsx("span",{className:"text-[15px] font-bold bg-gradient-to-r from-primary to-indigo-500 bg-clip-text text-transparent tracking-[-0.02em]",children:"NextClaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:e0.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Pe("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:Pe("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 n0({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(t0,{}),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 vp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,wp=ph,r0=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return wp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(y=>{const b=i==null?void 0:i[y],N=d==null?void 0:d[y];if(b===null)return null;const T=vp(b)||vp(N);return c[y][T]}),p=i&&Object.entries(i).reduce((y,b)=>{let[N,T]=b;return T===void 0||(y[N]=T),y},{}),x=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((y,b)=>{let{class:N,className:T,...v}=b;return Object.entries(v).every(_=>{let[S,M]=_;return Array.isArray(M)?M.includes({...d,...p}[S]):{...d,...p}[S]===M})?[...y,N,T]:y},[]);return wp(r,m,x,i==null?void 0:i.class,i==null?void 0:i.className)},o0=r0("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"}}),wn=C.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Pe(o0({variant:o,size:i,className:r})),ref:c,...l}));wn.displayName="Button";const $u=C.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Pe("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}));$u.displayName="Card";const s0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("flex flex-col space-y-2 p-6",r),...o}));s0.displayName="CardHeader";const i0=C.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Pe("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));i0.displayName="CardTitle";const a0=C.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Pe("text-sm text-gray-500 leading-relaxed",r),...o}));a0.displayName="CardDescription";const l0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("p-6 pt-0",r),...o}));l0.displayName="CardContent";const u0=C.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Pe("flex items-center justify-between p-6 pt-0",r),...o}));u0.displayName="CardFooter";const xn=C.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Pe("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 Dn=C.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Pe("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));Dn.displayName="Label";function Yt({className:r,...o}){return h.jsx("div",{className:Pe("animate-pulse rounded-md bg-slate-200",r),...o})}const c0="http://127.0.0.1:18791",xa=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:c0})();async function xu(r,o={}){const i=`${xa}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,d}const Xr={get:r=>xu(r,{method:"GET"}),put:(r,o)=>xu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>xu(r,{method:"POST",body:JSON.stringify(o)})};async function d0(){const r=await Xr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function f0(){const r=await Xr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function p0(){const r=await Xr.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function h0(r){const o=await Xr.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function m0(r,o){const i=await Xr.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function g0(r,o){const i=await Xr.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function y0(r,o){const i=await Xr.post(`/api/config/actions/${r}/execute`,o);if(!i.ok)throw new Error(i.error.message);return i.data}var Eh=eh();const Nh=Zp(Eh);var v0=r=>{switch(r){case"success":return S0;case"info":return k0;case"warning":return b0;case"error":return C0;default:return null}},w0=Array(12).fill(0),x0=({visible:r,className:o})=>G.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},G.createElement("div",{className:"sonner-spinner"},w0.map((i,l)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),S0=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),b0=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.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"})),k0=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),C0=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),E0=G.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"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),N0=()=>{let[r,o]=G.useState(document.hidden);return G.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Hu=1,P0=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:Hu++,d=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(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,d,m=l.then(async x=>{if(d=["resolve",x],G.isValidElement(x))c=!1,this.create({id:i,type:"default",message:x});else if(R0(x)&&!x.ok){c=!1;let y=typeof o.error=="function"?await o.error(`HTTP error! status: ${x.status}`):o.error,b=typeof o.description=="function"?await o.description(`HTTP error! status: ${x.status}`):o.description;this.create({id:i,type:"error",message:y,description:b})}else if(o.success!==void 0){c=!1;let y=typeof o.success=="function"?await o.success(x):o.success,b=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"success",message:y,description:b})}}).catch(async x=>{if(d=["reject",x],o.error!==void 0){c=!1;let y=typeof o.error=="function"?await o.error(x):o.error,b=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"error",message:y,description:b})}}).finally(()=>{var x;c&&(this.dismiss(i),i=void 0),(x=o.finally)==null||x.call(o)}),p=()=>new Promise((x,y)=>m.then(()=>d[0]==="reject"?y(d[1]):x(d[1])).catch(y));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)||Hu++;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 P0,j0=(r,o)=>{let i=(o==null?void 0:o.id)||Hu++;return Pt.addToast({title:r,...o,id:i}),i},R0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",M0=j0,T0=()=>Pt.toasts,O0=()=>Pt.getActiveToasts(),Sn=Object.assign(M0,{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:T0,getToasts:O0});function z0(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))}z0(`: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%)}
186
+ `);function fa(r){return r.label!==void 0}var _0=3,I0="32px",A0="16px",xp=4e3,D0=356,L0=14,F0=20,U0=200;function Xt(...r){return r.filter(Boolean).join(" ")}function B0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var W0=r=>{var o,i,l,c,d,m,p,x,y,b,N;let{invert:T,toast:v,unstyled:_,interacting:S,setHeights:M,visibleToasts:D,heights:Q,index:W,toasts:I,expanded:Z,removeToast:oe,defaultRichColors:q,closeButton:te,style:U,cancelButtonStyle:se,actionButtonStyle:ge,className:le="",descriptionClassName:ke="",duration:Oe,position:Be,gap:ze,loadingIcon:Se,expandByDefault:H,classNames:B,icons:$,closeButtonAriaLabel:P="Close toast",pauseWhenPageIsHidden:z}=r,[ee,ie]=G.useState(null),[pe,we]=G.useState(null),[fe,Ce]=G.useState(!1),[Re,Ze]=G.useState(!1),[nn,Jr]=G.useState(!1),[br,Go]=G.useState(!1),[qs,qo]=G.useState(!1),[Yo,eo]=G.useState(0),[Xo,Un]=G.useState(0),Ot=G.useRef(v.duration||Oe||xp),to=G.useRef(null),rn=G.useRef(null),Ys=W===0,Xs=W+1<=D,dt=v.type,on=v.dismissible!==!1,no=v.className||"",Zs=v.descriptionClassName||"",sn=G.useMemo(()=>Q.findIndex(me=>me.toastId===v.id)||0,[Q,v.id]),kr=G.useMemo(()=>{var me;return(me=v.closeButton)!=null?me:te},[v.closeButton,te]),Js=G.useMemo(()=>v.duration||Oe||xp,[v.duration,Oe]),ro=G.useRef(0),bn=G.useRef(0),ei=G.useRef(0),an=G.useRef(null),[Zo,Jo]=Be.split("-"),oo=G.useMemo(()=>Q.reduce((me,je,_e)=>_e>=sn?me:me+je.height,0),[Q,sn]),so=N0(),Bn=v.invert||T,ln=dt==="loading";bn.current=G.useMemo(()=>sn*ze+oo,[sn,oo]),G.useEffect(()=>{Ot.current=Js},[Js]),G.useEffect(()=>{Ce(!0)},[]),G.useEffect(()=>{let me=rn.current;if(me){let je=me.getBoundingClientRect().height;return Un(je),M(_e=>[{toastId:v.id,height:je,position:v.position},..._e]),()=>M(_e=>_e.filter(ft=>ft.toastId!==v.id))}},[M,v.id]),G.useLayoutEffect(()=>{if(!fe)return;let me=rn.current,je=me.style.height;me.style.height="auto";let _e=me.getBoundingClientRect().height;me.style.height=je,Un(_e),M(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])},[fe,v.title,v.description,M,v.id]);let Bt=G.useCallback(()=>{Ze(!0),eo(bn.current),M(me=>me.filter(je=>je.toastId!==v.id)),setTimeout(()=>{oe(v)},U0)},[v,oe,M,bn]);G.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let me;return Z||S||z&&so?(()=>{if(ei.current<ro.current){let je=new Date().getTime()-ro.current;Ot.current=Ot.current-je}ei.current=new Date().getTime()})():Ot.current!==1/0&&(ro.current=new Date().getTime(),me=setTimeout(()=>{var je;(je=v.onAutoClose)==null||je.call(v,v),Bt()},Ot.current)),()=>clearTimeout(me)},[Z,S,v,dt,z,so,Bt]),G.useEffect(()=>{v.delete&&Bt()},[Bt,v.delete]);function ti(){var me,je,_e;return $!=null&&$.loading?G.createElement("div",{className:Xt(B==null?void 0:B.loader,(me=v==null?void 0:v.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":dt==="loading"},$.loading):Se?G.createElement("div",{className:Xt(B==null?void 0:B.loader,(je=v==null?void 0:v.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":dt==="loading"},Se):G.createElement(x0,{className:Xt(B==null?void 0:B.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:dt==="loading"})}return G.createElement("li",{tabIndex:0,ref:rn,className:Xt(le,no,B==null?void 0:B.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,B==null?void 0:B.default,B==null?void 0:B[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:q,"data-styled":!(v.jsx||v.unstyled||_),"data-mounted":fe,"data-promise":!!v.promise,"data-swiped":qs,"data-removed":Re,"data-visible":Xs,"data-y-position":Zo,"data-x-position":Jo,"data-index":W,"data-front":Ys,"data-swiping":nn,"data-dismissible":on,"data-type":dt,"data-invert":Bn,"data-swipe-out":br,"data-swipe-direction":pe,"data-expanded":!!(Z||H&&fe),style:{"--index":W,"--toasts-before":W,"--z-index":I.length-W,"--offset":`${Re?Yo:bn.current}px`,"--initial-height":H?"auto":`${Xo}px`,...U,...v.style},onDragEnd:()=>{Jr(!1),ie(null),an.current=null},onPointerDown:me=>{ln||!on||(to.current=new Date,eo(bn.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(Jr(!0),an.current={x:me.clientX,y:me.clientY}))},onPointerUp:()=>{var me,je,_e,ft;if(br||!on)return;an.current=null;let yt=Number(((me=rn.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((je=rn.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wt=new Date().getTime()-((_e=to.current)==null?void 0:_e.getTime()),rt=ee==="x"?yt:vt,un=Math.abs(rt)/Wt;if(Math.abs(rt)>=F0||un>.11){eo(bn.current),(ft=v.onDismiss)==null||ft.call(v,v),we(ee==="x"?yt>0?"right":"left":vt>0?"down":"up"),Bt(),Go(!0),qo(!1);return}Jr(!1),ie(null)},onPointerMove:me=>{var je,_e,ft,yt;if(!an.current||!on||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let vt=me.clientY-an.current.y,Wt=me.clientX-an.current.x,rt=(_e=r.swipeDirections)!=null?_e:B0(Be);!ee&&(Math.abs(Wt)>1||Math.abs(vt)>1)&&ie(Math.abs(Wt)>Math.abs(vt)?"x":"y");let un={x:0,y:0};ee==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(un.y=vt):ee==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Wt<0||rt.includes("right")&&Wt>0)&&(un.x=Wt),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&qo(!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?G.createElement("button",{"aria-label":P,"data-disabled":ln,"data-close-button":!0,onClick:ln||!on?()=>{}:()=>{var me;Bt(),(me=v.onDismiss)==null||me.call(v,v)},className:Xt(B==null?void 0:B.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=$==null?void 0:$.close)!=null?d:E0):null,v.jsx||C.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:G.createElement(G.Fragment,null,dt||v.icon||v.promise?G.createElement("div",{"data-icon":"",className:Xt(B==null?void 0:B.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ti():null,v.type!=="loading"?v.icon||($==null?void 0:$[dt])||v0(dt):null):null,G.createElement("div",{"data-content":"",className:Xt(B==null?void 0:B.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},G.createElement("div",{"data-title":"",className:Xt(B==null?void 0:B.title,(x=v==null?void 0:v.classNames)==null?void 0:x.title)},typeof v.title=="function"?v.title():v.title),v.description?G.createElement("div",{"data-description":"",className:Xt(ke,Zs,B==null?void 0:B.description,(y=v==null?void 0:v.classNames)==null?void 0:y.description)},typeof v.description=="function"?v.description():v.description):null),C.isValidElement(v.cancel)?v.cancel:v.cancel&&fa(v.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||se,onClick:me=>{var je,_e;fa(v.cancel)&&on&&((_e=(je=v.cancel).onClick)==null||_e.call(je,me),Bt())},className:Xt(B==null?void 0:B.cancelButton,(b=v==null?void 0:v.classNames)==null?void 0:b.cancelButton)},v.cancel.label):null,C.isValidElement(v.action)?v.action:v.action&&fa(v.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ge,onClick:me=>{var je,_e;fa(v.action)&&((_e=(je=v.action).onClick)==null||_e.call(je,me),!me.defaultPrevented&&Bt())},className:Xt(B==null?void 0:B.actionButton,(N=v==null?void 0:v.classNames)==null?void 0:N.actionButton)},v.action.label):null))};function Sp(){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 V0(r,o){let i={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",p=d?A0:I0;function x(y){["top","right","bottom","left"].forEach(b=>{i[`${m}-${b}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?x(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?i[`${m}-${y}`]=p:i[`${m}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):x(p)}),i}var Q0=C.forwardRef(function(r,o){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:p,offset:x,mobileOffset:y,theme:b="light",richColors:N,duration:T,style:v,visibleToasts:_=_0,toastOptions:S,dir:M=Sp(),gap:D=L0,loadingIcon:Q,icons:W,containerAriaLabel:I="Notifications",pauseWhenPageIsHidden:Z}=r,[oe,q]=G.useState([]),te=G.useMemo(()=>Array.from(new Set([l].concat(oe.filter(z=>z.position).map(z=>z.position)))),[oe,l]),[U,se]=G.useState([]),[ge,le]=G.useState(!1),[ke,Oe]=G.useState(!1),[Be,ze]=G.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Se=G.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=G.useRef(null),$=G.useRef(!1),P=G.useCallback(z=>{q(ee=>{var ie;return(ie=ee.find(pe=>pe.id===z.id))!=null&&ie.delete||Pt.dismiss(z.id),ee.filter(({id:pe})=>pe!==z.id)})},[]);return G.useEffect(()=>Pt.subscribe(z=>{if(z.dismiss){q(ee=>ee.map(ie=>ie.id===z.id?{...ie,delete:!0}:ie));return}setTimeout(()=>{Nh.flushSync(()=>{q(ee=>{let ie=ee.findIndex(pe=>pe.id===z.id);return ie!==-1?[...ee.slice(0,ie),{...ee[ie],...z},...ee.slice(ie+1)]:[z,...ee]})})})}),[]),G.useEffect(()=>{if(b!=="system"){ze(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ze("dark"):ze("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:ee})=>{ze(ee?"dark":"light")})}catch{z.addListener(({matches:ie})=>{try{ze(ie?"dark":"light")}catch(pe){console.error(pe)}})}},[b]),G.useEffect(()=>{oe.length<=1&&le(!1)},[oe]),G.useEffect(()=>{let z=ee=>{var ie,pe;c.every(we=>ee[we]||ee.code===we)&&(le(!0),(ie=Se.current)==null||ie.focus()),ee.code==="Escape"&&(document.activeElement===Se.current||(pe=Se.current)!=null&&pe.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[c]),G.useEffect(()=>{if(Se.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,$.current=!1)}},[Se.current]),G.createElement("section",{ref:o,"aria-label":`${I} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},te.map((z,ee)=>{var ie;let[pe,we]=z.split("-");return oe.length?G.createElement("ol",{key:z,dir:M==="auto"?Sp():M,tabIndex:-1,ref:Se,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":pe,"data-lifted":ge&&oe.length>1&&!d,"data-x-position":we,style:{"--front-toast-height":`${((ie=U[0])==null?void 0:ie.height)||0}px`,"--width":`${D0}px`,"--gap":`${D}px`,...v,...V0(x,y)},onBlur:fe=>{$.current&&!fe.currentTarget.contains(fe.relatedTarget)&&($.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||$.current||($.current=!0,B.current=fe.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{ke||le(!1)},onDragEnd:()=>le(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||Oe(!0)},onPointerUp:()=>Oe(!1)},oe.filter(fe=>!fe.position&&ee===0||fe.position===z).map((fe,Ce)=>{var Re,Ze;return G.createElement(W0,{key:fe.id,icons:W,index:Ce,toast:fe,defaultRichColors:N,duration:(Re=S==null?void 0:S.duration)!=null?Re:T,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:i,visibleToasts:_,closeButton:(Ze=S==null?void 0:S.closeButton)!=null?Ze:m,interacting:ke,position:z,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:P,toasts:oe.filter(nn=>nn.position==fe.position),heights:U.filter(nn=>nn.position==fe.position),setHeights:se,expandByDefault:d,gap:D,loadingIcon:Q,expanded:ge,pauseWhenPageIsHidden:Z,swipeDirections:r.swipeDirections})})):null}))});const bp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},corpId:{zh:"企业 ID",en:"Corp ID"},agentId:{zh:"应用 Agent ID",en:"Agent ID"},appSecret:{zh:"App Secret",en:"App Secret"},markdownSupport:{zh:"Markdown 支持",en:"Markdown Support"},clientId:{zh:"Client ID",en:"Client ID"},clientSecret:{zh:"Client Secret",en:"Client Secret"},encryptKey:{zh:"加密密钥",en:"Encrypt Key"},verificationToken:{zh:"验证令牌",en:"Verification Token"},bridgeUrl:{zh:"桥接 URL",en:"Bridge URL"},gatewayUrl:{zh:"网关 URL",en:"Gateway URL"},proxy:{zh:"代理",en:"Proxy"},intents:{zh:"Intents",en:"Intents"},mode:{zh:"模式",en:"Mode"},webhookPath:{zh:"Webhook 路径",en:"Webhook Path"},callbackPort:{zh:"回调端口",en:"Callback Port"},callbackPath:{zh:"回调路径",en:"Callback Path"},groupPolicy:{zh:"群组策略",en:"Group Policy"},consentGranted:{zh:"同意条款",en:"Consent Granted"},imapHost:{zh:"IMAP 服务器",en:"IMAP Host"},imapPort:{zh:"IMAP 端口",en:"IMAP Port"},imapUsername:{zh:"IMAP 用户名",en:"IMAP Username"},imapPassword:{zh:"IMAP 密码",en:"IMAP Password"},imapMailbox:{zh:"IMAP 邮箱",en:"IMAP Mailbox"},imapUseSsl:{zh:"IMAP 使用 SSL",en:"IMAP Use SSL"},smtpHost:{zh:"SMTP 服务器",en:"SMTP Host"},smtpPort:{zh:"SMTP 端口",en:"SMTP Port"},smtpUsername:{zh:"SMTP 用户名",en:"SMTP Username"},smtpPassword:{zh:"SMTP 密码",en:"SMTP Password"},smtpUseTls:{zh:"SMTP 使用 TLS",en:"SMTP Use TLS"},smtpUseSsl:{zh:"SMTP 使用 SSL",en:"SMTP Use SSL"},fromAddress:{zh:"发件地址",en:"From Address"},autoReplyEnabled:{zh:"自动回复已启用",en:"Auto Reply Enabled"},pollIntervalSeconds:{zh:"轮询间隔(秒)",en:"Poll Interval (s)"},markSeen:{zh:"标记为已读",en:"Mark Seen"},maxBodyChars:{zh:"最大正文字符数",en:"Max Body Chars"},subjectPrefix:{zh:"主题前缀",en:"Subject Prefix"},baseUrl:{zh:"Base URL",en:"Base URL"},socketUrl:{zh:"Socket URL",en:"Socket URL"},socketPath:{zh:"Socket 路径",en:"Socket Path"},socketDisableMsgpack:{zh:"禁用 Msgpack",en:"Disable Msgpack"},socketReconnectDelayMs:{zh:"重连延迟(ms)",en:"Reconnect Delay (ms)"},socketMaxReconnectDelayMs:{zh:"最大重连延迟(ms)",en:"Max Reconnect Delay (ms)"},socketConnectTimeoutMs:{zh:"连接超时(ms)",en:"Connect Timeout (ms)"},refreshIntervalMs:{zh:"刷新间隔(ms)",en:"Refresh Interval (ms)"},watchTimeoutMs:{zh:"监视超时(ms)",en:"Watch Timeout (ms)"},watchLimit:{zh:"监视限制",en:"Watch Limit"},retryDelayMs:{zh:"重试延迟(ms)",en:"Retry Delay (ms)"},maxRetryAttempts:{zh:"最大重试次数",en:"Max Retry Attempts"},clawToken:{zh:"Claw Token",en:"Claw Token"},agentUserId:{zh:"代理用户ID",en:"Agent User ID"},sessions:{zh:"会话",en:"Sessions"},panels:{zh:"面板",en:"Panels"},mentionRequireInGroups:{zh:"群组中需要@",en:"Require Mention in Groups"},groups:{zh:"群组",en:"Groups"},replyDelayMode:{zh:"回复延迟模式",en:"Reply Delay Mode"},replyDelayMs:{zh:"回复延迟(ms)",en:"Reply Delay (ms)"},secret:{zh:"密钥",en:"Secret"},saveVerifyConnect:{zh:"保存并验证 / 连接",en:"Save & Verify / Connect"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},feishuConnecting:{zh:"验证 / 连接中...",en:"Verifying / connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSavedApplied:{zh:"配置已保存并已应用",en:"Configuration saved and applied"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},feishuVerifySuccess:{zh:"验证成功,请到飞书开放平台完成事件订阅与发布后再开始使用。",en:"Verified. Please finish Feishu event subscription and app publishing before using."},feishuVerifyFailed:{zh:"验证失败",en:"Verification failed"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function K(r,o="en"){var i,l;return((i=bp[r])==null?void 0:i[o])||((l=bp[r])==null?void 0:l.en)||r}function Ks(){return nc({queryKey:["config"],queryFn:d0,staleTime:3e4,refetchOnWindowFocus:!0})}function ic(){return nc({queryKey:["config-meta"],queryFn:f0,staleTime:1/0})}function Gs(){return nc({queryKey:["config-schema"],queryFn:p0,staleTime:1/0})}function $0(){const r=Hs();return ja({mutationFn:h0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:o=>{Sn.error(K("configSaveFailed")+": "+o.message)}})}function H0(){const r=Hs();return ja({mutationFn:({provider:o,data:i})=>m0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSaved"))},onError:o=>{Sn.error(K("configSaveFailed")+": "+o.message)}})}function K0(){const r=Hs();return ja({mutationFn:({channel:o,data:i})=>g0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sn.success(K("configSavedApplied"))},onError:o=>{Sn.error(K("configSaveFailed")+": "+o.message)}})}function G0(){return ja({mutationFn:({actionId:r,data:o})=>y0(r,o),onError:r=>{Sn.error(K("error")+": "+r.message)}})}function q0(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function en(r,o){if(!o)return;const i=q0(r),l=o[i];if(l)return l;const c=i.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const p=d.split(".");if(p.length!==c.length)continue;let x=!0;for(let y=0;y<c.length;y+=1)if(p[y]!=="*"&&p[y]!==c[y]){x=!1;break}if(x)return m}}function kp(){const{data:r,isLoading:o}=Ks(),{data:i}=Gs(),l=$0(),[c,d]=C.useState(""),[m,p]=C.useState(""),[x,y]=C.useState(8192),b=i==null?void 0:i.uiHints,N=en("agents.defaults.model",b),T=en("agents.defaults.workspace",b),v=en("agents.defaults.maxTokens",b);C.useEffect(()=>{var S;(S=r==null?void 0:r.agents)!=null&&S.defaults&&(d(r.agents.defaults.model||""),p(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192))},[r]);const _=S=>{S.preventDefault(),l.mutate({model:c})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Yt,{className:"h-8 w-32"}),h.jsx(Yt,{className:"h-4 w-48"})]}),h.jsxs($u,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Yt,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Yt,{className:"h-5 w-24"}),h.jsx(Yt,{className:"h-3 w-32"})]})]}),h.jsx(Yt,{className:"h-4 w-20 mb-2"}),h.jsx(Yt,{className:"h-10 w-full rounded-xl"})]}),h.jsxs($u,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Yt,{className:"h-5 w-24 mb-2"}),h.jsx(Yt,{className:"h-3 w-40 mb-6"}),h.jsx("div",{className:"space-y-6",children:h.jsxs("div",{children:[h.jsx(Yt,{className:"h-4 w-28 mb-3"}),h.jsx(Yt,{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 runtime limits"})]}),h.jsxs("form",{onSubmit:_,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(kh,{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(Dn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(N==null?void 0:N.label)??"Model Name"}),h.jsx(xn,{id:"model",value:c,onChange:S=>d(S.target.value),placeholder:(N==null?void 0:N.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:(N==null?void 0:N.help)??"Examples: minimax/MiniMax-M2.5 · minimax/MiniMax-M2.1 · openrouter/anthropic/claude-3.5-sonnet · openrouter/openai/gpt-4o-mini"})]})]}),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($v,{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(Dn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(T==null?void 0:T.label)??"Default Path"}),h.jsx(xn,{id:"workspace",value:m,onChange:S=>p(S.target.value),placeholder:(T==null?void 0:T.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(Yv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),h.jsx("div",{className:"grid grid-cols-1 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(Dn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:x,onChange:S=>y(parseInt(S.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(wn,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?h.jsx(Hv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function Sr(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 Cp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Ph(...r){return o=>{let i=!1;const l=r.map(c=>{const d=Cp(c,o);return!i&&typeof d=="function"&&(i=!0),d});if(i)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():Cp(r[c],null)}}}}function Zr(...r){return C.useCallback(Ph(...r),r)}function Y0(r,o){const i=C.createContext(o),l=d=>{const{children:m,...p}=d,x=C.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:x,children:m})};l.displayName=r+"Provider";function c(d){const m=C.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function X0(r,o=[]){let i=[];function l(d,m){const p=C.createContext(m),x=i.length;i=[...i,m];const y=N=>{var D;const{scope:T,children:v,..._}=N,S=((D=T==null?void 0:T[r])==null?void 0:D[x])||p,M=C.useMemo(()=>_,Object.values(_));return h.jsx(S.Provider,{value:M,children:v})};y.displayName=d+"Provider";function b(N,T){var S;const v=((S=T==null?void 0:T[r])==null?void 0:S[x])||p,_=C.useContext(v);if(_)return _;if(m!==void 0)return m;throw new Error(`\`${N}\` must be used within \`${d}\``)}return[y,b]}const c=()=>{const d=i.map(m=>C.createContext(m));return function(p){const x=(p==null?void 0:p[r])||d;return C.useMemo(()=>({[`__scope${r}`]:{...p,[r]:x}}),[p,x])}};return c.scopeName=r,[l,Z0(c,...o)]}function Z0(...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(d){const m=l.reduce((p,{useScope:x,scopeName:y})=>{const N=x(d)[`__scope${y}`];return{...p,...N}},{});return C.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var Fs=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},J0=Jp[" useId ".trim().toString()]||(()=>{}),e1=0;function Su(r){const[o,i]=C.useState(J0());return Fs(()=>{i(l=>l??String(e1++))},[r]),r||(o?`radix-${o}`:"")}var t1=Jp[" useInsertionEffect ".trim().toString()]||Fs;function n1({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,d,m]=r1({defaultProp:o,onChange:i}),p=r!==void 0,x=p?r:c;{const b=C.useRef(r!==void 0);C.useEffect(()=>{const N=b.current;N!==p&&console.warn(`${l} is changing from ${N?"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.`),b.current=p},[p,l])}const y=C.useCallback(b=>{var N;if(p){const T=o1(b)?b(r):b;T!==r&&((N=m.current)==null||N.call(m,T))}else d(b)},[p,r,d,m]);return[x,y]}function r1({defaultProp:r,onChange:o}){const[i,l]=C.useState(r),c=C.useRef(i),d=C.useRef(o);return t1(()=>{d.current=o},[o]),C.useEffect(()=>{var m;c.current!==i&&((m=d.current)==null||m.call(d,i),c.current=i)},[i,c]),[i,l,d]}function o1(r){return typeof r=="function"}function jh(r){const o=s1(r),i=C.forwardRef((l,c)=>{const{children:d,...m}=l,p=C.Children.toArray(d),x=p.find(a1);if(x){const y=x.props.children,b=p.map(N=>N===x?C.Children.count(y)>1?C.Children.only(null):C.isValidElement(y)?y.props.children:null:N);return h.jsx(o,{...m,ref:c,children:C.isValidElement(y)?C.cloneElement(y,void 0,b):null})}return h.jsx(o,{...m,ref:c,children:d})});return i.displayName=`${r}.Slot`,i}function s1(r){const o=C.forwardRef((i,l)=>{const{children:c,...d}=i;if(C.isValidElement(c)){const m=u1(c),p=l1(d,c.props);return c.type!==C.Fragment&&(p.ref=l?Ph(l,m):m),C.cloneElement(c,p)}return C.Children.count(c)>1?C.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var i1=Symbol("radix.slottable");function a1(r){return C.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===i1}function l1(r,o){const i={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?i[l]=(...p)=>{const x=d(...p);return c(...p),x}:c&&(i[l]=c):l==="style"?i[l]={...c,...d}:l==="className"&&(i[l]=[c,d].filter(Boolean).join(" "))}return{...r,...i}}function u1(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 c1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=c1.reduce((r,o)=>{const i=jh(`Primitive.${o}`),l=C.forwardRef((c,d)=>{const{asChild:m,...p}=c,x=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(x,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function d1(r,o){r&&Eh.flushSync(()=>r.dispatchEvent(o))}function Us(r){const o=C.useRef(r);return C.useEffect(()=>{o.current=r}),C.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function f1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r);C.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 p1="DismissableLayer",Ku="dismissableLayer.update",h1="dismissableLayer.pointerDownOutside",m1="dismissableLayer.focusOutside",Ep,Rh=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mh=C.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...x}=r,y=C.useContext(Rh),[b,N]=C.useState(null),T=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=C.useState({}),_=Zr(o,q=>N(q)),S=Array.from(y.layers),[M]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),D=S.indexOf(M),Q=b?S.indexOf(b):-1,W=y.layersWithOutsidePointerEventsDisabled.size>0,I=Q>=D,Z=v1(q=>{const te=q.target,U=[...y.branches].some(se=>se.contains(te));!I||U||(c==null||c(q),m==null||m(q),q.defaultPrevented||p==null||p())},T),oe=w1(q=>{const te=q.target;[...y.branches].some(se=>se.contains(te))||(d==null||d(q),m==null||m(q),q.defaultPrevented||p==null||p())},T);return f1(q=>{Q===y.layers.size-1&&(l==null||l(q),!q.defaultPrevented&&p&&(q.preventDefault(),p()))},T),C.useEffect(()=>{if(b)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Ep=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),Np(),()=>{i&&y.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Ep)}},[b,T,i,y]),C.useEffect(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),Np())},[b,y]),C.useEffect(()=>{const q=()=>v({});return document.addEventListener(Ku,q),()=>document.removeEventListener(Ku,q)},[]),h.jsx(Fn.div,{...x,ref:_,style:{pointerEvents:W?I?"auto":"none":void 0,...r.style},onFocusCapture:Sr(r.onFocusCapture,oe.onFocusCapture),onBlurCapture:Sr(r.onBlurCapture,oe.onBlurCapture),onPointerDownCapture:Sr(r.onPointerDownCapture,Z.onPointerDownCapture)})});Mh.displayName=p1;var g1="DismissableLayerBranch",y1=C.forwardRef((r,o)=>{const i=C.useContext(Rh),l=C.useRef(null),c=Zr(o,l);return C.useEffect(()=>{const d=l.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),h.jsx(Fn.div,{...r,ref:c})});y1.displayName=g1;function v1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=C.useRef(!1),c=C.useRef(()=>{});return C.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let x=function(){Th(h1,i,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=x,o.addEventListener("click",c.current,{once:!0})):x()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function w1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=C.useRef(!1);return C.useEffect(()=>{const c=d=>{d.target&&!l.current&&Th(m1,i,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Np(){const r=new CustomEvent(Ku);document.dispatchEvent(r)}function Th(r,o,i,{discrete:l}){const c=i.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?d1(c,d):c.dispatchEvent(d)}var bu="focusScope.autoFocusOnMount",ku="focusScope.autoFocusOnUnmount",Pp={bubbles:!1,cancelable:!0},x1="FocusScope",Oh=C.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[p,x]=C.useState(null),y=Us(c),b=Us(d),N=C.useRef(null),T=Zr(o,S=>x(S)),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(l){let S=function(W){if(v.paused||!p)return;const I=W.target;p.contains(I)?N.current=I:cr(N.current,{select:!0})},M=function(W){if(v.paused||!p)return;const I=W.relatedTarget;I!==null&&(p.contains(I)||cr(N.current,{select:!0}))},D=function(W){if(document.activeElement===document.body)for(const Z of W)Z.removedNodes.length>0&&cr(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",M);const Q=new MutationObserver(D);return p&&Q.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",M),Q.disconnect()}}},[l,p,v.paused]),C.useEffect(()=>{if(p){Rp.add(v);const S=document.activeElement;if(!p.contains(S)){const D=new CustomEvent(bu,Pp);p.addEventListener(bu,y),p.dispatchEvent(D),D.defaultPrevented||(S1(N1(zh(p)),{select:!0}),document.activeElement===S&&cr(p))}return()=>{p.removeEventListener(bu,y),setTimeout(()=>{const D=new CustomEvent(ku,Pp);p.addEventListener(ku,b),p.dispatchEvent(D),D.defaultPrevented||cr(S??document.body,{select:!0}),p.removeEventListener(ku,b),Rp.remove(v)},0)}}},[p,y,b,v]);const _=C.useCallback(S=>{if(!i&&!l||v.paused)return;const M=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,D=document.activeElement;if(M&&D){const Q=S.currentTarget,[W,I]=b1(Q);W&&I?!S.shiftKey&&D===I?(S.preventDefault(),i&&cr(W,{select:!0})):S.shiftKey&&D===W&&(S.preventDefault(),i&&cr(I,{select:!0})):D===Q&&S.preventDefault()}},[i,l,v.paused]);return h.jsx(Fn.div,{tabIndex:-1,...m,ref:T,onKeyDown:_})});Oh.displayName=x1;function S1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(cr(l,{select:o}),document.activeElement!==i)return}function b1(r){const o=zh(r),i=jp(o,r),l=jp(o.reverse(),r);return[i,l]}function zh(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 jp(r,o){for(const i of r)if(!k1(i,{upTo:o}))return i}function k1(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 C1(r){return r instanceof HTMLInputElement&&"select"in r}function cr(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&C1(r)&&o&&r.select()}}var Rp=E1();function E1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Mp(r,o),r.unshift(o)},remove(o){var i;r=Mp(r,o),(i=r[0])==null||i.resume()}}}function Mp(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function N1(r){return r.filter(o=>o.tagName!=="A")}var P1="Portal",_h=C.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,d]=C.useState(!1);Fs(()=>d(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Nh.createPortal(h.jsx(Fn.div,{...l,ref:o}),m):null});_h.displayName=P1;function j1(r,o){return C.useReducer((i,l)=>o[i][l]??i,r)}var Ra=r=>{const{present:o,children:i}=r,l=R1(o),c=typeof i=="function"?i({present:l.isPresent}):C.Children.only(i),d=Zr(l.ref,M1(c));return typeof i=="function"||l.isPresent?C.cloneElement(c,{ref:d}):null};Ra.displayName="Presence";function R1(r){const[o,i]=C.useState(),l=C.useRef(null),c=C.useRef(r),d=C.useRef("none"),m=r?"mounted":"unmounted",[p,x]=j1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const y=pa(l.current);d.current=p==="mounted"?y:"none"},[p]),Fs(()=>{const y=l.current,b=c.current;if(b!==r){const T=d.current,v=pa(y);r?x("MOUNT"):v==="none"||(y==null?void 0:y.display)==="none"?x("UNMOUNT"):x(b&&T!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,x]),Fs(()=>{if(o){let y;const b=o.ownerDocument.defaultView??window,N=v=>{const S=pa(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&S&&(x("ANIMATION_END"),!c.current)){const M=o.style.animationFillMode;o.style.animationFillMode="forwards",y=b.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=M)})}},T=v=>{v.target===o&&(d.current=pa(l.current))};return o.addEventListener("animationstart",T),o.addEventListener("animationcancel",N),o.addEventListener("animationend",N),()=>{b.clearTimeout(y),o.removeEventListener("animationstart",T),o.removeEventListener("animationcancel",N),o.removeEventListener("animationend",N)}}else x("ANIMATION_END")},[o,x]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:C.useCallback(y=>{l.current=y?getComputedStyle(y):null,i(y)},[])}}function pa(r){return(r==null?void 0:r.animationName)||"none"}function M1(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 Cu=0;function T1(){C.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Tp()),document.body.insertAdjacentElement("beforeend",r[1]??Tp()),Cu++,()=>{Cu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Cu--}},[])}function Tp(){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 d in i)Object.prototype.hasOwnProperty.call(i,d)&&(o[d]=i[d])}return o},vn.apply(this,arguments)};function Ih(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 O1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Sa="right-scroll-bar-position",ba="width-before-scroll-bar",z1="with-scroll-bars-hidden",_1="--removed-body-scroll-bar-size";function Eu(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function I1(r,o){var i=C.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 A1=typeof window<"u"?C.useLayoutEffect:C.useEffect,Op=new WeakMap;function D1(r,o){var i=I1(null,function(l){return r.forEach(function(c){return Eu(c,l)})});return A1(function(){var l=Op.get(i);if(l){var c=new Set(l),d=new Set(r),m=i.current;c.forEach(function(p){d.has(p)||Eu(p,null)}),d.forEach(function(p){c.has(p)||Eu(p,m)})}Op.set(i,r)},[r]),i}function L1(r){return r}function F1(r,o){o===void 0&&(o=L1);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(d){var m=o(d,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(d){for(l=!0;i.length;){var m=i;i=[],m.forEach(d)}i={push:function(p){return d(p)},filter:function(){return i}}},assignMedium:function(d){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(d),m=i}var x=function(){var b=m;m=[],b.forEach(d)},y=function(){return Promise.resolve().then(x)};y(),i={push:function(b){m.push(b),y()},filter:function(b){return m=m.filter(b),i}}}};return c}function U1(r){r===void 0&&(r={});var o=F1(null);return o.options=vn({async:!0,ssr:!1},r),o}var Ah=function(r){var o=r.sideCar,i=Ih(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 C.createElement(l,vn({},i))};Ah.isSideCarExport=!0;function B1(r,o){return r.useMedium(o),Ah}var Dh=U1(),Nu=function(){},Ma=C.forwardRef(function(r,o){var i=C.useRef(null),l=C.useState({onScrollCapture:Nu,onWheelCapture:Nu,onTouchMoveCapture:Nu}),c=l[0],d=l[1],m=r.forwardProps,p=r.children,x=r.className,y=r.removeScrollBar,b=r.enabled,N=r.shards,T=r.sideCar,v=r.noRelative,_=r.noIsolation,S=r.inert,M=r.allowPinchZoom,D=r.as,Q=D===void 0?"div":D,W=r.gapMode,I=Ih(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=T,oe=D1([i,o]),q=vn(vn({},I),c);return C.createElement(C.Fragment,null,b&&C.createElement(Z,{sideCar:Dh,removeScrollBar:y,shards:N,noRelative:v,noIsolation:_,inert:S,setCallbacks:d,allowPinchZoom:!!M,lockRef:i,gapMode:W}),m?C.cloneElement(C.Children.only(p),vn(vn({},q),{ref:oe})):C.createElement(Q,vn({},q,{className:x,ref:oe}),p))});Ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ma.classNames={fullWidth:ba,zeroRight:Sa};var W1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function V1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=W1();return o&&r.setAttribute("nonce",o),r}function Q1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function $1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var H1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=V1())&&(Q1(o,i),$1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},K1=function(){var r=H1();return function(o,i){C.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},Lh=function(){var r=K1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},G1={left:0,top:0,right:0,gap:0},Pu=function(r){return parseInt(r||"",10)||0},q1=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[Pu(i),Pu(l),Pu(c)]},Y1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return G1;var o=q1(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])}},X1=Lh(),zo="data-scroll-locked",Z1=function(r,o,i,l){var c=r.left,d=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
187
+ .`.concat(z1,` {
188
188
  overflow: hidden `).concat(l,`;
189
189
  padding-right: `).concat(p,"px ").concat(l,`;
190
190
  }
191
- body[`).concat(_o,`] {
191
+ body[`).concat(zo,`] {
192
192
  overflow: hidden `).concat(l,`;
193
193
  overscroll-behavior: contain;
194
194
  `).concat([o&&"position: relative ".concat(l,";"),i==="margin"&&`
@@ -205,7 +205,7 @@ Error generating stack: `+u.message+`
205
205
  right: `).concat(p,"px ").concat(l,`;
206
206
  }
207
207
 
208
- .`).concat(ka,` {
208
+ .`).concat(ba,` {
209
209
  margin-right: `).concat(p,"px ").concat(l,`;
210
210
  }
211
211
 
@@ -213,18 +213,18 @@ Error generating stack: `+u.message+`
213
213
  right: 0 `).concat(l,`;
214
214
  }
215
215
 
216
- .`).concat(ka," .").concat(ka,` {
216
+ .`).concat(ba," .").concat(ba,` {
217
217
  margin-right: 0 `).concat(l,`;
218
218
  }
219
219
 
220
- body[`).concat(_o,`] {
221
- `).concat(z1,": ").concat(p,`px;
220
+ body[`).concat(zo,`] {
221
+ `).concat(_1,": ").concat(p,`px;
222
222
  }
223
- `)},_p=function(){var r=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(r)?r:0},J1=function(){C.useEffect(function(){return document.body.setAttribute(_o,(_p()+1).toString()),function(){var r=_p()-1;r<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,r.toString())}},[])},ew=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;J1();var d=C.useMemo(function(){return Y1(c)},[c]);return C.createElement(X1,{styles:Z1(d,!o,c,i?"":"!important")})},Gu=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return Gu=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{Gu=!1}var Ro=Gu?{passive:!1}:!1,tw=function(r){return r.tagName==="TEXTAREA"},Fh=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!tw(r)&&i[o]==="visible")},nw=function(r){return Fh(r,"overflowY")},rw=function(r){return Fh(r,"overflowX")},zp=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Uh(r,l);if(c){var d=Bh(r,l),m=d[1],p=d[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},ow=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},sw=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Uh=function(r,o){return r==="v"?nw(o):rw(o)},Bh=function(r,o){return r==="v"?ow(o):sw(o)},iw=function(r,o){return r==="h"&&o==="rtl"?-1:1},aw=function(r,o,i,l,c){var d=iw(r,window.getComputedStyle(o).direction),m=d*l,p=i.target,x=o.contains(p),y=!1,k=m>0,N=0,T=0;do{if(!p)break;var v=Bh(r,p),z=v[0],S=v[1],M=v[2],L=S-M-d*z;(z||L)&&Uh(r,p)&&(N+=L,T+=z);var Q=p.parentNode;p=Q&&Q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Q.host:Q}while(!x&&p!==document.body||x&&(o.contains(p)||o===p));return(k&&Math.abs(N)<1||!k&&Math.abs(T)<1)&&(y=!0),y},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Ip=function(r){return[r.deltaX,r.deltaY]},Ap=function(r){return r&&"current"in r?r.current:r},lw=function(r,o){return r[0]===o[0]&&r[1]===o[1]},uw=function(r){return`
223
+ `)},zp=function(){var r=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(r)?r:0},J1=function(){C.useEffect(function(){return document.body.setAttribute(zo,(zp()+1).toString()),function(){var r=zp()-1;r<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,r.toString())}},[])},ew=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;J1();var d=C.useMemo(function(){return Y1(c)},[c]);return C.createElement(X1,{styles:Z1(d,!o,c,i?"":"!important")})},Gu=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return Gu=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{Gu=!1}var Ro=Gu?{passive:!1}:!1,tw=function(r){return r.tagName==="TEXTAREA"},Fh=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!tw(r)&&i[o]==="visible")},nw=function(r){return Fh(r,"overflowY")},rw=function(r){return Fh(r,"overflowX")},_p=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Uh(r,l);if(c){var d=Bh(r,l),m=d[1],p=d[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},ow=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},sw=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Uh=function(r,o){return r==="v"?nw(o):rw(o)},Bh=function(r,o){return r==="v"?ow(o):sw(o)},iw=function(r,o){return r==="h"&&o==="rtl"?-1:1},aw=function(r,o,i,l,c){var d=iw(r,window.getComputedStyle(o).direction),m=d*l,p=i.target,x=o.contains(p),y=!1,b=m>0,N=0,T=0;do{if(!p)break;var v=Bh(r,p),_=v[0],S=v[1],M=v[2],D=S-M-d*_;(_||D)&&Uh(r,p)&&(N+=D,T+=_);var Q=p.parentNode;p=Q&&Q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Q.host:Q}while(!x&&p!==document.body||x&&(o.contains(p)||o===p));return(b&&Math.abs(N)<1||!b&&Math.abs(T)<1)&&(y=!0),y},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Ip=function(r){return[r.deltaX,r.deltaY]},Ap=function(r){return r&&"current"in r?r.current:r},lw=function(r,o){return r[0]===o[0]&&r[1]===o[1]},uw=function(r){return`
224
224
  .block-interactivity-`.concat(r,` {pointer-events: none;}
225
225
  .allow-interactivity-`).concat(r,` {pointer-events: all;}
226
- `)},cw=0,Mo=[];function dw(r){var o=C.useRef([]),i=C.useRef([0,0]),l=C.useRef(),c=C.useState(cw++)[0],d=C.useState(Dh)[0],m=C.useRef(r);C.useEffect(function(){m.current=r},[r]),C.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var S=O1([r.lockRef.current],(r.shards||[]).map(Ap),!0).filter(Boolean);return S.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),S.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=C.useCallback(function(S,M){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!m.current.allowPinchZoom;var L=ma(S),Q=i.current,W="deltaX"in S?S.deltaX:Q[0]-L[0],I="deltaY"in S?S.deltaY:Q[1]-L[1],Z,oe=S.target,G=Math.abs(W)>Math.abs(I)?"h":"v";if("touches"in S&&G==="h"&&oe.type==="range")return!1;var te=window.getSelection(),U=te&&te.anchorNode,se=U?U===oe||U.contains(oe):!1;if(se)return!1;var ge=zp(G,oe);if(!ge)return!0;if(ge?Z=G:(Z=G==="v"?"h":"v",ge=zp(G,oe)),!ge)return!1;if(!l.current&&"changedTouches"in S&&(W||I)&&(l.current=Z),!Z)return!0;var le=l.current||Z;return aw(le,M,S,le==="h"?W:I)},[]),x=C.useCallback(function(S){var M=S;if(!(!Mo.length||Mo[Mo.length-1]!==d)){var L="deltaY"in M?Ip(M):ma(M),Q=o.current.filter(function(Z){return Z.name===M.type&&(Z.target===M.target||M.target===Z.shadowParent)&&lw(Z.delta,L)})[0];if(Q&&Q.should){M.cancelable&&M.preventDefault();return}if(!Q){var W=(m.current.shards||[]).map(Ap).filter(Boolean).filter(function(Z){return Z.contains(M.target)}),I=W.length>0?p(M,W[0]):!m.current.noIsolation;I&&M.cancelable&&M.preventDefault()}}},[]),y=C.useCallback(function(S,M,L,Q){var W={name:S,delta:M,target:L,should:Q,shadowParent:fw(L)};o.current.push(W),setTimeout(function(){o.current=o.current.filter(function(I){return I!==W})},1)},[]),k=C.useCallback(function(S){i.current=ma(S),l.current=void 0},[]),N=C.useCallback(function(S){y(S.type,Ip(S),S.target,p(S,r.lockRef.current))},[]),T=C.useCallback(function(S){y(S.type,ma(S),S.target,p(S,r.lockRef.current))},[]);C.useEffect(function(){return Mo.push(d),r.setCallbacks({onScrollCapture:N,onWheelCapture:N,onTouchMoveCapture:T}),document.addEventListener("wheel",x,Ro),document.addEventListener("touchmove",x,Ro),document.addEventListener("touchstart",k,Ro),function(){Mo=Mo.filter(function(S){return S!==d}),document.removeEventListener("wheel",x,Ro),document.removeEventListener("touchmove",x,Ro),document.removeEventListener("touchstart",k,Ro)}},[]);var v=r.removeScrollBar,z=r.inert;return C.createElement(C.Fragment,null,z?C.createElement(d,{styles:uw(c)}):null,v?C.createElement(ew,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function fw(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const pw=B1(Lh,dw);var Wh=C.forwardRef(function(r,o){return C.createElement(Ma,vn({},r,{ref:o,sideCar:pw}))});Wh.classNames=Ma.classNames;var hw=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},To=new WeakMap,ga=new WeakMap,ya={},ju=0,Vh=function(r){return r&&(r.host||Vh(r.parentNode))},mw=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Vh(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})},gw=function(r,o,i,l){var c=mw(o,Array.isArray(r)?r:[r]);ya[i]||(ya[i]=new WeakMap);var d=ya[i],m=[],p=new Set,x=new Set(c),y=function(N){!N||p.has(N)||(p.add(N),y(N.parentNode))};c.forEach(y);var k=function(N){!N||x.has(N)||Array.prototype.forEach.call(N.children,function(T){if(p.has(T))k(T);else try{var v=T.getAttribute(l),z=v!==null&&v!=="false",S=(To.get(T)||0)+1,M=(d.get(T)||0)+1;To.set(T,S),d.set(T,M),m.push(T),S===1&&z&&ga.set(T,!0),M===1&&T.setAttribute(i,"true"),z||T.setAttribute(l,"true")}catch(L){console.error("aria-hidden: cannot operate on ",T,L)}})};return k(o),p.clear(),ju++,function(){m.forEach(function(N){var T=To.get(N)-1,v=d.get(N)-1;To.set(N,T),d.set(N,v),T||(ga.has(N)||N.removeAttribute(l),ga.delete(N)),v||N.removeAttribute(i)}),ju--,ju||(To=new WeakMap,To=new WeakMap,ga=new WeakMap,ya={})}},yw=function(r,o,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=hw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),gw(l,c,i,"aria-hidden")):function(){return null}},Ta="Dialog",[Qh]=X0(Ta),[vw,tn]=Qh(Ta),$h=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,p=C.useRef(null),x=C.useRef(null),[y,k]=n1({prop:l,defaultProp:c??!1,onChange:d,caller:Ta});return h.jsx(vw,{scope:o,triggerRef:p,contentRef:x,contentId:Su(),titleId:Su(),descriptionId:Su(),open:y,onOpenChange:k,onOpenToggle:C.useCallback(()=>k(N=>!N),[k]),modal:m,children:i})};$h.displayName=Ta;var Hh="DialogTrigger",ww=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Hh,i),d=Zr(o,c.triggerRef);return h.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":uc(c.open),...l,ref:d,onClick:Sr(r.onClick,c.onOpenToggle)})});ww.displayName=Hh;var ac="DialogPortal",[xw,Kh]=Qh(ac,{forceMount:void 0}),Gh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,d=tn(ac,o);return h.jsx(xw,{scope:o,forceMount:i,children:C.Children.map(l,m=>h.jsx(Ra,{present:i||d.open,children:h.jsx(zh,{asChild:!0,container:c,children:m})}))})};Gh.displayName=ac;var Na="DialogOverlay",qh=C.forwardRef((r,o)=>{const i=Kh(Na,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(Na,r.__scopeDialog);return d.modal?h.jsx(Ra,{present:l||d.open,children:h.jsx(kw,{...c,ref:o})}):null});qh.displayName=Na;var Sw=jh("DialogOverlay.RemoveScroll"),kw=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Na,i);return h.jsx(Wh,{as:Sw,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Fn.div,{"data-state":uc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),qr="DialogContent",Yh=C.forwardRef((r,o)=>{const i=Kh(qr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(qr,r.__scopeDialog);return h.jsx(Ra,{present:l||d.open,children:d.modal?h.jsx(bw,{...c,ref:o}):h.jsx(Cw,{...c,ref:o})})});Yh.displayName=qr;var bw=C.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=C.useRef(null),c=Zr(o,i.contentRef,l);return C.useEffect(()=>{const d=l.current;if(d)return yw(d)},[]),h.jsx(Xh,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Sr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&d.preventDefault()}),onFocusOutside:Sr(r.onFocusOutside,d=>d.preventDefault())})}),Cw=C.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=C.useRef(!1),c=C.useRef(!1);return h.jsx(Xh,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var x,y;(x=r.onInteractOutside)==null||x.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((y=i.triggerRef.current)==null?void 0:y.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),Xh=C.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,p=tn(qr,i),x=C.useRef(null),y=Zr(o,x);return T1(),h.jsxs(h.Fragment,{children:[h.jsx(Oh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:h.jsx(Mh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":uc(p.open),...m,ref:y,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Ew,{titleId:p.titleId}),h.jsx(Pw,{contentRef:x,descriptionId:p.descriptionId})]})]})}),lc="DialogTitle",Zh=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(lc,i);return h.jsx(Fn.h2,{id:c.titleId,...l,ref:o})});Zh.displayName=lc;var Jh="DialogDescription",em=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Jh,i);return h.jsx(Fn.p,{id:c.descriptionId,...l,ref:o})});em.displayName=Jh;var tm="DialogClose",nm=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(tm,i);return h.jsx(Fn.button,{type:"button",...l,ref:o,onClick:Sr(r.onClick,()=>c.onOpenChange(!1))})});nm.displayName=tm;function uc(r){return r?"open":"closed"}var rm="DialogTitleWarning",[Zw,om]=Y0(rm,{contentName:qr,titleName:lc,docsSlug:"dialog"}),Ew=({titleId:r})=>{const o=om(rm),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
226
+ `)},cw=0,Mo=[];function dw(r){var o=C.useRef([]),i=C.useRef([0,0]),l=C.useRef(),c=C.useState(cw++)[0],d=C.useState(Lh)[0],m=C.useRef(r);C.useEffect(function(){m.current=r},[r]),C.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var S=O1([r.lockRef.current],(r.shards||[]).map(Ap),!0).filter(Boolean);return S.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),S.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=C.useCallback(function(S,M){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!m.current.allowPinchZoom;var D=ma(S),Q=i.current,W="deltaX"in S?S.deltaX:Q[0]-D[0],I="deltaY"in S?S.deltaY:Q[1]-D[1],Z,oe=S.target,q=Math.abs(W)>Math.abs(I)?"h":"v";if("touches"in S&&q==="h"&&oe.type==="range")return!1;var te=window.getSelection(),U=te&&te.anchorNode,se=U?U===oe||U.contains(oe):!1;if(se)return!1;var ge=_p(q,oe);if(!ge)return!0;if(ge?Z=q:(Z=q==="v"?"h":"v",ge=_p(q,oe)),!ge)return!1;if(!l.current&&"changedTouches"in S&&(W||I)&&(l.current=Z),!Z)return!0;var le=l.current||Z;return aw(le,M,S,le==="h"?W:I)},[]),x=C.useCallback(function(S){var M=S;if(!(!Mo.length||Mo[Mo.length-1]!==d)){var D="deltaY"in M?Ip(M):ma(M),Q=o.current.filter(function(Z){return Z.name===M.type&&(Z.target===M.target||M.target===Z.shadowParent)&&lw(Z.delta,D)})[0];if(Q&&Q.should){M.cancelable&&M.preventDefault();return}if(!Q){var W=(m.current.shards||[]).map(Ap).filter(Boolean).filter(function(Z){return Z.contains(M.target)}),I=W.length>0?p(M,W[0]):!m.current.noIsolation;I&&M.cancelable&&M.preventDefault()}}},[]),y=C.useCallback(function(S,M,D,Q){var W={name:S,delta:M,target:D,should:Q,shadowParent:fw(D)};o.current.push(W),setTimeout(function(){o.current=o.current.filter(function(I){return I!==W})},1)},[]),b=C.useCallback(function(S){i.current=ma(S),l.current=void 0},[]),N=C.useCallback(function(S){y(S.type,Ip(S),S.target,p(S,r.lockRef.current))},[]),T=C.useCallback(function(S){y(S.type,ma(S),S.target,p(S,r.lockRef.current))},[]);C.useEffect(function(){return Mo.push(d),r.setCallbacks({onScrollCapture:N,onWheelCapture:N,onTouchMoveCapture:T}),document.addEventListener("wheel",x,Ro),document.addEventListener("touchmove",x,Ro),document.addEventListener("touchstart",b,Ro),function(){Mo=Mo.filter(function(S){return S!==d}),document.removeEventListener("wheel",x,Ro),document.removeEventListener("touchmove",x,Ro),document.removeEventListener("touchstart",b,Ro)}},[]);var v=r.removeScrollBar,_=r.inert;return C.createElement(C.Fragment,null,_?C.createElement(d,{styles:uw(c)}):null,v?C.createElement(ew,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function fw(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const pw=B1(Dh,dw);var Wh=C.forwardRef(function(r,o){return C.createElement(Ma,vn({},r,{ref:o,sideCar:pw}))});Wh.classNames=Ma.classNames;var hw=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},To=new WeakMap,ga=new WeakMap,ya={},ju=0,Vh=function(r){return r&&(r.host||Vh(r.parentNode))},mw=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Vh(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})},gw=function(r,o,i,l){var c=mw(o,Array.isArray(r)?r:[r]);ya[i]||(ya[i]=new WeakMap);var d=ya[i],m=[],p=new Set,x=new Set(c),y=function(N){!N||p.has(N)||(p.add(N),y(N.parentNode))};c.forEach(y);var b=function(N){!N||x.has(N)||Array.prototype.forEach.call(N.children,function(T){if(p.has(T))b(T);else try{var v=T.getAttribute(l),_=v!==null&&v!=="false",S=(To.get(T)||0)+1,M=(d.get(T)||0)+1;To.set(T,S),d.set(T,M),m.push(T),S===1&&_&&ga.set(T,!0),M===1&&T.setAttribute(i,"true"),_||T.setAttribute(l,"true")}catch(D){console.error("aria-hidden: cannot operate on ",T,D)}})};return b(o),p.clear(),ju++,function(){m.forEach(function(N){var T=To.get(N)-1,v=d.get(N)-1;To.set(N,T),d.set(N,v),T||(ga.has(N)||N.removeAttribute(l),ga.delete(N)),v||N.removeAttribute(i)}),ju--,ju||(To=new WeakMap,To=new WeakMap,ga=new WeakMap,ya={})}},yw=function(r,o,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=hw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),gw(l,c,i,"aria-hidden")):function(){return null}},Ta="Dialog",[Qh]=X0(Ta),[vw,tn]=Qh(Ta),$h=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,p=C.useRef(null),x=C.useRef(null),[y,b]=n1({prop:l,defaultProp:c??!1,onChange:d,caller:Ta});return h.jsx(vw,{scope:o,triggerRef:p,contentRef:x,contentId:Su(),titleId:Su(),descriptionId:Su(),open:y,onOpenChange:b,onOpenToggle:C.useCallback(()=>b(N=>!N),[b]),modal:m,children:i})};$h.displayName=Ta;var Hh="DialogTrigger",ww=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Hh,i),d=Zr(o,c.triggerRef);return h.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":uc(c.open),...l,ref:d,onClick:Sr(r.onClick,c.onOpenToggle)})});ww.displayName=Hh;var ac="DialogPortal",[xw,Kh]=Qh(ac,{forceMount:void 0}),Gh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,d=tn(ac,o);return h.jsx(xw,{scope:o,forceMount:i,children:C.Children.map(l,m=>h.jsx(Ra,{present:i||d.open,children:h.jsx(_h,{asChild:!0,container:c,children:m})}))})};Gh.displayName=ac;var Na="DialogOverlay",qh=C.forwardRef((r,o)=>{const i=Kh(Na,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(Na,r.__scopeDialog);return d.modal?h.jsx(Ra,{present:l||d.open,children:h.jsx(bw,{...c,ref:o})}):null});qh.displayName=Na;var Sw=jh("DialogOverlay.RemoveScroll"),bw=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Na,i);return h.jsx(Wh,{as:Sw,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Fn.div,{"data-state":uc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),qr="DialogContent",Yh=C.forwardRef((r,o)=>{const i=Kh(qr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(qr,r.__scopeDialog);return h.jsx(Ra,{present:l||d.open,children:d.modal?h.jsx(kw,{...c,ref:o}):h.jsx(Cw,{...c,ref:o})})});Yh.displayName=qr;var kw=C.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=C.useRef(null),c=Zr(o,i.contentRef,l);return C.useEffect(()=>{const d=l.current;if(d)return yw(d)},[]),h.jsx(Xh,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Sr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&d.preventDefault()}),onFocusOutside:Sr(r.onFocusOutside,d=>d.preventDefault())})}),Cw=C.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=C.useRef(!1),c=C.useRef(!1);return h.jsx(Xh,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var x,y;(x=r.onInteractOutside)==null||x.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((y=i.triggerRef.current)==null?void 0:y.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),Xh=C.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,p=tn(qr,i),x=C.useRef(null),y=Zr(o,x);return T1(),h.jsxs(h.Fragment,{children:[h.jsx(Oh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:h.jsx(Mh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":uc(p.open),...m,ref:y,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Ew,{titleId:p.titleId}),h.jsx(Pw,{contentRef:x,descriptionId:p.descriptionId})]})]})}),lc="DialogTitle",Zh=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(lc,i);return h.jsx(Fn.h2,{id:c.titleId,...l,ref:o})});Zh.displayName=lc;var Jh="DialogDescription",em=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Jh,i);return h.jsx(Fn.p,{id:c.descriptionId,...l,ref:o})});em.displayName=Jh;var tm="DialogClose",nm=C.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(tm,i);return h.jsx(Fn.button,{type:"button",...l,ref:o,onClick:Sr(r.onClick,()=>c.onOpenChange(!1))})});nm.displayName=tm;function uc(r){return r?"open":"closed"}var rm="DialogTitleWarning",[Zw,om]=Y0(rm,{contentName:qr,titleName:lc,docsSlug:"dialog"}),Ew=({titleId:r})=>{const o=om(rm),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
227
227
 
228
228
  If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
229
229
 
230
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return C.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},Nw="DialogDescriptionWarning",Pw=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${om(Nw).contentName}}.`;return C.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},jw=$h,Rw=Gh,sm=qh,im=Yh,am=Zh,lm=em,Mw=nm;const um=jw,Tw=Rw,cm=C.forwardRef(({className:r,...o},i)=>h.jsx(sm,{ref:i,className:Pe("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}));cm.displayName=sm.displayName;const cc=C.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(Tw,{children:[h.jsx(cm,{}),h.jsxs(im,{ref:l,className:Pe("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(Mw,{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(Ch,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cc.displayName=im.displayName;const dc=({className:r,...o})=>h.jsx("div",{className:Pe("flex flex-col space-y-2 text-center sm:text-left",r),...o});dc.displayName="DialogHeader";const fc=({className:r,...o})=>h.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});fc.displayName="DialogFooter";const pc=C.forwardRef(({className:r,...o},i)=>h.jsx(am,{ref:i,className:Pe("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));pc.displayName=am.displayName;const hc=C.forwardRef(({className:r,...o},i)=>h.jsx(lm,{ref:i,className:Pe("text-sm text-gray-500 leading-relaxed",r),...o}));hc.displayName=lm.displayName;function Ow({maskedValue:r,isSet:o,className:i,...l}){const[c,d]=C.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(xn,{type:c?"text":"password",className:Pe("pr-20",i),placeholder:o?`${Y("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(wn,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?h.jsx(Vv,{className:"h-4 w-4"}):h.jsx(Qv,{className:"h-4 w-4"})})})]})}function _w({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,x,y)=>{const k=[...l];k[p]=[x,y],o(Object.fromEntries(k))},d=()=>{o({...r,"":""})},m=p=>{const x=l.filter((y,k)=>k!==p);o(Object.fromEntries(x))};return h.jsxs("div",{className:Pe("space-y-2",i),children:[l.map(([p,x],y)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(xn,{type:"text",value:p,onChange:k=>c(y,k.target.value,x),placeholder:Y("headerName"),className:"flex-1"}),h.jsx(xn,{type:"text",value:x,onChange:k=>c(y,p,k.target.value),placeholder:Y("headerValue"),className:"flex-1"}),h.jsx(wn,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(y),children:h.jsx(Zv,{className:"h-4 w-4 text-red-500"})})]},y)),h.jsxs(wn,{type:"button",variant:"outline",size:"sm",onClick:d,children:[h.jsx(Kv,{className:"h-4 w-4 mr-2"}),Y("add")]})]})}function zw(){const{providerModal:r,closeProviderModal:o}=Yr(),{data:i}=Ks(),{data:l}=ic(),{data:c}=Gs(),d=H0(),[m,p]=C.useState(""),[x,y]=C.useState(""),[k,N]=C.useState(null),[T,v]=C.useState("auto"),z=r.provider,S=l==null?void 0:l.providers.find(G=>G.name===z),M=z?i==null?void 0:i.providers[z]:null,L=c==null?void 0:c.uiHints,Q=z?en(`providers.${z}.apiKey`,L):void 0,W=z?en(`providers.${z}.apiBase`,L):void 0,I=z?en(`providers.${z}.extraHeaders`,L):void 0,Z=z?en(`providers.${z}.wireApi`,L):void 0;C.useEffect(()=>{if(M){y(M.apiBase||(S==null?void 0:S.defaultApiBase)||""),N(M.extraHeaders||null),p("");const G=M.wireApi||(S==null?void 0:S.defaultWireApi)||"auto";v(G)}},[M,S]);const oe=G=>{G.preventDefault();const te={};if(m!==""&&(te.apiKey=m),x&&x!==(S==null?void 0:S.defaultApiBase)&&(te.apiBase=x),k&&Object.keys(k).length>0&&(te.extraHeaders=k),S!=null&&S.supportsWireApi){const U=(M==null?void 0:M.wireApi)||S.defaultWireApi||"auto";T!==U&&(te.wireApi=T)}z&&d.mutate({provider:z,data:te},{onSuccess:()=>o()})};return h.jsx(um,{open:r.open,onOpenChange:o,children:h.jsxs(cc,{className:"sm:max-w-[500px]",children:[h.jsx(dc,{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(Ea,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(pc,{children:(S==null?void 0:S.displayName)||z}),h.jsx(hc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:oe,className:"flex flex-col pt-2",children:[h.jsxs("div",{className:"space-y-5 max-h-[60vh] overflow-y-auto pr-1",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Ln,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}),(Q==null?void 0:Q.label)??Y("apiKey")]}),h.jsx(Ow,{id:"apiKey",value:m,isSet:M==null?void 0:M.apiKeySet,onChange:G=>p(G.target.value),placeholder:M!=null&&M.apiKeySet?Y("apiKeySet"):(Q==null?void 0:Q.placeholder)??"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Ln,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Sh,{className:"h-3.5 w-3.5 text-gray-500"}),(W==null?void 0:W.label)??Y("apiBase")]}),h.jsx(xn,{id:"apiBase",type:"text",value:x,onChange:G=>y(G.target.value),placeholder:(S==null?void 0:S.defaultApiBase)||(W==null?void 0:W.placeholder)||"https://api.example.com",className:"rounded-xl"}),(W==null?void 0:W.help)&&h.jsx("p",{className:"text-xs text-gray-500",children:W.help})]}),(S==null?void 0:S.supportsWireApi)&&h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Ln,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}),(Z==null?void 0:Z.label)??Y("wireApi")]}),h.jsx("select",{id:"wireApi",value:T,onChange:G=>v(G.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(S.wireApiOptions||["auto","chat","responses"]).map(G=>h.jsx("option",{value:G,children:Y(G==="chat"?"wireApiChat":G==="responses"?"wireApiResponses":"wireApiAuto")},G))})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Ln,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}),(I==null?void 0:I.label)??Y("extraHeaders")]}),h.jsx(_w,{value:k,onChange:N})]})]}),h.jsxs(fc,{className:"pt-4 flex-shrink-0",children:[h.jsx(wn,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(wn,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":Y("save")})]})]})]})})}function dm({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Pe("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Pe("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&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 fm({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[d,m]=C.useState(!1),p=!!o&&!d;return h.jsx("div",{className:Pe("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Pe("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 Iw={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"},Aw={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 pm(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function Lw(r){return pm(Iw,r)}function Dw(r){return pm(Aw,r)}function Fw(){const{data:r}=Ks(),{data:o}=ic(),{data:i}=Gs(),{openProviderModal:l}=Yr(),[c,d]=C.useState("installed"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const p=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(y=>r.providers[y].apiKeySet).length:0},{id:"all",label:"All Providers"}],x=c==="installed"?o.providers.filter(y=>{var k;return(k=r.providers[y.name])==null?void 0:k.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(dm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(y=>{const k=r.providers[y.name],N=k==null?void 0:k.apiKeySet,T=en(`providers.${y.name}`,m),v=(T==null?void 0:T.help)||"Configure AI services for your agents";return h.jsxs("div",{className:Pe("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(fm,{name:y.name,src:Lw(y.name),className:Pe("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Pe("text-lg font-bold uppercase",N?"text-gray-900":"text-gray-500"),children:y.name[0]})}),N?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(Uv,{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(kh,{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:y.displayName||y.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),h.jsx("div",{className:"mt-4 pt-3",children:h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Add Provider",h.jsx(xh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},y.name)})}),x.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(Ea,{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(zw,{})]})}const hm=C.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Pe("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:Pe("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")})}));hm.displayName="Switch";function Uw({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,d]=C.useState(""),m=x=>{x.key==="Enter"&&c.trim()?(x.preventDefault(),o([...r,c.trim()]),d("")):x.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=x=>{o(r.filter((y,k)=>k!==x))};return h.jsxs("div",{className:Pe("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((x,y)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[x,h.jsx("button",{type:"button",onClick:()=>p(y),className:"hover:text-red-300 transition-colors",children:h.jsx(Ch,{className:"h-3 w-3"})})]},y)),h.jsx("input",{type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Bw=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(Sh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(oc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx(Xv,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(kh,{className:"h-3.5 w-3.5 text-gray-500"}),Ww={telegram:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"proxy",type:"text",label:Y("proxy")}],discord:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"gatewayUrl",type:"text",label:Y("gatewayUrl")},{name:"intents",type:"number",label:Y("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"bridgeUrl",type:"text",label:Y("bridgeUrl")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"appSecret",type:"password",label:Y("appSecret")},{name:"encryptKey",type:"password",label:Y("encryptKey")},{name:"verificationToken",type:"password",label:Y("verificationToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"clientId",type:"text",label:Y("clientId")},{name:"clientSecret",type:"password",label:Y("clientSecret")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"mode",type:"text",label:Y("mode")},{name:"webhookPath",type:"text",label:Y("webhookPath")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"botToken",type:"password",label:Y("botToken")},{name:"appToken",type:"password",label:Y("appToken")}],email:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"consentGranted",type:"boolean",label:Y("consentGranted")},{name:"imapHost",type:"text",label:Y("imapHost")},{name:"imapPort",type:"number",label:Y("imapPort")},{name:"imapUsername",type:"text",label:Y("imapUsername")},{name:"imapPassword",type:"password",label:Y("imapPassword")},{name:"fromAddress",type:"email",label:Y("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"baseUrl",type:"text",label:Y("baseUrl")},{name:"clawToken",type:"password",label:Y("clawToken")},{name:"agentUserId",type:"text",label:Y("agentUserId")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"secret",type:"password",label:Y("appSecret")},{name:"markdownSupport",type:"boolean",label:Y("markdownSupport")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}]},Lp={telegram:wa,slack:wa,email:oc,default:wa},Dp={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 Pa(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function mm(r,o){const i={...r};for(const[l,c]of Object.entries(o)){const d=i[l];if(Pa(d)&&Pa(c)){i[l]=mm(d,c);continue}i[l]=c}return i}function Vw(r,o){const i=r.split("."),l={};let c=l;for(let d=0;d<i.length-1;d+=1){const m=i[d];c[m]={},c=c[m]}return c[i[i.length-1]]=o,l}function Qw(){var G,te;const{channelModal:r,closeChannelModal:o}=Yr(),{data:i}=Ks(),{data:l}=Gs(),c=K0(),d=G0(),[m,p]=C.useState({}),[x,y]=C.useState(null),k=r.channel,N=k?i==null?void 0:i.channels[k]:null,T=k?Ww[k]:[],v=l==null?void 0:l.uiHints,z=k?`channels.${k}`:null,S=((G=l==null?void 0:l.actions)==null?void 0:G.filter(U=>U.scope===z))??[],M=k&&(((te=en(`channels.${k}`,v))==null?void 0:te.label)??k);C.useEffect(()=>{p(N?{...N}:{})},[N,k]);const L=(U,se)=>{p(ge=>({...ge,[U]:se}))},Q=U=>{U.preventDefault(),k&&c.mutate({channel:k,data:m},{onSuccess:()=>o()})},W=U=>{if(!U||!k)return;const se=U.channels;if(!Pa(se))return;const ge=se[k];Pa(ge)&&p(le=>mm(le,ge))},I=async U=>{if(!(!k||!z)){y(U.id);try{let se={...m};U.saveBeforeRun&&(se={...se,...U.savePatch??{}},p(se),await c.mutateAsync({channel:k,data:se}));const ge=await d.mutateAsync({actionId:U.id,data:{scope:z,draftConfig:Vw(z,se)}});W(ge.patch),ge.ok?Sn.success(ge.message||Y("success")):Sn.error(ge.message||Y("error"))}catch(se){const ge=se instanceof Error?se.message:String(se);Sn.error(`${Y("error")}: ${ge}`)}finally{y(null)}}},Z=Lp[k||""]||Lp.default,oe=Dp[k||""]||Dp.default;return h.jsx(um,{open:r.open,onOpenChange:o,children:h.jsxs(cc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(dc,{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 ${oe} flex items-center justify-center`,children:h.jsx(Z,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(pc,{className:"capitalize",children:M}),h.jsx(hc,{children:"Configure message channel parameters"})]})]})}),h.jsxs("form",{onSubmit:Q,className:"flex flex-col flex-1 overflow-hidden",children:[h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:T.map(U=>{const se=k?en(`channels.${k}.${U.name}`,v):void 0,ge=(se==null?void 0:se.label)??U.label,le=se==null?void 0:se.placeholder;return h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Ln,{htmlFor:U.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Bw(U.name),ge]}),U.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:m[U.name]?Y("enabled"):Y("disabled")}),h.jsx(hm,{id:U.name,checked:m[U.name]||!1,onCheckedChange:be=>L(U.name,be),className:"data-[state=checked]:bg-emerald-500"})]}),(U.type==="text"||U.type==="email")&&h.jsx(xn,{id:U.name,type:U.type,value:m[U.name]||"",onChange:be=>L(U.name,be.target.value),placeholder:le,className:"rounded-xl"}),U.type==="password"&&h.jsx(xn,{id:U.name,type:"password",value:m[U.name]||"",onChange:be=>L(U.name,be.target.value),placeholder:le??"Leave blank to keep unchanged",className:"rounded-xl"}),U.type==="number"&&h.jsx(xn,{id:U.name,type:"number",value:m[U.name]||0,onChange:be=>L(U.name,parseInt(be.target.value)||0),placeholder:le,className:"rounded-xl"}),U.type==="tags"&&h.jsx(Uw,{value:m[U.name]||[],onChange:be=>L(U.name,be)})]},U.name)})}),h.jsxs(fc,{className:"pt-4 flex-shrink-0",children:[h.jsx(wn,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(wn,{type:"submit",disabled:c.isPending||!!x,children:c.isPending?"Saving...":Y("save")}),S.filter(U=>U.trigger==="manual").map(U=>h.jsx(wn,{type:"button",onClick:()=>I(U),disabled:c.isPending||!!x,variant:"secondary",children:x===U.id?Y("connecting"):U.title},U.id))]})]})]})})}const Fp={telegram:wa,slack:qv,email:oc,webhook:Fv,default:sc},$w={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 Hw(){const{data:r}=Ks(),{data:o}=ic(),{data:i}=Gs(),{openChannelModal:l}=Yr(),[c,d]=C.useState("active"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const p=[{id:"active",label:"Enabled",count:o.channels.filter(y=>{var k;return(k=r.channels[y.name])==null?void 0:k.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],x=o.channels.filter(y=>{var N;const k=((N=r.channels[y.name])==null?void 0:N.enabled)||!1;return c==="all"||k});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(dm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(y=>{const k=r.channels[y.name],N=(k==null?void 0:k.enabled)||!1,T=Fp[y.name]||Fp.default,v=en(`channels.${y.name}`,m),z=(v==null?void 0:v.help)||$w[y.name]||"Configure this communication channel";return h.jsxs("div",{className:Pe("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(fm,{name:y.name,src:Dw(y.name),className:Pe("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(T,{className:"h-6 w-6"})}),N?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(Jv,{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(Gv,{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:y.displayName||y.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:z})]}),h.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Enable",h.jsx(xh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.tutorialUrl&&h.jsx("a",{href:y.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:S=>S.stopPropagation(),className:"flex items-center justify-center h-7 w-7 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors",title:"View Guide",children:h.jsx(Wv,{className:"h-3.5 w-3.5"})})]})]},y.name)})}),x.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(sc,{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(Qw,{})]})}class Kw{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 Gw(r){const[o,i]=C.useState(null),{setConnectionStatus:l}=Yr();return C.useEffect(()=>{const c=(()=>{const m=xa==null?void 0:xa.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),d=new Kw(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),i(d),()=>d.disconnect()},[l,r]),o}const Up=new By({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function qw(){const{activeTab:r}=Yr();Gw(Up);const o=()=>{switch(r){case"model":return h.jsx(bp,{});case"providers":return h.jsx(Fw,{});case"channels":return h.jsx(Hw,{});default:return h.jsx(bp,{})}};return h.jsxs(Wy,{client:Up,children:[h.jsx(n0,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(Q0,{position:"top-right",richColors:!0})]})}yy.createRoot(document.getElementById("root")).render(h.jsx(C.StrictMode,{children:h.jsx(qw,{})}));
230
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return C.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},Nw="DialogDescriptionWarning",Pw=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${om(Nw).contentName}}.`;return C.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},jw=$h,Rw=Gh,sm=qh,im=Yh,am=Zh,lm=em,Mw=nm;const um=jw,Tw=Rw,cm=C.forwardRef(({className:r,...o},i)=>h.jsx(sm,{ref:i,className:Pe("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}));cm.displayName=sm.displayName;const cc=C.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(Tw,{children:[h.jsx(cm,{}),h.jsxs(im,{ref:l,className:Pe("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(Mw,{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(Ch,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cc.displayName=im.displayName;const dc=({className:r,...o})=>h.jsx("div",{className:Pe("flex flex-col space-y-2 text-center sm:text-left",r),...o});dc.displayName="DialogHeader";const fc=({className:r,...o})=>h.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});fc.displayName="DialogFooter";const pc=C.forwardRef(({className:r,...o},i)=>h.jsx(am,{ref:i,className:Pe("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));pc.displayName=am.displayName;const hc=C.forwardRef(({className:r,...o},i)=>h.jsx(lm,{ref:i,className:Pe("text-sm text-gray-500 leading-relaxed",r),...o}));hc.displayName=lm.displayName;function Ow({maskedValue:r,isSet:o,className:i,...l}){const[c,d]=C.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(xn,{type:c?"text":"password",className:Pe("pr-20",i),placeholder:o?`${K("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(wn,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?h.jsx(Vv,{className:"h-4 w-4"}):h.jsx(Qv,{className:"h-4 w-4"})})})]})}function zw({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,x,y)=>{const b=[...l];b[p]=[x,y],o(Object.fromEntries(b))},d=()=>{o({...r,"":""})},m=p=>{const x=l.filter((y,b)=>b!==p);o(Object.fromEntries(x))};return h.jsxs("div",{className:Pe("space-y-2",i),children:[l.map(([p,x],y)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(xn,{type:"text",value:p,onChange:b=>c(y,b.target.value,x),placeholder:K("headerName"),className:"flex-1"}),h.jsx(xn,{type:"text",value:x,onChange:b=>c(y,p,b.target.value),placeholder:K("headerValue"),className:"flex-1"}),h.jsx(wn,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(y),children:h.jsx(Zv,{className:"h-4 w-4 text-red-500"})})]},y)),h.jsxs(wn,{type:"button",variant:"outline",size:"sm",onClick:d,children:[h.jsx(Kv,{className:"h-4 w-4 mr-2"}),K("add")]})]})}function _w(){const{providerModal:r,closeProviderModal:o}=Yr(),{data:i}=Ks(),{data:l}=ic(),{data:c}=Gs(),d=H0(),[m,p]=C.useState(""),[x,y]=C.useState(""),[b,N]=C.useState(null),[T,v]=C.useState("auto"),_=r.provider,S=l==null?void 0:l.providers.find(q=>q.name===_),M=_?i==null?void 0:i.providers[_]:null,D=c==null?void 0:c.uiHints,Q=_?en(`providers.${_}.apiKey`,D):void 0,W=_?en(`providers.${_}.apiBase`,D):void 0,I=_?en(`providers.${_}.extraHeaders`,D):void 0,Z=_?en(`providers.${_}.wireApi`,D):void 0;C.useEffect(()=>{if(M){y(M.apiBase||(S==null?void 0:S.defaultApiBase)||""),N(M.extraHeaders||null),p("");const q=M.wireApi||(S==null?void 0:S.defaultWireApi)||"auto";v(q)}},[M,S]);const oe=q=>{q.preventDefault();const te={};if(m!==""&&(te.apiKey=m),x&&x!==(S==null?void 0:S.defaultApiBase)&&(te.apiBase=x),b&&Object.keys(b).length>0&&(te.extraHeaders=b),S!=null&&S.supportsWireApi){const U=(M==null?void 0:M.wireApi)||S.defaultWireApi||"auto";T!==U&&(te.wireApi=T)}_&&d.mutate({provider:_,data:te},{onSuccess:()=>o()})};return h.jsx(um,{open:r.open,onOpenChange:o,children:h.jsxs(cc,{className:"sm:max-w-[500px]",children:[h.jsx(dc,{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(Ea,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(pc,{children:(S==null?void 0:S.displayName)||_}),h.jsx(hc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:oe,className:"flex flex-col pt-2",children:[h.jsxs("div",{className:"space-y-5 max-h-[60vh] overflow-y-auto pr-1",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Dn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}),(Q==null?void 0:Q.label)??K("apiKey")]}),h.jsx(Ow,{id:"apiKey",value:m,isSet:M==null?void 0:M.apiKeySet,onChange:q=>p(q.target.value),placeholder:M!=null&&M.apiKeySet?K("apiKeySet"):(Q==null?void 0:Q.placeholder)??"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Dn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Sh,{className:"h-3.5 w-3.5 text-gray-500"}),(W==null?void 0:W.label)??K("apiBase")]}),h.jsx(xn,{id:"apiBase",type:"text",value:x,onChange:q=>y(q.target.value),placeholder:(S==null?void 0:S.defaultApiBase)||(W==null?void 0:W.placeholder)||"https://api.example.com",className:"rounded-xl"}),(W==null?void 0:W.help)&&h.jsx("p",{className:"text-xs text-gray-500",children:W.help})]}),(S==null?void 0:S.supportsWireApi)&&h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Dn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}),(Z==null?void 0:Z.label)??K("wireApi")]}),h.jsx("select",{id:"wireApi",value:T,onChange:q=>v(q.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(S.wireApiOptions||["auto","chat","responses"]).map(q=>h.jsx("option",{value:q,children:K(q==="chat"?"wireApiChat":q==="responses"?"wireApiResponses":"wireApiAuto")},q))})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Dn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}),(I==null?void 0:I.label)??K("extraHeaders")]}),h.jsx(zw,{value:b,onChange:N})]})]}),h.jsxs(fc,{className:"pt-4 flex-shrink-0",children:[h.jsx(wn,{type:"button",variant:"outline",onClick:o,children:K("cancel")}),h.jsx(wn,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":K("save")})]})]})]})})}function dm({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Pe("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Pe("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&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 fm({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[d,m]=C.useState(!1),p=!!o&&!d;return h.jsx("div",{className:Pe("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Pe("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 Iw={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"},Aw={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",wecom:"wecom.svg",mochat:"mochat.svg",email:"email.svg"};function pm(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function Dw(r){return pm(Iw,r)}function Lw(r){return pm(Aw,r)}function Fw(){const{data:r}=Ks(),{data:o}=ic(),{data:i}=Gs(),{openProviderModal:l}=Yr(),[c,d]=C.useState("installed"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const p=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(y=>r.providers[y].apiKeySet).length:0},{id:"all",label:"All Providers"}],x=c==="installed"?o.providers.filter(y=>{var b;return(b=r.providers[y.name])==null?void 0:b.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(dm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(y=>{const b=r.providers[y.name],N=b==null?void 0:b.apiKeySet,T=en(`providers.${y.name}`,m),v=(T==null?void 0:T.help)||"Configure AI services for your agents";return h.jsxs("div",{className:Pe("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(fm,{name:y.name,src:Dw(y.name),className:Pe("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Pe("text-lg font-bold uppercase",N?"text-gray-900":"text-gray-500"),children:y.name[0]})}),N?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(Uv,{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(bh,{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:y.displayName||y.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),h.jsx("div",{className:"mt-4 pt-3",children:h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Add Provider",h.jsx(xh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},y.name)})}),x.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(Ea,{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(_w,{})]})}const hm=C.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Pe("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:Pe("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")})}));hm.displayName="Switch";function Uw({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,d]=C.useState(""),m=x=>{x.key==="Enter"&&c.trim()?(x.preventDefault(),o([...r,c.trim()]),d("")):x.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=x=>{o(r.filter((y,b)=>b!==x))};return h.jsxs("div",{className:Pe("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((x,y)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[x,h.jsx("button",{type:"button",onClick:()=>p(y),className:"hover:text-red-300 transition-colors",children:h.jsx(Ch,{className:"h-3 w-3"})})]},y)),h.jsx("input",{type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Bw=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(Sh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(oc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(Qu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx(Xv,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(bh,{className:"h-3.5 w-3.5 text-gray-500"}),Ww={telegram:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"token",type:"password",label:K("botToken")},{name:"allowFrom",type:"tags",label:K("allowFrom")},{name:"proxy",type:"text",label:K("proxy")}],discord:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"token",type:"password",label:K("botToken")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"allowFrom",type:"tags",label:K("allowFrom")},{name:"gatewayUrl",type:"text",label:K("gatewayUrl")},{name:"intents",type:"number",label:K("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"bridgeUrl",type:"text",label:K("bridgeUrl")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"appId",type:"text",label:K("appId")},{name:"appSecret",type:"password",label:K("appSecret")},{name:"encryptKey",type:"password",label:K("encryptKey")},{name:"verificationToken",type:"password",label:K("verificationToken")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"clientId",type:"text",label:K("clientId")},{name:"clientSecret",type:"password",label:K("clientSecret")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"corpId",type:"text",label:K("corpId")},{name:"agentId",type:"text",label:K("agentId")},{name:"secret",type:"password",label:K("secret")},{name:"token",type:"password",label:K("token")},{name:"callbackPort",type:"number",label:K("callbackPort")},{name:"callbackPath",type:"text",label:K("callbackPath")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"mode",type:"text",label:K("mode")},{name:"webhookPath",type:"text",label:K("webhookPath")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"botToken",type:"password",label:K("botToken")},{name:"appToken",type:"password",label:K("appToken")}],email:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"consentGranted",type:"boolean",label:K("consentGranted")},{name:"imapHost",type:"text",label:K("imapHost")},{name:"imapPort",type:"number",label:K("imapPort")},{name:"imapUsername",type:"text",label:K("imapUsername")},{name:"imapPassword",type:"password",label:K("imapPassword")},{name:"fromAddress",type:"email",label:K("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"baseUrl",type:"text",label:K("baseUrl")},{name:"clawToken",type:"password",label:K("clawToken")},{name:"agentUserId",type:"text",label:K("agentUserId")},{name:"allowFrom",type:"tags",label:K("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:K("enabled")},{name:"appId",type:"text",label:K("appId")},{name:"secret",type:"password",label:K("appSecret")},{name:"markdownSupport",type:"boolean",label:K("markdownSupport")},{name:"allowFrom",type:"tags",label:K("allowFrom")}]},Dp={telegram:wa,slack:wa,email:oc,default:wa},Lp={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 Pa(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function mm(r,o){const i={...r};for(const[l,c]of Object.entries(o)){const d=i[l];if(Pa(d)&&Pa(c)){i[l]=mm(d,c);continue}i[l]=c}return i}function Vw(r,o){const i=r.split("."),l={};let c=l;for(let d=0;d<i.length-1;d+=1){const m=i[d];c[m]={},c=c[m]}return c[i[i.length-1]]=o,l}function Qw(){var q,te;const{channelModal:r,closeChannelModal:o}=Yr(),{data:i}=Ks(),{data:l}=Gs(),c=K0(),d=G0(),[m,p]=C.useState({}),[x,y]=C.useState(null),b=r.channel,N=b?i==null?void 0:i.channels[b]:null,T=b?Ww[b]:[],v=l==null?void 0:l.uiHints,_=b?`channels.${b}`:null,S=((q=l==null?void 0:l.actions)==null?void 0:q.filter(U=>U.scope===_))??[],M=b&&(((te=en(`channels.${b}`,v))==null?void 0:te.label)??b);C.useEffect(()=>{p(N?{...N}:{})},[N,b]);const D=(U,se)=>{p(ge=>({...ge,[U]:se}))},Q=U=>{U.preventDefault(),b&&c.mutate({channel:b,data:m},{onSuccess:()=>o()})},W=U=>{if(!U||!b)return;const se=U.channels;if(!Pa(se))return;const ge=se[b];Pa(ge)&&p(le=>mm(le,ge))},I=async U=>{if(!(!b||!_)){y(U.id);try{let se={...m};U.saveBeforeRun&&(se={...se,...U.savePatch??{}},p(se),await c.mutateAsync({channel:b,data:se}));const ge=await d.mutateAsync({actionId:U.id,data:{scope:_,draftConfig:Vw(_,se)}});W(ge.patch),ge.ok?Sn.success(ge.message||K("success")):Sn.error(ge.message||K("error"))}catch(se){const ge=se instanceof Error?se.message:String(se);Sn.error(`${K("error")}: ${ge}`)}finally{y(null)}}},Z=Dp[b||""]||Dp.default,oe=Lp[b||""]||Lp.default;return h.jsx(um,{open:r.open,onOpenChange:o,children:h.jsxs(cc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(dc,{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 ${oe} flex items-center justify-center`,children:h.jsx(Z,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(pc,{className:"capitalize",children:M}),h.jsx(hc,{children:"Configure message channel parameters"})]})]})}),h.jsxs("form",{onSubmit:Q,className:"flex flex-col flex-1 overflow-hidden",children:[h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:T.map(U=>{const se=b?en(`channels.${b}.${U.name}`,v):void 0,ge=(se==null?void 0:se.label)??U.label,le=se==null?void 0:se.placeholder;return h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(Dn,{htmlFor:U.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Bw(U.name),ge]}),U.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:m[U.name]?K("enabled"):K("disabled")}),h.jsx(hm,{id:U.name,checked:m[U.name]||!1,onCheckedChange:ke=>D(U.name,ke),className:"data-[state=checked]:bg-emerald-500"})]}),(U.type==="text"||U.type==="email")&&h.jsx(xn,{id:U.name,type:U.type,value:m[U.name]||"",onChange:ke=>D(U.name,ke.target.value),placeholder:le,className:"rounded-xl"}),U.type==="password"&&h.jsx(xn,{id:U.name,type:"password",value:m[U.name]||"",onChange:ke=>D(U.name,ke.target.value),placeholder:le??"Leave blank to keep unchanged",className:"rounded-xl"}),U.type==="number"&&h.jsx(xn,{id:U.name,type:"number",value:m[U.name]||0,onChange:ke=>D(U.name,parseInt(ke.target.value)||0),placeholder:le,className:"rounded-xl"}),U.type==="tags"&&h.jsx(Uw,{value:m[U.name]||[],onChange:ke=>D(U.name,ke)})]},U.name)})}),h.jsxs(fc,{className:"pt-4 flex-shrink-0",children:[h.jsx(wn,{type:"button",variant:"outline",onClick:o,children:K("cancel")}),h.jsx(wn,{type:"submit",disabled:c.isPending||!!x,children:c.isPending?"Saving...":K("save")}),S.filter(U=>U.trigger==="manual").map(U=>h.jsx(wn,{type:"button",onClick:()=>I(U),disabled:c.isPending||!!x,variant:"secondary",children:x===U.id?K("connecting"):U.title},U.id))]})]})]})})}const Fp={telegram:wa,slack:qv,email:oc,webhook:Fv,default:sc},$w={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 Hw(){const{data:r}=Ks(),{data:o}=ic(),{data:i}=Gs(),{openChannelModal:l}=Yr(),[c,d]=C.useState("active"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const p=[{id:"active",label:"Enabled",count:o.channels.filter(y=>{var b;return(b=r.channels[y.name])==null?void 0:b.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],x=o.channels.filter(y=>{var N;const b=((N=r.channels[y.name])==null?void 0:N.enabled)||!1;return c==="all"||b});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(dm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(y=>{const b=r.channels[y.name],N=(b==null?void 0:b.enabled)||!1,T=Fp[y.name]||Fp.default,v=en(`channels.${y.name}`,m),_=(v==null?void 0:v.help)||$w[y.name]||"Configure this communication channel";return h.jsxs("div",{className:Pe("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(fm,{name:y.name,src:Lw(y.name),className:Pe("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(T,{className:"h-6 w-6"})}),N?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(Jv,{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(Gv,{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:y.displayName||y.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:_})]}),h.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[N?"Configure":"Enable",h.jsx(xh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.tutorialUrl&&h.jsx("a",{href:y.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:S=>S.stopPropagation(),className:"flex items-center justify-center h-7 w-7 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors",title:"View Guide",children:h.jsx(Wv,{className:"h-3.5 w-3.5"})})]})]},y.name)})}),x.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(sc,{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(Qw,{})]})}class Kw{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 Gw(r){const[o,i]=C.useState(null),{setConnectionStatus:l}=Yr();return C.useEffect(()=>{const c=(()=>{const m=xa==null?void 0:xa.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),d=new Kw(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),i(d),()=>d.disconnect()},[l,r]),o}const Up=new By({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function qw(){const{activeTab:r}=Yr();Gw(Up);const o=()=>{switch(r){case"model":return h.jsx(kp,{});case"providers":return h.jsx(Fw,{});case"channels":return h.jsx(Hw,{});default:return h.jsx(kp,{})}};return h.jsxs(Wy,{client:Up,children:[h.jsx(n0,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(Q0,{position:"top-right",richColors:!0})]})}yy.createRoot(document.getElementById("root")).render(h.jsx(C.StrictMode,{children:h.jsx(qw,{})}));