@tronsfey/ucli-server 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/README.zh.md +4 -0
- package/dist/admin-ui/{dist/assets/index-CppEl63e.css → assets/index-4l6VyZrV.css} +1 -1
- package/dist/admin-ui/assets/index-DvKqWW2H.js +117 -0
- package/dist/admin-ui/index.html +2 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/mcp/mcp.service.d.ts.map +1 -1
- package/dist/mcp/mcp.service.js +2 -0
- package/dist/mcp/mcp.service.js.map +1 -1
- package/dist/oas/oas.service.d.ts.map +1 -1
- package/dist/oas/oas.service.js +2 -0
- package/dist/oas/oas.service.js.map +1 -1
- package/package.json +4 -3
- package/dist/admin-ui/assets/index-BjdBylCY.css +0 -1
- package/dist/admin-ui/assets/index-CDwKIMTJ.js +0 -117
- package/dist/admin-ui/dist/assets/index-BjdBylCY.css +0 -1
- package/dist/admin-ui/dist/assets/index-CDwKIMTJ.js +0 -117
- package/dist/admin-ui/dist/assets/index-DBkeGfMQ.js +0 -117
- package/dist/admin-ui/dist/assets/index-ss5EmsBH.js +0 -117
- package/dist/admin-ui/dist/assets/remixicon-B25hvfAs.eot +0 -0
- package/dist/admin-ui/dist/assets/remixicon-BTtOSOPh.svg +0 -9709
- package/dist/admin-ui/dist/assets/remixicon-CZw4FkzQ.woff2 +0 -0
- package/dist/admin-ui/dist/assets/remixicon-S6an_USy.woff +0 -0
- package/dist/admin-ui/dist/assets/remixicon-sqouR8Ox.ttf +0 -0
- package/dist/admin-ui/dist/index.html +0 -14
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
function Ox(n,r){for(var s=0;s<r.length;s++){const i=r[s];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in n)){const u=Object.getOwnPropertyDescriptor(i,a);u&&Object.defineProperty(n,a,u.get?u:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function s(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(a){if(a.ep)return;a.ep=!0;const u=s(a);fetch(a.href,u)}})();function lh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hu={exports:{}},_s={},Ku={exports:{}},Re={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Hp;function _x(){if(Hp)return Re;Hp=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=w&&O[w]||O["@@iterator"],typeof O=="function"?O:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function C(O,z,re){this.props=O,this.context=z,this.refs=S,this.updater=re||E}C.prototype.isReactComponent={},C.prototype.setState=function(O,z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,z,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function T(){}T.prototype=C.prototype;function k(O,z,re){this.props=O,this.context=z,this.refs=S,this.updater=re||E}var j=k.prototype=new T;j.constructor=k,N(j,C.prototype),j.isPureReactComponent=!0;var L=Array.isArray,B=Object.prototype.hasOwnProperty,V={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function ie(O,z,re){var oe,he={},xe=null,Q=null;if(z!=null)for(oe in z.ref!==void 0&&(Q=z.ref),z.key!==void 0&&(xe=""+z.key),z)B.call(z,oe)&&!$.hasOwnProperty(oe)&&(he[oe]=z[oe]);var pe=arguments.length-2;if(pe===1)he.children=re;else if(1<pe){for(var we=Array(pe),Ce=0;Ce<pe;Ce++)we[Ce]=arguments[Ce+2];he.children=we}if(O&&O.defaultProps)for(oe in pe=O.defaultProps,pe)he[oe]===void 0&&(he[oe]=pe[oe]);return{$$typeof:n,type:O,key:xe,ref:Q,props:he,_owner:V.current}}function ne(O,z){return{$$typeof:n,type:O.type,key:z,ref:O.ref,props:O.props,_owner:O._owner}}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function me(O){var z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(re){return z[re]})}var Z=/\/+/g;function A(O,z){return typeof O=="object"&&O!==null&&O.key!=null?me(""+O.key):z.toString(36)}function J(O,z,re,oe,he){var xe=typeof O;(xe==="undefined"||xe==="boolean")&&(O=null);var Q=!1;if(O===null)Q=!0;else switch(xe){case"string":case"number":Q=!0;break;case"object":switch(O.$$typeof){case n:case r:Q=!0}}if(Q)return Q=O,he=he(Q),O=oe===""?"."+A(Q,0):oe,L(he)?(re="",O!=null&&(re=O.replace(Z,"$&/")+"/"),J(he,z,re,"",function(Ce){return Ce})):he!=null&&(ce(he)&&(he=ne(he,re+(!he.key||Q&&Q.key===he.key?"":(""+he.key).replace(Z,"$&/")+"/")+O)),z.push(he)),1;if(Q=0,oe=oe===""?".":oe+":",L(O))for(var pe=0;pe<O.length;pe++){xe=O[pe];var we=oe+A(xe,pe);Q+=J(xe,z,re,we,he)}else if(we=b(O),typeof we=="function")for(O=we.call(O),pe=0;!(xe=O.next()).done;)xe=xe.value,we=oe+A(xe,pe++),Q+=J(xe,z,re,we,he);else if(xe==="object")throw z=String(O),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Q}function Y(O,z,re){if(O==null)return O;var oe=[],he=0;return J(O,oe,"","",function(xe){return z.call(re,xe,he++)}),oe}function te(O){if(O._status===-1){var z=O._result;z=z(),z.then(function(re){(O._status===0||O._status===-1)&&(O._status=1,O._result=re)},function(re){(O._status===0||O._status===-1)&&(O._status=2,O._result=re)}),O._status===-1&&(O._status=0,O._result=z)}if(O._status===1)return O._result.default;throw O._result}var se={current:null},U={transition:null},W={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:U,ReactCurrentOwner:V};function G(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:Y,forEach:function(O,z,re){Y(O,function(){z.apply(this,arguments)},re)},count:function(O){var z=0;return Y(O,function(){z++}),z},toArray:function(O){return Y(O,function(z){return z})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Re.Component=C,Re.Fragment=s,Re.Profiler=a,Re.PureComponent=k,Re.StrictMode=i,Re.Suspense=h,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,Re.act=G,Re.cloneElement=function(O,z,re){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var oe=N({},O.props),he=O.key,xe=O.ref,Q=O._owner;if(z!=null){if(z.ref!==void 0&&(xe=z.ref,Q=V.current),z.key!==void 0&&(he=""+z.key),O.type&&O.type.defaultProps)var pe=O.type.defaultProps;for(we in z)B.call(z,we)&&!$.hasOwnProperty(we)&&(oe[we]=z[we]===void 0&&pe!==void 0?pe[we]:z[we])}var we=arguments.length-2;if(we===1)oe.children=re;else if(1<we){pe=Array(we);for(var Ce=0;Ce<we;Ce++)pe[Ce]=arguments[Ce+2];oe.children=pe}return{$$typeof:n,type:O.type,key:he,ref:xe,props:oe,_owner:Q}},Re.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:u,_context:O},O.Consumer=O},Re.createElement=ie,Re.createFactory=function(O){var z=ie.bind(null,O);return z.type=O,z},Re.createRef=function(){return{current:null}},Re.forwardRef=function(O){return{$$typeof:f,render:O}},Re.isValidElement=ce,Re.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:te}},Re.memo=function(O,z){return{$$typeof:g,type:O,compare:z===void 0?null:z}},Re.startTransition=function(O){var z=U.transition;U.transition={};try{O()}finally{U.transition=z}},Re.unstable_act=G,Re.useCallback=function(O,z){return se.current.useCallback(O,z)},Re.useContext=function(O){return se.current.useContext(O)},Re.useDebugValue=function(){},Re.useDeferredValue=function(O){return se.current.useDeferredValue(O)},Re.useEffect=function(O,z){return se.current.useEffect(O,z)},Re.useId=function(){return se.current.useId()},Re.useImperativeHandle=function(O,z,re){return se.current.useImperativeHandle(O,z,re)},Re.useInsertionEffect=function(O,z){return se.current.useInsertionEffect(O,z)},Re.useLayoutEffect=function(O,z){return se.current.useLayoutEffect(O,z)},Re.useMemo=function(O,z){return se.current.useMemo(O,z)},Re.useReducer=function(O,z,re){return se.current.useReducer(O,z,re)},Re.useRef=function(O){return se.current.useRef(O)},Re.useState=function(O){return se.current.useState(O)},Re.useSyncExternalStore=function(O,z,re){return se.current.useSyncExternalStore(O,z,re)},Re.useTransition=function(){return se.current.useTransition()},Re.version="18.3.1",Re}var Kp;function Dc(){return Kp||(Kp=1,Ku.exports=_x()),Ku.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Gp;function Ax(){if(Gp)return _s;Gp=1;var n=Dc(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(f,h,g){var y,w={},b=null,E=null;g!==void 0&&(b=""+g),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(E=h.ref);for(y in h)i.call(h,y)&&!u.hasOwnProperty(y)&&(w[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)w[y]===void 0&&(w[y]=h[y]);return{$$typeof:r,type:f,key:b,ref:E,props:w,_owner:a.current}}return _s.Fragment=s,_s.jsx=d,_s.jsxs=d,_s}var Yp;function Lx(){return Yp||(Yp=1,Hu.exports=Ax()),Hu.exports}var p=Lx(),v=Dc();const ee=lh(v),$l=Ox({__proto__:null,default:ee},[v]);var hl={},Gu={exports:{}},Pt={},Yu={exports:{}},qu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var qp;function Ix(){return qp||(qp=1,(function(n){function r(U,W){var G=U.length;U.push(W);e:for(;0<G;){var O=G-1>>>1,z=U[O];if(0<a(z,W))U[O]=W,U[G]=z,G=O;else break e}}function s(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var W=U[0],G=U.pop();if(G!==W){U[0]=G;e:for(var O=0,z=U.length,re=z>>>1;O<re;){var oe=2*(O+1)-1,he=U[oe],xe=oe+1,Q=U[xe];if(0>a(he,G))xe<z&&0>a(Q,he)?(U[O]=Q,U[xe]=G,O=xe):(U[O]=he,U[oe]=G,O=oe);else if(xe<z&&0>a(Q,G))U[O]=Q,U[xe]=G,O=xe;else break e}}return W}function a(U,W){var G=U.sortIndex-W.sortIndex;return G!==0?G:U.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var h=[],g=[],y=1,w=null,b=3,E=!1,N=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(U){for(var W=s(g);W!==null;){if(W.callback===null)i(g);else if(W.startTime<=U)i(g),W.sortIndex=W.expirationTime,r(h,W);else break;W=s(g)}}function L(U){if(S=!1,j(U),!N)if(s(h)!==null)N=!0,te(B);else{var W=s(g);W!==null&&se(L,W.startTime-U)}}function B(U,W){N=!1,S&&(S=!1,T(ie),ie=-1),E=!0;var G=b;try{for(j(W),w=s(h);w!==null&&(!(w.expirationTime>W)||U&&!me());){var O=w.callback;if(typeof O=="function"){w.callback=null,b=w.priorityLevel;var z=O(w.expirationTime<=W);W=n.unstable_now(),typeof z=="function"?w.callback=z:w===s(h)&&i(h),j(W)}else i(h);w=s(h)}if(w!==null)var re=!0;else{var oe=s(g);oe!==null&&se(L,oe.startTime-W),re=!1}return re}finally{w=null,b=G,E=!1}}var V=!1,$=null,ie=-1,ne=5,ce=-1;function me(){return!(n.unstable_now()-ce<ne)}function Z(){if($!==null){var U=n.unstable_now();ce=U;var W=!0;try{W=$(!0,U)}finally{W?A():(V=!1,$=null)}}else V=!1}var A;if(typeof k=="function")A=function(){k(Z)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,Y=J.port2;J.port1.onmessage=Z,A=function(){Y.postMessage(null)}}else A=function(){C(Z,0)};function te(U){$=U,V||(V=!0,A())}function se(U,W){ie=C(function(){U(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_continueExecution=function(){N||E||(N=!0,te(B))},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_getFirstCallbackNode=function(){return s(h)},n.unstable_next=function(U){switch(b){case 1:case 2:case 3:var W=3;break;default:W=b}var G=b;b=W;try{return U()}finally{b=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(U,W){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var G=b;b=U;try{return W()}finally{b=G}},n.unstable_scheduleCallback=function(U,W,G){var O=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?O+G:O):G=O,U){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=G+z,U={id:y++,callback:W,priorityLevel:U,startTime:G,expirationTime:z,sortIndex:-1},G>O?(U.sortIndex=G,r(g,U),s(h)===null&&U===s(g)&&(S?(T(ie),ie=-1):S=!0,se(L,G-O))):(U.sortIndex=z,r(h,U),N||E||(N=!0,te(B))),U},n.unstable_shouldYield=me,n.unstable_wrapCallback=function(U){var W=b;return function(){var G=b;b=W;try{return U.apply(this,arguments)}finally{b=G}}}})(qu)),qu}var Qp;function Dx(){return Qp||(Qp=1,Yu.exports=Ix()),Yu.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Xp;function Mx(){if(Xp)return Pt;Xp=1;var n=Dc(),r=Dx();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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 i=new Set,a={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},w={};function b(e){return h.call(w,e)?!0:h.call(y,e)?!1:g.test(e)?w[e]=!0:(y[e]=!0,!1)}function E(e,t,o,l){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,o,l){if(t===null||typeof t>"u"||E(e,t,o,l))return!0;if(l)return!1;if(o!==null)switch(o.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,o,l,c,m,x){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=m,this.removeEmptyString=x}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[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];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[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){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function k(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(T,k);C[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(T,k);C[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(T,k);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function j(e,t,o,l){var c=C.hasOwnProperty(t)?C[t]:null;(c!==null?c.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,o,c,l)&&(o=null),l||c===null?b(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):c.mustUseProperty?e[c.propertyName]=o===null?c.type===3?!1:"":o:(t=c.attributeName,l=c.attributeNamespace,o===null?e.removeAttribute(t):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?e.setAttributeNS(l,t,o):e.setAttribute(t,o))))}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),V=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),me=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),U=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,O;function z(e){if(O===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return`
|
|
34
|
-
`+O+e}var re=!1;function oe(e,t){if(!e||re)return"";re=!0;var o=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(M){var l=M}Reflect.construct(e,[],t)}else{try{t.call()}catch(M){l=M}e.call(t.prototype)}else{try{throw Error()}catch(M){l=M}e()}}catch(M){if(M&&l&&typeof M.stack=="string"){for(var c=M.stack.split(`
|
|
35
|
-
`),m=l.stack.split(`
|
|
36
|
-
`),x=c.length-1,R=m.length-1;1<=x&&0<=R&&c[x]!==m[R];)R--;for(;1<=x&&0<=R;x--,R--)if(c[x]!==m[R]){if(x!==1||R!==1)do if(x--,R--,0>R||c[x]!==m[R]){var P=`
|
|
37
|
-
`+c[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=x&&0<=R);break}}}finally{re=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?z(e):""}function he(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=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function xe(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 $:return"Fragment";case V:return"Portal";case ne:return"Profiler";case ie:return"StrictMode";case A:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case me:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}function Q(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 xe(t);case 8:return t===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=we(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,m=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){l=""+x,m.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),l="";return e&&(l=we(e)?e.checked?"true":"false":e.value),e=l,e!==o?(t.setValue(e),!0):!1}function Xe(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 ct(e,t){var o=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function fn(e,t){var o=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;o=pe(t.value!=null?t.value:o),e._wrapperState={initialChecked:l,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yt(e,t){t=t.checked,t!=null&&j(e,"checked",t,!1)}function qt(e,t){Yt(e,t);var o=pe(t.value),l=t.type;if(o!=null)l==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pn(e,t.type,o):t.hasOwnProperty("defaultValue")&&pn(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xn(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function pn(e,t,o){(t!=="number"||Xe(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Jn=Array.isArray;function Ut(e,t,o,l){if(e=e.options,t){t={};for(var c=0;c<o.length;c++)t["$"+o[c]]=!0;for(o=0;o<e.length;o++)c=t.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&l&&(e[o].defaultSelected=!0)}else{for(o=""+pe(o),t=null,c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function eo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(s(92));if(Jn(o)){if(1<o.length)throw Error(s(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:pe(o)}}function ni(e,t){var o=pe(t.value),l=pe(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),l!=null&&(e.defaultValue=""+l)}function ri(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vt(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 hn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var to,oi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,l,c){MSApp.execUnsafeLocalFunction(function(){return e(t,o,l,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(to=to||document.createElement("div"),to.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gn(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Tr={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},si=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){si.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function no(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function Ln(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=no(o,t[o],l);o==="float"&&(o="cssFloat"),l?e.setProperty(o,c):e[o]=c}}var ii=G({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 vn(e,t){if(t){if(ii[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Qo(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 Xo=null;function ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,Zn=null,yn=null;function Qt(e){if(e=vs(e)){if(typeof oo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Ti(t),oo(e.stateNode,e.type,t))}}function li(e){Zn?yn?yn.push(e):yn=[e]:Zn=e}function Ee(){if(Zn){var e=Zn,t=yn;if(yn=Zn=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Oe(e,t){return e(t)}function Le(){}var yt=!1;function Et(e,t,o){if(yt)return e(t,o);yt=!0;try{return Oe(e,t,o)}finally{yt=!1,(Zn!==null||yn!==null)&&(Le(),Ee())}}function Ct(e,t){var o=e.stateNode;if(o===null)return null;var l=Ti(o);if(l===null)return null;o=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(s(231,t,typeof o));return o}var Xt=!1;if(f)try{var lt={};Object.defineProperty(lt,"passive",{get:function(){Xt=!0}}),window.addEventListener("test",lt,lt),window.removeEventListener("test",lt,lt)}catch{Xt=!1}function xn(e,t,o,l,c,m,x,R,P){var M=Array.prototype.slice.call(arguments,3);try{t.apply(o,M)}catch(K){this.onError(K)}}var Jo=!1,ai=null,ui=!1,ca=null,Fv={onError:function(e){Jo=!0,ai=e}};function zv(e,t,o,l,c,m,x,R,P){Jo=!1,ai=null,xn.apply(Fv,arguments)}function Uv(e,t,o,l,c,m,x,R,P){if(zv.apply(this,arguments),Jo){if(Jo){var M=ai;Jo=!1,ai=null}else throw Error(s(198));ui||(ui=!0,ca=M)}}function Or(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function pd(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 md(e){if(Or(e)!==e)throw Error(s(188))}function Bv(e){var t=e.alternate;if(!t){if(t=Or(e),t===null)throw Error(s(188));return t!==e?null:e}for(var o=e,l=t;;){var c=o.return;if(c===null)break;var m=c.alternate;if(m===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===m.child){for(m=c.child;m;){if(m===o)return md(c),e;if(m===l)return md(c),t;m=m.sibling}throw Error(s(188))}if(o.return!==l.return)o=c,l=m;else{for(var x=!1,R=c.child;R;){if(R===o){x=!0,o=c,l=m;break}if(R===l){x=!0,l=c,o=m;break}R=R.sibling}if(!x){for(R=m.child;R;){if(R===o){x=!0,o=m,l=c;break}if(R===l){x=!0,l=m,o=c;break}R=R.sibling}if(!x)throw Error(s(189))}}if(o.alternate!==l)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?e:t}function hd(e){return e=Bv(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gd(e);if(t!==null)return t;e=e.sibling}return null}var vd=r.unstable_scheduleCallback,yd=r.unstable_cancelCallback,$v=r.unstable_shouldYield,Wv=r.unstable_requestPaint,Je=r.unstable_now,Vv=r.unstable_getCurrentPriorityLevel,da=r.unstable_ImmediatePriority,xd=r.unstable_UserBlockingPriority,ci=r.unstable_NormalPriority,Hv=r.unstable_LowPriority,wd=r.unstable_IdlePriority,di=null,wn=null;function Kv(e){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(di,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:qv,Gv=Math.log,Yv=Math.LN2;function qv(e){return e>>>=0,e===0?32:31-(Gv(e)/Yv|0)|0}var fi=64,pi=4194304;function Zo(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 mi(e,t){var o=e.pendingLanes;if(o===0)return 0;var l=0,c=e.suspendedLanes,m=e.pingedLanes,x=o&268435455;if(x!==0){var R=x&~c;R!==0?l=Zo(R):(m&=x,m!==0&&(l=Zo(m)))}else x=o&~c,x!==0?l=Zo(x):m!==0&&(l=Zo(m));if(l===0)return 0;if(t!==0&&t!==l&&(t&c)===0&&(c=l&-l,m=t&-t,c>=m||c===16&&(m&4194240)!==0))return t;if((l&4)!==0&&(l|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)o=31-Jt(t),c=1<<o,l|=e[o],t&=~c;return l}function Qv(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 Xv(e,t){for(var o=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,m=e.pendingLanes;0<m;){var x=31-Jt(m),R=1<<x,P=c[x];P===-1?((R&o)===0||(R&l)!==0)&&(c[x]=Qv(R,t)):P<=t&&(e.expiredLanes|=R),m&=~R}}function fa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sd(){var e=fi;return fi<<=1,(fi&4194240)===0&&(fi=64),e}function pa(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function es(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=o}function Jv(e,t){var o=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 l=e.eventTimes;for(e=e.expirationTimes;0<o;){var c=31-Jt(o),m=1<<c;t[c]=0,l[c]=-1,e[c]=-1,o&=~m}}function ma(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var l=31-Jt(o),c=1<<l;c&t|e[l]&t&&(e[l]|=t),o&=~c}}var Ae=0;function Ed(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Cd,ha,bd,Nd,Rd,ga=!1,hi=[],er=null,tr=null,nr=null,ts=new Map,ns=new Map,rr=[],Zv="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 kd(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function rs(e,t,o,l,c,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:o,eventSystemFlags:l,nativeEvent:m,targetContainers:[c]},t!==null&&(t=vs(t),t!==null&&ha(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function ey(e,t,o,l,c){switch(t){case"focusin":return er=rs(er,e,t,o,l,c),!0;case"dragenter":return tr=rs(tr,e,t,o,l,c),!0;case"mouseover":return nr=rs(nr,e,t,o,l,c),!0;case"pointerover":var m=c.pointerId;return ts.set(m,rs(ts.get(m)||null,e,t,o,l,c)),!0;case"gotpointercapture":return m=c.pointerId,ns.set(m,rs(ns.get(m)||null,e,t,o,l,c)),!0}return!1}function jd(e){var t=_r(e.target);if(t!==null){var o=Or(t);if(o!==null){if(t=o.tag,t===13){if(t=pd(o),t!==null){e.blockedOn=t,Rd(e.priority,function(){bd(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ya(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);Xo=l,o.target.dispatchEvent(l),Xo=null}else return t=vs(o),t!==null&&ha(t),e.blockedOn=o,!1;t.shift()}return!0}function Pd(e,t,o){gi(e)&&o.delete(t)}function ty(){ga=!1,er!==null&&gi(er)&&(er=null),tr!==null&&gi(tr)&&(tr=null),nr!==null&&gi(nr)&&(nr=null),ts.forEach(Pd),ns.forEach(Pd)}function os(e,t){e.blockedOn===t&&(e.blockedOn=null,ga||(ga=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ty)))}function ss(e){function t(c){return os(c,e)}if(0<hi.length){os(hi[0],e);for(var o=1;o<hi.length;o++){var l=hi[o];l.blockedOn===e&&(l.blockedOn=null)}}for(er!==null&&os(er,e),tr!==null&&os(tr,e),nr!==null&&os(nr,e),ts.forEach(t),ns.forEach(t),o=0;o<rr.length;o++)l=rr[o],l.blockedOn===e&&(l.blockedOn=null);for(;0<rr.length&&(o=rr[0],o.blockedOn===null);)jd(o),o.blockedOn===null&&rr.shift()}var so=L.ReactCurrentBatchConfig,vi=!0;function ny(e,t,o,l){var c=Ae,m=so.transition;so.transition=null;try{Ae=1,va(e,t,o,l)}finally{Ae=c,so.transition=m}}function ry(e,t,o,l){var c=Ae,m=so.transition;so.transition=null;try{Ae=4,va(e,t,o,l)}finally{Ae=c,so.transition=m}}function va(e,t,o,l){if(vi){var c=ya(e,t,o,l);if(c===null)Ia(e,t,l,yi,o),kd(e,l);else if(ey(c,e,t,o,l))l.stopPropagation();else if(kd(e,l),t&4&&-1<Zv.indexOf(e)){for(;c!==null;){var m=vs(c);if(m!==null&&Cd(m),m=ya(e,t,o,l),m===null&&Ia(e,t,l,yi,o),m===c)break;c=m}c!==null&&l.stopPropagation()}else Ia(e,t,l,null,o)}}var yi=null;function ya(e,t,o,l){if(yi=null,e=ro(l),e=_r(e),e!==null)if(t=Or(e),t===null)e=null;else if(o=t.tag,o===13){if(e=pd(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yi=e,null}function Td(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(Vv()){case da:return 1;case xd:return 4;case ci:case Hv:return 16;case wd:return 536870912;default:return 16}default:return 16}}var or=null,xa=null,xi=null;function Od(){if(xi)return xi;var e,t=xa,o=t.length,l,c="value"in or?or.value:or.textContent,m=c.length;for(e=0;e<o&&t[e]===c[e];e++);var x=o-e;for(l=1;l<=x&&t[o-l]===c[m-l];l++);return xi=c.slice(e,1<l?1-l:void 0)}function wi(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 Si(){return!0}function _d(){return!1}function Lt(e){function t(o,l,c,m,x){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(o=e[R],this[R]=o?o(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Si:_d,this.isPropagationStopped=_d,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wa=Lt(io),is=G({},io,{view:0,detail:0}),oy=Lt(is),Sa,Ea,ls,Ei=G({},is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ba,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(Sa=e.screenX-ls.screenX,Ea=e.screenY-ls.screenY):Ea=Sa=0,ls=e),Sa)},movementY:function(e){return"movementY"in e?e.movementY:Ea}}),Ad=Lt(Ei),sy=G({},Ei,{dataTransfer:0}),iy=Lt(sy),ly=G({},is,{relatedTarget:0}),Ca=Lt(ly),ay=G({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),uy=Lt(ay),cy=G({},io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dy=Lt(cy),fy=G({},io,{data:0}),Ld=Lt(fy),py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},my={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"},hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hy[e])?!!t[e]:!1}function ba(){return gy}var vy=G({},is,{key:function(e){if(e.key){var t=py[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?my[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ba,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yy=Lt(vy),xy=G({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Id=Lt(xy),wy=G({},is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ba}),Sy=Lt(wy),Ey=G({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cy=Lt(Ey),by=G({},Ei,{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}),Ny=Lt(by),Ry=[9,13,27,32],Na=f&&"CompositionEvent"in window,as=null;f&&"documentMode"in document&&(as=document.documentMode);var ky=f&&"TextEvent"in window&&!as,Dd=f&&(!Na||as&&8<as&&11>=as),Md=" ",Fd=!1;function zd(e,t){switch(e){case"keyup":return Ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function jy(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Fd=!0,Md);case"textInput":return e=t.data,e===Md&&Fd?null:e;default:return null}}function Py(e,t){if(lo)return e==="compositionend"||!Na&&zd(e,t)?(e=Od(),xi=xa=or=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 Dd&&t.locale!=="ko"?null:t.data;default:return null}}var Ty={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 Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ty[e.type]:t==="textarea"}function $d(e,t,o,l){li(l),t=ki(t,"onChange"),0<t.length&&(o=new wa("onChange","change",null,o,l),e.push({event:o,listeners:t}))}var us=null,cs=null;function Oy(e){lf(e,0)}function Ci(e){var t=po(e);if(ke(t))return e}function _y(e,t){if(e==="change")return t}var Wd=!1;if(f){var Ra;if(f){var ka="oninput"in document;if(!ka){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),ka=typeof Vd.oninput=="function"}Ra=ka}else Ra=!1;Wd=Ra&&(!document.documentMode||9<document.documentMode)}function Hd(){us&&(us.detachEvent("onpropertychange",Kd),cs=us=null)}function Kd(e){if(e.propertyName==="value"&&Ci(cs)){var t=[];$d(t,cs,e,ro(e)),Et(Oy,t)}}function Ay(e,t,o){e==="focusin"?(Hd(),us=t,cs=o,us.attachEvent("onpropertychange",Kd)):e==="focusout"&&Hd()}function Ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(cs)}function Iy(e,t){if(e==="click")return Ci(t)}function Dy(e,t){if(e==="input"||e==="change")return Ci(t)}function My(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:My;function ds(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!h.call(t,c)||!Zt(e[c],t[c]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var o=Gd(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=t&&l>=t)return{node:o,offset:t-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Gd(o)}}function qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qd(){for(var e=window,t=Xe();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Xe(e.document)}return t}function ja(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 Fy(e){var t=Qd(),o=e.focusedElem,l=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&qd(o.ownerDocument.documentElement,o)){if(l!==null&&ja(o)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=o.textContent.length,m=Math.min(l.start,c);l=l.end===void 0?m:Math.min(l.end,c),!e.extend&&m>l&&(c=l,l=m,m=c),c=Yd(o,m);var x=Yd(o,l);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),m>l?(e.addRange(t),e.extend(x.node,x.offset)):(t.setEnd(x.node,x.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zy=f&&"documentMode"in document&&11>=document.documentMode,ao=null,Pa=null,fs=null,Ta=!1;function Xd(e,t,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ta||ao==null||ao!==Xe(l)||(l=ao,"selectionStart"in l&&ja(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fs&&ds(fs,l)||(fs=l,l=ki(Pa,"onSelect"),0<l.length&&(t=new wa("onSelect","select",null,t,o),e.push({event:t,listeners:l}),t.target=ao)))}function bi(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var uo={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Oa={},Jd={};f&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function Ni(e){if(Oa[e])return Oa[e];if(!uo[e])return e;var t=uo[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in Jd)return Oa[e]=t[o];return e}var Zd=Ni("animationend"),ef=Ni("animationiteration"),tf=Ni("animationstart"),nf=Ni("transitionend"),rf=new Map,of="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 sr(e,t){rf.set(e,t),u(t,[e])}for(var _a=0;_a<of.length;_a++){var Aa=of[_a],Uy=Aa.toLowerCase(),By=Aa[0].toUpperCase()+Aa.slice(1);sr(Uy,"on"+By)}sr(Zd,"onAnimationEnd"),sr(ef,"onAnimationIteration"),sr(tf,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(nf,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ps="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(" "),$y=new Set("cancel close invalid load scroll toggle".split(" ").concat(ps));function sf(e,t,o){var l=e.type||"unknown-event";e.currentTarget=o,Uv(l,t,void 0,e),e.currentTarget=null}function lf(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],c=l.event;l=l.listeners;e:{var m=void 0;if(t)for(var x=l.length-1;0<=x;x--){var R=l[x],P=R.instance,M=R.currentTarget;if(R=R.listener,P!==m&&c.isPropagationStopped())break e;sf(c,R,M),m=P}else for(x=0;x<l.length;x++){if(R=l[x],P=R.instance,M=R.currentTarget,R=R.listener,P!==m&&c.isPropagationStopped())break e;sf(c,R,M),m=P}}}if(ui)throw e=ca,ui=!1,ca=null,e}function Me(e,t){var o=t[Ba];o===void 0&&(o=t[Ba]=new Set);var l=e+"__bubble";o.has(l)||(af(t,e,2,!1),o.add(l))}function La(e,t,o){var l=0;t&&(l|=4),af(o,e,l,t)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[Ri]){e[Ri]=!0,i.forEach(function(o){o!=="selectionchange"&&($y.has(o)||La(o,!1,e),La(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ri]||(t[Ri]=!0,La("selectionchange",!1,t))}}function af(e,t,o,l){switch(Td(t)){case 1:var c=ny;break;case 4:c=ry;break;default:c=va}o=c.bind(null,t,o,e),c=void 0,!Xt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,o,{capture:!0,passive:c}):e.addEventListener(t,o,!0):c!==void 0?e.addEventListener(t,o,{passive:c}):e.addEventListener(t,o,!1)}function Ia(e,t,o,l,c){var m=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var R=l.stateNode.containerInfo;if(R===c||R.nodeType===8&&R.parentNode===c)break;if(x===4)for(x=l.return;x!==null;){var P=x.tag;if((P===3||P===4)&&(P=x.stateNode.containerInfo,P===c||P.nodeType===8&&P.parentNode===c))return;x=x.return}for(;R!==null;){if(x=_r(R),x===null)return;if(P=x.tag,P===5||P===6){l=m=x;continue e}R=R.parentNode}}l=l.return}Et(function(){var M=m,K=ro(o),q=[];e:{var H=rf.get(e);if(H!==void 0){var le=wa,ue=e;switch(e){case"keypress":if(wi(o)===0)break e;case"keydown":case"keyup":le=yy;break;case"focusin":ue="focus",le=Ca;break;case"focusout":ue="blur",le=Ca;break;case"beforeblur":case"afterblur":le=Ca;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=iy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Sy;break;case Zd:case ef:case tf:le=uy;break;case nf:le=Cy;break;case"scroll":le=oy;break;case"wheel":le=Ny;break;case"copy":case"cut":case"paste":le=dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Id}var de=(t&4)!==0,Ze=!de&&e==="scroll",I=de?H!==null?H+"Capture":null:H;de=[];for(var _=M,D;_!==null;){D=_;var X=D.stateNode;if(D.tag===5&&X!==null&&(D=X,I!==null&&(X=Ct(_,I),X!=null&&de.push(hs(_,X,D)))),Ze)break;_=_.return}0<de.length&&(H=new le(H,ue,null,o,K),q.push({event:H,listeners:de}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",H&&o!==Xo&&(ue=o.relatedTarget||o.fromElement)&&(_r(ue)||ue[In]))break e;if((le||H)&&(H=K.window===K?K:(H=K.ownerDocument)?H.defaultView||H.parentWindow:window,le?(ue=o.relatedTarget||o.toElement,le=M,ue=ue?_r(ue):null,ue!==null&&(Ze=Or(ue),ue!==Ze||ue.tag!==5&&ue.tag!==6)&&(ue=null)):(le=null,ue=M),le!==ue)){if(de=Ad,X="onMouseLeave",I="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(de=Id,X="onPointerLeave",I="onPointerEnter",_="pointer"),Ze=le==null?H:po(le),D=ue==null?H:po(ue),H=new de(X,_+"leave",le,o,K),H.target=Ze,H.relatedTarget=D,X=null,_r(K)===M&&(de=new de(I,_+"enter",ue,o,K),de.target=D,de.relatedTarget=Ze,X=de),Ze=X,le&&ue)t:{for(de=le,I=ue,_=0,D=de;D;D=co(D))_++;for(D=0,X=I;X;X=co(X))D++;for(;0<_-D;)de=co(de),_--;for(;0<D-_;)I=co(I),D--;for(;_--;){if(de===I||I!==null&&de===I.alternate)break t;de=co(de),I=co(I)}de=null}else de=null;le!==null&&uf(q,H,le,de,!1),ue!==null&&Ze!==null&&uf(q,Ze,ue,de,!0)}}e:{if(H=M?po(M):window,le=H.nodeName&&H.nodeName.toLowerCase(),le==="select"||le==="input"&&H.type==="file")var fe=_y;else if(Bd(H))if(Wd)fe=Dy;else{fe=Ly;var ge=Ay}else(le=H.nodeName)&&le.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(fe=Iy);if(fe&&(fe=fe(e,M))){$d(q,fe,o,K);break e}ge&&ge(e,H,M),e==="focusout"&&(ge=H._wrapperState)&&ge.controlled&&H.type==="number"&&pn(H,"number",H.value)}switch(ge=M?po(M):window,e){case"focusin":(Bd(ge)||ge.contentEditable==="true")&&(ao=ge,Pa=M,fs=null);break;case"focusout":fs=Pa=ao=null;break;case"mousedown":Ta=!0;break;case"contextmenu":case"mouseup":case"dragend":Ta=!1,Xd(q,o,K);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":Xd(q,o,K)}var ve;if(Na)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else lo?zd(e,o)&&(Se="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Se="onCompositionStart");Se&&(Dd&&o.locale!=="ko"&&(lo||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&lo&&(ve=Od()):(or=K,xa="value"in or?or.value:or.textContent,lo=!0)),ge=ki(M,Se),0<ge.length&&(Se=new Ld(Se,e,null,o,K),q.push({event:Se,listeners:ge}),ve?Se.data=ve:(ve=Ud(o),ve!==null&&(Se.data=ve)))),(ve=ky?jy(e,o):Py(e,o))&&(M=ki(M,"onBeforeInput"),0<M.length&&(K=new Ld("onBeforeInput","beforeinput",null,o,K),q.push({event:K,listeners:M}),K.data=ve))}lf(q,t)})}function hs(e,t,o){return{instance:e,listener:t,currentTarget:o}}function ki(e,t){for(var o=t+"Capture",l=[];e!==null;){var c=e,m=c.stateNode;c.tag===5&&m!==null&&(c=m,m=Ct(e,o),m!=null&&l.unshift(hs(e,m,c)),m=Ct(e,t),m!=null&&l.push(hs(e,m,c))),e=e.return}return l}function co(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uf(e,t,o,l,c){for(var m=t._reactName,x=[];o!==null&&o!==l;){var R=o,P=R.alternate,M=R.stateNode;if(P!==null&&P===l)break;R.tag===5&&M!==null&&(R=M,c?(P=Ct(o,m),P!=null&&x.unshift(hs(o,P,R))):c||(P=Ct(o,m),P!=null&&x.push(hs(o,P,R)))),o=o.return}x.length!==0&&e.push({event:t,listeners:x})}var Wy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function cf(e){return(typeof e=="string"?e:""+e).replace(Wy,`
|
|
38
|
-
`).replace(Vy,"")}function ji(e,t,o){if(t=cf(t),cf(e)!==t&&o)throw Error(s(425))}function Pi(){}var Da=null,Ma=null;function Fa(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 za=typeof setTimeout=="function"?setTimeout:void 0,Hy=typeof clearTimeout=="function"?clearTimeout:void 0,df=typeof Promise=="function"?Promise:void 0,Ky=typeof queueMicrotask=="function"?queueMicrotask:typeof df<"u"?function(e){return df.resolve(null).then(e).catch(Gy)}:za;function Gy(e){setTimeout(function(){throw e})}function Ua(e,t){var o=t,l=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){e.removeChild(c),ss(t);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);ss(t)}function ir(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 ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),Sn="__reactFiber$"+fo,gs="__reactProps$"+fo,In="__reactContainer$"+fo,Ba="__reactEvents$"+fo,Yy="__reactListeners$"+fo,qy="__reactHandles$"+fo;function _r(e){var t=e[Sn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[In]||o[Sn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=ff(e);e!==null;){if(o=e[Sn])return o;e=ff(e)}return t}e=o,o=e.parentNode}return null}function vs(e){return e=e[Sn]||e[In],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function po(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Ti(e){return e[gs]||null}var $a=[],mo=-1;function lr(e){return{current:e}}function Fe(e){0>mo||(e.current=$a[mo],$a[mo]=null,mo--)}function Ie(e,t){mo++,$a[mo]=e.current,e.current=t}var ar={},dt=lr(ar),bt=lr(!1),Ar=ar;function ho(e,t){var o=e.type.contextTypes;if(!o)return ar;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var c={},m;for(m in o)c[m]=t[m];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function Nt(e){return e=e.childContextTypes,e!=null}function Oi(){Fe(bt),Fe(dt)}function pf(e,t,o){if(dt.current!==ar)throw Error(s(168));Ie(dt,t),Ie(bt,o)}function mf(e,t,o){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in t))throw Error(s(108,Q(e)||"Unknown",c));return G({},o,l)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Ar=dt.current,Ie(dt,e),Ie(bt,bt.current),!0}function hf(e,t,o){var l=e.stateNode;if(!l)throw Error(s(169));o?(e=mf(e,t,Ar),l.__reactInternalMemoizedMergedChildContext=e,Fe(bt),Fe(dt),Ie(dt,e)):Fe(bt),Ie(bt,o)}var Dn=null,Ai=!1,Wa=!1;function gf(e){Dn===null?Dn=[e]:Dn.push(e)}function Qy(e){Ai=!0,gf(e)}function ur(){if(!Wa&&Dn!==null){Wa=!0;var e=0,t=Ae;try{var o=Dn;for(Ae=1;e<o.length;e++){var l=o[e];do l=l(!0);while(l!==null)}Dn=null,Ai=!1}catch(c){throw Dn!==null&&(Dn=Dn.slice(e+1)),vd(da,ur),c}finally{Ae=t,Wa=!1}}return null}var go=[],vo=0,Li=null,Ii=0,Bt=[],$t=0,Lr=null,Mn=1,Fn="";function Ir(e,t){go[vo++]=Ii,go[vo++]=Li,Li=e,Ii=t}function vf(e,t,o){Bt[$t++]=Mn,Bt[$t++]=Fn,Bt[$t++]=Lr,Lr=e;var l=Mn;e=Fn;var c=32-Jt(l)-1;l&=~(1<<c),o+=1;var m=32-Jt(t)+c;if(30<m){var x=c-c%5;m=(l&(1<<x)-1).toString(32),l>>=x,c-=x,Mn=1<<32-Jt(t)+c|o<<c|l,Fn=m+e}else Mn=1<<m|o<<c|l,Fn=e}function Va(e){e.return!==null&&(Ir(e,1),vf(e,1,0))}function Ha(e){for(;e===Li;)Li=go[--vo],go[vo]=null,Ii=go[--vo],go[vo]=null;for(;e===Lr;)Lr=Bt[--$t],Bt[$t]=null,Fn=Bt[--$t],Bt[$t]=null,Mn=Bt[--$t],Bt[$t]=null}var It=null,Dt=null,$e=!1,en=null;function yf(e,t){var o=Kt(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function xf(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,Dt=ir(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=Lr!==null?{id:Mn,overflow:Fn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Kt(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,It=e,Dt=null,!0):!1;default:return!1}}function Ka(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ga(e){if($e){var t=Dt;if(t){var o=t;if(!xf(e,t)){if(Ka(e))throw Error(s(418));t=ir(o.nextSibling);var l=It;t&&xf(e,t)?yf(l,o):(e.flags=e.flags&-4097|2,$e=!1,It=e)}}else{if(Ka(e))throw Error(s(418));e.flags=e.flags&-4097|2,$e=!1,It=e}}}function wf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function Di(e){if(e!==It)return!1;if(!$e)return wf(e),$e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fa(e.type,e.memoizedProps)),t&&(t=Dt)){if(Ka(e))throw Sf(),Error(s(418));for(;t;)yf(e,t),t=ir(t.nextSibling)}if(wf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){Dt=ir(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=It?ir(e.stateNode.nextSibling):null;return!0}function Sf(){for(var e=Dt;e;)e=ir(e.nextSibling)}function yo(){Dt=It=null,$e=!1}function Ya(e){en===null?en=[e]:en.push(e)}var Xy=L.ReactCurrentBatchConfig;function ys(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(s(309));var l=o.stateNode}if(!l)throw Error(s(147,e));var c=l,m=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===m?t.ref:(t=function(x){var R=c.refs;x===null?delete R[m]:R[m]=x},t._stringRef=m,t)}if(typeof e!="string")throw Error(s(284));if(!o._owner)throw Error(s(290,e))}return e}function Mi(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ef(e){var t=e._init;return t(e._payload)}function Cf(e){function t(I,_){if(e){var D=I.deletions;D===null?(I.deletions=[_],I.flags|=16):D.push(_)}}function o(I,_){if(!e)return null;for(;_!==null;)t(I,_),_=_.sibling;return null}function l(I,_){for(I=new Map;_!==null;)_.key!==null?I.set(_.key,_):I.set(_.index,_),_=_.sibling;return I}function c(I,_){return I=vr(I,_),I.index=0,I.sibling=null,I}function m(I,_,D){return I.index=D,e?(D=I.alternate,D!==null?(D=D.index,D<_?(I.flags|=2,_):D):(I.flags|=2,_)):(I.flags|=1048576,_)}function x(I){return e&&I.alternate===null&&(I.flags|=2),I}function R(I,_,D,X){return _===null||_.tag!==6?(_=zu(D,I.mode,X),_.return=I,_):(_=c(_,D),_.return=I,_)}function P(I,_,D,X){var fe=D.type;return fe===$?K(I,_,D.props.children,X,D.key):_!==null&&(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===te&&Ef(fe)===_.type)?(X=c(_,D.props),X.ref=ys(I,_,D),X.return=I,X):(X=ll(D.type,D.key,D.props,null,I.mode,X),X.ref=ys(I,_,D),X.return=I,X)}function M(I,_,D,X){return _===null||_.tag!==4||_.stateNode.containerInfo!==D.containerInfo||_.stateNode.implementation!==D.implementation?(_=Uu(D,I.mode,X),_.return=I,_):(_=c(_,D.children||[]),_.return=I,_)}function K(I,_,D,X,fe){return _===null||_.tag!==7?(_=Wr(D,I.mode,X,fe),_.return=I,_):(_=c(_,D),_.return=I,_)}function q(I,_,D){if(typeof _=="string"&&_!==""||typeof _=="number")return _=zu(""+_,I.mode,D),_.return=I,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case B:return D=ll(_.type,_.key,_.props,null,I.mode,D),D.ref=ys(I,null,_),D.return=I,D;case V:return _=Uu(_,I.mode,D),_.return=I,_;case te:var X=_._init;return q(I,X(_._payload),D)}if(Jn(_)||W(_))return _=Wr(_,I.mode,D,null),_.return=I,_;Mi(I,_)}return null}function H(I,_,D,X){var fe=_!==null?_.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return fe!==null?null:R(I,_,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case B:return D.key===fe?P(I,_,D,X):null;case V:return D.key===fe?M(I,_,D,X):null;case te:return fe=D._init,H(I,_,fe(D._payload),X)}if(Jn(D)||W(D))return fe!==null?null:K(I,_,D,X,null);Mi(I,D)}return null}function le(I,_,D,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number")return I=I.get(D)||null,R(_,I,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case B:return I=I.get(X.key===null?D:X.key)||null,P(_,I,X,fe);case V:return I=I.get(X.key===null?D:X.key)||null,M(_,I,X,fe);case te:var ge=X._init;return le(I,_,D,ge(X._payload),fe)}if(Jn(X)||W(X))return I=I.get(D)||null,K(_,I,X,fe,null);Mi(_,X)}return null}function ue(I,_,D,X){for(var fe=null,ge=null,ve=_,Se=_=0,it=null;ve!==null&&Se<D.length;Se++){ve.index>Se?(it=ve,ve=null):it=ve.sibling;var Te=H(I,ve,D[Se],X);if(Te===null){ve===null&&(ve=it);break}e&&ve&&Te.alternate===null&&t(I,ve),_=m(Te,_,Se),ge===null?fe=Te:ge.sibling=Te,ge=Te,ve=it}if(Se===D.length)return o(I,ve),$e&&Ir(I,Se),fe;if(ve===null){for(;Se<D.length;Se++)ve=q(I,D[Se],X),ve!==null&&(_=m(ve,_,Se),ge===null?fe=ve:ge.sibling=ve,ge=ve);return $e&&Ir(I,Se),fe}for(ve=l(I,ve);Se<D.length;Se++)it=le(ve,I,Se,D[Se],X),it!==null&&(e&&it.alternate!==null&&ve.delete(it.key===null?Se:it.key),_=m(it,_,Se),ge===null?fe=it:ge.sibling=it,ge=it);return e&&ve.forEach(function(yr){return t(I,yr)}),$e&&Ir(I,Se),fe}function de(I,_,D,X){var fe=W(D);if(typeof fe!="function")throw Error(s(150));if(D=fe.call(D),D==null)throw Error(s(151));for(var ge=fe=null,ve=_,Se=_=0,it=null,Te=D.next();ve!==null&&!Te.done;Se++,Te=D.next()){ve.index>Se?(it=ve,ve=null):it=ve.sibling;var yr=H(I,ve,Te.value,X);if(yr===null){ve===null&&(ve=it);break}e&&ve&&yr.alternate===null&&t(I,ve),_=m(yr,_,Se),ge===null?fe=yr:ge.sibling=yr,ge=yr,ve=it}if(Te.done)return o(I,ve),$e&&Ir(I,Se),fe;if(ve===null){for(;!Te.done;Se++,Te=D.next())Te=q(I,Te.value,X),Te!==null&&(_=m(Te,_,Se),ge===null?fe=Te:ge.sibling=Te,ge=Te);return $e&&Ir(I,Se),fe}for(ve=l(I,ve);!Te.done;Se++,Te=D.next())Te=le(ve,I,Se,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&ve.delete(Te.key===null?Se:Te.key),_=m(Te,_,Se),ge===null?fe=Te:ge.sibling=Te,ge=Te);return e&&ve.forEach(function(Tx){return t(I,Tx)}),$e&&Ir(I,Se),fe}function Ze(I,_,D,X){if(typeof D=="object"&&D!==null&&D.type===$&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case B:e:{for(var fe=D.key,ge=_;ge!==null;){if(ge.key===fe){if(fe=D.type,fe===$){if(ge.tag===7){o(I,ge.sibling),_=c(ge,D.props.children),_.return=I,I=_;break e}}else if(ge.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===te&&Ef(fe)===ge.type){o(I,ge.sibling),_=c(ge,D.props),_.ref=ys(I,ge,D),_.return=I,I=_;break e}o(I,ge);break}else t(I,ge);ge=ge.sibling}D.type===$?(_=Wr(D.props.children,I.mode,X,D.key),_.return=I,I=_):(X=ll(D.type,D.key,D.props,null,I.mode,X),X.ref=ys(I,_,D),X.return=I,I=X)}return x(I);case V:e:{for(ge=D.key;_!==null;){if(_.key===ge)if(_.tag===4&&_.stateNode.containerInfo===D.containerInfo&&_.stateNode.implementation===D.implementation){o(I,_.sibling),_=c(_,D.children||[]),_.return=I,I=_;break e}else{o(I,_);break}else t(I,_);_=_.sibling}_=Uu(D,I.mode,X),_.return=I,I=_}return x(I);case te:return ge=D._init,Ze(I,_,ge(D._payload),X)}if(Jn(D))return ue(I,_,D,X);if(W(D))return de(I,_,D,X);Mi(I,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,_!==null&&_.tag===6?(o(I,_.sibling),_=c(_,D),_.return=I,I=_):(o(I,_),_=zu(D,I.mode,X),_.return=I,I=_),x(I)):o(I,_)}return Ze}var xo=Cf(!0),bf=Cf(!1),Fi=lr(null),zi=null,wo=null,qa=null;function Qa(){qa=wo=zi=null}function Xa(e){var t=Fi.current;Fe(Fi),e._currentValue=t}function Ja(e,t,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===o)break;e=e.return}}function So(e,t){zi=e,qa=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(qa!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(zi===null)throw Error(s(308));wo=e,zi.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Dr=null;function Za(e){Dr===null?Dr=[e]:Dr.push(e)}function Nf(e,t,o,l){var c=t.interleaved;return c===null?(o.next=o,Za(t)):(o.next=c.next,c.next=o),t.interleaved=o,zn(e,l)}function zn(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var cr=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rf(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 Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dr(e,t,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,zn(e,o)}return c=l.interleaved,c===null?(t.next=t,Za(l)):(t.next=c.next,c.next=t),l.interleaved=t,zn(e,o)}function Ui(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,ma(e,o)}}function kf(e,t){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?c=m=x:m=m.next=x,o=o.next}while(o!==null);m===null?c=m=t:m=m.next=t}else c=m=t;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:m,shared:l.shared,effects:l.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function Bi(e,t,o,l){var c=e.updateQueue;cr=!1;var m=c.firstBaseUpdate,x=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var P=R,M=P.next;P.next=null,x===null?m=M:x.next=M,x=P;var K=e.alternate;K!==null&&(K=K.updateQueue,R=K.lastBaseUpdate,R!==x&&(R===null?K.firstBaseUpdate=M:R.next=M,K.lastBaseUpdate=P))}if(m!==null){var q=c.baseState;x=0,K=M=P=null,R=m;do{var H=R.lane,le=R.eventTime;if((l&H)===H){K!==null&&(K=K.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ue=e,de=R;switch(H=t,le=o,de.tag){case 1:if(ue=de.payload,typeof ue=="function"){q=ue.call(le,q,H);break e}q=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=de.payload,H=typeof ue=="function"?ue.call(le,q,H):ue,H==null)break e;q=G({},q,H);break e;case 2:cr=!0}}R.callback!==null&&R.lane!==0&&(e.flags|=64,H=c.effects,H===null?c.effects=[R]:H.push(R))}else le={eventTime:le,lane:H,tag:R.tag,payload:R.payload,callback:R.callback,next:null},K===null?(M=K=le,P=q):K=K.next=le,x|=H;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;H=R,R=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);if(K===null&&(P=q),c.baseState=P,c.firstBaseUpdate=M,c.lastBaseUpdate=K,t=c.shared.interleaved,t!==null){c=t;do x|=c.lane,c=c.next;while(c!==t)}else m===null&&(c.shared.lanes=0);zr|=x,e.lanes=x,e.memoizedState=q}}function jf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(s(191,c));c.call(l)}}}var xs={},En=lr(xs),ws=lr(xs),Ss=lr(xs);function Mr(e){if(e===xs)throw Error(s(174));return e}function tu(e,t){switch(Ie(Ss,t),Ie(ws,e),Ie(En,xs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hn(t,e)}Fe(En),Ie(En,t)}function Eo(){Fe(En),Fe(ws),Fe(Ss)}function Pf(e){Mr(Ss.current);var t=Mr(En.current),o=hn(t,e.type);t!==o&&(Ie(ws,e),Ie(En,o))}function nu(e){ws.current===e&&(Fe(En),Fe(ws))}var He=lr(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.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 ru=[];function ou(){for(var e=0;e<ru.length;e++)ru[e]._workInProgressVersionPrimary=null;ru.length=0}var Wi=L.ReactCurrentDispatcher,su=L.ReactCurrentBatchConfig,Fr=0,Ke=null,nt=null,ot=null,Vi=!1,Es=!1,Cs=0,Jy=0;function ft(){throw Error(s(321))}function iu(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Zt(e[o],t[o]))return!1;return!0}function lu(e,t,o,l,c,m){if(Fr=m,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wi.current=e===null||e.memoizedState===null?nx:rx,e=o(l,c),Es){m=0;do{if(Es=!1,Cs=0,25<=m)throw Error(s(301));m+=1,ot=nt=null,t.updateQueue=null,Wi.current=ox,e=o(l,c)}while(Es)}if(Wi.current=Gi,t=nt!==null&&nt.next!==null,Fr=0,ot=nt=Ke=null,Vi=!1,t)throw Error(s(300));return e}function au(){var e=Cs!==0;return Cs=0,e}function Cn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Ke.memoizedState=ot=e:ot=ot.next=e,ot}function Vt(){if(nt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=ot===null?Ke.memoizedState:ot.next;if(t!==null)ot=t,nt=e;else{if(e===null)throw Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},ot===null?Ke.memoizedState=ot=e:ot=ot.next=e}return ot}function bs(e,t){return typeof t=="function"?t(e):t}function uu(e){var t=Vt(),o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var l=nt,c=l.baseQueue,m=o.pending;if(m!==null){if(c!==null){var x=c.next;c.next=m.next,m.next=x}l.baseQueue=c=m,o.pending=null}if(c!==null){m=c.next,l=l.baseState;var R=x=null,P=null,M=m;do{var K=M.lane;if((Fr&K)===K)P!==null&&(P=P.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),l=M.hasEagerState?M.eagerState:e(l,M.action);else{var q={lane:K,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};P===null?(R=P=q,x=l):P=P.next=q,Ke.lanes|=K,zr|=K}M=M.next}while(M!==null&&M!==m);P===null?x=l:P.next=R,Zt(l,t.memoizedState)||(Rt=!0),t.memoizedState=l,t.baseState=x,t.baseQueue=P,o.lastRenderedState=l}if(e=o.interleaved,e!==null){c=e;do m=c.lane,Ke.lanes|=m,zr|=m,c=c.next;while(c!==e)}else c===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function cu(e){var t=Vt(),o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var l=o.dispatch,c=o.pending,m=t.memoizedState;if(c!==null){o.pending=null;var x=c=c.next;do m=e(m,x.action),x=x.next;while(x!==c);Zt(m,t.memoizedState)||(Rt=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),o.lastRenderedState=m}return[m,l]}function Tf(){}function Of(e,t){var o=Ke,l=Vt(),c=t(),m=!Zt(l.memoizedState,c);if(m&&(l.memoizedState=c,Rt=!0),l=l.queue,du(Lf.bind(null,o,l,e),[e]),l.getSnapshot!==t||m||ot!==null&&ot.memoizedState.tag&1){if(o.flags|=2048,Ns(9,Af.bind(null,o,l,c,t),void 0,null),st===null)throw Error(s(349));(Fr&30)!==0||_f(o,t,c)}return c}function _f(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Ke.updateQueue,t===null?(t={lastEffect:null,stores:null},Ke.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Af(e,t,o,l){t.value=o,t.getSnapshot=l,If(t)&&Df(e)}function Lf(e,t,o){return o(function(){If(t)&&Df(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Zt(e,o)}catch{return!0}}function Df(e){var t=zn(e,1);t!==null&&on(t,e,1,-1)}function Mf(e){var t=Cn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:e},t.queue=e,e=e.dispatch=tx.bind(null,Ke,e),[t.memoizedState,e]}function Ns(e,t,o,l){return e={tag:e,create:t,destroy:o,deps:l,next:null},t=Ke.updateQueue,t===null?(t={lastEffect:null,stores:null},Ke.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,t.lastEffect=e)),e}function Ff(){return Vt().memoizedState}function Hi(e,t,o,l){var c=Cn();Ke.flags|=e,c.memoizedState=Ns(1|t,o,void 0,l===void 0?null:l)}function Ki(e,t,o,l){var c=Vt();l=l===void 0?null:l;var m=void 0;if(nt!==null){var x=nt.memoizedState;if(m=x.destroy,l!==null&&iu(l,x.deps)){c.memoizedState=Ns(t,o,m,l);return}}Ke.flags|=e,c.memoizedState=Ns(1|t,o,m,l)}function zf(e,t){return Hi(8390656,8,e,t)}function du(e,t){return Ki(2048,8,e,t)}function Uf(e,t){return Ki(4,2,e,t)}function Bf(e,t){return Ki(4,4,e,t)}function $f(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 Wf(e,t,o){return o=o!=null?o.concat([e]):null,Ki(4,4,$f.bind(null,t,e),o)}function fu(){}function Vf(e,t){var o=Vt();t=t===void 0?null:t;var l=o.memoizedState;return l!==null&&t!==null&&iu(t,l[1])?l[0]:(o.memoizedState=[e,t],e)}function Hf(e,t){var o=Vt();t=t===void 0?null:t;var l=o.memoizedState;return l!==null&&t!==null&&iu(t,l[1])?l[0]:(e=e(),o.memoizedState=[e,t],e)}function Kf(e,t,o){return(Fr&21)===0?(e.baseState&&(e.baseState=!1,Rt=!0),e.memoizedState=o):(Zt(o,t)||(o=Sd(),Ke.lanes|=o,zr|=o,e.baseState=!0),t)}function Zy(e,t){var o=Ae;Ae=o!==0&&4>o?o:4,e(!0);var l=su.transition;su.transition={};try{e(!1),t()}finally{Ae=o,su.transition=l}}function Gf(){return Vt().memoizedState}function ex(e,t,o){var l=hr(e);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Yf(e))qf(t,o);else if(o=Nf(e,t,o,l),o!==null){var c=wt();on(o,e,l,c),Qf(o,t,l)}}function tx(e,t,o){var l=hr(e),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Yf(e))qf(t,c);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null))try{var x=t.lastRenderedState,R=m(x,o);if(c.hasEagerState=!0,c.eagerState=R,Zt(R,x)){var P=t.interleaved;P===null?(c.next=c,Za(t)):(c.next=P.next,P.next=c),t.interleaved=c;return}}catch{}finally{}o=Nf(e,t,c,l),o!==null&&(c=wt(),on(o,e,l,c),Qf(o,t,l))}}function Yf(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function qf(e,t){Es=Vi=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Qf(e,t,o){if((o&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,ma(e,o)}}var Gi={readContext:Wt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},nx={readContext:Wt,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:zf,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Hi(4194308,4,$f.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var o=Cn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var l=Cn();return t=o!==void 0?o(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=ex.bind(null,Ke,e),[l.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:Mf,useDebugValue:fu,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=Mf(!1),t=e[0];return e=Zy.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var l=Ke,c=Cn();if($e){if(o===void 0)throw Error(s(407));o=o()}else{if(o=t(),st===null)throw Error(s(349));(Fr&30)!==0||_f(l,t,o)}c.memoizedState=o;var m={value:o,getSnapshot:t};return c.queue=m,zf(Lf.bind(null,l,m,e),[e]),l.flags|=2048,Ns(9,Af.bind(null,l,m,o,t),void 0,null),o},useId:function(){var e=Cn(),t=st.identifierPrefix;if($e){var o=Fn,l=Mn;o=(l&~(1<<32-Jt(l)-1)).toString(32)+o,t=":"+t+"R"+o,o=Cs++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=Jy++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rx={readContext:Wt,useCallback:Vf,useContext:Wt,useEffect:du,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:Hf,useReducer:uu,useRef:Ff,useState:function(){return uu(bs)},useDebugValue:fu,useDeferredValue:function(e){var t=Vt();return Kf(t,nt.memoizedState,e)},useTransition:function(){var e=uu(bs)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:Tf,useSyncExternalStore:Of,useId:Gf,unstable_isNewReconciler:!1},ox={readContext:Wt,useCallback:Vf,useContext:Wt,useEffect:du,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:Hf,useReducer:cu,useRef:Ff,useState:function(){return cu(bs)},useDebugValue:fu,useDeferredValue:function(e){var t=Vt();return nt===null?t.memoizedState=e:Kf(t,nt.memoizedState,e)},useTransition:function(){var e=cu(bs)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:Tf,useSyncExternalStore:Of,useId:Gf,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function pu(e,t,o,l){t=e.memoizedState,o=o(l,t),o=o==null?t:G({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Yi={isMounted:function(e){return(e=e._reactInternals)?Or(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var l=wt(),c=hr(e),m=Un(l,c);m.payload=t,o!=null&&(m.callback=o),t=dr(e,m,c),t!==null&&(on(t,e,c,l),Ui(t,e,c))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var l=wt(),c=hr(e),m=Un(l,c);m.tag=1,m.payload=t,o!=null&&(m.callback=o),t=dr(e,m,c),t!==null&&(on(t,e,c,l),Ui(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=wt(),l=hr(e),c=Un(o,l);c.tag=2,t!=null&&(c.callback=t),t=dr(e,c,l),t!==null&&(on(t,e,l,o),Ui(t,e,l))}};function Xf(e,t,o,l,c,m,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,m,x):t.prototype&&t.prototype.isPureReactComponent?!ds(o,l)||!ds(c,m):!0}function Jf(e,t,o){var l=!1,c=ar,m=t.contextType;return typeof m=="object"&&m!==null?m=Wt(m):(c=Nt(t)?Ar:dt.current,l=t.contextTypes,m=(l=l!=null)?ho(e,c):ar),t=new t(o,m),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yi,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=m),t}function Zf(e,t,o,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,l),t.state!==e&&Yi.enqueueReplaceState(t,t.state,null)}function mu(e,t,o,l){var c=e.stateNode;c.props=o,c.state=e.memoizedState,c.refs={},eu(e);var m=t.contextType;typeof m=="object"&&m!==null?c.context=Wt(m):(m=Nt(t)?Ar:dt.current,c.context=ho(e,m)),c.state=e.memoizedState,m=t.getDerivedStateFromProps,typeof m=="function"&&(pu(e,t,m,o),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Yi.enqueueReplaceState(c,c.state,null),Bi(e,o,c,l),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var o="",l=t;do o+=he(l),l=l.return;while(l);var c=o}catch(m){c=`
|
|
39
|
-
Error generating stack: `+m.message+`
|
|
40
|
-
`+m.stack}return{value:e,source:t,stack:c,digest:null}}function hu(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function gu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var sx=typeof WeakMap=="function"?WeakMap:Map;function ep(e,t,o){o=Un(-1,o),o.tag=3,o.payload={element:null};var l=t.value;return o.callback=function(){tl||(tl=!0,Ou=l),gu(e,t)},o}function tp(e,t,o){o=Un(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var c=t.value;o.payload=function(){return l(c)},o.callback=function(){gu(e,t)}}var m=e.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){gu(e,t),typeof l!="function"&&(pr===null?pr=new Set([this]):pr.add(this));var x=t.stack;this.componentDidCatch(t.value,{componentStack:x!==null?x:""})}),o}function np(e,t,o){var l=e.pingCache;if(l===null){l=e.pingCache=new sx;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(o)||(c.add(o),e=xx.bind(null,e,t,o),t.then(e,e))}function rp(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 op(e,t,o,l,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Un(-1,1),t.tag=2,dr(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var ix=L.ReactCurrentOwner,Rt=!1;function xt(e,t,o,l){t.child=e===null?bf(t,null,o,l):xo(t,e.child,o,l)}function sp(e,t,o,l,c){o=o.render;var m=t.ref;return So(t,c),l=lu(e,t,o,l,m,c),o=au(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Bn(e,t,c)):($e&&o&&Va(t),t.flags|=1,xt(e,t,l,c),t.child)}function ip(e,t,o,l,c){if(e===null){var m=o.type;return typeof m=="function"&&!Fu(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=m,lp(e,t,m,l,c)):(e=ll(o.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,(e.lanes&c)===0){var x=m.memoizedProps;if(o=o.compare,o=o!==null?o:ds,o(x,l)&&e.ref===t.ref)return Bn(e,t,c)}return t.flags|=1,e=vr(m,l),e.ref=t.ref,e.return=t,t.child=e}function lp(e,t,o,l,c){if(e!==null){var m=e.memoizedProps;if(ds(m,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=m,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,Bn(e,t,c)}return vu(e,t,o,l,c)}function ap(e,t,o){var l=t.pendingProps,c=l.children,m=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(No,Mt),Mt|=o;else{if((o&1073741824)===0)return e=m!==null?m.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(No,Mt),Mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=m!==null?m.baseLanes:o,Ie(No,Mt),Mt|=l}else m!==null?(l=m.baseLanes|o,t.memoizedState=null):l=o,Ie(No,Mt),Mt|=l;return xt(e,t,c,o),t.child}function up(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function vu(e,t,o,l,c){var m=Nt(o)?Ar:dt.current;return m=ho(t,m),So(t,c),o=lu(e,t,o,l,m,c),l=au(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Bn(e,t,c)):($e&&l&&Va(t),t.flags|=1,xt(e,t,o,c),t.child)}function cp(e,t,o,l,c){if(Nt(o)){var m=!0;_i(t)}else m=!1;if(So(t,c),t.stateNode===null)Qi(e,t),Jf(t,o,l),mu(t,o,l,c),l=!0;else if(e===null){var x=t.stateNode,R=t.memoizedProps;x.props=R;var P=x.context,M=o.contextType;typeof M=="object"&&M!==null?M=Wt(M):(M=Nt(o)?Ar:dt.current,M=ho(t,M));var K=o.getDerivedStateFromProps,q=typeof K=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==l||P!==M)&&Zf(t,x,l,M),cr=!1;var H=t.memoizedState;x.state=H,Bi(t,l,x,c),P=t.memoizedState,R!==l||H!==P||bt.current||cr?(typeof K=="function"&&(pu(t,o,K,l),P=t.memoizedState),(R=cr||Xf(t,o,R,l,H,P,M))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(t.flags|=4194308)):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=P),x.props=l,x.state=P,x.context=M,l=R):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{x=t.stateNode,Rf(e,t),R=t.memoizedProps,M=t.type===t.elementType?R:tn(t.type,R),x.props=M,q=t.pendingProps,H=x.context,P=o.contextType,typeof P=="object"&&P!==null?P=Wt(P):(P=Nt(o)?Ar:dt.current,P=ho(t,P));var le=o.getDerivedStateFromProps;(K=typeof le=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==q||H!==P)&&Zf(t,x,l,P),cr=!1,H=t.memoizedState,x.state=H,Bi(t,l,x,c);var ue=t.memoizedState;R!==q||H!==ue||bt.current||cr?(typeof le=="function"&&(pu(t,o,le,l),ue=t.memoizedState),(M=cr||Xf(t,o,M,l,H,ue,P)||!1)?(K||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(l,ue,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(l,ue,P)),typeof x.componentDidUpdate=="function"&&(t.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof x.componentDidUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ue),x.props=l,x.state=ue,x.context=P,l=M):(typeof x.componentDidUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return yu(e,t,o,l,m,c)}function yu(e,t,o,l,c,m){up(e,t);var x=(t.flags&128)!==0;if(!l&&!x)return c&&hf(t,o,!1),Bn(e,t,m);l=t.stateNode,ix.current=t;var R=x&&typeof o.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&x?(t.child=xo(t,e.child,null,m),t.child=xo(t,null,R,m)):xt(e,t,R,m),t.memoizedState=l.state,c&&hf(t,o,!0),t.child}function dp(e){var t=e.stateNode;t.pendingContext?pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pf(e,t.context,!1),tu(e,t.containerInfo)}function fp(e,t,o,l,c){return yo(),Ya(c),t.flags|=256,xt(e,t,o,l),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0};function wu(e){return{baseLanes:e,cachePool:null,transitions:null}}function pp(e,t,o){var l=t.pendingProps,c=He.current,m=!1,x=(t.flags&128)!==0,R;if((R=x)||(R=e!==null&&e.memoizedState===null?!1:(c&2)!==0),R?(m=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Ie(He,c&1),e===null)return Ga(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):(x=l.children,e=l.fallback,m?(l=t.mode,m=t.child,x={mode:"hidden",children:x},(l&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=x):m=al(x,l,0,null),e=Wr(e,l,o,null),m.return=t,e.return=t,m.sibling=e,t.child=m,t.child.memoizedState=wu(o),t.memoizedState=xu,e):Su(t,x));if(c=e.memoizedState,c!==null&&(R=c.dehydrated,R!==null))return lx(e,t,x,l,R,c,o);if(m){m=l.fallback,x=t.mode,c=e.child,R=c.sibling;var P={mode:"hidden",children:l.children};return(x&1)===0&&t.child!==c?(l=t.child,l.childLanes=0,l.pendingProps=P,t.deletions=null):(l=vr(c,P),l.subtreeFlags=c.subtreeFlags&14680064),R!==null?m=vr(R,m):(m=Wr(m,x,o,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,l=m,m=t.child,x=e.child.memoizedState,x=x===null?wu(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},m.memoizedState=x,m.childLanes=e.childLanes&~o,t.memoizedState=xu,l}return m=e.child,e=m.sibling,l=vr(m,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=o),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l}function Su(e,t){return t=al({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qi(e,t,o,l){return l!==null&&Ya(l),xo(t,e.child,null,o),e=Su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lx(e,t,o,l,c,m,x){if(o)return t.flags&256?(t.flags&=-257,l=hu(Error(s(422))),qi(e,t,x,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(m=l.fallback,c=t.mode,l=al({mode:"visible",children:l.children},c,0,null),m=Wr(m,c,x,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,(t.mode&1)!==0&&xo(t,e.child,null,x),t.child.memoizedState=wu(x),t.memoizedState=xu,m);if((t.mode&1)===0)return qi(e,t,x,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var R=l.dgst;return l=R,m=Error(s(419)),l=hu(m,l,void 0),qi(e,t,x,l)}if(R=(x&e.childLanes)!==0,Rt||R){if(l=st,l!==null){switch(x&-x){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|x))!==0?0:c,c!==0&&c!==m.retryLane&&(m.retryLane=c,zn(e,c),on(l,e,c,-1))}return Mu(),l=hu(Error(s(421))),qi(e,t,x,l)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=wx.bind(null,e),c._reactRetry=t,null):(e=m.treeContext,Dt=ir(c.nextSibling),It=t,$e=!0,en=null,e!==null&&(Bt[$t++]=Mn,Bt[$t++]=Fn,Bt[$t++]=Lr,Mn=e.id,Fn=e.overflow,Lr=t),t=Su(t,l.children),t.flags|=4096,t)}function mp(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ja(e.return,t,o)}function Eu(e,t,o,l,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=o,m.tailMode=c)}function hp(e,t,o){var l=t.pendingProps,c=l.revealOrder,m=l.tail;if(xt(e,t,l.children,o),l=He.current,(l&2)!==0)l=l&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&&mp(e,o,t);else if(e.tag===19)mp(e,o,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}l&=1}if(Ie(He,l),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(o=t.child,c=null;o!==null;)e=o.alternate,e!==null&&$i(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=t.child,t.child=null):(c=o.sibling,o.sibling=null),Eu(t,!1,c,o,m);break;case"backwards":for(o=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&$i(e)===null){t.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e}Eu(t,!0,o,null,m);break;case"together":Eu(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 Bn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),zr|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,o=vr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=vr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function ax(e,t,o){switch(t.tag){case 3:dp(t),yo();break;case 5:Pf(t);break;case 1:Nt(t.type)&&_i(t);break;case 4:tu(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,c=t.memoizedProps.value;Ie(Fi,l._currentValue),l._currentValue=c;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Ie(He,He.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?pp(e,t,o):(Ie(He,He.current&1),e=Bn(e,t,o),e!==null?e.sibling:null);Ie(He,He.current&1);break;case 19:if(l=(o&t.childLanes)!==0,(e.flags&128)!==0){if(l)return hp(e,t,o);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ie(He,He.current),l)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,o)}return Bn(e,t,o)}var gp,Cu,vp,yp;gp=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Cu=function(){},vp=function(e,t,o,l){var c=e.memoizedProps;if(c!==l){e=t.stateNode,Mr(En.current);var m=null;switch(o){case"input":c=ct(e,c),l=ct(e,l),m=[];break;case"select":c=G({},c,{value:void 0}),l=G({},l,{value:void 0}),m=[];break;case"textarea":c=eo(e,c),l=eo(e,l),m=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Pi)}vn(o,l);var x;o=null;for(M in c)if(!l.hasOwnProperty(M)&&c.hasOwnProperty(M)&&c[M]!=null)if(M==="style"){var R=c[M];for(x in R)R.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(a.hasOwnProperty(M)?m||(m=[]):(m=m||[]).push(M,null));for(M in l){var P=l[M];if(R=c!=null?c[M]:void 0,l.hasOwnProperty(M)&&P!==R&&(P!=null||R!=null))if(M==="style")if(R){for(x in R)!R.hasOwnProperty(x)||P&&P.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in P)P.hasOwnProperty(x)&&R[x]!==P[x]&&(o||(o={}),o[x]=P[x])}else o||(m||(m=[]),m.push(M,o)),o=P;else M==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,R=R?R.__html:void 0,P!=null&&R!==P&&(m=m||[]).push(M,P)):M==="children"?typeof P!="string"&&typeof P!="number"||(m=m||[]).push(M,""+P):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(a.hasOwnProperty(M)?(P!=null&&M==="onScroll"&&Me("scroll",e),m||R===P||(m=[])):(m=m||[]).push(M,P))}o&&(m=m||[]).push("style",o);var M=m;(t.updateQueue=M)&&(t.flags|=4)}},yp=function(e,t,o,l){o!==l&&(t.flags|=4)};function Rs(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(t)for(var c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=o,t}function ux(e,t,o){var l=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return Nt(t.type)&&Oi(),pt(t),null;case 3:return l=t.stateNode,Eo(),Fe(bt),Fe(dt),ou(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Di(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,en!==null&&(Lu(en),en=null))),Cu(e,t),pt(t),null;case 5:nu(t);var c=Mr(Ss.current);if(o=t.type,e!==null&&t.stateNode!=null)vp(e,t,o,l,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(s(166));return pt(t),null}if(e=Mr(En.current),Di(t)){l=t.stateNode,o=t.type;var m=t.memoizedProps;switch(l[Sn]=t,l[gs]=m,e=(t.mode&1)!==0,o){case"dialog":Me("cancel",l),Me("close",l);break;case"iframe":case"object":case"embed":Me("load",l);break;case"video":case"audio":for(c=0;c<ps.length;c++)Me(ps[c],l);break;case"source":Me("error",l);break;case"img":case"image":case"link":Me("error",l),Me("load",l);break;case"details":Me("toggle",l);break;case"input":fn(l,m),Me("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!m.multiple},Me("invalid",l);break;case"textarea":mn(l,m),Me("invalid",l)}vn(o,m),c=null;for(var x in m)if(m.hasOwnProperty(x)){var R=m[x];x==="children"?typeof R=="string"?l.textContent!==R&&(m.suppressHydrationWarning!==!0&&ji(l.textContent,R,e),c=["children",R]):typeof R=="number"&&l.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&ji(l.textContent,R,e),c=["children",""+R]):a.hasOwnProperty(x)&&R!=null&&x==="onScroll"&&Me("scroll",l)}switch(o){case"input":Ne(l),Xn(l,m,!0);break;case"textarea":Ne(l),ri(l);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(l.onclick=Pi)}l=c,t.updateQueue=l,l!==null&&(t.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vt(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=x.createElement(o,{is:l.is}):(e=x.createElement(o),o==="select"&&(x=e,l.multiple?x.multiple=!0:l.size&&(x.size=l.size))):e=x.createElementNS(e,o),e[Sn]=t,e[gs]=l,gp(e,t,!1,!1),t.stateNode=e;e:{switch(x=Qo(o,l),o){case"dialog":Me("cancel",e),Me("close",e),c=l;break;case"iframe":case"object":case"embed":Me("load",e),c=l;break;case"video":case"audio":for(c=0;c<ps.length;c++)Me(ps[c],e);c=l;break;case"source":Me("error",e),c=l;break;case"img":case"image":case"link":Me("error",e),Me("load",e),c=l;break;case"details":Me("toggle",e),c=l;break;case"input":fn(e,l),c=ct(e,l),Me("invalid",e);break;case"option":c=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},c=G({},l,{value:void 0}),Me("invalid",e);break;case"textarea":mn(e,l),c=eo(e,l),Me("invalid",e);break;default:c=l}vn(o,c),R=c;for(m in R)if(R.hasOwnProperty(m)){var P=R[m];m==="style"?Ln(e,P):m==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&oi(e,P)):m==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&gn(e,P):typeof P=="number"&&gn(e,""+P):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?P!=null&&m==="onScroll"&&Me("scroll",e):P!=null&&j(e,m,P,x))}switch(o){case"input":Ne(e),Xn(e,l,!1);break;case"textarea":Ne(e),ri(e);break;case"option":l.value!=null&&e.setAttribute("value",""+pe(l.value));break;case"select":e.multiple=!!l.multiple,m=l.value,m!=null?Ut(e,!!l.multiple,m,!1):l.defaultValue!=null&&Ut(e,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Pi)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)yp(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(o=Mr(Ss.current),Mr(En.current),Di(t)){if(l=t.stateNode,o=t.memoizedProps,l[Sn]=t,(m=l.nodeValue!==o)&&(e=It,e!==null))switch(e.tag){case 3:ji(l.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ji(l.nodeValue,o,(e.mode&1)!==0)}m&&(t.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Sn]=t,t.stateNode=l}return pt(t),null;case 13:if(Fe(He),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($e&&Dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Sf(),yo(),t.flags|=98560,m=!1;else if(m=Di(t),l!==null&&l.dehydrated!==null){if(e===null){if(!m)throw Error(s(318));if(m=t.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(s(317));m[Sn]=t}else yo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),m=!1}else en!==null&&(Lu(en),en=null),m=!0;if(!m)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(He.current&1)!==0?rt===0&&(rt=3):Mu())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return Eo(),Cu(e,t),e===null&&ms(t.stateNode.containerInfo),pt(t),null;case 10:return Xa(t.type._context),pt(t),null;case 17:return Nt(t.type)&&Oi(),pt(t),null;case 19:if(Fe(He),m=t.memoizedState,m===null)return pt(t),null;if(l=(t.flags&128)!==0,x=m.rendering,x===null)if(l)Rs(m,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(x=$i(e),x!==null){for(t.flags|=128,Rs(m,!1),l=x.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=o,o=t.child;o!==null;)m=o,e=l,m.flags&=14680066,x=m.alternate,x===null?(m.childLanes=0,m.lanes=e,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=x.childLanes,m.lanes=x.lanes,m.child=x.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=x.memoizedProps,m.memoizedState=x.memoizedState,m.updateQueue=x.updateQueue,m.type=x.type,e=x.dependencies,m.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ie(He,He.current&1|2),t.child}e=e.sibling}m.tail!==null&&Je()>Ro&&(t.flags|=128,l=!0,Rs(m,!1),t.lanes=4194304)}else{if(!l)if(e=$i(x),e!==null){if(t.flags|=128,l=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Rs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!x.alternate&&!$e)return pt(t),null}else 2*Je()-m.renderingStartTime>Ro&&o!==1073741824&&(t.flags|=128,l=!0,Rs(m,!1),t.lanes=4194304);m.isBackwards?(x.sibling=t.child,t.child=x):(o=m.last,o!==null?o.sibling=x:t.child=x,m.last=x)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=Je(),t.sibling=null,o=He.current,Ie(He,l?o&1|2:o&1),t):(pt(t),null);case 22:case 23:return Du(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(Mt&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function cx(e,t){switch(Ha(t),t.tag){case 1:return Nt(t.type)&&Oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Eo(),Fe(bt),Fe(dt),ou(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return nu(t),null;case 13:if(Fe(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(He),null;case 4:return Eo(),null;case 10:return Xa(t.type._context),null;case 22:case 23:return Du(),null;case 24:return null;default:return null}}var Xi=!1,mt=!1,dx=typeof WeakSet=="function"?WeakSet:Set,ae=null;function bo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Qe(e,t,l)}else o.current=null}function bu(e,t,o){try{o()}catch(l){Qe(e,t,l)}}var xp=!1;function fx(e,t){if(Da=vi,e=Qd(),ja(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var x=0,R=-1,P=-1,M=0,K=0,q=e,H=null;t:for(;;){for(var le;q!==o||c!==0&&q.nodeType!==3||(R=x+c),q!==m||l!==0&&q.nodeType!==3||(P=x+l),q.nodeType===3&&(x+=q.nodeValue.length),(le=q.firstChild)!==null;)H=q,q=le;for(;;){if(q===e)break t;if(H===o&&++M===c&&(R=x),H===m&&++K===l&&(P=x),(le=q.nextSibling)!==null)break;q=H,H=q.parentNode}q=le}o=R===-1||P===-1?null:{start:R,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ma={focusedElem:e,selectionRange:o},vi=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var ue=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var de=ue.memoizedProps,Ze=ue.memoizedState,I=t.stateNode,_=I.getSnapshotBeforeUpdate(t.elementType===t.type?de:tn(t.type,de),Ze);I.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(X){Qe(t,t.return,X)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return ue=xp,xp=!1,ue}function ks(e,t,o){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&e)===e){var m=c.destroy;c.destroy=void 0,m!==void 0&&bu(t,o,m)}c=c.next}while(c!==l)}}function Ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==t)}}function Nu(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function wp(e){var t=e.alternate;t!==null&&(e.alternate=null,wp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[gs],delete t[Ba],delete t[Yy],delete t[qy])),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 Sp(e){return e.tag===5||e.tag===3||e.tag===4}function Ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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 Ru(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=Pi));else if(l!==4&&(e=e.child,e!==null))for(Ru(e,t,o),e=e.sibling;e!==null;)Ru(e,t,o),e=e.sibling}function ku(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ku(e,t,o),e=e.sibling;e!==null;)ku(e,t,o),e=e.sibling}var at=null,nn=!1;function fr(e,t,o){for(o=o.child;o!==null;)Cp(e,t,o),o=o.sibling}function Cp(e,t,o){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(di,o)}catch{}switch(o.tag){case 5:mt||bo(o,t);case 6:var l=at,c=nn;at=null,fr(e,t,o),at=l,nn=c,at!==null&&(nn?(e=at,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):at.removeChild(o.stateNode));break;case 18:at!==null&&(nn?(e=at,o=o.stateNode,e.nodeType===8?Ua(e.parentNode,o):e.nodeType===1&&Ua(e,o),ss(e)):Ua(at,o.stateNode));break;case 4:l=at,c=nn,at=o.stateNode.containerInfo,nn=!0,fr(e,t,o),at=l,nn=c;break;case 0:case 11:case 14:case 15:if(!mt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var m=c,x=m.destroy;m=m.tag,x!==void 0&&((m&2)!==0||(m&4)!==0)&&bu(o,t,x),c=c.next}while(c!==l)}fr(e,t,o);break;case 1:if(!mt&&(bo(o,t),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(R){Qe(o,t,R)}fr(e,t,o);break;case 21:fr(e,t,o);break;case 22:o.mode&1?(mt=(l=mt)||o.memoizedState!==null,fr(e,t,o),mt=l):fr(e,t,o);break;default:fr(e,t,o)}}function bp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new dx),t.forEach(function(l){var c=Sx.bind(null,e,l);o.has(l)||(o.add(l),l.then(c,c))})}}function rn(e,t){var o=t.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var m=e,x=t,R=x;e:for(;R!==null;){switch(R.tag){case 5:at=R.stateNode,nn=!1;break e;case 3:at=R.stateNode.containerInfo,nn=!0;break e;case 4:at=R.stateNode.containerInfo,nn=!0;break e}R=R.return}if(at===null)throw Error(s(160));Cp(m,x,c),at=null,nn=!1;var P=c.alternate;P!==null&&(P.return=null),c.return=null}catch(M){Qe(c,t,M)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Np(t,e),t=t.sibling}function Np(e,t){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rn(t,e),bn(e),l&4){try{ks(3,e,e.return),Ji(3,e)}catch(de){Qe(e,e.return,de)}try{ks(5,e,e.return)}catch(de){Qe(e,e.return,de)}}break;case 1:rn(t,e),bn(e),l&512&&o!==null&&bo(o,o.return);break;case 5:if(rn(t,e),bn(e),l&512&&o!==null&&bo(o,o.return),e.flags&32){var c=e.stateNode;try{gn(c,"")}catch(de){Qe(e,e.return,de)}}if(l&4&&(c=e.stateNode,c!=null)){var m=e.memoizedProps,x=o!==null?o.memoizedProps:m,R=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&Yt(c,m),Qo(R,x);var M=Qo(R,m);for(x=0;x<P.length;x+=2){var K=P[x],q=P[x+1];K==="style"?Ln(c,q):K==="dangerouslySetInnerHTML"?oi(c,q):K==="children"?gn(c,q):j(c,K,q,M)}switch(R){case"input":qt(c,m);break;case"textarea":ni(c,m);break;case"select":var H=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?Ut(c,!!m.multiple,le,!1):H!==!!m.multiple&&(m.defaultValue!=null?Ut(c,!!m.multiple,m.defaultValue,!0):Ut(c,!!m.multiple,m.multiple?[]:"",!1))}c[gs]=m}catch(de){Qe(e,e.return,de)}}break;case 6:if(rn(t,e),bn(e),l&4){if(e.stateNode===null)throw Error(s(162));c=e.stateNode,m=e.memoizedProps;try{c.nodeValue=m}catch(de){Qe(e,e.return,de)}}break;case 3:if(rn(t,e),bn(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ss(t.containerInfo)}catch(de){Qe(e,e.return,de)}break;case 4:rn(t,e),bn(e);break;case 13:rn(t,e),bn(e),c=e.child,c.flags&8192&&(m=c.memoizedState!==null,c.stateNode.isHidden=m,!m||c.alternate!==null&&c.alternate.memoizedState!==null||(Tu=Je())),l&4&&bp(e);break;case 22:if(K=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(M=mt)||K,rn(t,e),mt=M):rn(t,e),bn(e),l&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!K&&(e.mode&1)!==0)for(ae=e,K=e.child;K!==null;){for(q=ae=K;ae!==null;){switch(H=ae,le=H.child,H.tag){case 0:case 11:case 14:case 15:ks(4,H,H.return);break;case 1:bo(H,H.return);var ue=H.stateNode;if(typeof ue.componentWillUnmount=="function"){l=H,o=H.return;try{t=l,ue.props=t.memoizedProps,ue.state=t.memoizedState,ue.componentWillUnmount()}catch(de){Qe(l,o,de)}}break;case 5:bo(H,H.return);break;case 22:if(H.memoizedState!==null){jp(q);continue}}le!==null?(le.return=H,ae=le):jp(q)}K=K.sibling}e:for(K=null,q=e;;){if(q.tag===5){if(K===null){K=q;try{c=q.stateNode,M?(m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=q.stateNode,P=q.memoizedProps.style,x=P!=null&&P.hasOwnProperty("display")?P.display:null,R.style.display=no("display",x))}catch(de){Qe(e,e.return,de)}}}else if(q.tag===6){if(K===null)try{q.stateNode.nodeValue=M?"":q.memoizedProps}catch(de){Qe(e,e.return,de)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;K===q&&(K=null),q=q.return}K===q&&(K=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:rn(t,e),bn(e),l&4&&bp(e);break;case 21:break;default:rn(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(Sp(o)){var l=o;break e}o=o.return}throw Error(s(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(gn(c,""),l.flags&=-33);var m=Ep(e);ku(e,m,c);break;case 3:case 4:var x=l.stateNode.containerInfo,R=Ep(e);Ru(e,R,x);break;default:throw Error(s(161))}}catch(P){Qe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function px(e,t,o){ae=e,Rp(e)}function Rp(e,t,o){for(var l=(e.mode&1)!==0;ae!==null;){var c=ae,m=c.child;if(c.tag===22&&l){var x=c.memoizedState!==null||Xi;if(!x){var R=c.alternate,P=R!==null&&R.memoizedState!==null||mt;R=Xi;var M=mt;if(Xi=x,(mt=P)&&!M)for(ae=c;ae!==null;)x=ae,P=x.child,x.tag===22&&x.memoizedState!==null?Pp(c):P!==null?(P.return=x,ae=P):Pp(c);for(;m!==null;)ae=m,Rp(m),m=m.sibling;ae=c,Xi=R,mt=M}kp(e)}else(c.subtreeFlags&8772)!==0&&m!==null?(m.return=c,ae=m):kp(e)}}function kp(e){for(;ae!==null;){var t=ae;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||Ji(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!mt)if(o===null)l.componentDidMount();else{var c=t.elementType===t.type?o.memoizedProps:tn(t.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var m=t.updateQueue;m!==null&&jf(t,m,l);break;case 3:var x=t.updateQueue;if(x!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}jf(t,x,o)}break;case 5:var R=t.stateNode;if(o===null&&t.flags&4){o=R;var P=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var M=t.alternate;if(M!==null){var K=M.memoizedState;if(K!==null){var q=K.dehydrated;q!==null&&ss(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}mt||t.flags&512&&Nu(t)}catch(H){Qe(t,t.return,H)}}if(t===e){ae=null;break}if(o=t.sibling,o!==null){o.return=t.return,ae=o;break}ae=t.return}}function jp(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ae=o;break}ae=t.return}}function Pp(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{Ji(4,t)}catch(P){Qe(t,o,P)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var c=t.return;try{l.componentDidMount()}catch(P){Qe(t,c,P)}}var m=t.return;try{Nu(t)}catch(P){Qe(t,m,P)}break;case 5:var x=t.return;try{Nu(t)}catch(P){Qe(t,x,P)}}}catch(P){Qe(t,t.return,P)}if(t===e){ae=null;break}var R=t.sibling;if(R!==null){R.return=t.return,ae=R;break}ae=t.return}}var mx=Math.ceil,Zi=L.ReactCurrentDispatcher,ju=L.ReactCurrentOwner,Ht=L.ReactCurrentBatchConfig,je=0,st=null,tt=null,ut=0,Mt=0,No=lr(0),rt=0,js=null,zr=0,el=0,Pu=0,Ps=null,kt=null,Tu=0,Ro=1/0,$n=null,tl=!1,Ou=null,pr=null,nl=!1,mr=null,rl=0,Ts=0,_u=null,ol=-1,sl=0;function wt(){return(je&6)!==0?Je():ol!==-1?ol:ol=Je()}function hr(e){return(e.mode&1)===0?1:(je&2)!==0&&ut!==0?ut&-ut:Xy.transition!==null?(sl===0&&(sl=Sd()),sl):(e=Ae,e!==0||(e=window.event,e=e===void 0?16:Td(e.type)),e)}function on(e,t,o,l){if(50<Ts)throw Ts=0,_u=null,Error(s(185));es(e,o,l),((je&2)===0||e!==st)&&(e===st&&((je&2)===0&&(el|=o),rt===4&&gr(e,ut)),jt(e,l),o===1&&je===0&&(t.mode&1)===0&&(Ro=Je()+500,Ai&&ur()))}function jt(e,t){var o=e.callbackNode;Xv(e,t);var l=mi(e,e===st?ut:0);if(l===0)o!==null&&yd(o),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(o!=null&&yd(o),t===1)e.tag===0?Qy(Op.bind(null,e)):gf(Op.bind(null,e)),Ky(function(){(je&6)===0&&ur()}),o=null;else{switch(Ed(l)){case 1:o=da;break;case 4:o=xd;break;case 16:o=ci;break;case 536870912:o=wd;break;default:o=ci}o=zp(o,Tp.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Tp(e,t){if(ol=-1,sl=0,(je&6)!==0)throw Error(s(327));var o=e.callbackNode;if(ko()&&e.callbackNode!==o)return null;var l=mi(e,e===st?ut:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=il(e,l);else{t=l;var c=je;je|=2;var m=Ap();(st!==e||ut!==t)&&($n=null,Ro=Je()+500,Br(e,t));do try{vx();break}catch(R){_p(e,R)}while(!0);Qa(),Zi.current=m,je=c,tt!==null?t=0:(st=null,ut=0,t=rt)}if(t!==0){if(t===2&&(c=fa(e),c!==0&&(l=c,t=Au(e,c))),t===1)throw o=js,Br(e,0),gr(e,l),jt(e,Je()),o;if(t===6)gr(e,l);else{if(c=e.current.alternate,(l&30)===0&&!hx(c)&&(t=il(e,l),t===2&&(m=fa(e),m!==0&&(l=m,t=Au(e,m))),t===1))throw o=js,Br(e,0),gr(e,l),jt(e,Je()),o;switch(e.finishedWork=c,e.finishedLanes=l,t){case 0:case 1:throw Error(s(345));case 2:$r(e,kt,$n);break;case 3:if(gr(e,l),(l&130023424)===l&&(t=Tu+500-Je(),10<t)){if(mi(e,0)!==0)break;if(c=e.suspendedLanes,(c&l)!==l){wt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=za($r.bind(null,e,kt,$n),t);break}$r(e,kt,$n);break;case 4:if(gr(e,l),(l&4194240)===l)break;for(t=e.eventTimes,c=-1;0<l;){var x=31-Jt(l);m=1<<x,x=t[x],x>c&&(c=x),l&=~m}if(l=c,l=Je()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*mx(l/1960))-l,10<l){e.timeoutHandle=za($r.bind(null,e,kt,$n),l);break}$r(e,kt,$n);break;case 5:$r(e,kt,$n);break;default:throw Error(s(329))}}}return jt(e,Je()),e.callbackNode===o?Tp.bind(null,e):null}function Au(e,t){var o=Ps;return e.current.memoizedState.isDehydrated&&(Br(e,t).flags|=256),e=il(e,t),e!==2&&(t=kt,kt=o,t!==null&&Lu(t)),e}function Lu(e){kt===null?kt=e:kt.push.apply(kt,e)}function hx(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],m=c.getSnapshot;c=c.value;try{if(!Zt(m(),c))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 gr(e,t){for(t&=~Pu,t&=~el,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-Jt(t),l=1<<o;e[o]=-1,t&=~l}}function Op(e){if((je&6)!==0)throw Error(s(327));ko();var t=mi(e,0);if((t&1)===0)return jt(e,Je()),null;var o=il(e,t);if(e.tag!==0&&o===2){var l=fa(e);l!==0&&(t=l,o=Au(e,l))}if(o===1)throw o=js,Br(e,0),gr(e,t),jt(e,Je()),o;if(o===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$r(e,kt,$n),jt(e,Je()),null}function Iu(e,t){var o=je;je|=1;try{return e(t)}finally{je=o,je===0&&(Ro=Je()+500,Ai&&ur())}}function Ur(e){mr!==null&&mr.tag===0&&(je&6)===0&&ko();var t=je;je|=1;var o=Ht.transition,l=Ae;try{if(Ht.transition=null,Ae=1,e)return e()}finally{Ae=l,Ht.transition=o,je=t,(je&6)===0&&ur()}}function Du(){Mt=No.current,Fe(No)}function Br(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Hy(o)),tt!==null)for(o=tt.return;o!==null;){var l=o;switch(Ha(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Oi();break;case 3:Eo(),Fe(bt),Fe(dt),ou();break;case 5:nu(l);break;case 4:Eo();break;case 13:Fe(He);break;case 19:Fe(He);break;case 10:Xa(l.type._context);break;case 22:case 23:Du()}o=o.return}if(st=e,tt=e=vr(e.current,null),ut=Mt=t,rt=0,js=null,Pu=el=zr=0,kt=Ps=null,Dr!==null){for(t=0;t<Dr.length;t++)if(o=Dr[t],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,m=o.pending;if(m!==null){var x=m.next;m.next=c,l.next=x}o.pending=l}Dr=null}return e}function _p(e,t){do{var o=tt;try{if(Qa(),Wi.current=Gi,Vi){for(var l=Ke.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Vi=!1}if(Fr=0,ot=nt=Ke=null,Es=!1,Cs=0,ju.current=null,o===null||o.return===null){rt=1,js=t,tt=null;break}e:{var m=e,x=o.return,R=o,P=t;if(t=ut,R.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var M=P,K=R,q=K.tag;if((K.mode&1)===0&&(q===0||q===11||q===15)){var H=K.alternate;H?(K.updateQueue=H.updateQueue,K.memoizedState=H.memoizedState,K.lanes=H.lanes):(K.updateQueue=null,K.memoizedState=null)}var le=rp(x);if(le!==null){le.flags&=-257,op(le,x,R,m,t),le.mode&1&&np(m,M,t),t=le,P=M;var ue=t.updateQueue;if(ue===null){var de=new Set;de.add(P),t.updateQueue=de}else ue.add(P);break e}else{if((t&1)===0){np(m,M,t),Mu();break e}P=Error(s(426))}}else if($e&&R.mode&1){var Ze=rp(x);if(Ze!==null){(Ze.flags&65536)===0&&(Ze.flags|=256),op(Ze,x,R,m,t),Ya(Co(P,R));break e}}m=P=Co(P,R),rt!==4&&(rt=2),Ps===null?Ps=[m]:Ps.push(m),m=x;do{switch(m.tag){case 3:m.flags|=65536,t&=-t,m.lanes|=t;var I=ep(m,P,t);kf(m,I);break e;case 1:R=P;var _=m.type,D=m.stateNode;if((m.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(pr===null||!pr.has(D)))){m.flags|=65536,t&=-t,m.lanes|=t;var X=tp(m,R,t);kf(m,X);break e}}m=m.return}while(m!==null)}Ip(o)}catch(fe){t=fe,tt===o&&o!==null&&(tt=o=o.return);continue}break}while(!0)}function Ap(){var e=Zi.current;return Zi.current=Gi,e===null?Gi:e}function Mu(){(rt===0||rt===3||rt===2)&&(rt=4),st===null||(zr&268435455)===0&&(el&268435455)===0||gr(st,ut)}function il(e,t){var o=je;je|=2;var l=Ap();(st!==e||ut!==t)&&($n=null,Br(e,t));do try{gx();break}catch(c){_p(e,c)}while(!0);if(Qa(),je=o,Zi.current=l,tt!==null)throw Error(s(261));return st=null,ut=0,rt}function gx(){for(;tt!==null;)Lp(tt)}function vx(){for(;tt!==null&&!$v();)Lp(tt)}function Lp(e){var t=Fp(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?Ip(e):tt=t,ju.current=null}function Ip(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=ux(o,t,Mt),o!==null){tt=o;return}}else{if(o=cx(o,t),o!==null){o.flags&=32767,tt=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,tt=null;return}}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);rt===0&&(rt=5)}function $r(e,t,o){var l=Ae,c=Ht.transition;try{Ht.transition=null,Ae=1,yx(e,t,o,l)}finally{Ht.transition=c,Ae=l}return null}function yx(e,t,o,l){do ko();while(mr!==null);if((je&6)!==0)throw Error(s(327));o=e.finishedWork;var c=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var m=o.lanes|o.childLanes;if(Jv(e,m),e===st&&(tt=st=null,ut=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||nl||(nl=!0,zp(ci,function(){return ko(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=Ht.transition,Ht.transition=null;var x=Ae;Ae=1;var R=je;je|=4,ju.current=null,fx(e,o),Np(o,e),Fy(Ma),vi=!!Da,Ma=Da=null,e.current=o,px(o),Wv(),je=R,Ae=x,Ht.transition=m}else e.current=o;if(nl&&(nl=!1,mr=e,rl=c),m=e.pendingLanes,m===0&&(pr=null),Kv(o.stateNode),jt(e,Je()),t!==null)for(l=e.onRecoverableError,o=0;o<t.length;o++)c=t[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(tl)throw tl=!1,e=Ou,Ou=null,e;return(rl&1)!==0&&e.tag!==0&&ko(),m=e.pendingLanes,(m&1)!==0?e===_u?Ts++:(Ts=0,_u=e):Ts=0,ur(),null}function ko(){if(mr!==null){var e=Ed(rl),t=Ht.transition,o=Ae;try{if(Ht.transition=null,Ae=16>e?16:e,mr===null)var l=!1;else{if(e=mr,mr=null,rl=0,(je&6)!==0)throw Error(s(331));var c=je;for(je|=4,ae=e.current;ae!==null;){var m=ae,x=m.child;if((ae.flags&16)!==0){var R=m.deletions;if(R!==null){for(var P=0;P<R.length;P++){var M=R[P];for(ae=M;ae!==null;){var K=ae;switch(K.tag){case 0:case 11:case 15:ks(8,K,m)}var q=K.child;if(q!==null)q.return=K,ae=q;else for(;ae!==null;){K=ae;var H=K.sibling,le=K.return;if(wp(K),K===M){ae=null;break}if(H!==null){H.return=le,ae=H;break}ae=le}}}var ue=m.alternate;if(ue!==null){var de=ue.child;if(de!==null){ue.child=null;do{var Ze=de.sibling;de.sibling=null,de=Ze}while(de!==null)}}ae=m}}if((m.subtreeFlags&2064)!==0&&x!==null)x.return=m,ae=x;else e:for(;ae!==null;){if(m=ae,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:ks(9,m,m.return)}var I=m.sibling;if(I!==null){I.return=m.return,ae=I;break e}ae=m.return}}var _=e.current;for(ae=_;ae!==null;){x=ae;var D=x.child;if((x.subtreeFlags&2064)!==0&&D!==null)D.return=x,ae=D;else e:for(x=_;ae!==null;){if(R=ae,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Ji(9,R)}}catch(fe){Qe(R,R.return,fe)}if(R===x){ae=null;break e}var X=R.sibling;if(X!==null){X.return=R.return,ae=X;break e}ae=R.return}}if(je=c,ur(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(di,e)}catch{}l=!0}return l}finally{Ae=o,Ht.transition=t}}return!1}function Dp(e,t,o){t=Co(o,t),t=ep(e,t,1),e=dr(e,t,1),t=wt(),e!==null&&(es(e,1,t),jt(e,t))}function Qe(e,t,o){if(e.tag===3)Dp(e,e,o);else for(;t!==null;){if(t.tag===3){Dp(t,e,o);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(pr===null||!pr.has(l))){e=Co(o,e),e=tp(t,e,1),t=dr(t,e,1),e=wt(),t!==null&&(es(t,1,e),jt(t,e));break}}t=t.return}}function xx(e,t,o){var l=e.pingCache;l!==null&&l.delete(t),t=wt(),e.pingedLanes|=e.suspendedLanes&o,st===e&&(ut&o)===o&&(rt===4||rt===3&&(ut&130023424)===ut&&500>Je()-Tu?Br(e,0):Pu|=o),jt(e,t)}function Mp(e,t){t===0&&((e.mode&1)===0?t=1:(t=pi,pi<<=1,(pi&130023424)===0&&(pi=4194304)));var o=wt();e=zn(e,t),e!==null&&(es(e,t,o),jt(e,o))}function wx(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Mp(e,o)}function Sx(e,t){var o=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(t),Mp(e,o)}var Fp;Fp=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)Rt=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Rt=!1,ax(e,t,o);Rt=(e.flags&131072)!==0}else Rt=!1,$e&&(t.flags&1048576)!==0&&vf(t,Ii,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Qi(e,t),e=t.pendingProps;var c=ho(t,dt.current);So(t,o),c=lu(null,t,l,e,c,o);var m=au();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nt(l)?(m=!0,_i(t)):m=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,eu(t),c.updater=Yi,t.stateNode=c,c._reactInternals=t,mu(t,l,e,o),t=yu(null,t,l,!0,m,o)):(t.tag=0,$e&&m&&Va(t),xt(null,t,c,o),t=t.child),t;case 16:l=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,c=l._init,l=c(l._payload),t.type=l,c=t.tag=Cx(l),e=tn(l,e),c){case 0:t=vu(null,t,l,e,o);break e;case 1:t=cp(null,t,l,e,o);break e;case 11:t=sp(null,t,l,e,o);break e;case 14:t=ip(null,t,l,tn(l.type,e),o);break e}throw Error(s(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:tn(l,c),vu(e,t,l,c,o);case 1:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:tn(l,c),cp(e,t,l,c,o);case 3:e:{if(dp(t),e===null)throw Error(s(387));l=t.pendingProps,m=t.memoizedState,c=m.element,Rf(e,t),Bi(t,l,null,o);var x=t.memoizedState;if(l=x.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){c=Co(Error(s(423)),t),t=fp(e,t,l,o,c);break e}else if(l!==c){c=Co(Error(s(424)),t),t=fp(e,t,l,o,c);break e}else for(Dt=ir(t.stateNode.containerInfo.firstChild),It=t,$e=!0,en=null,o=bf(t,null,l,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(yo(),l===c){t=Bn(e,t,o);break e}xt(e,t,l,o)}t=t.child}return t;case 5:return Pf(t),e===null&&Ga(t),l=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,x=c.children,Fa(l,c)?x=null:m!==null&&Fa(l,m)&&(t.flags|=32),up(e,t),xt(e,t,x,o),t.child;case 6:return e===null&&Ga(t),null;case 13:return pp(e,t,o);case 4:return tu(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=xo(t,null,l,o):xt(e,t,l,o),t.child;case 11:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:tn(l,c),sp(e,t,l,c,o);case 7:return xt(e,t,t.pendingProps,o),t.child;case 8:return xt(e,t,t.pendingProps.children,o),t.child;case 12:return xt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,m=t.memoizedProps,x=c.value,Ie(Fi,l._currentValue),l._currentValue=x,m!==null)if(Zt(m.value,x)){if(m.children===c.children&&!bt.current){t=Bn(e,t,o);break e}}else for(m=t.child,m!==null&&(m.return=t);m!==null;){var R=m.dependencies;if(R!==null){x=m.child;for(var P=R.firstContext;P!==null;){if(P.context===l){if(m.tag===1){P=Un(-1,o&-o),P.tag=2;var M=m.updateQueue;if(M!==null){M=M.shared;var K=M.pending;K===null?P.next=P:(P.next=K.next,K.next=P),M.pending=P}}m.lanes|=o,P=m.alternate,P!==null&&(P.lanes|=o),Ja(m.return,o,t),R.lanes|=o;break}P=P.next}}else if(m.tag===10)x=m.type===t.type?null:m.child;else if(m.tag===18){if(x=m.return,x===null)throw Error(s(341));x.lanes|=o,R=x.alternate,R!==null&&(R.lanes|=o),Ja(x,o,t),x=m.sibling}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===t){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}xt(e,t,c.children,o),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,So(t,o),c=Wt(c),l=l(c),t.flags|=1,xt(e,t,l,o),t.child;case 14:return l=t.type,c=tn(l,t.pendingProps),c=tn(l.type,c),ip(e,t,l,c,o);case 15:return lp(e,t,t.type,t.pendingProps,o);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:tn(l,c),Qi(e,t),t.tag=1,Nt(l)?(e=!0,_i(t)):e=!1,So(t,o),Jf(t,l,c),mu(t,l,c,o),yu(null,t,l,!0,e,o);case 19:return hp(e,t,o);case 22:return ap(e,t,o)}throw Error(s(156,t.tag))};function zp(e,t){return vd(e,t)}function Ex(e,t,o,l){this.tag=e,this.key=o,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,o,l){return new Ex(e,t,o,l)}function Fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cx(e){if(typeof e=="function")return Fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z)return 11;if(e===Y)return 14}return 2}function vr(e,t){var o=e.alternate;return o===null?(o=Kt(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ll(e,t,o,l,c,m){var x=2;if(l=e,typeof e=="function")Fu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case $:return Wr(o.children,c,m,t);case ie:x=8,c|=8;break;case ne:return e=Kt(12,o,t,c|2),e.elementType=ne,e.lanes=m,e;case A:return e=Kt(13,o,t,c),e.elementType=A,e.lanes=m,e;case J:return e=Kt(19,o,t,c),e.elementType=J,e.lanes=m,e;case se:return al(o,c,m,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:x=10;break e;case me:x=9;break e;case Z:x=11;break e;case Y:x=14;break e;case te:x=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Kt(x,o,t,c),t.elementType=e,t.type=l,t.lanes=m,t}function Wr(e,t,o,l){return e=Kt(7,e,l,t),e.lanes=o,e}function al(e,t,o,l){return e=Kt(22,e,l,t),e.elementType=se,e.lanes=o,e.stateNode={isHidden:!1},e}function zu(e,t,o){return e=Kt(6,e,null,t),e.lanes=o,e}function Uu(e,t,o){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bx(e,t,o,l,c){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=pa(0),this.expirationTimes=pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pa(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Bu(e,t,o,l,c,m,x,R,P){return e=new bx(e,t,o,R,P),t===1?(t=1,m===!0&&(t|=8)):t=0,m=Kt(3,null,null,t),e.current=m,m.stateNode=e,m.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(m),e}function Nx(e,t,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:l==null?null:""+l,children:e,containerInfo:t,implementation:o}}function Up(e){if(!e)return ar;e=e._reactInternals;e:{if(Or(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var o=e.type;if(Nt(o))return mf(e,o,t)}return t}function Bp(e,t,o,l,c,m,x,R,P){return e=Bu(o,l,!0,e,c,m,x,R,P),e.context=Up(null),o=e.current,l=wt(),c=hr(o),m=Un(l,c),m.callback=t??null,dr(o,m,c),e.current.lanes=c,es(e,c,l),jt(e,l),e}function ul(e,t,o,l){var c=t.current,m=wt(),x=hr(c);return o=Up(o),t.context===null?t.context=o:t.pendingContext=o,t=Un(m,x),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=dr(c,t,x),e!==null&&(on(e,c,x,m),Ui(e,c,x)),x}function cl(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 $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function $u(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function Rx(){return null}var Wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}dl.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));ul(e,t,null,null)},dl.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ur(function(){ul(null,e,null,null)}),t[In]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nd();e={blockedOn:null,target:e,priority:t};for(var o=0;o<rr.length&&t!==0&&t<rr[o].priority;o++);rr.splice(o,0,e),o===0&&jd(e)}};function Vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vp(){}function kx(e,t,o,l,c){if(c){if(typeof l=="function"){var m=l;l=function(){var M=cl(x);m.call(M)}}var x=Bp(t,l,e,0,null,!1,!1,"",Vp);return e._reactRootContainer=x,e[In]=x.current,ms(e.nodeType===8?e.parentNode:e),Ur(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof l=="function"){var R=l;l=function(){var M=cl(P);R.call(M)}}var P=Bu(e,0,!1,null,null,!1,!1,"",Vp);return e._reactRootContainer=P,e[In]=P.current,ms(e.nodeType===8?e.parentNode:e),Ur(function(){ul(t,P,o,l)}),P}function pl(e,t,o,l,c){var m=o._reactRootContainer;if(m){var x=m;if(typeof c=="function"){var R=c;c=function(){var P=cl(x);R.call(P)}}ul(t,x,e,c)}else x=kx(o,t,e,c,l);return cl(x)}Cd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=Zo(t.pendingLanes);o!==0&&(ma(t,o|1),jt(t,Je()),(je&6)===0&&(Ro=Je()+500,ur()))}break;case 13:Ur(function(){var l=zn(e,1);if(l!==null){var c=wt();on(l,e,1,c)}}),$u(e,1)}},ha=function(e){if(e.tag===13){var t=zn(e,134217728);if(t!==null){var o=wt();on(t,e,134217728,o)}$u(e,134217728)}},bd=function(e){if(e.tag===13){var t=hr(e),o=zn(e,t);if(o!==null){var l=wt();on(o,e,t,l)}$u(e,t)}},Nd=function(){return Ae},Rd=function(e,t){var o=Ae;try{return Ae=e,t()}finally{Ae=o}},oo=function(e,t,o){switch(t){case"input":if(qt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var l=o[t];if(l!==e&&l.form===e.form){var c=Ti(l);if(!c)throw Error(s(90));ke(l),qt(l,c)}}}break;case"textarea":ni(e,o);break;case"select":t=o.value,t!=null&&Ut(e,!!o.multiple,t,!1)}},Oe=Iu,Le=Ur;var jx={usingClientEntryPoint:!1,Events:[vs,po,Ti,li,Ee,Iu]},Os={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Px={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hd(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||Rx,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 ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{di=ml.inject(Px),wn=ml}catch{}}return Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jx,Pt.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vu(t))throw Error(s(200));return Nx(e,t,null,o)},Pt.createRoot=function(e,t){if(!Vu(e))throw Error(s(299));var o=!1,l="",c=Wp;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Bu(e,1,!1,null,null,o,!1,l,c),e[In]=t.current,ms(e.nodeType===8?e.parentNode:e),new Wu(t)},Pt.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=hd(t),e=e===null?null:e.stateNode,e},Pt.flushSync=function(e){return Ur(e)},Pt.hydrate=function(e,t,o){if(!fl(t))throw Error(s(200));return pl(null,e,t,!0,o)},Pt.hydrateRoot=function(e,t,o){if(!Vu(e))throw Error(s(405));var l=o!=null&&o.hydratedSources||null,c=!1,m="",x=Wp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),t=Bp(t,null,e,1,o??null,c,!1,m,x),e[In]=t.current,ms(e),l)for(e=0;e<l.length;e++)o=l[e],c=o._getVersion,c=c(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,c]:t.mutableSourceEagerHydrationData.push(o,c);return new dl(t)},Pt.render=function(e,t,o){if(!fl(t))throw Error(s(200));return pl(null,e,t,!1,o)},Pt.unmountComponentAtNode=function(e){if(!fl(e))throw Error(s(40));return e._reactRootContainer?(Ur(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[In]=null})}),!0):!1},Pt.unstable_batchedUpdates=Iu,Pt.unstable_renderSubtreeIntoContainer=function(e,t,o,l){if(!fl(o))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return pl(e,t,o,!1,l)},Pt.version="18.3.1-next-f1338f8080-20240426",Pt}var Jp;function ah(){if(Jp)return Gu.exports;Jp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Gu.exports=Mx(),Gu.exports}var Zp;function Fx(){if(Zp)return hl;Zp=1;var n=ah();return hl.createRoot=n.createRoot,hl.hydrateRoot=n.hydrateRoot,hl}var zx=Fx(),Vs=ah();const uh=lh(Vs);/**
|
|
41
|
-
* @remix-run/router v1.23.2
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/function Ms(){return Ms=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])}return n},Ms.apply(this,arguments)}var Er;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(Er||(Er={}));const em="popstate";function Ux(n){n===void 0&&(n={});function r(i,a){let{pathname:u,search:d,hash:f}=i.location;return pc("",{pathname:u,search:d,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function s(i,a){return typeof a=="string"?a:_l(a)}return $x(r,s,null,n)}function Ye(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Mc(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Bx(){return Math.random().toString(36).substr(2,8)}function tm(n,r){return{usr:n.state,key:n.key,idx:r}}function pc(n,r,s,i){return s===void 0&&(s=null),Ms({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof r=="string"?$o(r):r,{state:s,key:r&&r.key||i||Bx()})}function _l(n){let{pathname:r="/",search:s="",hash:i=""}=n;return s&&s!=="?"&&(r+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function $o(n){let r={};if(n){let s=n.indexOf("#");s>=0&&(r.hash=n.substr(s),n=n.substr(0,s));let i=n.indexOf("?");i>=0&&(r.search=n.substr(i),n=n.substr(0,i)),n&&(r.pathname=n)}return r}function $x(n,r,s,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:u=!1}=i,d=a.history,f=Er.Pop,h=null,g=y();g==null&&(g=0,d.replaceState(Ms({},d.state,{idx:g}),""));function y(){return(d.state||{idx:null}).idx}function w(){f=Er.Pop;let C=y(),T=C==null?null:C-g;g=C,h&&h({action:f,location:S.location,delta:T})}function b(C,T){f=Er.Push;let k=pc(S.location,C,T);g=y()+1;let j=tm(k,g),L=S.createHref(k);try{d.pushState(j,"",L)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;a.location.assign(L)}u&&h&&h({action:f,location:S.location,delta:1})}function E(C,T){f=Er.Replace;let k=pc(S.location,C,T);g=y();let j=tm(k,g),L=S.createHref(k);d.replaceState(j,"",L),u&&h&&h({action:f,location:S.location,delta:0})}function N(C){let T=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof C=="string"?C:_l(C);return k=k.replace(/ $/,"%20"),Ye(T,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,T)}let S={get action(){return f},get location(){return n(a,d)},listen(C){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(em,w),h=C,()=>{a.removeEventListener(em,w),h=null}},createHref(C){return r(a,C)},createURL:N,encodeLocation(C){let T=N(C);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:E,go(C){return d.go(C)}};return S}var nm;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(nm||(nm={}));function Wx(n,r,s){return s===void 0&&(s="/"),Vx(n,r,s)}function Vx(n,r,s,i){let a=typeof r=="string"?$o(r):r,u=Mo(a.pathname||"/",s);if(u==null)return null;let d=ch(n);Hx(d);let f=null;for(let h=0;f==null&&h<d.length;++h){let g=n0(u);f=e0(d[h],g)}return f}function ch(n,r,s,i){r===void 0&&(r=[]),s===void 0&&(s=[]),i===void 0&&(i="");let a=(u,d,f)=>{let h={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};h.relativePath.startsWith("/")&&(Ye(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let g=Cr([i,h.relativePath]),y=s.concat(h);u.children&&u.children.length>0&&(Ye(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),ch(u.children,r,y,g)),!(u.path==null&&!u.index)&&r.push({path:g,score:Jx(g,u.index),routesMeta:y})};return n.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))a(u,d);else for(let h of dh(u.path))a(u,d,h)}),r}function dh(n){let r=n.split("/");if(r.length===0)return[];let[s,...i]=r,a=s.endsWith("?"),u=s.replace(/\?$/,"");if(i.length===0)return a?[u,""]:[u];let d=dh(i.join("/")),f=[];return f.push(...d.map(h=>h===""?u:[u,h].join("/"))),a&&f.push(...d),f.map(h=>n.startsWith("/")&&h===""?"/":h)}function Hx(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:Zx(r.routesMeta.map(i=>i.childrenIndex),s.routesMeta.map(i=>i.childrenIndex)))}const Kx=/^:[\w-]+$/,Gx=3,Yx=2,qx=1,Qx=10,Xx=-2,rm=n=>n==="*";function Jx(n,r){let s=n.split("/"),i=s.length;return s.some(rm)&&(i+=Xx),r&&(i+=Yx),s.filter(a=>!rm(a)).reduce((a,u)=>a+(Kx.test(u)?Gx:u===""?qx:Qx),i)}function Zx(n,r){return n.length===r.length&&n.slice(0,-1).every((i,a)=>i===r[a])?n[n.length-1]-r[r.length-1]:0}function e0(n,r,s){let{routesMeta:i}=n,a={},u="/",d=[];for(let f=0;f<i.length;++f){let h=i[f],g=f===i.length-1,y=u==="/"?r:r.slice(u.length)||"/",w=mc({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},y),b=h.route;if(!w)return null;Object.assign(a,w.params),d.push({params:a,pathname:Cr([u,w.pathname]),pathnameBase:l0(Cr([u,w.pathnameBase])),route:b}),w.pathnameBase!=="/"&&(u=Cr([u,w.pathnameBase]))}return d}function mc(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,i]=t0(n.path,n.caseSensitive,n.end),a=r.match(s);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:i.reduce((g,y,w)=>{let{paramName:b,isOptional:E}=y;if(b==="*"){let S=f[w]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const N=f[w];return E&&!N?g[b]=void 0:g[b]=(N||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:n}}function t0(n,r,s){r===void 0&&(r=!1),s===void 0&&(s=!0),Mc(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let i=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,h)=>(i.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),i]}function n0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Mc(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),n}}function Mo(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,i=n.charAt(s);return i&&i!=="/"?null:n.slice(s)||"/"}const r0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,o0=n=>r0.test(n);function s0(n,r){r===void 0&&(r="/");let{pathname:s,search:i="",hash:a=""}=typeof n=="string"?$o(n):n,u;if(s)if(o0(s))u=s;else{if(s.includes("//")){let d=s;s=s.replace(/\/\/+/g,"/"),Mc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(d+" -> "+s))}s.startsWith("/")?u=om(s.substring(1),"/"):u=om(s,r)}else u=r;return{pathname:u,search:a0(i),hash:u0(a)}}function om(n,r){let s=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?s.length>1&&s.pop():a!=="."&&s.push(a)}),s.length>1?s.join("/"):"/"}function Qu(n,r,s,i){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function i0(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Fc(n,r){let s=i0(n);return r?s.map((i,a)=>a===s.length-1?i.pathname:i.pathnameBase):s.map(i=>i.pathnameBase)}function zc(n,r,s,i){i===void 0&&(i=!1);let a;typeof n=="string"?a=$o(n):(a=Ms({},n),Ye(!a.pathname||!a.pathname.includes("?"),Qu("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Qu("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Qu("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,f;if(d==null)f=s;else{let w=r.length-1;if(!i&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),w-=1;a.pathname=b.join("/")}f=w>=0?r[w]:"/"}let h=s0(a,f),g=d&&d!=="/"&&d.endsWith("/"),y=(u||d===".")&&s.endsWith("/");return!h.pathname.endsWith("/")&&(g||y)&&(h.pathname+="/"),h}const Cr=n=>n.join("/").replace(/\/\/+/g,"/"),l0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),a0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,u0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function c0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const fh=["post","put","patch","delete"];new Set(fh);const d0=["get",...fh];new Set(d0);/**
|
|
50
|
-
* React Router v6.30.3
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/function Fs(){return Fs=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])}return n},Fs.apply(this,arguments)}const Wl=v.createContext(null),ph=v.createContext(null),Yn=v.createContext(null),Vl=v.createContext(null),qn=v.createContext({outlet:null,matches:[],isDataRoute:!1}),mh=v.createContext(null);function f0(n,r){let{relative:s}=r===void 0?{}:r;Wo()||Ye(!1);let{basename:i,navigator:a}=v.useContext(Yn),{hash:u,pathname:d,search:f}=Kl(n,{relative:s}),h=d;return i!=="/"&&(h=d==="/"?i:Cr([i,d])),a.createHref({pathname:h,search:f,hash:u})}function Wo(){return v.useContext(Vl)!=null}function Vo(){return Wo()||Ye(!1),v.useContext(Vl).location}function hh(n){v.useContext(Yn).static||v.useLayoutEffect(n)}function Hl(){let{isDataRoute:n}=v.useContext(qn);return n?k0():p0()}function p0(){Wo()||Ye(!1);let n=v.useContext(Wl),{basename:r,future:s,navigator:i}=v.useContext(Yn),{matches:a}=v.useContext(qn),{pathname:u}=Vo(),d=JSON.stringify(Fc(a,s.v7_relativeSplatPath)),f=v.useRef(!1);return hh(()=>{f.current=!0}),v.useCallback(function(g,y){if(y===void 0&&(y={}),!f.current)return;if(typeof g=="number"){i.go(g);return}let w=zc(g,JSON.parse(d),u,y.relative==="path");n==null&&r!=="/"&&(w.pathname=w.pathname==="/"?r:Cr([r,w.pathname])),(y.replace?i.replace:i.push)(w,y.state,y)},[r,i,d,u,n])}const m0=v.createContext(null);function h0(n){let r=v.useContext(qn).outlet;return r&&v.createElement(m0.Provider,{value:n},r)}function Kl(n,r){let{relative:s}=r===void 0?{}:r,{future:i}=v.useContext(Yn),{matches:a}=v.useContext(qn),{pathname:u}=Vo(),d=JSON.stringify(Fc(a,i.v7_relativeSplatPath));return v.useMemo(()=>zc(n,JSON.parse(d),u,s==="path"),[n,d,u,s])}function g0(n,r){return v0(n,r)}function v0(n,r,s,i){Wo()||Ye(!1);let{navigator:a}=v.useContext(Yn),{matches:u}=v.useContext(qn),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let h=d?d.pathnameBase:"/";d&&d.route;let g=Vo(),y;if(r){var w;let C=typeof r=="string"?$o(r):r;h==="/"||(w=C.pathname)!=null&&w.startsWith(h)||Ye(!1),y=C}else y=g;let b=y.pathname||"/",E=b;if(h!=="/"){let C=h.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(C.length).join("/")}let N=Wx(n,{pathname:E}),S=E0(N&&N.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:Cr([h,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Cr([h,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),u,s,i);return r&&S?v.createElement(Vl.Provider,{value:{location:Fs({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Er.Pop}},S):S}function y0(){let n=R0(),r=c0(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),s?v.createElement("pre",{style:a},s):null,null)}const x0=v.createElement(y0,null);class w0 extends v.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,s){return s.location!==r.location||s.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:s.error,location:s.location,revalidation:r.revalidation||s.revalidation}}componentDidCatch(r,s){console.error("React Router caught the following error during render",r,s)}render(){return this.state.error!==void 0?v.createElement(qn.Provider,{value:this.props.routeContext},v.createElement(mh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S0(n){let{routeContext:r,match:s,children:i}=n,a=v.useContext(Wl);return a&&a.static&&a.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=s.route.id),v.createElement(qn.Provider,{value:r},i)}function E0(n,r,s,i){var a;if(r===void 0&&(r=[]),s===void 0&&(s=null),i===void 0&&(i=null),n==null){var u;if(!s)return null;if(s.errors)n=s.matches;else if((u=i)!=null&&u.v7_partialHydration&&r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let d=n,f=(a=s)==null?void 0:a.errors;if(f!=null){let y=d.findIndex(w=>w.route.id&&(f==null?void 0:f[w.route.id])!==void 0);y>=0||Ye(!1),d=d.slice(0,Math.min(d.length,y+1))}let h=!1,g=-1;if(s&&i&&i.v7_partialHydration)for(let y=0;y<d.length;y++){let w=d[y];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(g=y),w.route.id){let{loaderData:b,errors:E}=s,N=w.route.loader&&b[w.route.id]===void 0&&(!E||E[w.route.id]===void 0);if(w.route.lazy||N){h=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}return d.reduceRight((y,w,b)=>{let E,N=!1,S=null,C=null;s&&(E=f&&w.route.id?f[w.route.id]:void 0,S=w.route.errorElement||x0,h&&(g<0&&b===0?(j0("route-fallback"),N=!0,C=null):g===b&&(N=!0,C=w.route.hydrateFallbackElement||null)));let T=r.concat(d.slice(0,b+1)),k=()=>{let j;return E?j=S:N?j=C:w.route.Component?j=v.createElement(w.route.Component,null):w.route.element?j=w.route.element:j=y,v.createElement(S0,{match:w,routeContext:{outlet:y,matches:T,isDataRoute:s!=null},children:j})};return s&&(w.route.ErrorBoundary||w.route.errorElement||b===0)?v.createElement(w0,{location:s.location,revalidation:s.revalidation,component:S,error:E,children:k(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):k()},null)}var gh=(function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n})(gh||{}),vh=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(vh||{});function C0(n){let r=v.useContext(Wl);return r||Ye(!1),r}function b0(n){let r=v.useContext(ph);return r||Ye(!1),r}function N0(n){let r=v.useContext(qn);return r||Ye(!1),r}function yh(n){let r=N0(),s=r.matches[r.matches.length-1];return s.route.id||Ye(!1),s.route.id}function R0(){var n;let r=v.useContext(mh),s=b0(),i=yh();return r!==void 0?r:(n=s.errors)==null?void 0:n[i]}function k0(){let{router:n}=C0(gh.UseNavigateStable),r=yh(vh.UseNavigateStable),s=v.useRef(!1);return hh(()=>{s.current=!0}),v.useCallback(function(a,u){u===void 0&&(u={}),s.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,Fs({fromRouteId:r},u)))},[n,r])}const sm={};function j0(n,r,s){sm[n]||(sm[n]=!0)}function P0(n,r){n==null||n.v7_startTransition,n==null||n.v7_relativeSplatPath}function hc(n){let{to:r,replace:s,state:i,relative:a}=n;Wo()||Ye(!1);let{future:u,static:d}=v.useContext(Yn),{matches:f}=v.useContext(qn),{pathname:h}=Vo(),g=Hl(),y=zc(r,Fc(f,u.v7_relativeSplatPath),h,a==="path"),w=JSON.stringify(y);return v.useEffect(()=>g(JSON.parse(w),{replace:s,state:i,relative:a}),[g,w,a,s,i]),null}function T0(n){return h0(n.context)}function Nn(n){Ye(!1)}function O0(n){let{basename:r="/",children:s=null,location:i,navigationType:a=Er.Pop,navigator:u,static:d=!1,future:f}=n;Wo()&&Ye(!1);let h=r.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:h,navigator:u,static:d,future:Fs({v7_relativeSplatPath:!1},f)}),[h,f,u,d]);typeof i=="string"&&(i=$o(i));let{pathname:y="/",search:w="",hash:b="",state:E=null,key:N="default"}=i,S=v.useMemo(()=>{let C=Mo(y,h);return C==null?null:{location:{pathname:C,search:w,hash:b,state:E,key:N},navigationType:a}},[h,y,w,b,E,N,a]);return S==null?null:v.createElement(Yn.Provider,{value:g},v.createElement(Vl.Provider,{children:s,value:S}))}function _0(n){let{children:r,location:s}=n;return g0(gc(r),s)}new Promise(()=>{});function gc(n,r){r===void 0&&(r=[]);let s=[];return v.Children.forEach(n,(i,a)=>{if(!v.isValidElement(i))return;let u=[...r,a];if(i.type===v.Fragment){s.push.apply(s,gc(i.props.children,u));return}i.type!==Nn&&Ye(!1),!i.props.index||!i.props.children||Ye(!1);let d={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=gc(i.props.children,u)),s.push(d)}),s}/**
|
|
59
|
-
* React Router DOM v6.30.3
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/function Al(){return Al=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])}return n},Al.apply(this,arguments)}function xh(n,r){if(n==null)return{};var s={},i=Object.keys(n),a,u;for(u=0;u<i.length;u++)a=i[u],!(r.indexOf(a)>=0)&&(s[a]=n[a]);return s}function A0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function L0(n,r){return n.button===0&&(!r||r==="_self")&&!A0(n)}const I0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],D0=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],M0="6";try{window.__reactRouterVersion=M0}catch{}const F0=v.createContext({isTransitioning:!1}),z0="startTransition",im=$l[z0];function U0(n){let{basename:r,children:s,future:i,window:a}=n,u=v.useRef();u.current==null&&(u.current=Ux({window:a,v5Compat:!0}));let d=u.current,[f,h]=v.useState({action:d.action,location:d.location}),{v7_startTransition:g}=i||{},y=v.useCallback(w=>{g&&im?im(()=>h(w)):h(w)},[h,g]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.useEffect(()=>P0(i),[i]),v.createElement(O0,{basename:r,children:s,location:f.location,navigationType:f.action,navigator:d,future:i})}const B0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bl=v.forwardRef(function(r,s){let{onClick:i,relative:a,reloadDocument:u,replace:d,state:f,target:h,to:g,preventScrollReset:y,viewTransition:w}=r,b=xh(r,I0),{basename:E}=v.useContext(Yn),N,S=!1;if(typeof g=="string"&&$0.test(g)&&(N=g,B0))try{let j=new URL(window.location.href),L=g.startsWith("//")?new URL(j.protocol+g):new URL(g),B=Mo(L.pathname,E);L.origin===j.origin&&B!=null?g=B+L.search+L.hash:S=!0}catch{}let C=f0(g,{relative:a}),T=H0(g,{replace:d,state:f,target:h,preventScrollReset:y,relative:a,viewTransition:w});function k(j){i&&i(j),j.defaultPrevented||T(j)}return v.createElement("a",Al({},b,{href:N||C,onClick:S||u?i:k,ref:s,target:h}))}),W0=v.forwardRef(function(r,s){let{"aria-current":i="page",caseSensitive:a=!1,className:u="",end:d=!1,style:f,to:h,viewTransition:g,children:y}=r,w=xh(r,D0),b=Kl(h,{relative:w.relative}),E=Vo(),N=v.useContext(ph),{navigator:S,basename:C}=v.useContext(Yn),T=N!=null&&K0(b)&&g===!0,k=S.encodeLocation?S.encodeLocation(b).pathname:b.pathname,j=E.pathname,L=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;a||(j=j.toLowerCase(),L=L?L.toLowerCase():null,k=k.toLowerCase()),L&&C&&(L=Mo(L,C)||L);const B=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let V=j===k||!d&&j.startsWith(k)&&j.charAt(B)==="/",$=L!=null&&(L===k||!d&&L.startsWith(k)&&L.charAt(k.length)==="/"),ie={isActive:V,isPending:$,isTransitioning:T},ne=V?i:void 0,ce;typeof u=="function"?ce=u(ie):ce=[u,V?"active":null,$?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let me=typeof f=="function"?f(ie):f;return v.createElement(bl,Al({},w,{"aria-current":ne,className:ce,ref:s,style:me,to:h,viewTransition:g}),typeof y=="function"?y(ie):y)});var vc;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(vc||(vc={}));var lm;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(lm||(lm={}));function V0(n){let r=v.useContext(Wl);return r||Ye(!1),r}function H0(n,r){let{target:s,replace:i,state:a,preventScrollReset:u,relative:d,viewTransition:f}=r===void 0?{}:r,h=Hl(),g=Vo(),y=Kl(n,{relative:d});return v.useCallback(w=>{if(L0(w,s)){w.preventDefault();let b=i!==void 0?i:_l(g)===_l(y);h(n,{replace:b,state:a,preventScrollReset:u,relative:d,viewTransition:f})}},[g,h,y,i,a,s,n,u,d,f])}function K0(n,r){r===void 0&&(r={});let s=v.useContext(F0);s==null&&Ye(!1);let{basename:i}=V0(vc.useViewTransitionState),a=Kl(n,{relative:r.relative});if(!s.isTransitioning)return!1;let u=Mo(s.currentLocation.pathname,i)||s.currentLocation.pathname,d=Mo(s.nextLocation.pathname,i)||s.nextLocation.pathname;return mc(a.pathname,d)!=null||mc(a.pathname,u)!=null}var G0=n=>{switch(n){case"success":return Q0;case"info":return J0;case"warning":return X0;case"error":return Z0;default:return null}},Y0=Array(12).fill(0),q0=({visible:n,className:r})=>ee.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ee.createElement("div",{className:"sonner-spinner"},Y0.map((s,i)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),Q0=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),X0=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.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"})),J0=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),Z0=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),ew=ee.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"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tw=()=>{let[n,r]=ee.useState(document.hidden);return ee.useEffect(()=>{let s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n},yc=1,nw=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;let{message:s,...i}=n,a=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:yc++,u=this.toasts.find(f=>f.id===a),d=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),u?this.toasts=this.toasts.map(f=>f.id===a?(this.publish({...f,...n,id:a,title:s}),{...f,...n,id:a,dismissible:d,title:s}):f):this.addToast({title:s,...i,dismissible:d,id:a}),a},this.dismiss=n=>(this.dismissedToasts.add(n),n||this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:n,dismiss:!0})),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let i=n instanceof Promise?n:n(),a=s!==void 0,u,d=i.then(async h=>{if(u=["resolve",h],ee.isValidElement(h))a=!1,this.create({id:s,type:"default",message:h});else if(ow(h)&&!h.ok){a=!1;let g=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,y=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description;this.create({id:s,type:"error",message:g,description:y})}else if(r.success!==void 0){a=!1;let g=typeof r.success=="function"?await r.success(h):r.success,y=typeof r.description=="function"?await r.description(h):r.description;this.create({id:s,type:"success",message:g,description:y})}}).catch(async h=>{if(u=["reject",h],r.error!==void 0){a=!1;let g=typeof r.error=="function"?await r.error(h):r.error,y=typeof r.description=="function"?await r.description(h):r.description;this.create({id:s,type:"error",message:g,description:y})}}).finally(()=>{var h;a&&(this.dismiss(s),s=void 0),(h=r.finally)==null||h.call(r)}),f=()=>new Promise((h,g)=>d.then(()=>u[0]==="reject"?g(u[1]):h(u[1])).catch(g));return typeof s!="string"&&typeof s!="number"?{unwrap:f}:Object.assign(s,{unwrap:f})},this.custom=(n,r)=>{let s=(r==null?void 0:r.id)||yc++;return this.create({jsx:n(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Tt=new nw,rw=(n,r)=>{let s=(r==null?void 0:r.id)||yc++;return Tt.addToast({title:n,...r,id:s}),s},ow=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",sw=rw,iw=()=>Tt.toasts,lw=()=>Tt.getActiveToasts(),Ge=Object.assign(sw,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:iw,getToasts:lw});function aw(n,{insertAt:r}={}){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&s.firstChild?s.insertBefore(i,s.firstChild):s.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}aw(`: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%)}
|
|
68
|
-
`);function gl(n){return n.label!==void 0}var uw=3,cw="32px",dw="16px",am=4e3,fw=356,pw=14,mw=20,hw=200;function sn(...n){return n.filter(Boolean).join(" ")}function gw(n){let[r,s]=n.split("-"),i=[];return r&&i.push(r),s&&i.push(s),i}var vw=n=>{var r,s,i,a,u,d,f,h,g,y,w;let{invert:b,toast:E,unstyled:N,interacting:S,setHeights:C,visibleToasts:T,heights:k,index:j,toasts:L,expanded:B,removeToast:V,defaultRichColors:$,closeButton:ie,style:ne,cancelButtonStyle:ce,actionButtonStyle:me,className:Z="",descriptionClassName:A="",duration:J,position:Y,gap:te,loadingIcon:se,expandByDefault:U,classNames:W,icons:G,closeButtonAriaLabel:O="Close toast",pauseWhenPageIsHidden:z}=n,[re,oe]=ee.useState(null),[he,xe]=ee.useState(null),[Q,pe]=ee.useState(!1),[we,Ce]=ee.useState(!1),[Ne,ke]=ee.useState(!1),[Xe,ct]=ee.useState(!1),[fn,Yt]=ee.useState(!1),[qt,Xn]=ee.useState(0),[pn,Jn]=ee.useState(0),Ut=ee.useRef(E.duration||J||am),eo=ee.useRef(null),mn=ee.useRef(null),ni=j===0,ri=j+1<=T,vt=E.type,hn=E.dismissible!==!1,to=E.className||"",oi=E.descriptionClassName||"",gn=ee.useMemo(()=>k.findIndex(Ee=>Ee.toastId===E.id)||0,[k,E.id]),Tr=ee.useMemo(()=>{var Ee;return(Ee=E.closeButton)!=null?Ee:ie},[E.closeButton,ie]),si=ee.useMemo(()=>E.duration||J||am,[E.duration,J]),no=ee.useRef(0),Ln=ee.useRef(0),ii=ee.useRef(0),vn=ee.useRef(null),[Qo,Xo]=Y.split("-"),ro=ee.useMemo(()=>k.reduce((Ee,Oe,Le)=>Le>=gn?Ee:Ee+Oe.height,0),[k,gn]),oo=tw(),Zn=E.invert||b,yn=vt==="loading";Ln.current=ee.useMemo(()=>gn*te+ro,[gn,ro]),ee.useEffect(()=>{Ut.current=si},[si]),ee.useEffect(()=>{pe(!0)},[]),ee.useEffect(()=>{let Ee=mn.current;if(Ee){let Oe=Ee.getBoundingClientRect().height;return Jn(Oe),C(Le=>[{toastId:E.id,height:Oe,position:E.position},...Le]),()=>C(Le=>Le.filter(yt=>yt.toastId!==E.id))}},[C,E.id]),ee.useLayoutEffect(()=>{if(!Q)return;let Ee=mn.current,Oe=Ee.style.height;Ee.style.height="auto";let Le=Ee.getBoundingClientRect().height;Ee.style.height=Oe,Jn(Le),C(yt=>yt.find(Et=>Et.toastId===E.id)?yt.map(Et=>Et.toastId===E.id?{...Et,height:Le}:Et):[{toastId:E.id,height:Le,position:E.position},...yt])},[Q,E.title,E.description,C,E.id]);let Qt=ee.useCallback(()=>{Ce(!0),Xn(Ln.current),C(Ee=>Ee.filter(Oe=>Oe.toastId!==E.id)),setTimeout(()=>{V(E)},hw)},[E,V,C,Ln]);ee.useEffect(()=>{if(E.promise&&vt==="loading"||E.duration===1/0||E.type==="loading")return;let Ee;return B||S||z&&oo?(()=>{if(ii.current<no.current){let Oe=new Date().getTime()-no.current;Ut.current=Ut.current-Oe}ii.current=new Date().getTime()})():Ut.current!==1/0&&(no.current=new Date().getTime(),Ee=setTimeout(()=>{var Oe;(Oe=E.onAutoClose)==null||Oe.call(E,E),Qt()},Ut.current)),()=>clearTimeout(Ee)},[B,S,E,vt,z,oo,Qt]),ee.useEffect(()=>{E.delete&&Qt()},[Qt,E.delete]);function li(){var Ee,Oe,Le;return G!=null&&G.loading?ee.createElement("div",{className:sn(W==null?void 0:W.loader,(Ee=E==null?void 0:E.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":vt==="loading"},G.loading):se?ee.createElement("div",{className:sn(W==null?void 0:W.loader,(Oe=E==null?void 0:E.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":vt==="loading"},se):ee.createElement(q0,{className:sn(W==null?void 0:W.loader,(Le=E==null?void 0:E.classNames)==null?void 0:Le.loader),visible:vt==="loading"})}return ee.createElement("li",{tabIndex:0,ref:mn,className:sn(Z,to,W==null?void 0:W.toast,(r=E==null?void 0:E.classNames)==null?void 0:r.toast,W==null?void 0:W.default,W==null?void 0:W[vt],(s=E==null?void 0:E.classNames)==null?void 0:s[vt]),"data-sonner-toast":"","data-rich-colors":(i=E.richColors)!=null?i:$,"data-styled":!(E.jsx||E.unstyled||N),"data-mounted":Q,"data-promise":!!E.promise,"data-swiped":fn,"data-removed":we,"data-visible":ri,"data-y-position":Qo,"data-x-position":Xo,"data-index":j,"data-front":ni,"data-swiping":Ne,"data-dismissible":hn,"data-type":vt,"data-invert":Zn,"data-swipe-out":Xe,"data-swipe-direction":he,"data-expanded":!!(B||U&&Q),style:{"--index":j,"--toasts-before":j,"--z-index":L.length-j,"--offset":`${we?qt:Ln.current}px`,"--initial-height":U?"auto":`${pn}px`,...ne,...E.style},onDragEnd:()=>{ke(!1),oe(null),vn.current=null},onPointerDown:Ee=>{yn||!hn||(eo.current=new Date,Xn(Ln.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(ke(!0),vn.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,Oe,Le,yt;if(Xe||!hn)return;vn.current=null;let Et=Number(((Ee=mn.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ct=Number(((Oe=mn.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xt=new Date().getTime()-((Le=eo.current)==null?void 0:Le.getTime()),lt=re==="x"?Et:Ct,xn=Math.abs(lt)/Xt;if(Math.abs(lt)>=mw||xn>.11){Xn(Ln.current),(yt=E.onDismiss)==null||yt.call(E,E),xe(re==="x"?Et>0?"right":"left":Ct>0?"down":"up"),Qt(),ct(!0),Yt(!1);return}ke(!1),oe(null)},onPointerMove:Ee=>{var Oe,Le,yt,Et;if(!vn.current||!hn||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;let Ct=Ee.clientY-vn.current.y,Xt=Ee.clientX-vn.current.x,lt=(Le=n.swipeDirections)!=null?Le:gw(Y);!re&&(Math.abs(Xt)>1||Math.abs(Ct)>1)&&oe(Math.abs(Xt)>Math.abs(Ct)?"x":"y");let xn={x:0,y:0};re==="y"?(lt.includes("top")||lt.includes("bottom"))&&(lt.includes("top")&&Ct<0||lt.includes("bottom")&&Ct>0)&&(xn.y=Ct):re==="x"&&(lt.includes("left")||lt.includes("right"))&&(lt.includes("left")&&Xt<0||lt.includes("right")&&Xt>0)&&(xn.x=Xt),(Math.abs(xn.x)>0||Math.abs(xn.y)>0)&&Yt(!0),(yt=mn.current)==null||yt.style.setProperty("--swipe-amount-x",`${xn.x}px`),(Et=mn.current)==null||Et.style.setProperty("--swipe-amount-y",`${xn.y}px`)}},Tr&&!E.jsx?ee.createElement("button",{"aria-label":O,"data-disabled":yn,"data-close-button":!0,onClick:yn||!hn?()=>{}:()=>{var Ee;Qt(),(Ee=E.onDismiss)==null||Ee.call(E,E)},className:sn(W==null?void 0:W.closeButton,(a=E==null?void 0:E.classNames)==null?void 0:a.closeButton)},(u=G==null?void 0:G.close)!=null?u:ew):null,E.jsx||v.isValidElement(E.title)?E.jsx?E.jsx:typeof E.title=="function"?E.title():E.title:ee.createElement(ee.Fragment,null,vt||E.icon||E.promise?ee.createElement("div",{"data-icon":"",className:sn(W==null?void 0:W.icon,(d=E==null?void 0:E.classNames)==null?void 0:d.icon)},E.promise||E.type==="loading"&&!E.icon?E.icon||li():null,E.type!=="loading"?E.icon||(G==null?void 0:G[vt])||G0(vt):null):null,ee.createElement("div",{"data-content":"",className:sn(W==null?void 0:W.content,(f=E==null?void 0:E.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:sn(W==null?void 0:W.title,(h=E==null?void 0:E.classNames)==null?void 0:h.title)},typeof E.title=="function"?E.title():E.title),E.description?ee.createElement("div",{"data-description":"",className:sn(A,oi,W==null?void 0:W.description,(g=E==null?void 0:E.classNames)==null?void 0:g.description)},typeof E.description=="function"?E.description():E.description):null),v.isValidElement(E.cancel)?E.cancel:E.cancel&&gl(E.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||ce,onClick:Ee=>{var Oe,Le;gl(E.cancel)&&hn&&((Le=(Oe=E.cancel).onClick)==null||Le.call(Oe,Ee),Qt())},className:sn(W==null?void 0:W.cancelButton,(y=E==null?void 0:E.classNames)==null?void 0:y.cancelButton)},E.cancel.label):null,v.isValidElement(E.action)?E.action:E.action&&gl(E.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||me,onClick:Ee=>{var Oe,Le;gl(E.action)&&((Le=(Oe=E.action).onClick)==null||Le.call(Oe,Ee),!Ee.defaultPrevented&&Qt())},className:sn(W==null?void 0:W.actionButton,(w=E==null?void 0:E.classNames)==null?void 0:w.actionButton)},E.action.label):null))};function um(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function yw(n,r){let s={};return[n,r].forEach((i,a)=>{let u=a===1,d=u?"--mobile-offset":"--offset",f=u?dw:cw;function h(g){["top","right","bottom","left"].forEach(y=>{s[`${d}-${y}`]=typeof g=="number"?`${g}px`:g})}typeof i=="number"||typeof i=="string"?h(i):typeof i=="object"?["top","right","bottom","left"].forEach(g=>{i[g]===void 0?s[`${d}-${g}`]=f:s[`${d}-${g}`]=typeof i[g]=="number"?`${i[g]}px`:i[g]}):h(f)}),s}var xw=v.forwardRef(function(n,r){let{invert:s,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:u,closeButton:d,className:f,offset:h,mobileOffset:g,theme:y="light",richColors:w,duration:b,style:E,visibleToasts:N=uw,toastOptions:S,dir:C=um(),gap:T=pw,loadingIcon:k,icons:j,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:B}=n,[V,$]=ee.useState([]),ie=ee.useMemo(()=>Array.from(new Set([i].concat(V.filter(z=>z.position).map(z=>z.position)))),[V,i]),[ne,ce]=ee.useState([]),[me,Z]=ee.useState(!1),[A,J]=ee.useState(!1),[Y,te]=ee.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),se=ee.useRef(null),U=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=ee.useRef(null),G=ee.useRef(!1),O=ee.useCallback(z=>{$(re=>{var oe;return(oe=re.find(he=>he.id===z.id))!=null&&oe.delete||Tt.dismiss(z.id),re.filter(({id:he})=>he!==z.id)})},[]);return ee.useEffect(()=>Tt.subscribe(z=>{if(z.dismiss){$(re=>re.map(oe=>oe.id===z.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{uh.flushSync(()=>{$(re=>{let oe=re.findIndex(he=>he.id===z.id);return oe!==-1?[...re.slice(0,oe),{...re[oe],...z},...re.slice(oe+1)]:[z,...re]})})})}),[]),ee.useEffect(()=>{if(y!=="system"){te(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:re})=>{te(re?"dark":"light")})}catch{z.addListener(({matches:oe})=>{try{te(oe?"dark":"light")}catch(he){console.error(he)}})}},[y]),ee.useEffect(()=>{V.length<=1&&Z(!1)},[V]),ee.useEffect(()=>{let z=re=>{var oe,he;a.every(xe=>re[xe]||re.code===xe)&&(Z(!0),(oe=se.current)==null||oe.focus()),re.code==="Escape"&&(document.activeElement===se.current||(he=se.current)!=null&&he.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[a]),ee.useEffect(()=>{if(se.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,G.current=!1)}},[se.current]),ee.createElement("section",{ref:r,"aria-label":`${L} ${U}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((z,re)=>{var oe;let[he,xe]=z.split("-");return V.length?ee.createElement("ol",{key:z,dir:C==="auto"?um():C,tabIndex:-1,ref:se,className:f,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":me&&V.length>1&&!u,"data-x-position":xe,style:{"--front-toast-height":`${((oe=ne[0])==null?void 0:oe.height)||0}px`,"--width":`${fw}px`,"--gap":`${T}px`,...E,...yw(h,g)},onBlur:Q=>{G.current&&!Q.currentTarget.contains(Q.relatedTarget)&&(G.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||G.current||(G.current=!0,W.current=Q.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{A||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},V.filter(Q=>!Q.position&&re===0||Q.position===z).map((Q,pe)=>{var we,Ce;return ee.createElement(vw,{key:Q.id,icons:j,index:pe,toast:Q,defaultRichColors:w,duration:(we=S==null?void 0:S.duration)!=null?we:b,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:s,visibleToasts:N,closeButton:(Ce=S==null?void 0:S.closeButton)!=null?Ce:d,interacting:A,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:O,toasts:V.filter(Ne=>Ne.position==Q.position),heights:ne.filter(Ne=>Ne.position==Q.position),setHeights:ce,expandByDefault:u,gap:T,loadingIcon:k,expanded:me,pauseWhenPageIsHidden:B,swipeDirections:n.swipeDirections})})):null}))});const Uc="ucli-admin-auth";function wh(){try{const n=sessionStorage.getItem(Uc);return n?JSON.parse(n):null}catch{return null}}function ww(n){sessionStorage.setItem(Uc,JSON.stringify(n))}function Sh(){sessionStorage.removeItem(Uc)}function cm(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Bc(...n){return r=>{let s=!1;const i=n.map(a=>{const u=cm(a,r);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let a=0;a<i.length;a++){const u=i[a];typeof u=="function"?u():cm(n[a],null)}}}}function et(...n){return v.useCallback(Bc(...n),n)}var Sw=Symbol.for("react.lazy"),Ll=$l[" use ".trim().toString()];function Ew(n){return typeof n=="object"&&n!==null&&"then"in n}function Eh(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===Sw&&"_payload"in n&&Ew(n._payload)}function Cw(n){const r=bw(n),s=v.forwardRef((i,a)=>{let{children:u,...d}=i;Eh(u)&&typeof Ll=="function"&&(u=Ll(u._payload));const f=v.Children.toArray(u),h=f.find(Rw);if(h){const g=h.props.children,y=f.map(w=>w===h?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:w);return p.jsx(r,{...d,ref:a,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return p.jsx(r,{...d,ref:a,children:u})});return s.displayName=`${n}.Slot`,s}function bw(n){const r=v.forwardRef((s,i)=>{let{children:a,...u}=s;if(Eh(a)&&typeof Ll=="function"&&(a=Ll(a._payload)),v.isValidElement(a)){const d=jw(a),f=kw(u,a.props);return a.type!==v.Fragment&&(f.ref=i?Bc(i,d):d),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var Nw=Symbol("radix.slottable");function Rw(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Nw}function kw(n,r){const s={...r};for(const i in r){const a=n[i],u=r[i];/^on[A-Z]/.test(i)?a&&u?s[i]=(...f)=>{const h=u(...f);return a(...f),h}:a&&(s[i]=a):i==="style"?s[i]={...a,...u}:i==="className"&&(s[i]=[a,u].filter(Boolean).join(" "))}return{...n,...s}}function jw(n){var i,a;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Pw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ch=Pw.reduce((n,r)=>{const s=Cw(`Primitive.${r}`),i=v.forwardRef((a,u)=>{const{asChild:d,...f}=a,h=d?s:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(h,{...f,ref:u})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{}),Tw="Separator",dm="horizontal",Ow=["horizontal","vertical"],bh=v.forwardRef((n,r)=>{const{decorative:s,orientation:i=dm,...a}=n,u=_w(i)?i:dm,f=s?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return p.jsx(Ch.div,{"data-orientation":u,...f,...a,ref:r})});bh.displayName=Tw;function _w(n){return Ow.includes(n)}var Nh=bh;function Rh(n){var r,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(s=Rh(n[r]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function kh(){for(var n,r,s=0,i="",a=arguments.length;s<a;s++)(n=arguments[s])&&(r=Rh(n))&&(i&&(i+=" "),i+=r);return i}const $c="-",Aw=n=>{const r=Iw(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:d=>{const f=d.split($c);return f[0]===""&&f.length!==1&&f.shift(),jh(f,r)||Lw(d)},getConflictingClassGroupIds:(d,f)=>{const h=s[d]||[];return f&&i[d]?[...h,...i[d]]:h}}},jh=(n,r)=>{var d;if(n.length===0)return r.classGroupId;const s=n[0],i=r.nextPart.get(s),a=i?jh(n.slice(1),i):void 0;if(a)return a;if(r.validators.length===0)return;const u=n.join($c);return(d=r.validators.find(({validator:f})=>f(u)))==null?void 0:d.classGroupId},fm=/^\[(.+)\]$/,Lw=n=>{if(fm.test(n)){const r=fm.exec(n)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},Iw=n=>{const{theme:r,prefix:s}=n,i={nextPart:new Map,validators:[]};return Mw(Object.entries(n.classGroups),s).forEach(([u,d])=>{xc(d,i,u,r)}),i},xc=(n,r,s,i)=>{n.forEach(a=>{if(typeof a=="string"){const u=a===""?r:pm(r,a);u.classGroupId=s;return}if(typeof a=="function"){if(Dw(a)){xc(a(i),r,s,i);return}r.validators.push({validator:a,classGroupId:s});return}Object.entries(a).forEach(([u,d])=>{xc(d,pm(r,u),s,i)})})},pm=(n,r)=>{let s=n;return r.split($c).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},Dw=n=>n.isThemeGetter,Mw=(n,r)=>r?n.map(([s,i])=>{const a=i.map(u=>typeof u=="string"?r+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([d,f])=>[r+d,f])):u);return[s,a]}):n,Fw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,i=new Map;const a=(u,d)=>{s.set(u,d),r++,r>n&&(r=0,i=s,s=new Map)};return{get(u){let d=s.get(u);if(d!==void 0)return d;if((d=i.get(u))!==void 0)return a(u,d),d},set(u,d){s.has(u)?s.set(u,d):a(u,d)}}},Ph="!",zw=n=>{const{separator:r,experimentalParseClassName:s}=n,i=r.length===1,a=r[0],u=r.length,d=f=>{const h=[];let g=0,y=0,w;for(let C=0;C<f.length;C++){let T=f[C];if(g===0){if(T===a&&(i||f.slice(C,C+u)===r)){h.push(f.slice(y,C)),y=C+u;continue}if(T==="/"){w=C;continue}}T==="["?g++:T==="]"&&g--}const b=h.length===0?f:f.substring(y),E=b.startsWith(Ph),N=E?b.substring(1):b,S=w&&w>y?w-y:void 0;return{modifiers:h,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:S}};return s?f=>s({className:f,parseClassName:d}):d},Uw=n=>{if(n.length<=1)return n;const r=[];let s=[];return n.forEach(i=>{i[0]==="["?(r.push(...s.sort(),i),s=[]):s.push(i)}),r.push(...s.sort()),r},Bw=n=>({cache:Fw(n.cacheSize),parseClassName:zw(n),...Aw(n)}),$w=/\s+/,Ww=(n,r)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:a}=r,u=[],d=n.trim().split($w);let f="";for(let h=d.length-1;h>=0;h-=1){const g=d[h],{modifiers:y,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:E}=s(g);let N=!!E,S=i(N?b.substring(0,E):b);if(!S){if(!N){f=g+(f.length>0?" "+f:f);continue}if(S=i(b),!S){f=g+(f.length>0?" "+f:f);continue}N=!1}const C=Uw(y).join(":"),T=w?C+Ph:C,k=T+S;if(u.includes(k))continue;u.push(k);const j=a(S,N);for(let L=0;L<j.length;++L){const B=j[L];u.push(T+B)}f=g+(f.length>0?" "+f:f)}return f};function Vw(){let n=0,r,s,i="";for(;n<arguments.length;)(r=arguments[n++])&&(s=Th(r))&&(i&&(i+=" "),i+=s);return i}const Th=n=>{if(typeof n=="string")return n;let r,s="";for(let i=0;i<n.length;i++)n[i]&&(r=Th(n[i]))&&(s&&(s+=" "),s+=r);return s};function Hw(n,...r){let s,i,a,u=d;function d(h){const g=r.reduce((y,w)=>w(y),n());return s=Bw(g),i=s.cache.get,a=s.cache.set,u=f,f(h)}function f(h){const g=i(h);if(g)return g;const y=Ww(h,s);return a(h,y),y}return function(){return u(Vw.apply(null,arguments))}}const ze=n=>{const r=s=>s[n]||[];return r.isThemeGetter=!0,r},Oh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kw=/^\d+\/\d+$/,Gw=new Set(["px","full","screen"]),Yw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qw=/\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$/,Qw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=n=>Oo(n)||Gw.has(n)||Kw.test(n),xr=n=>Ho(n,"length",iS),Oo=n=>!!n&&!Number.isNaN(Number(n)),Xu=n=>Ho(n,"number",Oo),As=n=>!!n&&Number.isInteger(Number(n)),Zw=n=>n.endsWith("%")&&Oo(n.slice(0,-1)),be=n=>Oh.test(n),wr=n=>Yw.test(n),eS=new Set(["length","size","percentage"]),tS=n=>Ho(n,eS,_h),nS=n=>Ho(n,"position",_h),rS=new Set(["image","url"]),oS=n=>Ho(n,rS,aS),sS=n=>Ho(n,"",lS),Ls=()=>!0,Ho=(n,r,s)=>{const i=Oh.exec(n);return i?i[1]?typeof r=="string"?i[1]===r:r.has(i[1]):s(i[2]):!1},iS=n=>qw.test(n)&&!Qw.test(n),_h=()=>!1,lS=n=>Xw.test(n),aS=n=>Jw.test(n),uS=()=>{const n=ze("colors"),r=ze("spacing"),s=ze("blur"),i=ze("brightness"),a=ze("borderColor"),u=ze("borderRadius"),d=ze("borderSpacing"),f=ze("borderWidth"),h=ze("contrast"),g=ze("grayscale"),y=ze("hueRotate"),w=ze("invert"),b=ze("gap"),E=ze("gradientColorStops"),N=ze("gradientColorStopPositions"),S=ze("inset"),C=ze("margin"),T=ze("opacity"),k=ze("padding"),j=ze("saturate"),L=ze("scale"),B=ze("sepia"),V=ze("skew"),$=ze("space"),ie=ze("translate"),ne=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",be,r],Z=()=>[be,r],A=()=>["",Wn,xr],J=()=>["auto",Oo,be],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],te=()=>["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"],U=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",be],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[Oo,be];return{cacheSize:500,separator:":",theme:{colors:[Ls],spacing:[Wn,xr],blur:["none","",wr,be],brightness:O(),borderColor:[n],borderRadius:["none","","full",wr,be],borderSpacing:Z(),borderWidth:A(),contrast:O(),grayscale:W(),hueRotate:O(),invert:W(),gap:Z(),gradientColorStops:[n],gradientColorStopPositions:[Zw,xr],inset:me(),margin:me(),opacity:O(),padding:Z(),saturate:O(),scale:O(),sepia:W(),skew:O(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[wr]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:[...Y(),be]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],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",As,be]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",As,be]}],"grid-cols":[{"grid-cols":[Ls]}],"col-start-end":[{col:["auto",{span:["full",As,be]},be]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[Ls]}],"row-start-end":[{row:["auto",{span:[As,be]},be]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,r]}],"min-w":[{"min-w":[be,r,"min","max","fit"]}],"max-w":[{"max-w":[be,r,"none","full","min","max","fit","prose",{screen:[wr]},wr]}],h:[{h:[be,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,r,"auto","min","max","fit"]}],"font-size":[{text:["base",wr,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xu]}],"font-family":[{font:[Ls]}],"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",be]}],"line-clamp":[{"line-clamp":["none",Oo,Xu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wn,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wn,xr]}],"underline-offset":[{"underline-offset":["auto",Wn,be]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],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",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),nS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oS]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...te(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:te()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...te()]}],"outline-offset":[{"outline-offset":[Wn,be]}],"outline-w":[{outline:[Wn,xr]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Wn,xr]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",wr,sS]}],"shadow-color":[{shadow:[Ls]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[i]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",wr,be]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[As,be]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",n]}],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",be]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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",be]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Wn,xr,Xu]}],stroke:[{stroke:[n,"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"]}}},cS=Hw(uS);function Pe(...n){return cS(kh(n))}function zs(n){return n?new Date(n).toLocaleString():"—"}function dS(n){if(!n)return"—";const r=new Date(n),i=Date.now()-r.getTime(),a=Math.floor(i/1e3);if(a<60)return"just now";const u=Math.floor(a/60);if(u<60)return`${u}m ago`;const d=Math.floor(u/60);return d<24?`${d}h ago`:`${Math.floor(d/24)}d ago`}const wc=v.forwardRef(({className:n,orientation:r="horizontal",decorative:s=!0,...i},a)=>p.jsx(Nh,{ref:a,decorative:s,orientation:r,className:Pe("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...i}));wc.displayName=Nh.displayName;const mm=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,hm=kh,Ah=(n,r)=>s=>{var i;if((r==null?void 0:r.variants)==null)return hm(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:a,defaultVariants:u}=r,d=Object.keys(a).map(g=>{const y=s==null?void 0:s[g],w=u==null?void 0:u[g];if(y===null)return null;const b=mm(y)||mm(w);return a[g][b]}),f=s&&Object.entries(s).reduce((g,y)=>{let[w,b]=y;return b===void 0||(g[w]=b),g},{}),h=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:w,className:b,...E}=y;return Object.entries(E).every(N=>{let[S,C]=N;return Array.isArray(C)?C.includes({...u,...f}[S]):{...u,...f}[S]===C})?[...g,w,b]:g},[]);return hm(n,d,h,s==null?void 0:s.class,s==null?void 0:s.className)},fS=Ah("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),_e=v.forwardRef(({className:n,variant:r,size:s,...i},a)=>p.jsx("button",{className:Pe(fS({variant:r,size:s,className:n})),ref:a,...i}));_e.displayName="Button";const pS=[{to:"/dashboard",icon:"ri-dashboard-line",label:"Dashboard"},{to:"/groups",icon:"ri-group-line",label:"Groups"},{to:"/oas",icon:"ri-file-code-line",label:"OAS Entries"},{to:"/mcp",icon:"ri-robot-line",label:"MCP Servers"},{to:"/tokens",icon:"ri-key-line",label:"Tokens"}];function mS(){const n=Hl();function r(){Sh(),n("/login",{replace:!0})}return p.jsxs("div",{className:"flex h-screen overflow-hidden bg-background",children:[p.jsxs("aside",{className:"flex w-56 flex-col bg-sidebar text-sidebar-foreground border-r border-sidebar-border",children:[p.jsxs("div",{className:"flex h-14 items-center gap-2 px-4",children:[p.jsx("i",{className:"ri-hexagon-line text-xl text-violet-400"}),p.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"ucli"}),p.jsx("span",{className:"ml-auto text-xs text-sidebar-foreground/40",children:"Admin"})]}),p.jsx(wc,{className:"bg-sidebar-border"}),p.jsx("nav",{className:"flex flex-col gap-1 p-2 flex-1",children:pS.map(({to:s,icon:i,label:a})=>p.jsxs(W0,{to:s,className:({isActive:u})=>Pe("flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",u?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground"),children:[p.jsx("i",{className:Pe(i,"text-base")}),a]},s))}),p.jsx(wc,{className:"bg-sidebar-border"}),p.jsx("div",{className:"p-2",children:p.jsxs(_e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-3 text-sidebar-foreground/70 hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground",onClick:r,children:[p.jsx("i",{className:"ri-logout-box-line text-base"}),"Logout"]})})]}),p.jsx("main",{className:"flex-1 overflow-auto",children:p.jsx(T0,{})})]})}function Lh(n,r){return function(){return n.apply(r,arguments)}}const{toString:hS}=Object.prototype,{getPrototypeOf:Wc}=Object,{iterator:Gl,toStringTag:Ih}=Symbol,Yl=(n=>r=>{const s=hS.call(r);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),cn=n=>(n=n.toLowerCase(),r=>Yl(r)===n),ql=n=>r=>typeof r===n,{isArray:Ko}=Array,Fo=ql("undefined");function Hs(n){return n!==null&&!Fo(n)&&n.constructor!==null&&!Fo(n.constructor)&&Ot(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Dh=cn("ArrayBuffer");function gS(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Dh(n.buffer),r}const vS=ql("string"),Ot=ql("function"),Mh=ql("number"),Ks=n=>n!==null&&typeof n=="object",yS=n=>n===!0||n===!1,Nl=n=>{if(Yl(n)!=="object")return!1;const r=Wc(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Ih in n)&&!(Gl in n)},xS=n=>{if(!Ks(n)||Hs(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},wS=cn("Date"),SS=cn("File"),ES=n=>!!(n&&typeof n.uri<"u"),CS=n=>n&&typeof n.getParts<"u",bS=cn("Blob"),NS=cn("FileList"),RS=n=>Ks(n)&&Ot(n.pipe);function kS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gm=kS(),vm=typeof gm.FormData<"u"?gm.FormData:void 0,jS=n=>{let r;return n&&(vm&&n instanceof vm||Ot(n.append)&&((r=Yl(n))==="formdata"||r==="object"&&Ot(n.toString)&&n.toString()==="[object FormData]"))},PS=cn("URLSearchParams"),[TS,OS,_S,AS]=["ReadableStream","Request","Response","Headers"].map(cn),LS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gs(n,r,{allOwnKeys:s=!1}={}){if(n===null||typeof n>"u")return;let i,a;if(typeof n!="object"&&(n=[n]),Ko(n))for(i=0,a=n.length;i<a;i++)r.call(null,n[i],i,n);else{if(Hs(n))return;const u=s?Object.getOwnPropertyNames(n):Object.keys(n),d=u.length;let f;for(i=0;i<d;i++)f=u[i],r.call(null,n[f],f,n)}}function Fh(n,r){if(Hs(n))return null;r=r.toLowerCase();const s=Object.keys(n);let i=s.length,a;for(;i-- >0;)if(a=s[i],r===a.toLowerCase())return a;return null}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zh=n=>!Fo(n)&&n!==Hr;function Sc(){const{caseless:n,skipUndefined:r}=zh(this)&&this||{},s={},i=(a,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=n&&Fh(s,u)||u;Nl(s[d])&&Nl(a)?s[d]=Sc(s[d],a):Nl(a)?s[d]=Sc({},a):Ko(a)?s[d]=a.slice():(!r||!Fo(a))&&(s[d]=a)};for(let a=0,u=arguments.length;a<u;a++)arguments[a]&&Gs(arguments[a],i);return s}const IS=(n,r,s,{allOwnKeys:i}={})=>(Gs(r,(a,u)=>{s&&Ot(a)?Object.defineProperty(n,u,{value:Lh(a,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,u,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),n),DS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),MS=(n,r,s,i)=>{n.prototype=Object.create(r.prototype,i),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:r.prototype}),s&&Object.assign(n.prototype,s)},FS=(n,r,s,i)=>{let a,u,d;const f={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),u=a.length;u-- >0;)d=a[u],(!i||i(d,n,r))&&!f[d]&&(r[d]=n[d],f[d]=!0);n=s!==!1&&Wc(n)}while(n&&(!s||s(n,r))&&n!==Object.prototype);return r},zS=(n,r,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=r.length;const i=n.indexOf(r,s);return i!==-1&&i===s},US=n=>{if(!n)return null;if(Ko(n))return n;let r=n.length;if(!Mh(r))return null;const s=new Array(r);for(;r-- >0;)s[r]=n[r];return s},BS=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&Wc(Uint8Array)),$S=(n,r)=>{const i=(n&&n[Gl]).call(n);let a;for(;(a=i.next())&&!a.done;){const u=a.value;r.call(n,u[0],u[1])}},WS=(n,r)=>{let s;const i=[];for(;(s=n.exec(r))!==null;)i.push(s);return i},VS=cn("HTMLFormElement"),HS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,i,a){return i.toUpperCase()+a}),ym=(({hasOwnProperty:n})=>(r,s)=>n.call(r,s))(Object.prototype),KS=cn("RegExp"),Uh=(n,r)=>{const s=Object.getOwnPropertyDescriptors(n),i={};Gs(s,(a,u)=>{let d;(d=r(a,u,n))!==!1&&(i[u]=d||a)}),Object.defineProperties(n,i)},GS=n=>{Uh(n,(r,s)=>{if(Ot(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const i=n[s];if(Ot(i)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},YS=(n,r)=>{const s={},i=a=>{a.forEach(u=>{s[u]=!0})};return Ko(n)?i(n):i(String(n).split(r)),s},qS=()=>{},QS=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r;function XS(n){return!!(n&&Ot(n.append)&&n[Ih]==="FormData"&&n[Gl])}const JS=n=>{const r=new Array(10),s=(i,a)=>{if(Ks(i)){if(r.indexOf(i)>=0)return;if(Hs(i))return i;if(!("toJSON"in i)){r[a]=i;const u=Ko(i)?[]:{};return Gs(i,(d,f)=>{const h=s(d,a+1);!Fo(h)&&(u[f]=h)}),r[a]=void 0,u}}return i};return s(n,0)},ZS=cn("AsyncFunction"),e1=n=>n&&(Ks(n)||Ot(n))&&Ot(n.then)&&Ot(n.catch),Bh=((n,r)=>n?setImmediate:r?((s,i)=>(Hr.addEventListener("message",({source:a,data:u})=>{a===Hr&&u===s&&i.length&&i.shift()()},!1),a=>{i.push(a),Hr.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Ot(Hr.postMessage)),t1=typeof queueMicrotask<"u"?queueMicrotask.bind(Hr):typeof process<"u"&&process.nextTick||Bh,n1=n=>n!=null&&Ot(n[Gl]),F={isArray:Ko,isArrayBuffer:Dh,isBuffer:Hs,isFormData:jS,isArrayBufferView:gS,isString:vS,isNumber:Mh,isBoolean:yS,isObject:Ks,isPlainObject:Nl,isEmptyObject:xS,isReadableStream:TS,isRequest:OS,isResponse:_S,isHeaders:AS,isUndefined:Fo,isDate:wS,isFile:SS,isReactNativeBlob:ES,isReactNative:CS,isBlob:bS,isRegExp:KS,isFunction:Ot,isStream:RS,isURLSearchParams:PS,isTypedArray:BS,isFileList:NS,forEach:Gs,merge:Sc,extend:IS,trim:LS,stripBOM:DS,inherits:MS,toFlatObject:FS,kindOf:Yl,kindOfTest:cn,endsWith:zS,toArray:US,forEachEntry:$S,matchAll:WS,isHTMLForm:VS,hasOwnProperty:ym,hasOwnProp:ym,reduceDescriptors:Uh,freezeMethods:GS,toObjectSet:YS,toCamelCase:HS,noop:qS,toFiniteNumber:QS,findKey:Fh,global:Hr,isContextDefined:zh,isSpecCompliantForm:XS,toJSONObject:JS,isAsyncFn:ZS,isThenable:e1,setImmediate:Bh,asap:t1,isIterable:n1};let ye=class $h extends Error{static from(r,s,i,a,u,d){const f=new $h(r.message,s||r.code,i,a,u);return f.cause=r,f.name=r.name,r.status!=null&&f.status==null&&(f.status=r.status),d&&Object.assign(f,d),f}constructor(r,s,i,a,u){super(r),Object.defineProperty(this,"message",{value:r,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),i&&(this.config=i),a&&(this.request=a),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}};ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ye.ERR_BAD_OPTION="ERR_BAD_OPTION";ye.ECONNABORTED="ECONNABORTED";ye.ETIMEDOUT="ETIMEDOUT";ye.ERR_NETWORK="ERR_NETWORK";ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ye.ERR_DEPRECATED="ERR_DEPRECATED";ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ye.ERR_CANCELED="ERR_CANCELED";ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ye.ERR_INVALID_URL="ERR_INVALID_URL";const r1=null;function Ec(n){return F.isPlainObject(n)||F.isArray(n)}function Wh(n){return F.endsWith(n,"[]")?n.slice(0,-2):n}function Ju(n,r,s){return n?n.concat(r).map(function(a,u){return a=Wh(a),!s&&u?"["+a+"]":a}).join(s?".":""):r}function o1(n){return F.isArray(n)&&!n.some(Ec)}const s1=F.toFlatObject(F,{},null,function(r){return/^is[A-Z]/.test(r)});function Ql(n,r,s){if(!F.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,s=F.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!F.isUndefined(C[S])});const i=s.metaTokens,a=s.visitor||y,u=s.dots,d=s.indexes,h=(s.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(r);if(!F.isFunction(a))throw new TypeError("visitor must be a function");function g(N){if(N===null)return"";if(F.isDate(N))return N.toISOString();if(F.isBoolean(N))return N.toString();if(!h&&F.isBlob(N))throw new ye("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(N)||F.isTypedArray(N)?h&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function y(N,S,C){let T=N;if(F.isReactNative(r)&&F.isReactNativeBlob(N))return r.append(Ju(C,S,u),g(N)),!1;if(N&&!C&&typeof N=="object"){if(F.endsWith(S,"{}"))S=i?S:S.slice(0,-2),N=JSON.stringify(N);else if(F.isArray(N)&&o1(N)||(F.isFileList(N)||F.endsWith(S,"[]"))&&(T=F.toArray(N)))return S=Wh(S),T.forEach(function(j,L){!(F.isUndefined(j)||j===null)&&r.append(d===!0?Ju([S],L,u):d===null?S:S+"[]",g(j))}),!1}return Ec(N)?!0:(r.append(Ju(C,S,u),g(N)),!1)}const w=[],b=Object.assign(s1,{defaultVisitor:y,convertValue:g,isVisitable:Ec});function E(N,S){if(!F.isUndefined(N)){if(w.indexOf(N)!==-1)throw Error("Circular reference detected in "+S.join("."));w.push(N),F.forEach(N,function(T,k){(!(F.isUndefined(T)||T===null)&&a.call(r,T,F.isString(k)?k.trim():k,S,b))===!0&&E(T,S?S.concat(k):[k])}),w.pop()}}if(!F.isObject(n))throw new TypeError("data must be an object");return E(n),r}function xm(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function Vc(n,r){this._pairs=[],n&&Ql(n,this,r)}const Vh=Vc.prototype;Vh.append=function(r,s){this._pairs.push([r,s])};Vh.toString=function(r){const s=r?function(i){return r.call(this,i,xm)}:xm;return this._pairs.map(function(a){return s(a[0])+"="+s(a[1])},"").join("&")};function i1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hh(n,r,s){if(!r)return n;const i=s&&s.encode||i1,a=F.isFunction(s)?{serialize:s}:s,u=a&&a.serialize;let d;if(u?d=u(r,a):d=F.isURLSearchParams(r)?r.toString():new Vc(r,a).toString(i),d){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+d}return n}class wm{constructor(){this.handlers=[]}use(r,s,i){return this.handlers.push({fulfilled:r,rejected:s,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){F.forEach(this.handlers,function(i){i!==null&&r(i)})}}const Hc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},l1=typeof URLSearchParams<"u"?URLSearchParams:Vc,a1=typeof FormData<"u"?FormData:null,u1=typeof Blob<"u"?Blob:null,c1={isBrowser:!0,classes:{URLSearchParams:l1,FormData:a1,Blob:u1},protocols:["http","https","file","blob","url","data"]},Kc=typeof window<"u"&&typeof document<"u",Cc=typeof navigator=="object"&&navigator||void 0,d1=Kc&&(!Cc||["ReactNative","NativeScript","NS"].indexOf(Cc.product)<0),f1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p1=Kc&&window.location.href||"http://localhost",m1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kc,hasStandardBrowserEnv:d1,hasStandardBrowserWebWorkerEnv:f1,navigator:Cc,origin:p1},Symbol.toStringTag,{value:"Module"})),ht={...m1,...c1};function h1(n,r){return Ql(n,new ht.classes.URLSearchParams,{visitor:function(s,i,a,u){return ht.isNode&&F.isBuffer(s)?(this.append(i,s.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...r})}function g1(n){return F.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function v1(n){const r={},s=Object.keys(n);let i;const a=s.length;let u;for(i=0;i<a;i++)u=s[i],r[u]=n[u];return r}function Kh(n){function r(s,i,a,u){let d=s[u++];if(d==="__proto__")return!0;const f=Number.isFinite(+d),h=u>=s.length;return d=!d&&F.isArray(a)?a.length:d,h?(F.hasOwnProp(a,d)?a[d]=[a[d],i]:a[d]=i,!f):((!a[d]||!F.isObject(a[d]))&&(a[d]=[]),r(s,i,a[d],u)&&F.isArray(a[d])&&(a[d]=v1(a[d])),!f)}if(F.isFormData(n)&&F.isFunction(n.entries)){const s={};return F.forEachEntry(n,(i,a)=>{r(g1(i),a,s,0)}),s}return null}function y1(n,r,s){if(F.isString(n))try{return(r||JSON.parse)(n),F.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(s||JSON.stringify)(n)}const Ys={transitional:Hc,adapter:["xhr","http","fetch"],transformRequest:[function(r,s){const i=s.getContentType()||"",a=i.indexOf("application/json")>-1,u=F.isObject(r);if(u&&F.isHTMLForm(r)&&(r=new FormData(r)),F.isFormData(r))return a?JSON.stringify(Kh(r)):r;if(F.isArrayBuffer(r)||F.isBuffer(r)||F.isStream(r)||F.isFile(r)||F.isBlob(r)||F.isReadableStream(r))return r;if(F.isArrayBufferView(r))return r.buffer;if(F.isURLSearchParams(r))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return h1(r,this.formSerializer).toString();if((f=F.isFileList(r))||i.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Ql(f?{"files[]":r}:r,h&&new h,this.formSerializer)}}return u||a?(s.setContentType("application/json",!1),y1(r)):r}],transformResponse:[function(r){const s=this.transitional||Ys.transitional,i=s&&s.forcedJSONParsing,a=this.responseType==="json";if(F.isResponse(r)||F.isReadableStream(r))return r;if(r&&F.isString(r)&&(i&&!this.responseType||a)){const d=!(s&&s.silentJSONParsing)&&a;try{return JSON.parse(r,this.parseReviver)}catch(f){if(d)throw f.name==="SyntaxError"?ye.from(f,ye.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],n=>{Ys.headers[n]={}});const x1=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w1=n=>{const r={};let s,i,a;return n&&n.split(`
|
|
69
|
-
`).forEach(function(d){a=d.indexOf(":"),s=d.substring(0,a).trim().toLowerCase(),i=d.substring(a+1).trim(),!(!s||r[s]&&x1[s])&&(s==="set-cookie"?r[s]?r[s].push(i):r[s]=[i]:r[s]=r[s]?r[s]+", "+i:i)}),r},Sm=Symbol("internals");function Is(n){return n&&String(n).trim().toLowerCase()}function Rl(n){return n===!1||n==null?n:F.isArray(n)?n.map(Rl):String(n)}function S1(n){const r=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=s.exec(n);)r[i[1]]=i[2];return r}const E1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zu(n,r,s,i,a){if(F.isFunction(i))return i.call(this,r,s);if(a&&(r=s),!!F.isString(r)){if(F.isString(i))return r.indexOf(i)!==-1;if(F.isRegExp(i))return i.test(r)}}function C1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,s,i)=>s.toUpperCase()+i)}function b1(n,r){const s=F.toCamelCase(" "+r);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+s,{value:function(a,u,d){return this[i].call(this,r,a,u,d)},configurable:!0})})}let _t=class{constructor(r){r&&this.set(r)}set(r,s,i){const a=this;function u(f,h,g){const y=Is(h);if(!y)throw new Error("header name must be a non-empty string");const w=F.findKey(a,y);(!w||a[w]===void 0||g===!0||g===void 0&&a[w]!==!1)&&(a[w||h]=Rl(f))}const d=(f,h)=>F.forEach(f,(g,y)=>u(g,y,h));if(F.isPlainObject(r)||r instanceof this.constructor)d(r,s);else if(F.isString(r)&&(r=r.trim())&&!E1(r))d(w1(r),s);else if(F.isObject(r)&&F.isIterable(r)){let f={},h,g;for(const y of r){if(!F.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[g=y[0]]=(h=f[g])?F.isArray(h)?[...h,y[1]]:[h,y[1]]:y[1]}d(f,s)}else r!=null&&u(s,r,i);return this}get(r,s){if(r=Is(r),r){const i=F.findKey(this,r);if(i){const a=this[i];if(!s)return a;if(s===!0)return S1(a);if(F.isFunction(s))return s.call(this,a,i);if(F.isRegExp(s))return s.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,s){if(r=Is(r),r){const i=F.findKey(this,r);return!!(i&&this[i]!==void 0&&(!s||Zu(this,this[i],i,s)))}return!1}delete(r,s){const i=this;let a=!1;function u(d){if(d=Is(d),d){const f=F.findKey(i,d);f&&(!s||Zu(i,i[f],f,s))&&(delete i[f],a=!0)}}return F.isArray(r)?r.forEach(u):u(r),a}clear(r){const s=Object.keys(this);let i=s.length,a=!1;for(;i--;){const u=s[i];(!r||Zu(this,this[u],u,r,!0))&&(delete this[u],a=!0)}return a}normalize(r){const s=this,i={};return F.forEach(this,(a,u)=>{const d=F.findKey(i,u);if(d){s[d]=Rl(a),delete s[u];return}const f=r?C1(u):String(u).trim();f!==u&&delete s[u],s[f]=Rl(a),i[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const s=Object.create(null);return F.forEach(this,(i,a)=>{i!=null&&i!==!1&&(s[a]=r&&F.isArray(i)?i.join(", "):i)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,s])=>r+": "+s).join(`
|
|
70
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...s){const i=new this(r);return s.forEach(a=>i.set(a)),i}static accessor(r){const i=(this[Sm]=this[Sm]={accessors:{}}).accessors,a=this.prototype;function u(d){const f=Is(d);i[f]||(b1(a,d),i[f]=!0)}return F.isArray(r)?r.forEach(u):u(r),this}};_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(_t.prototype,({value:n},r)=>{let s=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(i){this[s]=i}}});F.freezeMethods(_t);function ec(n,r){const s=this||Ys,i=r||s,a=_t.from(i.headers);let u=i.data;return F.forEach(n,function(f){u=f.call(s,u,a.normalize(),r?r.status:void 0)}),a.normalize(),u}function Gh(n){return!!(n&&n.__CANCEL__)}let qs=class extends ye{constructor(r,s,i){super(r??"canceled",ye.ERR_CANCELED,s,i),this.name="CanceledError",this.__CANCEL__=!0}};function Yh(n,r,s){const i=s.config.validateStatus;!s.status||!i||i(s.status)?n(s):r(new ye("Request failed with status code "+s.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function N1(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function R1(n,r){n=n||10;const s=new Array(n),i=new Array(n);let a=0,u=0,d;return r=r!==void 0?r:1e3,function(h){const g=Date.now(),y=i[u];d||(d=g),s[a]=h,i[a]=g;let w=u,b=0;for(;w!==a;)b+=s[w++],w=w%n;if(a=(a+1)%n,a===u&&(u=(u+1)%n),g-d<r)return;const E=y&&g-y;return E?Math.round(b*1e3/E):void 0}}function k1(n,r){let s=0,i=1e3/r,a,u;const d=(g,y=Date.now())=>{s=y,a=null,u&&(clearTimeout(u),u=null),n(...g)};return[(...g)=>{const y=Date.now(),w=y-s;w>=i?d(g,y):(a=g,u||(u=setTimeout(()=>{u=null,d(a)},i-w)))},()=>a&&d(a)]}const Il=(n,r,s=3)=>{let i=0;const a=R1(50,250);return k1(u=>{const d=u.loaded,f=u.lengthComputable?u.total:void 0,h=d-i,g=a(h),y=d<=f;i=d;const w={loaded:d,total:f,progress:f?d/f:void 0,bytes:h,rate:g||void 0,estimated:g&&f&&y?(f-d)/g:void 0,event:u,lengthComputable:f!=null,[r?"download":"upload"]:!0};n(w)},s)},Em=(n,r)=>{const s=n!=null;return[i=>r[0]({lengthComputable:s,total:n,loaded:i}),r[1]]},Cm=n=>(...r)=>F.asap(()=>n(...r)),j1=ht.hasStandardBrowserEnv?((n,r)=>s=>(s=new URL(s,ht.origin),n.protocol===s.protocol&&n.host===s.host&&(r||n.port===s.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,P1=ht.hasStandardBrowserEnv?{write(n,r,s,i,a,u,d){if(typeof document>"u")return;const f=[`${n}=${encodeURIComponent(r)}`];F.isNumber(s)&&f.push(`expires=${new Date(s).toUTCString()}`),F.isString(i)&&f.push(`path=${i}`),F.isString(a)&&f.push(`domain=${a}`),u===!0&&f.push("secure"),F.isString(d)&&f.push(`SameSite=${d}`),document.cookie=f.join("; ")},read(n){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function T1(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function O1(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function qh(n,r,s){let i=!T1(r);return n&&(i||s==!1)?O1(n,r):r}const bm=n=>n instanceof _t?{...n}:n;function Yr(n,r){r=r||{};const s={};function i(g,y,w,b){return F.isPlainObject(g)&&F.isPlainObject(y)?F.merge.call({caseless:b},g,y):F.isPlainObject(y)?F.merge({},y):F.isArray(y)?y.slice():y}function a(g,y,w,b){if(F.isUndefined(y)){if(!F.isUndefined(g))return i(void 0,g,w,b)}else return i(g,y,w,b)}function u(g,y){if(!F.isUndefined(y))return i(void 0,y)}function d(g,y){if(F.isUndefined(y)){if(!F.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function f(g,y,w){if(w in r)return i(g,y);if(w in n)return i(void 0,g)}const h={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:f,headers:(g,y,w)=>a(bm(g),bm(y),w,!0)};return F.forEach(Object.keys({...n,...r}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=F.hasOwnProp(h,y)?h[y]:a,b=w(n[y],r[y],y);F.isUndefined(b)&&w!==f||(s[y]=b)}),s}const Qh=n=>{const r=Yr({},n);let{data:s,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:u,headers:d,auth:f}=r;if(r.headers=d=_t.from(d),r.url=Hh(qh(r.baseURL,r.url,r.allowAbsoluteUrls),n.params,n.paramsSerializer),f&&d.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),F.isFormData(s)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(F.isFunction(s.getHeaders)){const h=s.getHeaders(),g=["content-type","content-length"];Object.entries(h).forEach(([y,w])=>{g.includes(y.toLowerCase())&&d.set(y,w)})}}if(ht.hasStandardBrowserEnv&&(i&&F.isFunction(i)&&(i=i(r)),i||i!==!1&&j1(r.url))){const h=a&&u&&P1.read(u);h&&d.set(a,h)}return r},_1=typeof XMLHttpRequest<"u",A1=_1&&function(n){return new Promise(function(s,i){const a=Qh(n);let u=a.data;const d=_t.from(a.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:g}=a,y,w,b,E,N;function S(){E&&E(),N&&N(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function T(){if(!C)return;const j=_t.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),B={data:!f||f==="text"||f==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:j,config:n,request:C};Yh(function($){s($),S()},function($){i($),S()},B),C=null}"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(T)},C.onabort=function(){C&&(i(new ye("Request aborted",ye.ECONNABORTED,n,C)),C=null)},C.onerror=function(L){const B=L&&L.message?L.message:"Network Error",V=new ye(B,ye.ERR_NETWORK,n,C);V.event=L||null,i(V),C=null},C.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const B=a.transitional||Hc;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),i(new ye(L,B.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,n,C)),C=null},u===void 0&&d.setContentType(null),"setRequestHeader"in C&&F.forEach(d.toJSON(),function(L,B){C.setRequestHeader(B,L)}),F.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),f&&f!=="json"&&(C.responseType=a.responseType),g&&([b,N]=Il(g,!0),C.addEventListener("progress",b)),h&&C.upload&&([w,E]=Il(h),C.upload.addEventListener("progress",w),C.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(y=j=>{C&&(i(!j||j.type?new qs(null,n,C):j),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const k=N1(a.url);if(k&&ht.protocols.indexOf(k)===-1){i(new ye("Unsupported protocol "+k+":",ye.ERR_BAD_REQUEST,n));return}C.send(u||null)})},L1=(n,r)=>{const{length:s}=n=n?n.filter(Boolean):[];if(r||s){let i=new AbortController,a;const u=function(g){if(!a){a=!0,f();const y=g instanceof Error?g:this.reason;i.abort(y instanceof ye?y:new qs(y instanceof Error?y.message:y))}};let d=r&&setTimeout(()=>{d=null,u(new ye(`timeout of ${r}ms exceeded`,ye.ETIMEDOUT))},r);const f=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),n=null)};n.forEach(g=>g.addEventListener("abort",u));const{signal:h}=i;return h.unsubscribe=()=>F.asap(f),h}},I1=function*(n,r){let s=n.byteLength;if(s<r){yield n;return}let i=0,a;for(;i<s;)a=i+r,yield n.slice(i,a),i=a},D1=async function*(n,r){for await(const s of M1(n))yield*I1(s,r)},M1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const r=n.getReader();try{for(;;){const{done:s,value:i}=await r.read();if(s)break;yield i}}finally{await r.cancel()}},Nm=(n,r,s,i)=>{const a=D1(n,r);let u=0,d,f=h=>{d||(d=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:y}=await a.next();if(g){f(),h.close();return}let w=y.byteLength;if(s){let b=u+=w;s(b)}h.enqueue(new Uint8Array(y))}catch(g){throw f(g),g}},cancel(h){return f(h),a.return()}},{highWaterMark:2})},Rm=64*1024,{isFunction:vl}=F,F1=(({Request:n,Response:r})=>({Request:n,Response:r}))(F.global),{ReadableStream:km,TextEncoder:jm}=F.global,Pm=(n,...r)=>{try{return!!n(...r)}catch{return!1}},z1=n=>{n=F.merge.call({skipUndefined:!0},F1,n);const{fetch:r,Request:s,Response:i}=n,a=r?vl(r):typeof fetch=="function",u=vl(s),d=vl(i);if(!a)return!1;const f=a&&vl(km),h=a&&(typeof jm=="function"?(N=>S=>N.encode(S))(new jm):async N=>new Uint8Array(await new s(N).arrayBuffer())),g=u&&f&&Pm(()=>{let N=!1;const S=new s(ht.origin,{body:new km,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!S}),y=d&&f&&Pm(()=>F.isReadableStream(new i("").body)),w={stream:y&&(N=>N.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!w[N]&&(w[N]=(S,C)=>{let T=S&&S[N];if(T)return T.call(S);throw new ye(`Response type '${N}' is not supported`,ye.ERR_NOT_SUPPORT,C)})});const b=async N=>{if(N==null)return 0;if(F.isBlob(N))return N.size;if(F.isSpecCompliantForm(N))return(await new s(ht.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(F.isArrayBufferView(N)||F.isArrayBuffer(N))return N.byteLength;if(F.isURLSearchParams(N)&&(N=N+""),F.isString(N))return(await h(N)).byteLength},E=async(N,S)=>{const C=F.toFiniteNumber(N.getContentLength());return C??b(S)};return async N=>{let{url:S,method:C,data:T,signal:k,cancelToken:j,timeout:L,onDownloadProgress:B,onUploadProgress:V,responseType:$,headers:ie,withCredentials:ne="same-origin",fetchOptions:ce}=Qh(N),me=r||fetch;$=$?($+"").toLowerCase():"text";let Z=L1([k,j&&j.toAbortSignal()],L),A=null;const J=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let Y;try{if(V&&g&&C!=="get"&&C!=="head"&&(Y=await E(ie,T))!==0){let O=new s(S,{method:"POST",body:T,duplex:"half"}),z;if(F.isFormData(T)&&(z=O.headers.get("content-type"))&&ie.setContentType(z),O.body){const[re,oe]=Em(Y,Il(Cm(V)));T=Nm(O.body,Rm,re,oe)}}F.isString(ne)||(ne=ne?"include":"omit");const te=u&&"credentials"in s.prototype,se={...ce,signal:Z,method:C.toUpperCase(),headers:ie.normalize().toJSON(),body:T,duplex:"half",credentials:te?ne:void 0};A=u&&new s(S,se);let U=await(u?me(A,ce):me(S,se));const W=y&&($==="stream"||$==="response");if(y&&(B||W&&J)){const O={};["status","statusText","headers"].forEach(he=>{O[he]=U[he]});const z=F.toFiniteNumber(U.headers.get("content-length")),[re,oe]=B&&Em(z,Il(Cm(B),!0))||[];U=new i(Nm(U.body,Rm,re,()=>{oe&&oe(),J&&J()}),O)}$=$||"text";let G=await w[F.findKey(w,$)||"text"](U,N);return!W&&J&&J(),await new Promise((O,z)=>{Yh(O,z,{data:G,headers:_t.from(U.headers),status:U.status,statusText:U.statusText,config:N,request:A})})}catch(te){throw J&&J(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,N,A,te&&te.response),{cause:te.cause||te}):ye.from(te,te&&te.code,N,A,te&&te.response)}}},U1=new Map,Xh=n=>{let r=n&&n.env||{};const{fetch:s,Request:i,Response:a}=r,u=[i,a,s];let d=u.length,f=d,h,g,y=U1;for(;f--;)h=u[f],g=y.get(h),g===void 0&&y.set(h,g=f?new Map:z1(r)),y=g;return g};Xh();const Gc={http:r1,xhr:A1,fetch:{get:Xh}};F.forEach(Gc,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const Tm=n=>`- ${n}`,B1=n=>F.isFunction(n)||n===null||n===!1;function $1(n,r){n=F.isArray(n)?n:[n];const{length:s}=n;let i,a;const u={};for(let d=0;d<s;d++){i=n[d];let f;if(a=i,!B1(i)&&(a=Gc[(f=String(i)).toLowerCase()],a===void 0))throw new ye(`Unknown adapter '${f}'`);if(a&&(F.isFunction(a)||(a=a.get(r))))break;u[f||"#"+d]=a}if(!a){const d=Object.entries(u).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let f=s?d.length>1?`since :
|
|
71
|
-
`+d.map(Tm).join(`
|
|
72
|
-
`):" "+Tm(d[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const Jh={getAdapter:$1,adapters:Gc};function tc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new qs(null,n)}function Om(n){return tc(n),n.headers=_t.from(n.headers),n.data=ec.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Jh.getAdapter(n.adapter||Ys.adapter,n)(n).then(function(i){return tc(n),i.data=ec.call(n,n.transformResponse,i),i.headers=_t.from(i.headers),i},function(i){return Gh(i)||(tc(n),i&&i.response&&(i.response.data=ec.call(n,n.transformResponse,i.response),i.response.headers=_t.from(i.response.headers))),Promise.reject(i)})}const Zh="1.13.6",Xl={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Xl[n]=function(i){return typeof i===n||"a"+(r<1?"n ":" ")+n}});const _m={};Xl.transitional=function(r,s,i){function a(u,d){return"[Axios v"+Zh+"] Transitional option '"+u+"'"+d+(i?". "+i:"")}return(u,d,f)=>{if(r===!1)throw new ye(a(d," has been removed"+(s?" in "+s:"")),ye.ERR_DEPRECATED);return s&&!_m[d]&&(_m[d]=!0,console.warn(a(d," has been deprecated since v"+s+" and will be removed in the near future"))),r?r(u,d,f):!0}};Xl.spelling=function(r){return(s,i)=>(console.warn(`${i} is likely a misspelling of ${r}`),!0)};function W1(n,r,s){if(typeof n!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let a=i.length;for(;a-- >0;){const u=i[a],d=r[u];if(d){const f=n[u],h=f===void 0||d(f,u,n);if(h!==!0)throw new ye("option "+u+" must be "+h,ye.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ye("Unknown option "+u,ye.ERR_BAD_OPTION)}}const kl={assertOptions:W1,validators:Xl},Gt=kl.validators;let Kr=class{constructor(r){this.defaults=r||{},this.interceptors={request:new wm,response:new wm}}async request(r,s){try{return await this._request(r,s)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const u=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?u&&!String(i.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
73
|
-
`+u):i.stack=u}catch{}}throw i}}_request(r,s){typeof r=="string"?(s=s||{},s.url=r):s=r||{},s=Yr(this.defaults,s);const{transitional:i,paramsSerializer:a,headers:u}=s;i!==void 0&&kl.assertOptions(i,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean),legacyInterceptorReqResOrdering:Gt.transitional(Gt.boolean)},!1),a!=null&&(F.isFunction(a)?s.paramsSerializer={serialize:a}:kl.assertOptions(a,{encode:Gt.function,serialize:Gt.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),kl.assertOptions(s,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let d=u&&F.merge(u.common,u[s.method]);u&&F.forEach(["delete","get","head","post","put","patch","common"],N=>{delete u[N]}),s.headers=_t.concat(d,u);const f=[];let h=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(s)===!1)return;h=h&&S.synchronous;const C=s.transitional||Hc;C&&C.legacyInterceptorReqResOrdering?f.unshift(S.fulfilled,S.rejected):f.push(S.fulfilled,S.rejected)});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!h){const N=[Om.bind(this),void 0];for(N.unshift(...f),N.push(...g),b=N.length,y=Promise.resolve(s);w<b;)y=y.then(N[w++],N[w++]);return y}b=f.length;let E=s;for(;w<b;){const N=f[w++],S=f[w++];try{E=N(E)}catch(C){S.call(this,C);break}}try{y=Om.call(this,E)}catch(N){return Promise.reject(N)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=Yr(this.defaults,r);const s=qh(r.baseURL,r.url,r.allowAbsoluteUrls);return Hh(s,r.params,r.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(r){Kr.prototype[r]=function(s,i){return this.request(Yr(i||{},{method:r,url:s,data:(i||{}).data}))}});F.forEach(["post","put","patch"],function(r){function s(i){return function(u,d,f){return this.request(Yr(f||{},{method:r,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}Kr.prototype[r]=s(),Kr.prototype[r+"Form"]=s(!0)});let V1=class eg{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(u){s=u});const i=this;this.promise.then(a=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](a);i._listeners=null}),this.promise.then=a=>{let u;const d=new Promise(f=>{i.subscribe(f),u=f}).then(a);return d.cancel=function(){i.unsubscribe(u)},d},r(function(u,d,f){i.reason||(i.reason=new qs(u,d,f),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const s=this._listeners.indexOf(r);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const r=new AbortController,s=i=>{r.abort(i)};return this.subscribe(s),r.signal.unsubscribe=()=>this.unsubscribe(s),r.signal}static source(){let r;return{token:new eg(function(a){r=a}),cancel:r}}};function H1(n){return function(s){return n.apply(null,s)}}function K1(n){return F.isObject(n)&&n.isAxiosError===!0}const bc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bc).forEach(([n,r])=>{bc[r]=n});function tg(n){const r=new Kr(n),s=Lh(Kr.prototype.request,r);return F.extend(s,Kr.prototype,r,{allOwnKeys:!0}),F.extend(s,r,null,{allOwnKeys:!0}),s.create=function(a){return tg(Yr(n,a))},s}const qe=tg(Ys);qe.Axios=Kr;qe.CanceledError=qs;qe.CancelToken=V1;qe.isCancel=Gh;qe.VERSION=Zh;qe.toFormData=Ql;qe.AxiosError=ye;qe.Cancel=qe.CanceledError;qe.all=function(r){return Promise.all(r)};qe.spread=H1;qe.isAxiosError=K1;qe.mergeConfig=Yr;qe.AxiosHeaders=_t;qe.formToJSON=n=>Kh(F.isHTMLForm(n)?new FormData(n):n);qe.getAdapter=Jh.getAdapter;qe.HttpStatusCode=bc;qe.default=qe;const{Axios:nR,AxiosError:rR,CanceledError:oR,isCancel:sR,CancelToken:iR,VERSION:lR,all:aR,Cancel:uR,isAxiosError:cR,spread:dR,toFormData:fR,AxiosHeaders:pR,HttpStatusCode:mR,formToJSON:hR,getAdapter:gR,mergeConfig:vR}=qe;function Jl(n,r="An unexpected error occurred"){var a,u;const s=n,i=(u=(a=s==null?void 0:s.response)==null?void 0:a.data)==null?void 0:u.message;return Array.isArray(i)?i.join("; "):i??r}function At(){const n=wh();if(!n)throw new Error("Not authenticated");const r=qe.create({baseURL:n.serverUrl,timeout:3e4,headers:{"X-Admin-Secret":n.adminSecret,"Content-Type":"application/json"}});return r.interceptors.response.use(s=>s,s=>{var a;return((a=s==null?void 0:s.response)==null?void 0:a.status)===401&&(Sh(),window.location.href="/admin-ui/"),Promise.reject(s)}),r}async function G1(n,r){await qe.get(`${n}/api/v1/health`),await qe.get(`${n}/admin/groups`,{headers:{"X-Admin-Secret":r}})}async function Qs(){return(await At().get("/admin/groups")).data}async function Y1(n){return(await At().post("/admin/groups",n)).data}async function q1(n){await At().delete(`/admin/groups/${n}`)}async function jl(n){return(await At().get(`/admin/groups/${n}/tokens`)).data}async function Q1(n,r){return(await At().post(`/admin/groups/${n}/tokens`,r)).data}async function X1(n){await At().delete(`/admin/tokens/${n}`)}async function Yc(){return(await At().get("/admin/oas")).data}async function J1(n){return(await At().post("/admin/oas",n)).data}async function Z1(n,r){return(await At().put(`/admin/oas/${n}`,r)).data}async function eE(n){await At().delete(`/admin/oas/${n}`)}async function tE(){return(await At().get("/admin/mcp")).data}async function nE(n){return(await At().post("/admin/mcp",n)).data}async function rE(n,r){return(await At().put(`/admin/mcp/${n}`,r)).data}async function oE(n){await At().delete(`/admin/mcp/${n}`)}async function sE(){const[n,r]=await Promise.all([Qs(),Yc()]),s=await Promise.all(n.map(i=>jl(i.id).then(a=>a.filter(u=>!u.revokedAt).length).catch(()=>0)));return{groups:n.length,oasEntries:r.length,activeTokens:s.reduce((i,a)=>i+a,0)}}const St=v.forwardRef(({className:n,type:r,...s},i)=>p.jsx("input",{type:r,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...s}));St.displayName="Input";var iE="Label",ng=v.forwardRef((n,r)=>p.jsx(Ch.label,{...n,ref:r,onMouseDown:s=>{var a;s.target.closest("button, input, select, textarea")||((a=n.onMouseDown)==null||a.call(n,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));ng.displayName=iE;var rg=ng;const Ue=v.forwardRef(({className:n,...r},s)=>p.jsx(rg,{ref:s,className:Pe("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n),...r}));Ue.displayName=rg.displayName;const _o=v.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:Pe("rounded-xl border bg-card text-card-foreground shadow",n),...r}));_o.displayName="Card";const qc=v.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:Pe("flex flex-col space-y-1.5 p-6",n),...r}));qc.displayName="CardHeader";const Qc=v.forwardRef(({className:n,...r},s)=>p.jsx("h3",{ref:s,className:Pe("font-semibold leading-none tracking-tight",n),...r}));Qc.displayName="CardTitle";const og=v.forwardRef(({className:n,...r},s)=>p.jsx("p",{ref:s,className:Pe("text-sm text-muted-foreground",n),...r}));og.displayName="CardDescription";const Ao=v.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:Pe("p-6 pt-0",n),...r}));Ao.displayName="CardContent";const lE=v.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:Pe("flex items-center p-6 pt-0",n),...r}));lE.displayName="CardFooter";function aE(){const n=Hl(),[r,s]=v.useState("http://localhost:3000"),[i,a]=v.useState(""),[u,d]=v.useState(!1),[f,h]=v.useState("");async function g(y){y.preventDefault();const w=r.trim().replace(/\/$/,""),b=i.trim();if(!(!w||!b)){try{new URL(w),h("")}catch{h("Please enter a valid URL (e.g. http://localhost:3000)");return}d(!0);try{await G1(w,b),ww({serverUrl:w,adminSecret:b}),Ge.success("Connected successfully"),n("/dashboard",{replace:!0})}catch{Ge.error("Connection failed — check the server URL and admin secret")}finally{d(!1)}}}return p.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:p.jsxs("div",{className:"w-full max-w-sm space-y-6",children:[p.jsxs("div",{className:"flex flex-col items-center gap-3",children:[p.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:p.jsx("i",{className:"ri-hexagon-line text-2xl text-primary"})}),p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-xl font-bold",children:"OAS Gateway"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Admin Dashboard"})]})]}),p.jsxs(_o,{children:[p.jsxs(qc,{className:"pb-3",children:[p.jsx(Qc,{className:"text-base",children:"Connect to server"}),p.jsx(og,{children:"Enter your server URL and admin secret to continue."})]}),p.jsx(Ao,{children:p.jsxs("form",{onSubmit:g,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"serverUrl",children:"Server URL"}),p.jsx(St,{id:"serverUrl",placeholder:"http://localhost:3000",value:r,onChange:y=>{s(y.target.value),h("")},autoComplete:"url",required:!0}),f&&p.jsx("p",{className:"text-xs text-destructive",children:f})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"adminSecret",children:"Admin Secret"}),p.jsx(St,{id:"adminSecret",type:"password",placeholder:"••••••••",value:i,onChange:y=>a(y.target.value),autoComplete:"current-password",required:!0})]}),p.jsx(_e,{type:"submit",className:"w-full",disabled:u,children:u?p.jsxs(p.Fragment,{children:[p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Connecting…"]}):p.jsxs(p.Fragment,{children:[p.jsx("i",{className:"ri-arrow-right-line"}),"Connect"]})})]})})]})]})})}const uE=Ah("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-100 text-green-800",warning:"border-transparent bg-yellow-100 text-yellow-800"}},defaultVariants:{variant:"default"}});function br({className:n,variant:r,...s}){return p.jsx("div",{className:Pe(uE({variant:r}),n),...s})}function nc({icon:n,label:r,value:s,sub:i}){return p.jsxs(_o,{children:[p.jsxs(qc,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[p.jsx(Qc,{className:"text-sm font-medium text-muted-foreground",children:r}),p.jsx("i",{className:`${n} text-lg text-muted-foreground`})]}),p.jsxs(Ao,{children:[p.jsx("div",{className:"text-2xl font-bold",children:s}),i&&p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i})]})]})}function cE(){const[n,r]=v.useState(null),[s,i]=v.useState([]),[a,u]=v.useState(!0);return v.useEffect(()=>{Promise.allSettled([sE(),Yc()]).then(([d,f])=>{d.status==="fulfilled"&&r(d.value),f.status==="fulfilled"&&i(f.value.slice(0,5)),u(!1)})},[]),a?p.jsx("div",{className:"flex h-full items-center justify-center",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):p.jsxs("div",{className:"p-6 space-y-6",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Dashboard"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Overview of your OAS Gateway"})]}),p.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[p.jsx(nc,{icon:"ri-group-line",label:"Groups",value:(n==null?void 0:n.groups)??0,sub:"Logical namespaces"}),p.jsx(nc,{icon:"ri-file-code-line",label:"OAS Entries",value:(n==null?void 0:n.oasEntries)??0,sub:"Registered services"}),p.jsx(nc,{icon:"ri-key-line",label:"Active Tokens",value:(n==null?void 0:n.activeTokens)??0,sub:"Non-revoked JWTs"})]}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("h3",{className:"font-semibold text-sm",children:"Recent OAS entries"}),p.jsx(bl,{to:"/oas",className:"text-xs text-primary hover:underline",children:"View all →"})]}),s.length===0?p.jsx(_o,{children:p.jsxs(Ao,{className:"py-8 text-center text-muted-foreground text-sm",children:[p.jsx("i",{className:"ri-file-code-line text-3xl block mb-2"}),"No OAS entries yet."," ",p.jsx(bl,{to:"/oas",className:"text-primary hover:underline",children:"Add one →"})]})}):p.jsx("div",{className:"space-y-2",children:s.map(d=>p.jsx(_o,{children:p.jsxs(Ao,{className:"flex items-center gap-4 py-3",children:[p.jsx("i",{className:"ri-file-code-line text-muted-foreground"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-mono text-sm font-medium truncate",children:d.name}),p.jsx(br,{variant:d.enabled?"success":"secondary",className:"shrink-0",children:d.enabled?"enabled":"disabled"})]}),p.jsx("p",{className:"text-xs text-muted-foreground truncate",children:d.remoteUrl})]}),p.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:dS(d.createdAt)})]})},d.id))})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-sm mb-3",children:"Quick actions"}),p.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:[{to:"/groups",icon:"ri-add-circle-line",label:"New group",desc:"Create a group namespace"},{to:"/oas",icon:"ri-upload-cloud-line",label:"Import OAS",desc:"Register a new service"},{to:"/tokens",icon:"ri-key-2-line",label:"Issue token",desc:"Generate a group JWT"}].map(({to:d,icon:f,label:h,desc:g})=>p.jsx(bl,{to:d,children:p.jsx(_o,{className:"hover:bg-accent/50 transition-colors cursor-pointer h-full",children:p.jsxs(Ao,{className:"py-4 flex items-start gap-3",children:[p.jsx("i",{className:`${f} text-lg text-primary mt-0.5`}),p.jsxs("div",{children:[p.jsx("div",{className:"font-medium text-sm",children:h}),p.jsx("div",{className:"text-xs text-muted-foreground",children:g})]})]})})},d))})]})]})}const Xs=v.forwardRef(({className:n,...r},s)=>p.jsx("textarea",{className:Pe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r}));Xs.displayName="Textarea";function Be(n,r,{checkForDefaultPrevented:s=!0}={}){return function(a){if(n==null||n(a),s===!1||!a.defaultPrevented)return r==null?void 0:r(a)}}function dE(n,r){const s=v.createContext(r),i=u=>{const{children:d,...f}=u,h=v.useMemo(()=>f,Object.values(f));return p.jsx(s.Provider,{value:h,children:d})};i.displayName=n+"Provider";function a(u){const d=v.useContext(s);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,a]}function Zl(n,r=[]){let s=[];function i(u,d){const f=v.createContext(d),h=s.length;s=[...s,d];const g=w=>{var T;const{scope:b,children:E,...N}=w,S=((T=b==null?void 0:b[n])==null?void 0:T[h])||f,C=v.useMemo(()=>N,Object.values(N));return p.jsx(S.Provider,{value:C,children:E})};g.displayName=u+"Provider";function y(w,b){var S;const E=((S=b==null?void 0:b[n])==null?void 0:S[h])||f,N=v.useContext(E);if(N)return N;if(d!==void 0)return d;throw new Error(`\`${w}\` must be used within \`${u}\``)}return[g,y]}const a=()=>{const u=s.map(d=>v.createContext(d));return function(f){const h=(f==null?void 0:f[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...f,[n]:h}}),[f,h])}};return a.scopeName=n,[i,fE(a,...r)]}function fE(...n){const r=n[0];if(n.length===1)return r;const s=()=>{const i=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const d=i.reduce((f,{useScope:h,scopeName:g})=>{const w=h(u)[`__scope${g}`];return{...f,...w}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return s.scopeName=r.scopeName,s}var gt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},pE=$l[" useId ".trim().toString()]||(()=>{}),mE=0;function Lo(n){const[r,s]=v.useState(pE());return gt(()=>{s(i=>i??String(mE++))},[n]),r?`radix-${r}`:""}var hE=$l[" useInsertionEffect ".trim().toString()]||gt;function Nc({prop:n,defaultProp:r,onChange:s=()=>{},caller:i}){const[a,u,d]=gE({defaultProp:r,onChange:s}),f=n!==void 0,h=f?n:a;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const w=y.current;w!==f&&console.warn(`${i} is changing from ${w?"controlled":"uncontrolled"} to ${f?"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.`),y.current=f},[f,i])}const g=v.useCallback(y=>{var w;if(f){const b=vE(y)?y(n):y;b!==n&&((w=d.current)==null||w.call(d,b))}else u(y)},[f,n,u,d]);return[h,g]}function gE({defaultProp:n,onChange:r}){const[s,i]=v.useState(n),a=v.useRef(s),u=v.useRef(r);return hE(()=>{u.current=r},[r]),v.useEffect(()=>{var d;a.current!==s&&((d=u.current)==null||d.call(u,s),a.current=s)},[s,a]),[s,i,u]}function vE(n){return typeof n=="function"}function Us(n){const r=yE(n),s=v.forwardRef((i,a)=>{const{children:u,...d}=i,f=v.Children.toArray(u),h=f.find(wE);if(h){const g=h.props.children,y=f.map(w=>w===h?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:w);return p.jsx(r,{...d,ref:a,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return p.jsx(r,{...d,ref:a,children:u})});return s.displayName=`${n}.Slot`,s}function yE(n){const r=v.forwardRef((s,i)=>{const{children:a,...u}=s;if(v.isValidElement(a)){const d=EE(a),f=SE(u,a.props);return a.type!==v.Fragment&&(f.ref=i?Bc(i,d):d),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var xE=Symbol("radix.slottable");function wE(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===xE}function SE(n,r){const s={...r};for(const i in r){const a=n[i],u=r[i];/^on[A-Z]/.test(i)?a&&u?s[i]=(...f)=>{const h=u(...f);return a(...f),h}:a&&(s[i]=a):i==="style"?s[i]={...a,...u}:i==="className"&&(s[i]=[a,u].filter(Boolean).join(" "))}return{...n,...s}}function EE(n){var i,a;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var CE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=CE.reduce((n,r)=>{const s=Us(`Primitive.${r}`),i=v.forwardRef((a,u)=>{const{asChild:d,...f}=a,h=d?s:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(h,{...f,ref:u})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function bE(n,r){n&&Vs.flushSync(()=>n.dispatchEvent(r))}function qr(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...s)=>{var i;return(i=r.current)==null?void 0:i.call(r,...s)},[])}function NE(n,r=globalThis==null?void 0:globalThis.document){const s=qr(n);v.useEffect(()=>{const i=a=>{a.key==="Escape"&&s(a)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[s,r])}var RE="DismissableLayer",Rc="dismissableLayer.update",kE="dismissableLayer.pointerDownOutside",jE="dismissableLayer.focusOutside",Am,sg=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xc=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:d,onDismiss:f,...h}=n,g=v.useContext(sg),[y,w]=v.useState(null),b=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=v.useState({}),N=et(r,$=>w($)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(C),k=y?S.indexOf(y):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,L=k>=T,B=OE($=>{const ie=$.target,ne=[...g.branches].some(ce=>ce.contains(ie));!L||ne||(a==null||a($),d==null||d($),$.defaultPrevented||f==null||f())},b),V=_E($=>{const ie=$.target;[...g.branches].some(ce=>ce.contains(ie))||(u==null||u($),d==null||d($),$.defaultPrevented||f==null||f())},b);return NE($=>{k===g.layers.size-1&&(i==null||i($),!$.defaultPrevented&&f&&($.preventDefault(),f()))},b),v.useEffect(()=>{if(y)return s&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Am=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Lm(),()=>{s&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Am)}},[y,b,s,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Lm())},[y,g]),v.useEffect(()=>{const $=()=>E({});return document.addEventListener(Rc,$),()=>document.removeEventListener(Rc,$)},[]),p.jsx(De.div,{...h,ref:N,style:{pointerEvents:j?L?"auto":"none":void 0,...n.style},onFocusCapture:Be(n.onFocusCapture,V.onFocusCapture),onBlurCapture:Be(n.onBlurCapture,V.onBlurCapture),onPointerDownCapture:Be(n.onPointerDownCapture,B.onPointerDownCapture)})});Xc.displayName=RE;var PE="DismissableLayerBranch",TE=v.forwardRef((n,r)=>{const s=v.useContext(sg),i=v.useRef(null),a=et(r,i);return v.useEffect(()=>{const u=i.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),p.jsx(De.div,{...n,ref:a})});TE.displayName=PE;function OE(n,r=globalThis==null?void 0:globalThis.document){const s=qr(n),i=v.useRef(!1),a=v.useRef(()=>{});return v.useEffect(()=>{const u=f=>{if(f.target&&!i.current){let h=function(){ig(kE,s,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(r.removeEventListener("click",a.current),a.current=h,r.addEventListener("click",a.current,{once:!0})):h()}else r.removeEventListener("click",a.current);i.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",u),r.removeEventListener("click",a.current)}},[r,s]),{onPointerDownCapture:()=>i.current=!0}}function _E(n,r=globalThis==null?void 0:globalThis.document){const s=qr(n),i=v.useRef(!1);return v.useEffect(()=>{const a=u=>{u.target&&!i.current&&ig(jE,s,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",a),()=>r.removeEventListener("focusin",a)},[r,s]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Lm(){const n=new CustomEvent(Rc);document.dispatchEvent(n)}function ig(n,r,s,{discrete:i}){const a=s.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});r&&a.addEventListener(n,r,{once:!0}),i?bE(a,u):a.dispatchEvent(u)}var rc="focusScope.autoFocusOnMount",oc="focusScope.autoFocusOnUnmount",Im={bubbles:!1,cancelable:!0},AE="FocusScope",Jc=v.forwardRef((n,r)=>{const{loop:s=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...d}=n,[f,h]=v.useState(null),g=qr(a),y=qr(u),w=v.useRef(null),b=et(r,S=>h(S)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(j){if(E.paused||!f)return;const L=j.target;f.contains(L)?w.current=L:Sr(w.current,{select:!0})},C=function(j){if(E.paused||!f)return;const L=j.relatedTarget;L!==null&&(f.contains(L)||Sr(w.current,{select:!0}))},T=function(j){if(document.activeElement===document.body)for(const B of j)B.removedNodes.length>0&&Sr(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const k=new MutationObserver(T);return f&&k.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),k.disconnect()}}},[i,f,E.paused]),v.useEffect(()=>{if(f){Mm.add(E);const S=document.activeElement;if(!f.contains(S)){const T=new CustomEvent(rc,Im);f.addEventListener(rc,g),f.dispatchEvent(T),T.defaultPrevented||(LE(zE(lg(f)),{select:!0}),document.activeElement===S&&Sr(f))}return()=>{f.removeEventListener(rc,g),setTimeout(()=>{const T=new CustomEvent(oc,Im);f.addEventListener(oc,y),f.dispatchEvent(T),T.defaultPrevented||Sr(S??document.body,{select:!0}),f.removeEventListener(oc,y),Mm.remove(E)},0)}}},[f,g,y,E]);const N=v.useCallback(S=>{if(!s&&!i||E.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(C&&T){const k=S.currentTarget,[j,L]=IE(k);j&&L?!S.shiftKey&&T===L?(S.preventDefault(),s&&Sr(j,{select:!0})):S.shiftKey&&T===j&&(S.preventDefault(),s&&Sr(L,{select:!0})):T===k&&S.preventDefault()}},[s,i,E.paused]);return p.jsx(De.div,{tabIndex:-1,...d,ref:b,onKeyDown:N})});Jc.displayName=AE;function LE(n,{select:r=!1}={}){const s=document.activeElement;for(const i of n)if(Sr(i,{select:r}),document.activeElement!==s)return}function IE(n){const r=lg(n),s=Dm(r,n),i=Dm(r.reverse(),n);return[s,i]}function lg(n){const r=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)r.push(s.currentNode);return r}function Dm(n,r){for(const s of n)if(!DE(s,{upTo:r}))return s}function DE(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function ME(n){return n instanceof HTMLInputElement&&"select"in n}function Sr(n,{select:r=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&ME(n)&&r&&n.select()}}var Mm=FE();function FE(){let n=[];return{add(r){const s=n[0];r!==s&&(s==null||s.pause()),n=Fm(n,r),n.unshift(r)},remove(r){var s;n=Fm(n,r),(s=n[0])==null||s.resume()}}}function Fm(n,r){const s=[...n],i=s.indexOf(r);return i!==-1&&s.splice(i,1),s}function zE(n){return n.filter(r=>r.tagName!=="A")}var UE="Portal",Zc=v.forwardRef((n,r)=>{var f;const{container:s,...i}=n,[a,u]=v.useState(!1);gt(()=>u(!0),[]);const d=s||a&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return d?uh.createPortal(p.jsx(De.div,{...i,ref:r}),d):null});Zc.displayName=UE;function BE(n,r){return v.useReducer((s,i)=>r[s][i]??s,n)}var ea=n=>{const{present:r,children:s}=n,i=$E(r),a=typeof s=="function"?s({present:i.isPresent}):v.Children.only(s),u=et(i.ref,WE(a));return typeof s=="function"||i.isPresent?v.cloneElement(a,{ref:u}):null};ea.displayName="Presence";function $E(n){const[r,s]=v.useState(),i=v.useRef(null),a=v.useRef(n),u=v.useRef("none"),d=n?"mounted":"unmounted",[f,h]=BE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=yl(i.current);u.current=f==="mounted"?g:"none"},[f]),gt(()=>{const g=i.current,y=a.current;if(y!==n){const b=u.current,E=yl(g);n?h("MOUNT"):E==="none"||(g==null?void 0:g.display)==="none"?h("UNMOUNT"):h(y&&b!==E?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,h]),gt(()=>{if(r){let g;const y=r.ownerDocument.defaultView??window,w=E=>{const S=yl(i.current).includes(CSS.escape(E.animationName));if(E.target===r&&S&&(h("ANIMATION_END"),!a.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",g=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},b=E=>{E.target===r&&(u.current=yl(i.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",w),r.addEventListener("animationend",w),()=>{y.clearTimeout(g),r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",w),r.removeEventListener("animationend",w)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,s(g)},[])}}function yl(n){return(n==null?void 0:n.animationName)||"none"}function WE(n){var i,a;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var sc=0;function ag(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??zm()),document.body.insertAdjacentElement("beforeend",n[1]??zm()),sc++,()=>{sc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),sc--}},[])}function zm(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Rn=function(){return Rn=Object.assign||function(r){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(r[u]=s[u])}return r},Rn.apply(this,arguments)};function ug(n,r){var s={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(s[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(n);a<i.length;a++)r.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(n,i[a])&&(s[i[a]]=n[i[a]]);return s}function VE(n,r,s){if(s||arguments.length===2)for(var i=0,a=r.length,u;i<a;i++)(u||!(i in r))&&(u||(u=Array.prototype.slice.call(r,0,i)),u[i]=r[i]);return n.concat(u||Array.prototype.slice.call(r))}var Pl="right-scroll-bar-position",Tl="width-before-scroll-bar",HE="with-scroll-bars-hidden",KE="--removed-body-scroll-bar-size";function ic(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function GE(n,r){var s=v.useState(function(){return{value:n,callback:r,facade:{get current(){return s.value},set current(i){var a=s.value;a!==i&&(s.value=i,s.callback(i,a))}}}})[0];return s.callback=r,s.facade}var YE=typeof window<"u"?v.useLayoutEffect:v.useEffect,Um=new WeakMap;function qE(n,r){var s=GE(null,function(i){return n.forEach(function(a){return ic(a,i)})});return YE(function(){var i=Um.get(s);if(i){var a=new Set(i),u=new Set(n),d=s.current;a.forEach(function(f){u.has(f)||ic(f,null)}),u.forEach(function(f){a.has(f)||ic(f,d)})}Um.set(s,n)},[n]),s}function QE(n){return n}function XE(n,r){r===void 0&&(r=QE);var s=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:n},useMedium:function(u){var d=r(u,i);return s.push(d),function(){s=s.filter(function(f){return f!==d})}},assignSyncMedium:function(u){for(i=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(f){return u(f)},filter:function(){return s}}},assignMedium:function(u){i=!0;var d=[];if(s.length){var f=s;s=[],f.forEach(u),d=s}var h=function(){var y=d;d=[],y.forEach(u)},g=function(){return Promise.resolve().then(h)};g(),s={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),s}}}};return a}function JE(n){n===void 0&&(n={});var r=XE(null);return r.options=Rn({async:!0,ssr:!1},n),r}var cg=function(n){var r=n.sideCar,s=ug(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Rn({},s))};cg.isSideCarExport=!0;function ZE(n,r){return n.useMedium(r),cg}var dg=JE(),lc=function(){},ta=v.forwardRef(function(n,r){var s=v.useRef(null),i=v.useState({onScrollCapture:lc,onWheelCapture:lc,onTouchMoveCapture:lc}),a=i[0],u=i[1],d=n.forwardProps,f=n.children,h=n.className,g=n.removeScrollBar,y=n.enabled,w=n.shards,b=n.sideCar,E=n.noRelative,N=n.noIsolation,S=n.inert,C=n.allowPinchZoom,T=n.as,k=T===void 0?"div":T,j=n.gapMode,L=ug(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=b,V=qE([s,r]),$=Rn(Rn({},L),a);return v.createElement(v.Fragment,null,y&&v.createElement(B,{sideCar:dg,removeScrollBar:g,shards:w,noRelative:E,noIsolation:N,inert:S,setCallbacks:u,allowPinchZoom:!!C,lockRef:s,gapMode:j}),d?v.cloneElement(v.Children.only(f),Rn(Rn({},$),{ref:V})):v.createElement(k,Rn({},$,{className:h,ref:V}),f))});ta.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ta.classNames={fullWidth:Tl,zeroRight:Pl};var eC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=eC();return r&&n.setAttribute("nonce",r),n}function nC(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function rC(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var oC=function(){var n=0,r=null;return{add:function(s){n==0&&(r=tC())&&(nC(r,s),rC(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},sC=function(){var n=oC();return function(r,s){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&s])}},fg=function(){var n=sC(),r=function(s){var i=s.styles,a=s.dynamic;return n(i,a),null};return r},iC={left:0,top:0,right:0,gap:0},ac=function(n){return parseInt(n||"",10)||0},lC=function(n){var r=window.getComputedStyle(document.body),s=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],a=r[n==="padding"?"paddingRight":"marginRight"];return[ac(s),ac(i),ac(a)]},aC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return iC;var r=lC(n),s=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-s+r[2]-r[0])}},uC=fg(),Io="data-scroll-locked",cC=function(n,r,s,i){var a=n.left,u=n.top,d=n.right,f=n.gap;return s===void 0&&(s="margin"),`
|
|
74
|
-
.`.concat(HE,` {
|
|
75
|
-
overflow: hidden `).concat(i,`;
|
|
76
|
-
padding-right: `).concat(f,"px ").concat(i,`;
|
|
77
|
-
}
|
|
78
|
-
body[`).concat(Io,`] {
|
|
79
|
-
overflow: hidden `).concat(i,`;
|
|
80
|
-
overscroll-behavior: contain;
|
|
81
|
-
`).concat([r&&"position: relative ".concat(i,";"),s==="margin"&&`
|
|
82
|
-
padding-left: `.concat(a,`px;
|
|
83
|
-
padding-top: `).concat(u,`px;
|
|
84
|
-
padding-right: `).concat(d,`px;
|
|
85
|
-
margin-left:0;
|
|
86
|
-
margin-top:0;
|
|
87
|
-
margin-right: `).concat(f,"px ").concat(i,`;
|
|
88
|
-
`),s==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.`).concat(Pl,` {
|
|
92
|
-
right: `).concat(f,"px ").concat(i,`;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.`).concat(Tl,` {
|
|
96
|
-
margin-right: `).concat(f,"px ").concat(i,`;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.`).concat(Pl," .").concat(Pl,` {
|
|
100
|
-
right: 0 `).concat(i,`;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.`).concat(Tl," .").concat(Tl,` {
|
|
104
|
-
margin-right: 0 `).concat(i,`;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
body[`).concat(Io,`] {
|
|
108
|
-
`).concat(KE,": ").concat(f,`px;
|
|
109
|
-
}
|
|
110
|
-
`)},Bm=function(){var n=parseInt(document.body.getAttribute(Io)||"0",10);return isFinite(n)?n:0},dC=function(){v.useEffect(function(){return document.body.setAttribute(Io,(Bm()+1).toString()),function(){var n=Bm()-1;n<=0?document.body.removeAttribute(Io):document.body.setAttribute(Io,n.toString())}},[])},fC=function(n){var r=n.noRelative,s=n.noImportant,i=n.gapMode,a=i===void 0?"margin":i;dC();var u=v.useMemo(function(){return aC(a)},[a]);return v.createElement(uC,{styles:cC(u,!r,a,s?"":"!important")})},kc=!1;if(typeof window<"u")try{var xl=Object.defineProperty({},"passive",{get:function(){return kc=!0,!0}});window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{kc=!1}var jo=kc?{passive:!1}:!1,pC=function(n){return n.tagName==="TEXTAREA"},pg=function(n,r){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[r]!=="hidden"&&!(s.overflowY===s.overflowX&&!pC(n)&&s[r]==="visible")},mC=function(n){return pg(n,"overflowY")},hC=function(n){return pg(n,"overflowX")},$m=function(n,r){var s=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=mg(n,i);if(a){var u=hg(n,i),d=u[1],f=u[2];if(d>f)return!0}i=i.parentNode}while(i&&i!==s.body);return!1},gC=function(n){var r=n.scrollTop,s=n.scrollHeight,i=n.clientHeight;return[r,s,i]},vC=function(n){var r=n.scrollLeft,s=n.scrollWidth,i=n.clientWidth;return[r,s,i]},mg=function(n,r){return n==="v"?mC(r):hC(r)},hg=function(n,r){return n==="v"?gC(r):vC(r)},yC=function(n,r){return n==="h"&&r==="rtl"?-1:1},xC=function(n,r,s,i,a){var u=yC(n,window.getComputedStyle(r).direction),d=u*i,f=s.target,h=r.contains(f),g=!1,y=d>0,w=0,b=0;do{if(!f)break;var E=hg(n,f),N=E[0],S=E[1],C=E[2],T=S-C-u*N;(N||T)&&mg(n,f)&&(w+=T,b+=N);var k=f.parentNode;f=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!h&&f!==document.body||h&&(r.contains(f)||r===f));return(y&&Math.abs(w)<1||!y&&Math.abs(b)<1)&&(g=!0),g},wl=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Wm=function(n){return[n.deltaX,n.deltaY]},Vm=function(n){return n&&"current"in n?n.current:n},wC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},SC=function(n){return`
|
|
111
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
112
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
113
|
-
`)},EC=0,Po=[];function CC(n){var r=v.useRef([]),s=v.useRef([0,0]),i=v.useRef(),a=v.useState(EC++)[0],u=v.useState(fg)[0],d=v.useRef(n);v.useEffect(function(){d.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=VE([n.lockRef.current],(n.shards||[]).map(Vm),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var f=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var T=wl(S),k=s.current,j="deltaX"in S?S.deltaX:k[0]-T[0],L="deltaY"in S?S.deltaY:k[1]-T[1],B,V=S.target,$=Math.abs(j)>Math.abs(L)?"h":"v";if("touches"in S&&$==="h"&&V.type==="range")return!1;var ie=window.getSelection(),ne=ie&&ie.anchorNode,ce=ne?ne===V||ne.contains(V):!1;if(ce)return!1;var me=$m($,V);if(!me)return!0;if(me?B=$:(B=$==="v"?"h":"v",me=$m($,V)),!me)return!1;if(!i.current&&"changedTouches"in S&&(j||L)&&(i.current=B),!B)return!0;var Z=i.current||B;return xC(Z,C,S,Z==="h"?j:L)},[]),h=v.useCallback(function(S){var C=S;if(!(!Po.length||Po[Po.length-1]!==u)){var T="deltaY"in C?Wm(C):wl(C),k=r.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&wC(B.delta,T)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var j=(d.current.shards||[]).map(Vm).filter(Boolean).filter(function(B){return B.contains(C.target)}),L=j.length>0?f(C,j[0]):!d.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,T,k){var j={name:S,delta:C,target:T,should:k,shadowParent:bC(T)};r.current.push(j),setTimeout(function(){r.current=r.current.filter(function(L){return L!==j})},1)},[]),y=v.useCallback(function(S){s.current=wl(S),i.current=void 0},[]),w=v.useCallback(function(S){g(S.type,Wm(S),S.target,f(S,n.lockRef.current))},[]),b=v.useCallback(function(S){g(S.type,wl(S),S.target,f(S,n.lockRef.current))},[]);v.useEffect(function(){return Po.push(u),n.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:b}),document.addEventListener("wheel",h,jo),document.addEventListener("touchmove",h,jo),document.addEventListener("touchstart",y,jo),function(){Po=Po.filter(function(S){return S!==u}),document.removeEventListener("wheel",h,jo),document.removeEventListener("touchmove",h,jo),document.removeEventListener("touchstart",y,jo)}},[]);var E=n.removeScrollBar,N=n.inert;return v.createElement(v.Fragment,null,N?v.createElement(u,{styles:SC(a)}):null,E?v.createElement(fC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function bC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const NC=ZE(dg,CC);var ed=v.forwardRef(function(n,r){return v.createElement(ta,Rn({},n,{ref:r,sideCar:NC}))});ed.classNames=ta.classNames;var RC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},To=new WeakMap,Sl=new WeakMap,El={},uc=0,gg=function(n){return n&&(n.host||gg(n.parentNode))},kC=function(n,r){return r.map(function(s){if(n.contains(s))return s;var i=gg(s);return i&&n.contains(i)?i:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},jC=function(n,r,s,i){var a=kC(r,Array.isArray(n)?n:[n]);El[s]||(El[s]=new WeakMap);var u=El[s],d=[],f=new Set,h=new Set(a),g=function(w){!w||f.has(w)||(f.add(w),g(w.parentNode))};a.forEach(g);var y=function(w){!w||h.has(w)||Array.prototype.forEach.call(w.children,function(b){if(f.has(b))y(b);else try{var E=b.getAttribute(i),N=E!==null&&E!=="false",S=(To.get(b)||0)+1,C=(u.get(b)||0)+1;To.set(b,S),u.set(b,C),d.push(b),S===1&&N&&Sl.set(b,!0),C===1&&b.setAttribute(s,"true"),N||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return y(r),f.clear(),uc++,function(){d.forEach(function(w){var b=To.get(w)-1,E=u.get(w)-1;To.set(w,b),u.set(w,E),b||(Sl.has(w)||w.removeAttribute(i),Sl.delete(w)),E||w.removeAttribute(s)}),uc--,uc||(To=new WeakMap,To=new WeakMap,Sl=new WeakMap,El={})}},vg=function(n,r,s){s===void 0&&(s="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),a=RC(n);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),jC(i,a,s,"aria-hidden")):function(){return null}},na="Dialog",[yg]=Zl(na),[PC,dn]=yg(na),xg=n=>{const{__scopeDialog:r,children:s,open:i,defaultOpen:a,onOpenChange:u,modal:d=!0}=n,f=v.useRef(null),h=v.useRef(null),[g,y]=Nc({prop:i,defaultProp:a??!1,onChange:u,caller:na});return p.jsx(PC,{scope:r,triggerRef:f,contentRef:h,contentId:Lo(),titleId:Lo(),descriptionId:Lo(),open:g,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(w=>!w),[y]),modal:d,children:s})};xg.displayName=na;var wg="DialogTrigger",TC=v.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,a=dn(wg,s),u=et(r,a.triggerRef);return p.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":rd(a.open),...i,ref:u,onClick:Be(n.onClick,a.onOpenToggle)})});TC.displayName=wg;var td="DialogPortal",[OC,Sg]=yg(td,{forceMount:void 0}),Eg=n=>{const{__scopeDialog:r,forceMount:s,children:i,container:a}=n,u=dn(td,r);return p.jsx(OC,{scope:r,forceMount:s,children:v.Children.map(i,d=>p.jsx(ea,{present:s||u.open,children:p.jsx(Zc,{asChild:!0,container:a,children:d})}))})};Eg.displayName=td;var Dl="DialogOverlay",Cg=v.forwardRef((n,r)=>{const s=Sg(Dl,n.__scopeDialog),{forceMount:i=s.forceMount,...a}=n,u=dn(Dl,n.__scopeDialog);return u.modal?p.jsx(ea,{present:i||u.open,children:p.jsx(AC,{...a,ref:r})}):null});Cg.displayName=Dl;var _C=Us("DialogOverlay.RemoveScroll"),AC=v.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,a=dn(Dl,s);return p.jsx(ed,{as:_C,allowPinchZoom:!0,shards:[a.contentRef],children:p.jsx(De.div,{"data-state":rd(a.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Qr="DialogContent",bg=v.forwardRef((n,r)=>{const s=Sg(Qr,n.__scopeDialog),{forceMount:i=s.forceMount,...a}=n,u=dn(Qr,n.__scopeDialog);return p.jsx(ea,{present:i||u.open,children:u.modal?p.jsx(LC,{...a,ref:r}):p.jsx(IC,{...a,ref:r})})});bg.displayName=Qr;var LC=v.forwardRef((n,r)=>{const s=dn(Qr,n.__scopeDialog),i=v.useRef(null),a=et(r,s.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return vg(u)},[]),p.jsx(Ng,{...n,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(n.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=s.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Be(n.onPointerDownOutside,u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:Be(n.onFocusOutside,u=>u.preventDefault())})}),IC=v.forwardRef((n,r)=>{const s=dn(Qr,n.__scopeDialog),i=v.useRef(!1),a=v.useRef(!1);return p.jsx(Ng,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,f;(d=n.onCloseAutoFocus)==null||d.call(n,u),u.defaultPrevented||(i.current||(f=s.triggerRef.current)==null||f.focus(),u.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:u=>{var h,g;(h=n.onInteractOutside)==null||h.call(n,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=u.target;((g=s.triggerRef.current)==null?void 0:g.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.current&&u.preventDefault()}})}),Ng=v.forwardRef((n,r)=>{const{__scopeDialog:s,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:u,...d}=n,f=dn(Qr,s),h=v.useRef(null),g=et(r,h);return ag(),p.jsxs(p.Fragment,{children:[p.jsx(Jc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:u,children:p.jsx(Xc,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":rd(f.open),...d,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(DC,{titleId:f.titleId}),p.jsx(FC,{contentRef:h,descriptionId:f.descriptionId})]})]})}),nd="DialogTitle",Rg=v.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,a=dn(nd,s);return p.jsx(De.h2,{id:a.titleId,...i,ref:r})});Rg.displayName=nd;var kg="DialogDescription",jg=v.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,a=dn(kg,s);return p.jsx(De.p,{id:a.descriptionId,...i,ref:r})});jg.displayName=kg;var Pg="DialogClose",Tg=v.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,a=dn(Pg,s);return p.jsx(De.button,{type:"button",...i,ref:r,onClick:Be(n.onClick,()=>a.onOpenChange(!1))})});Tg.displayName=Pg;function rd(n){return n?"open":"closed"}var Og="DialogTitleWarning",[yR,_g]=dE(Og,{contentName:Qr,titleName:nd,docsSlug:"dialog"}),DC=({titleId:n})=>{const r=_g(Og),s=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
114
|
-
|
|
115
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
116
|
-
|
|
117
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},MC="DialogDescriptionWarning",FC=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_g(MC).contentName}}.`;return v.useEffect(()=>{var u;const a=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");r&&a&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},zC=xg,UC=Eg,Ag=Cg,Lg=bg,Ig=Rg,Dg=jg,BC=Tg;const Nr=zC,$C=UC,Mg=v.forwardRef(({className:n,...r},s)=>p.jsx(Ag,{ref:s,className:Pe("fixed inset-0 z-50 bg-black/50 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",n),...r}));Mg.displayName=Ag.displayName;const Vn=v.forwardRef(({className:n,children:r,...s},i)=>p.jsxs($C,{children:[p.jsx(Mg,{}),p.jsxs(Lg,{ref:i,className:Pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...s,children:[r,p.jsxs(BC,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx("i",{className:"ri-close-line text-lg"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vn.displayName=Lg.displayName;const jn=({className:n,...r})=>p.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});jn.displayName="DialogHeader";const Pn=({className:n,...r})=>p.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Pn.displayName="DialogFooter";const Tn=v.forwardRef(({className:n,...r},s)=>p.jsx(Ig,{ref:s,className:Pe("text-lg font-semibold leading-none tracking-tight",n),...r}));Tn.displayName=Ig.displayName;const On=v.forwardRef(({className:n,...r},s)=>p.jsx(Dg,{ref:s,className:Pe("text-sm text-muted-foreground",n),...r}));On.displayName=Dg.displayName;const Js=v.forwardRef(({className:n,...r},s)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:s,className:Pe("w-full caption-bottom text-sm",n),...r})}));Js.displayName="Table";const Zs=v.forwardRef(({className:n,...r},s)=>p.jsx("thead",{ref:s,className:Pe("[&_tr]:border-b",n),...r}));Zs.displayName="TableHeader";const ei=v.forwardRef(({className:n,...r},s)=>p.jsx("tbody",{ref:s,className:Pe("[&_tr:last-child]:border-0",n),...r}));ei.displayName="TableBody";const Hn=v.forwardRef(({className:n,...r},s)=>p.jsx("tr",{ref:s,className:Pe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...r}));Hn.displayName="TableRow";const We=v.forwardRef(({className:n,...r},s)=>p.jsx("th",{ref:s,className:Pe("h-10 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...r}));We.displayName="TableHead";const Ve=v.forwardRef(({className:n,...r},s)=>p.jsx("td",{ref:s,className:Pe("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...r}));Ve.displayName="TableCell";const WC=v.forwardRef(({className:n,...r},s)=>p.jsx("caption",{ref:s,className:Pe("mt-4 text-sm text-muted-foreground",n),...r}));WC.displayName="TableCaption";function VC(){const[n,r]=v.useState([]),[s,i]=v.useState(!0),[a,u]=v.useState(!1),[d,f]=v.useState(""),[h,g]=v.useState(""),[y,w]=v.useState(!1),[b,E]=v.useState(null),[N,S]=v.useState(!1);async function C(){try{r(await Qs())}catch{Ge.error("Failed to load groups")}finally{i(!1)}}v.useEffect(()=>{C()},[]);async function T(j){j.preventDefault(),w(!0);try{await Y1({name:d.trim(),description:h.trim()}),Ge.success("Group created"),u(!1),f(""),g(""),C()}catch(L){Ge.error(Jl(L,"Failed to create group"))}finally{w(!1)}}async function k(){if(b){S(!0);try{await q1(b.id),Ge.success("Group deleted"),E(null),C()}catch{Ge.error("Failed to delete group")}finally{S(!1)}}}return p.jsxs("div",{className:"p-6 space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Groups"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Logical namespaces for OAS entries and tokens"})]}),p.jsxs(_e,{onClick:()=>u(!0),children:[p.jsx("i",{className:"ri-add-line"}),"New Group"]})]}),s?p.jsx("div",{className:"flex justify-center py-12",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):n.length===0?p.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[p.jsx("i",{className:"ri-group-line text-3xl block mb-2"}),p.jsx("p",{className:"text-sm",children:"No groups yet. Create your first group to get started."})]}):p.jsx("div",{className:"rounded-lg border",children:p.jsxs(Js,{children:[p.jsx(Zs,{children:p.jsxs(Hn,{children:[p.jsx(We,{children:"Name"}),p.jsx(We,{children:"Description"}),p.jsx(We,{children:"Created"}),p.jsx(We,{className:"w-20"})]})}),p.jsx(ei,{children:n.map(j=>p.jsxs(Hn,{children:[p.jsx(Ve,{className:"font-mono font-medium",children:j.name}),p.jsx(Ve,{className:"text-muted-foreground max-w-xs truncate",children:j.description||p.jsx("span",{className:"italic text-xs",children:"—"})}),p.jsx(Ve,{className:"text-muted-foreground text-xs",children:zs(j.createdAt)}),p.jsx(Ve,{children:p.jsx(_e,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>E(j),children:p.jsx("i",{className:"ri-delete-bin-line"})})})]},j.id))})]})}),p.jsx(Nr,{open:a,onOpenChange:u,children:p.jsxs(Vn,{className:"sm:max-w-md",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"New Group"}),p.jsx(On,{children:"Groups namespace OAS entries and tokens together."})]}),p.jsxs("form",{onSubmit:T,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"gname",children:["Name ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"gname",placeholder:"production",value:d,onChange:j=>f(j.target.value),required:!0,pattern:"[a-zA-Z0-9\\-_ ]+"})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"gdesc",children:"Description"}),p.jsx(Xs,{id:"gdesc",placeholder:"Optional description",value:h,onChange:j=>g(j.target.value),rows:2})]}),p.jsxs(Pn,{children:[p.jsx(_e,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),p.jsxs(_e,{type:"submit",disabled:y,children:[y&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Create"]})]})]})]})}),p.jsx(Nr,{open:!!b,onOpenChange:j=>!j&&E(null),children:p.jsxs(Vn,{className:"sm:max-w-md",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"Delete group?"}),p.jsxs(On,{children:["This will permanently delete ",p.jsx("strong",{children:b==null?void 0:b.name})," and all associated OAS entries and tokens. This action cannot be undone."]})]}),p.jsxs(Pn,{children:[p.jsx(_e,{variant:"outline",onClick:()=>E(null),children:"Cancel"}),p.jsxs(_e,{variant:"destructive",onClick:k,disabled:N,children:[N&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Delete"]})]})]})})]})}function Hm(n,[r,s]){return Math.min(s,Math.max(r,n))}function HC(n){const r=n+"CollectionProvider",[s,i]=Zl(r),[a,u]=s(r,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:C,children:T}=S,k=ee.useRef(null),j=ee.useRef(new Map).current;return p.jsx(a,{scope:C,itemMap:j,collectionRef:k,children:T})};d.displayName=r;const f=n+"CollectionSlot",h=Us(f),g=ee.forwardRef((S,C)=>{const{scope:T,children:k}=S,j=u(f,T),L=et(C,j.collectionRef);return p.jsx(h,{ref:L,children:k})});g.displayName=f;const y=n+"CollectionItemSlot",w="data-radix-collection-item",b=Us(y),E=ee.forwardRef((S,C)=>{const{scope:T,children:k,...j}=S,L=ee.useRef(null),B=et(C,L),V=u(y,T);return ee.useEffect(()=>(V.itemMap.set(L,{ref:L,...j}),()=>void V.itemMap.delete(L))),p.jsx(b,{[w]:"",ref:B,children:k})});E.displayName=y;function N(S){const C=u(n+"CollectionConsumer",S);return ee.useCallback(()=>{const k=C.collectionRef.current;if(!k)return[];const j=Array.from(k.querySelectorAll(`[${w}]`));return Array.from(C.itemMap.values()).sort((V,$)=>j.indexOf(V.ref.current)-j.indexOf($.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:g,ItemSlot:E},N,i]}var KC=v.createContext(void 0);function GC(n){const r=v.useContext(KC);return n||r||"ltr"}const YC=["top","right","bottom","left"],Rr=Math.min,Ft=Math.max,Ml=Math.round,Cl=Math.floor,_n=n=>({x:n,y:n}),qC={left:"right",right:"left",bottom:"top",top:"bottom"};function jc(n,r,s){return Ft(n,Rr(r,s))}function Kn(n,r){return typeof n=="function"?n(r):n}function Gn(n){return n.split("-")[0]}function Go(n){return n.split("-")[1]}function od(n){return n==="x"?"y":"x"}function sd(n){return n==="y"?"height":"width"}function kn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function id(n){return od(kn(n))}function QC(n,r,s){s===void 0&&(s=!1);const i=Go(n),a=id(n),u=sd(a);let d=a==="x"?i===(s?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(d=Fl(d)),[d,Fl(d)]}function XC(n){const r=Fl(n);return[Pc(n),r,Pc(r)]}function Pc(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Km=["left","right"],Gm=["right","left"],JC=["top","bottom"],ZC=["bottom","top"];function eb(n,r,s){switch(n){case"top":case"bottom":return s?r?Gm:Km:r?Km:Gm;case"left":case"right":return r?JC:ZC;default:return[]}}function tb(n,r,s,i){const a=Go(n);let u=eb(Gn(n),s==="start",i);return a&&(u=u.map(d=>d+"-"+a),r&&(u=u.concat(u.map(Pc)))),u}function Fl(n){const r=Gn(n);return qC[r]+n.slice(r.length)}function nb(n){return{top:0,right:0,bottom:0,left:0,...n}}function Fg(n){return typeof n!="number"?nb(n):{top:n,right:n,bottom:n,left:n}}function zl(n){const{x:r,y:s,width:i,height:a}=n;return{width:i,height:a,top:s,left:r,right:r+i,bottom:s+a,x:r,y:s}}function Ym(n,r,s){let{reference:i,floating:a}=n;const u=kn(r),d=id(r),f=sd(d),h=Gn(r),g=u==="y",y=i.x+i.width/2-a.width/2,w=i.y+i.height/2-a.height/2,b=i[f]/2-a[f]/2;let E;switch(h){case"top":E={x:y,y:i.y-a.height};break;case"bottom":E={x:y,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:w};break;case"left":E={x:i.x-a.width,y:w};break;default:E={x:i.x,y:i.y}}switch(Go(r)){case"start":E[d]-=b*(s&&g?-1:1);break;case"end":E[d]+=b*(s&&g?-1:1);break}return E}async function rb(n,r){var s;r===void 0&&(r={});const{x:i,y:a,platform:u,rects:d,elements:f,strategy:h}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:w="floating",altBoundary:b=!1,padding:E=0}=Kn(r,n),N=Fg(E),C=f[b?w==="floating"?"reference":"floating":w],T=zl(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(C)))==null||s?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:g,rootBoundary:y,strategy:h})),k=w==="floating"?{x:i,y:a,width:d.floating.width,height:d.floating.height}:d.reference,j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),L=await(u.isElement==null?void 0:u.isElement(j))?await(u.getScale==null?void 0:u.getScale(j))||{x:1,y:1}:{x:1,y:1},B=zl(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:k,offsetParent:j,strategy:h}):k);return{top:(T.top-B.top+N.top)/L.y,bottom:(B.bottom-T.bottom+N.bottom)/L.y,left:(T.left-B.left+N.left)/L.x,right:(B.right-T.right+N.right)/L.x}}const ob=50,sb=async(n,r,s)=>{const{placement:i="bottom",strategy:a="absolute",middleware:u=[],platform:d}=s,f=d.detectOverflow?d:{...d,detectOverflow:rb},h=await(d.isRTL==null?void 0:d.isRTL(r));let g=await d.getElementRects({reference:n,floating:r,strategy:a}),{x:y,y:w}=Ym(g,i,h),b=i,E=0;const N={};for(let S=0;S<u.length;S++){const C=u[S];if(!C)continue;const{name:T,fn:k}=C,{x:j,y:L,data:B,reset:V}=await k({x:y,y:w,initialPlacement:i,placement:b,strategy:a,middlewareData:N,rects:g,platform:f,elements:{reference:n,floating:r}});y=j??y,w=L??w,N[T]={...N[T],...B},V&&E<ob&&(E++,typeof V=="object"&&(V.placement&&(b=V.placement),V.rects&&(g=V.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:a}):V.rects),{x:y,y:w}=Ym(g,b,h)),S=-1)}return{x:y,y:w,placement:b,strategy:a,middlewareData:N}},ib=n=>({name:"arrow",options:n,async fn(r){const{x:s,y:i,placement:a,rects:u,platform:d,elements:f,middlewareData:h}=r,{element:g,padding:y=0}=Kn(n,r)||{};if(g==null)return{};const w=Fg(y),b={x:s,y:i},E=id(a),N=sd(E),S=await d.getDimensions(g),C=E==="y",T=C?"top":"left",k=C?"bottom":"right",j=C?"clientHeight":"clientWidth",L=u.reference[N]+u.reference[E]-b[E]-u.floating[N],B=b[E]-u.reference[E],V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let $=V?V[j]:0;(!$||!await(d.isElement==null?void 0:d.isElement(V)))&&($=f.floating[j]||u.floating[N]);const ie=L/2-B/2,ne=$/2-S[N]/2-1,ce=Rr(w[T],ne),me=Rr(w[k],ne),Z=ce,A=$-S[N]-me,J=$/2-S[N]/2+ie,Y=jc(Z,J,A),te=!h.arrow&&Go(a)!=null&&J!==Y&&u.reference[N]/2-(J<Z?ce:me)-S[N]/2<0,se=te?J<Z?J-Z:J-A:0;return{[E]:b[E]+se,data:{[E]:Y,centerOffset:J-Y-se,...te&&{alignmentOffset:se}},reset:te}}}),lb=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var s,i;const{placement:a,middlewareData:u,rects:d,initialPlacement:f,platform:h,elements:g}=r,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:b,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:S=!0,...C}=Kn(n,r);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const T=Gn(a),k=kn(f),j=Gn(f)===f,L=await(h.isRTL==null?void 0:h.isRTL(g.floating)),B=b||(j||!S?[Fl(f)]:XC(f)),V=N!=="none";!b&&V&&B.push(...tb(f,S,N,L));const $=[f,...B],ie=await h.detectOverflow(r,C),ne=[];let ce=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&ne.push(ie[T]),w){const J=QC(a,d,L);ne.push(ie[J[0]],ie[J[1]])}if(ce=[...ce,{placement:a,overflows:ne}],!ne.every(J=>J<=0)){var me,Z;const J=(((me=u.flip)==null?void 0:me.index)||0)+1,Y=$[J];if(Y&&(!(w==="alignment"?k!==kn(Y):!1)||ce.every(U=>kn(U.placement)===k?U.overflows[0]>0:!0)))return{data:{index:J,overflows:ce},reset:{placement:Y}};let te=(Z=ce.filter(se=>se.overflows[0]<=0).sort((se,U)=>se.overflows[1]-U.overflows[1])[0])==null?void 0:Z.placement;if(!te)switch(E){case"bestFit":{var A;const se=(A=ce.filter(U=>{if(V){const W=kn(U.placement);return W===k||W==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(W=>W>0).reduce((W,G)=>W+G,0)]).sort((U,W)=>U[1]-W[1])[0])==null?void 0:A[0];se&&(te=se);break}case"initialPlacement":te=f;break}if(a!==te)return{reset:{placement:te}}}return{}}}};function qm(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Qm(n){return YC.some(r=>n[r]>=0)}const ab=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:s,platform:i}=r,{strategy:a="referenceHidden",...u}=Kn(n,r);switch(a){case"referenceHidden":{const d=await i.detectOverflow(r,{...u,elementContext:"reference"}),f=qm(d,s.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Qm(f)}}}case"escaped":{const d=await i.detectOverflow(r,{...u,altBoundary:!0}),f=qm(d,s.floating);return{data:{escapedOffsets:f,escaped:Qm(f)}}}default:return{}}}}},zg=new Set(["left","top"]);async function ub(n,r){const{placement:s,platform:i,elements:a}=n,u=await(i.isRTL==null?void 0:i.isRTL(a.floating)),d=Gn(s),f=Go(s),h=kn(s)==="y",g=zg.has(d)?-1:1,y=u&&h?-1:1,w=Kn(r,n);let{mainAxis:b,crossAxis:E,alignmentAxis:N}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof N=="number"&&(E=f==="end"?N*-1:N),h?{x:E*y,y:b*g}:{x:b*g,y:E*y}}const cb=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var s,i;const{x:a,y:u,placement:d,middlewareData:f}=r,h=await ub(r,n);return d===((s=f.offset)==null?void 0:s.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:u+h.y,data:{...h,placement:d}}}}},db=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:s,y:i,placement:a,platform:u}=r,{mainAxis:d=!0,crossAxis:f=!1,limiter:h={fn:T=>{let{x:k,y:j}=T;return{x:k,y:j}}},...g}=Kn(n,r),y={x:s,y:i},w=await u.detectOverflow(r,g),b=kn(Gn(a)),E=od(b);let N=y[E],S=y[b];if(d){const T=E==="y"?"top":"left",k=E==="y"?"bottom":"right",j=N+w[T],L=N-w[k];N=jc(j,N,L)}if(f){const T=b==="y"?"top":"left",k=b==="y"?"bottom":"right",j=S+w[T],L=S-w[k];S=jc(j,S,L)}const C=h.fn({...r,[E]:N,[b]:S});return{...C,data:{x:C.x-s,y:C.y-i,enabled:{[E]:d,[b]:f}}}}}},fb=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:s,y:i,placement:a,rects:u,middlewareData:d}=r,{offset:f=0,mainAxis:h=!0,crossAxis:g=!0}=Kn(n,r),y={x:s,y:i},w=kn(a),b=od(w);let E=y[b],N=y[w];const S=Kn(f,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const j=b==="y"?"height":"width",L=u.reference[b]-u.floating[j]+C.mainAxis,B=u.reference[b]+u.reference[j]-C.mainAxis;E<L?E=L:E>B&&(E=B)}if(g){var T,k;const j=b==="y"?"width":"height",L=zg.has(Gn(a)),B=u.reference[w]-u.floating[j]+(L&&((T=d.offset)==null?void 0:T[w])||0)+(L?0:C.crossAxis),V=u.reference[w]+u.reference[j]+(L?0:((k=d.offset)==null?void 0:k[w])||0)-(L?C.crossAxis:0);N<B?N=B:N>V&&(N=V)}return{[b]:E,[w]:N}}}},pb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var s,i;const{placement:a,rects:u,platform:d,elements:f}=r,{apply:h=()=>{},...g}=Kn(n,r),y=await d.detectOverflow(r,g),w=Gn(a),b=Go(a),E=kn(a)==="y",{width:N,height:S}=u.floating;let C,T;w==="top"||w==="bottom"?(C=w,T=b===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(T=w,C=b==="end"?"top":"bottom");const k=S-y.top-y.bottom,j=N-y.left-y.right,L=Rr(S-y[C],k),B=Rr(N-y[T],j),V=!r.middlewareData.shift;let $=L,ie=B;if((s=r.middlewareData.shift)!=null&&s.enabled.x&&(ie=j),(i=r.middlewareData.shift)!=null&&i.enabled.y&&($=k),V&&!b){const ce=Ft(y.left,0),me=Ft(y.right,0),Z=Ft(y.top,0),A=Ft(y.bottom,0);E?ie=N-2*(ce!==0||me!==0?ce+me:Ft(y.left,y.right)):$=S-2*(Z!==0||A!==0?Z+A:Ft(y.top,y.bottom))}await h({...r,availableWidth:ie,availableHeight:$});const ne=await d.getDimensions(f.floating);return N!==ne.width||S!==ne.height?{reset:{rects:!0}}:{}}}};function ra(){return typeof window<"u"}function Yo(n){return Ug(n)?(n.nodeName||"").toLowerCase():"#document"}function zt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function An(n){var r;return(r=(Ug(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Ug(n){return ra()?n instanceof Node||n instanceof zt(n).Node:!1}function an(n){return ra()?n instanceof Element||n instanceof zt(n).Element:!1}function Qn(n){return ra()?n instanceof HTMLElement||n instanceof zt(n).HTMLElement:!1}function Xm(n){return!ra()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof zt(n).ShadowRoot}function ti(n){const{overflow:r,overflowX:s,overflowY:i,display:a}=un(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+s)&&a!=="inline"&&a!=="contents"}function mb(n){return/^(table|td|th)$/.test(Yo(n))}function oa(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const hb=/transform|translate|scale|rotate|perspective|filter/,gb=/paint|layout|strict|content/,Vr=n=>!!n&&n!=="none";let cc;function ld(n){const r=an(n)?un(n):n;return Vr(r.transform)||Vr(r.translate)||Vr(r.scale)||Vr(r.rotate)||Vr(r.perspective)||!ad()&&(Vr(r.backdropFilter)||Vr(r.filter))||hb.test(r.willChange||"")||gb.test(r.contain||"")}function vb(n){let r=kr(n);for(;Qn(r)&&!zo(r);){if(ld(r))return r;if(oa(r))return null;r=kr(r)}return null}function ad(){return cc==null&&(cc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cc}function zo(n){return/^(html|body|#document)$/.test(Yo(n))}function un(n){return zt(n).getComputedStyle(n)}function sa(n){return an(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function kr(n){if(Yo(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Xm(n)&&n.host||An(n);return Xm(r)?r.host:r}function Bg(n){const r=kr(n);return zo(r)?n.ownerDocument?n.ownerDocument.body:n.body:Qn(r)&&ti(r)?r:Bg(r)}function Bs(n,r,s){var i;r===void 0&&(r=[]),s===void 0&&(s=!0);const a=Bg(n),u=a===((i=n.ownerDocument)==null?void 0:i.body),d=zt(a);if(u){const f=Tc(d);return r.concat(d,d.visualViewport||[],ti(a)?a:[],f&&s?Bs(f):[])}else return r.concat(a,Bs(a,[],s))}function Tc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function $g(n){const r=un(n);let s=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const a=Qn(n),u=a?n.offsetWidth:s,d=a?n.offsetHeight:i,f=Ml(s)!==u||Ml(i)!==d;return f&&(s=u,i=d),{width:s,height:i,$:f}}function ud(n){return an(n)?n:n.contextElement}function Do(n){const r=ud(n);if(!Qn(r))return _n(1);const s=r.getBoundingClientRect(),{width:i,height:a,$:u}=$g(r);let d=(u?Ml(s.width):s.width)/i,f=(u?Ml(s.height):s.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}const yb=_n(0);function Wg(n){const r=zt(n);return!ad()||!r.visualViewport?yb:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function xb(n,r,s){return r===void 0&&(r=!1),!s||r&&s!==zt(n)?!1:r}function Xr(n,r,s,i){r===void 0&&(r=!1),s===void 0&&(s=!1);const a=n.getBoundingClientRect(),u=ud(n);let d=_n(1);r&&(i?an(i)&&(d=Do(i)):d=Do(n));const f=xb(u,s,i)?Wg(u):_n(0);let h=(a.left+f.x)/d.x,g=(a.top+f.y)/d.y,y=a.width/d.x,w=a.height/d.y;if(u){const b=zt(u),E=i&&an(i)?zt(i):i;let N=b,S=Tc(N);for(;S&&i&&E!==N;){const C=Do(S),T=S.getBoundingClientRect(),k=un(S),j=T.left+(S.clientLeft+parseFloat(k.paddingLeft))*C.x,L=T.top+(S.clientTop+parseFloat(k.paddingTop))*C.y;h*=C.x,g*=C.y,y*=C.x,w*=C.y,h+=j,g+=L,N=zt(S),S=Tc(N)}}return zl({width:y,height:w,x:h,y:g})}function ia(n,r){const s=sa(n).scrollLeft;return r?r.left+s:Xr(An(n)).left+s}function Vg(n,r){const s=n.getBoundingClientRect(),i=s.left+r.scrollLeft-ia(n,s),a=s.top+r.scrollTop;return{x:i,y:a}}function wb(n){let{elements:r,rect:s,offsetParent:i,strategy:a}=n;const u=a==="fixed",d=An(i),f=r?oa(r.floating):!1;if(i===d||f&&u)return s;let h={scrollLeft:0,scrollTop:0},g=_n(1);const y=_n(0),w=Qn(i);if((w||!w&&!u)&&((Yo(i)!=="body"||ti(d))&&(h=sa(i)),w)){const E=Xr(i);g=Do(i),y.x=E.x+i.clientLeft,y.y=E.y+i.clientTop}const b=d&&!w&&!u?Vg(d,h):_n(0);return{width:s.width*g.x,height:s.height*g.y,x:s.x*g.x-h.scrollLeft*g.x+y.x+b.x,y:s.y*g.y-h.scrollTop*g.y+y.y+b.y}}function Sb(n){return Array.from(n.getClientRects())}function Eb(n){const r=An(n),s=sa(n),i=n.ownerDocument.body,a=Ft(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),u=Ft(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-s.scrollLeft+ia(n);const f=-s.scrollTop;return un(i).direction==="rtl"&&(d+=Ft(r.clientWidth,i.clientWidth)-a),{width:a,height:u,x:d,y:f}}const Jm=25;function Cb(n,r){const s=zt(n),i=An(n),a=s.visualViewport;let u=i.clientWidth,d=i.clientHeight,f=0,h=0;if(a){u=a.width,d=a.height;const y=ad();(!y||y&&r==="fixed")&&(f=a.offsetLeft,h=a.offsetTop)}const g=ia(i);if(g<=0){const y=i.ownerDocument,w=y.body,b=getComputedStyle(w),E=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(i.clientWidth-w.clientWidth-E);N<=Jm&&(u-=N)}else g<=Jm&&(u+=g);return{width:u,height:d,x:f,y:h}}function bb(n,r){const s=Xr(n,!0,r==="fixed"),i=s.top+n.clientTop,a=s.left+n.clientLeft,u=Qn(n)?Do(n):_n(1),d=n.clientWidth*u.x,f=n.clientHeight*u.y,h=a*u.x,g=i*u.y;return{width:d,height:f,x:h,y:g}}function Zm(n,r,s){let i;if(r==="viewport")i=Cb(n,s);else if(r==="document")i=Eb(An(n));else if(an(r))i=bb(r,s);else{const a=Wg(n);i={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return zl(i)}function Hg(n,r){const s=kr(n);return s===r||!an(s)||zo(s)?!1:un(s).position==="fixed"||Hg(s,r)}function Nb(n,r){const s=r.get(n);if(s)return s;let i=Bs(n,[],!1).filter(f=>an(f)&&Yo(f)!=="body"),a=null;const u=un(n).position==="fixed";let d=u?kr(n):n;for(;an(d)&&!zo(d);){const f=un(d),h=ld(d);!h&&f.position==="fixed"&&(a=null),(u?!h&&!a:!h&&f.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ti(d)&&!h&&Hg(n,d))?i=i.filter(y=>y!==d):a=f,d=kr(d)}return r.set(n,i),i}function Rb(n){let{element:r,boundary:s,rootBoundary:i,strategy:a}=n;const d=[...s==="clippingAncestors"?oa(r)?[]:Nb(r,this._c):[].concat(s),i],f=Zm(r,d[0],a);let h=f.top,g=f.right,y=f.bottom,w=f.left;for(let b=1;b<d.length;b++){const E=Zm(r,d[b],a);h=Ft(E.top,h),g=Rr(E.right,g),y=Rr(E.bottom,y),w=Ft(E.left,w)}return{width:g-w,height:y-h,x:w,y:h}}function kb(n){const{width:r,height:s}=$g(n);return{width:r,height:s}}function jb(n,r,s){const i=Qn(r),a=An(r),u=s==="fixed",d=Xr(n,!0,u,r);let f={scrollLeft:0,scrollTop:0};const h=_n(0);function g(){h.x=ia(a)}if(i||!i&&!u)if((Yo(r)!=="body"||ti(a))&&(f=sa(r)),i){const E=Xr(r,!0,u,r);h.x=E.x+r.clientLeft,h.y=E.y+r.clientTop}else a&&g();u&&!i&&a&&g();const y=a&&!i&&!u?Vg(a,f):_n(0),w=d.left+f.scrollLeft-h.x-y.x,b=d.top+f.scrollTop-h.y-y.y;return{x:w,y:b,width:d.width,height:d.height}}function dc(n){return un(n).position==="static"}function eh(n,r){if(!Qn(n)||un(n).position==="fixed")return null;if(r)return r(n);let s=n.offsetParent;return An(n)===s&&(s=s.ownerDocument.body),s}function Kg(n,r){const s=zt(n);if(oa(n))return s;if(!Qn(n)){let a=kr(n);for(;a&&!zo(a);){if(an(a)&&!dc(a))return a;a=kr(a)}return s}let i=eh(n,r);for(;i&&mb(i)&&dc(i);)i=eh(i,r);return i&&zo(i)&&dc(i)&&!ld(i)?s:i||vb(n)||s}const Pb=async function(n){const r=this.getOffsetParent||Kg,s=this.getDimensions,i=await s(n.floating);return{reference:jb(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Tb(n){return un(n).direction==="rtl"}const Ob={convertOffsetParentRelativeRectToViewportRelativeRect:wb,getDocumentElement:An,getClippingRect:Rb,getOffsetParent:Kg,getElementRects:Pb,getClientRects:Sb,getDimensions:kb,getScale:Do,isElement:an,isRTL:Tb};function Gg(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function _b(n,r){let s=null,i;const a=An(n);function u(){var f;clearTimeout(i),(f=s)==null||f.disconnect(),s=null}function d(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),u();const g=n.getBoundingClientRect(),{left:y,top:w,width:b,height:E}=g;if(f||r(),!b||!E)return;const N=Cl(w),S=Cl(a.clientWidth-(y+b)),C=Cl(a.clientHeight-(w+E)),T=Cl(y),j={rootMargin:-N+"px "+-S+"px "+-C+"px "+-T+"px",threshold:Ft(0,Rr(1,h))||1};let L=!0;function B(V){const $=V[0].intersectionRatio;if($!==h){if(!L)return d();$?d(!1,$):i=setTimeout(()=>{d(!1,1e-7)},1e3)}$===1&&!Gg(g,n.getBoundingClientRect())&&d(),L=!1}try{s=new IntersectionObserver(B,{...j,root:a.ownerDocument})}catch{s=new IntersectionObserver(B,j)}s.observe(n)}return d(!0),u}function Ab(n,r,s,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,g=ud(n),y=a||u?[...g?Bs(g):[],...r?Bs(r):[]]:[];y.forEach(T=>{a&&T.addEventListener("scroll",s,{passive:!0}),u&&T.addEventListener("resize",s)});const w=g&&f?_b(g,s):null;let b=-1,E=null;d&&(E=new ResizeObserver(T=>{let[k]=T;k&&k.target===g&&E&&r&&(E.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=E)==null||j.observe(r)})),s()}),g&&!h&&E.observe(g),r&&E.observe(r));let N,S=h?Xr(n):null;h&&C();function C(){const T=Xr(n);S&&!Gg(S,T)&&s(),S=T,N=requestAnimationFrame(C)}return s(),()=>{var T;y.forEach(k=>{a&&k.removeEventListener("scroll",s),u&&k.removeEventListener("resize",s)}),w==null||w(),(T=E)==null||T.disconnect(),E=null,h&&cancelAnimationFrame(N)}}const Lb=cb,Ib=db,Db=lb,Mb=pb,Fb=ab,th=ib,zb=fb,Ub=(n,r,s)=>{const i=new Map,a={platform:Ob,...s},u={...a.platform,_c:i};return sb(n,r,{...a,platform:u})};var Bb=typeof document<"u",$b=function(){},Ol=Bb?v.useLayoutEffect:$b;function Ul(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let s,i,a;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==r.length)return!1;for(i=s;i--!==0;)if(!Ul(n[i],r[i]))return!1;return!0}if(a=Object.keys(n),s=a.length,s!==Object.keys(r).length)return!1;for(i=s;i--!==0;)if(!{}.hasOwnProperty.call(r,a[i]))return!1;for(i=s;i--!==0;){const u=a[i];if(!(u==="_owner"&&n.$$typeof)&&!Ul(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function Yg(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function nh(n,r){const s=Yg(n);return Math.round(r*s)/s}function fc(n){const r=v.useRef(n);return Ol(()=>{r.current=n}),r}function Wb(n){n===void 0&&(n={});const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a,elements:{reference:u,floating:d}={},transform:f=!0,whileElementsMounted:h,open:g}=n,[y,w]=v.useState({x:0,y:0,strategy:s,placement:r,middlewareData:{},isPositioned:!1}),[b,E]=v.useState(i);Ul(b,i)||E(i);const[N,S]=v.useState(null),[C,T]=v.useState(null),k=v.useCallback(U=>{U!==V.current&&(V.current=U,S(U))},[]),j=v.useCallback(U=>{U!==$.current&&($.current=U,T(U))},[]),L=u||N,B=d||C,V=v.useRef(null),$=v.useRef(null),ie=v.useRef(y),ne=h!=null,ce=fc(h),me=fc(a),Z=fc(g),A=v.useCallback(()=>{if(!V.current||!$.current)return;const U={placement:r,strategy:s,middleware:b};me.current&&(U.platform=me.current),Ub(V.current,$.current,U).then(W=>{const G={...W,isPositioned:Z.current!==!1};J.current&&!Ul(ie.current,G)&&(ie.current=G,Vs.flushSync(()=>{w(G)}))})},[b,r,s,me,Z]);Ol(()=>{g===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,w(U=>({...U,isPositioned:!1})))},[g]);const J=v.useRef(!1);Ol(()=>(J.current=!0,()=>{J.current=!1}),[]),Ol(()=>{if(L&&(V.current=L),B&&($.current=B),L&&B){if(ce.current)return ce.current(L,B,A);A()}},[L,B,A,ce,ne]);const Y=v.useMemo(()=>({reference:V,floating:$,setReference:k,setFloating:j}),[k,j]),te=v.useMemo(()=>({reference:L,floating:B}),[L,B]),se=v.useMemo(()=>{const U={position:s,left:0,top:0};if(!te.floating)return U;const W=nh(te.floating,y.x),G=nh(te.floating,y.y);return f?{...U,transform:"translate("+W+"px, "+G+"px)",...Yg(te.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:W,top:G}},[s,f,te.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:A,refs:Y,elements:te,floatingStyles:se}),[y,A,Y,te,se])}const Vb=n=>{function r(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:i,padding:a}=typeof n=="function"?n(s):n;return i&&r(i)?i.current!=null?th({element:i.current,padding:a}).fn(s):{}:i?th({element:i,padding:a}).fn(s):{}}}},Hb=(n,r)=>{const s=Lb(n);return{name:s.name,fn:s.fn,options:[n,r]}},Kb=(n,r)=>{const s=Ib(n);return{name:s.name,fn:s.fn,options:[n,r]}},Gb=(n,r)=>({fn:zb(n).fn,options:[n,r]}),Yb=(n,r)=>{const s=Db(n);return{name:s.name,fn:s.fn,options:[n,r]}},qb=(n,r)=>{const s=Mb(n);return{name:s.name,fn:s.fn,options:[n,r]}},Qb=(n,r)=>{const s=Fb(n);return{name:s.name,fn:s.fn,options:[n,r]}},Xb=(n,r)=>{const s=Vb(n);return{name:s.name,fn:s.fn,options:[n,r]}};var Jb="Arrow",qg=v.forwardRef((n,r)=>{const{children:s,width:i=10,height:a=5,...u}=n;return p.jsx(De.svg,{...u,ref:r,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});qg.displayName=Jb;var Zb=qg;function eN(n){const[r,s]=v.useState(void 0);return gt(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let d,f;if("borderBoxSize"in u){const h=u.borderBoxSize,g=Array.isArray(h)?h[0]:h;d=g.inlineSize,f=g.blockSize}else d=n.offsetWidth,f=n.offsetHeight;s({width:d,height:f})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else s(void 0)},[n]),r}var cd="Popper",[Qg,Xg]=Zl(cd),[tN,Jg]=Qg(cd),Zg=n=>{const{__scopePopper:r,children:s}=n,[i,a]=v.useState(null);return p.jsx(tN,{scope:r,anchor:i,onAnchorChange:a,children:s})};Zg.displayName=cd;var ev="PopperAnchor",tv=v.forwardRef((n,r)=>{const{__scopePopper:s,virtualRef:i,...a}=n,u=Jg(ev,s),d=v.useRef(null),f=et(r,d),h=v.useRef(null);return v.useEffect(()=>{const g=h.current;h.current=(i==null?void 0:i.current)||d.current,g!==h.current&&u.onAnchorChange(h.current)}),i?null:p.jsx(De.div,{...a,ref:f})});tv.displayName=ev;var dd="PopperContent",[nN,rN]=Qg(dd),nv=v.forwardRef((n,r)=>{var Q,pe,we,Ce,Ne,ke;const{__scopePopper:s,side:i="bottom",sideOffset:a=0,align:u="center",alignOffset:d=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:N,...S}=n,C=Jg(dd,s),[T,k]=v.useState(null),j=et(r,Xe=>k(Xe)),[L,B]=v.useState(null),V=eN(L),$=(V==null?void 0:V.width)??0,ie=(V==null?void 0:V.height)??0,ne=i+(u!=="center"?"-"+u:""),ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},me=Array.isArray(g)?g:[g],Z=me.length>0,A={padding:ce,boundary:me.filter(sN),altBoundary:Z},{refs:J,floatingStyles:Y,placement:te,isPositioned:se,middlewareData:U}=Wb({strategy:"fixed",placement:ne,whileElementsMounted:(...Xe)=>Ab(...Xe,{animationFrame:E==="always"}),elements:{reference:C.anchor},middleware:[Hb({mainAxis:a+ie,alignmentAxis:d}),h&&Kb({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Gb():void 0,...A}),h&&Yb({...A}),qb({...A,apply:({elements:Xe,rects:ct,availableWidth:fn,availableHeight:Yt})=>{const{width:qt,height:Xn}=ct.reference,pn=Xe.floating.style;pn.setProperty("--radix-popper-available-width",`${fn}px`),pn.setProperty("--radix-popper-available-height",`${Yt}px`),pn.setProperty("--radix-popper-anchor-width",`${qt}px`),pn.setProperty("--radix-popper-anchor-height",`${Xn}px`)}}),L&&Xb({element:L,padding:f}),iN({arrowWidth:$,arrowHeight:ie}),b&&Qb({strategy:"referenceHidden",...A})]}),[W,G]=sv(te),O=qr(N);gt(()=>{se&&(O==null||O())},[se,O]);const z=(Q=U.arrow)==null?void 0:Q.x,re=(pe=U.arrow)==null?void 0:pe.y,oe=((we=U.arrow)==null?void 0:we.centerOffset)!==0,[he,xe]=v.useState();return gt(()=>{T&&xe(window.getComputedStyle(T).zIndex)},[T]),p.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:se?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Ce=U.transformOrigin)==null?void 0:Ce.x,(Ne=U.transformOrigin)==null?void 0:Ne.y].join(" "),...((ke=U.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:p.jsx(nN,{scope:s,placedSide:W,onArrowChange:B,arrowX:z,arrowY:re,shouldHideArrow:oe,children:p.jsx(De.div,{"data-side":W,"data-align":G,...S,ref:j,style:{...S.style,animation:se?void 0:"none"}})})})});nv.displayName=dd;var rv="PopperArrow",oN={top:"bottom",right:"left",bottom:"top",left:"right"},ov=v.forwardRef(function(r,s){const{__scopePopper:i,...a}=r,u=rN(rv,i),d=oN[u.placedSide];return p.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:p.jsx(Zb,{...a,ref:s,style:{...a.style,display:"block"}})})});ov.displayName=rv;function sN(n){return n!==null}var iN=n=>({name:"transformOrigin",options:n,fn(r){var C,T,k;const{placement:s,rects:i,middlewareData:a}=r,d=((C=a.arrow)==null?void 0:C.centerOffset)!==0,f=d?0:n.arrowWidth,h=d?0:n.arrowHeight,[g,y]=sv(s),w={start:"0%",center:"50%",end:"100%"}[y],b=(((T=a.arrow)==null?void 0:T.x)??0)+f/2,E=(((k=a.arrow)==null?void 0:k.y)??0)+h/2;let N="",S="";return g==="bottom"?(N=d?w:`${b}px`,S=`${-h}px`):g==="top"?(N=d?w:`${b}px`,S=`${i.floating.height+h}px`):g==="right"?(N=`${-h}px`,S=d?w:`${E}px`):g==="left"&&(N=`${i.floating.width+h}px`,S=d?w:`${E}px`),{data:{x:N,y:S}}}});function sv(n){const[r,s="center"]=n.split("-");return[r,s]}var lN=Zg,aN=tv,uN=nv,cN=ov;function dN(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var iv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),fN="VisuallyHidden",pN=v.forwardRef((n,r)=>p.jsx(De.span,{...n,ref:r,style:{...iv,...n.style}}));pN.displayName=fN;var mN=[" ","Enter","ArrowUp","ArrowDown"],hN=[" ","Enter"],Jr="Select",[la,aa,gN]=HC(Jr),[qo]=Zl(Jr,[gN,Xg]),ua=Xg(),[vN,jr]=qo(Jr),[yN,xN]=qo(Jr),lv=n=>{const{__scopeSelect:r,children:s,open:i,defaultOpen:a,onOpenChange:u,value:d,defaultValue:f,onValueChange:h,dir:g,name:y,autoComplete:w,disabled:b,required:E,form:N}=n,S=ua(r),[C,T]=v.useState(null),[k,j]=v.useState(null),[L,B]=v.useState(!1),V=GC(g),[$,ie]=Nc({prop:i,defaultProp:a??!1,onChange:u,caller:Jr}),[ne,ce]=Nc({prop:d,defaultProp:f,onChange:h,caller:Jr}),me=v.useRef(null),Z=C?N||!!C.closest("form"):!0,[A,J]=v.useState(new Set),Y=Array.from(A).map(te=>te.props.value).join(";");return p.jsx(lN,{...S,children:p.jsxs(vN,{required:E,scope:r,trigger:C,onTriggerChange:T,valueNode:k,onValueNodeChange:j,valueNodeHasChildren:L,onValueNodeHasChildrenChange:B,contentId:Lo(),value:ne,onValueChange:ce,open:$,onOpenChange:ie,dir:V,triggerPointerDownPosRef:me,disabled:b,children:[p.jsx(la.Provider,{scope:r,children:p.jsx(yN,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(te=>{J(se=>new Set(se).add(te))},[]),onNativeOptionRemove:v.useCallback(te=>{J(se=>{const U=new Set(se);return U.delete(te),U})},[]),children:s})}),Z?p.jsxs(Pv,{"aria-hidden":!0,required:E,tabIndex:-1,name:y,autoComplete:w,value:ne,onChange:te=>ce(te.target.value),disabled:b,form:N,children:[ne===void 0?p.jsx("option",{value:""}):null,Array.from(A)]},Y):null]})})};lv.displayName=Jr;var av="SelectTrigger",uv=v.forwardRef((n,r)=>{const{__scopeSelect:s,disabled:i=!1,...a}=n,u=ua(s),d=jr(av,s),f=d.disabled||i,h=et(r,d.onTriggerChange),g=aa(s),y=v.useRef("touch"),[w,b,E]=Ov(S=>{const C=g().filter(j=>!j.disabled),T=C.find(j=>j.value===d.value),k=_v(C,S,T);k!==void 0&&d.onValueChange(k.value)}),N=S=>{f||(d.onOpenChange(!0),E()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return p.jsx(aN,{asChild:!0,...u,children:p.jsx(De.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Tv(d.value)?"":void 0,...a,ref:h,onClick:Be(a.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&N(S)}),onPointerDown:Be(a.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(N(S),S.preventDefault())}),onKeyDown:Be(a.onKeyDown,S=>{const C=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(C&&S.key===" ")&&mN.includes(S.key)&&(N(),S.preventDefault())})})})});uv.displayName=av;var cv="SelectValue",dv=v.forwardRef((n,r)=>{const{__scopeSelect:s,className:i,style:a,children:u,placeholder:d="",...f}=n,h=jr(cv,s),{onValueNodeHasChildrenChange:g}=h,y=u!==void 0,w=et(r,h.onValueNodeChange);return gt(()=>{g(y)},[g,y]),p.jsx(De.span,{...f,ref:w,style:{pointerEvents:"none"},children:Tv(h.value)?p.jsx(p.Fragment,{children:d}):u})});dv.displayName=cv;var wN="SelectIcon",fv=v.forwardRef((n,r)=>{const{__scopeSelect:s,children:i,...a}=n;return p.jsx(De.span,{"aria-hidden":!0,...a,ref:r,children:i||"▼"})});fv.displayName=wN;var SN="SelectPortal",pv=n=>p.jsx(Zc,{asChild:!0,...n});pv.displayName=SN;var Zr="SelectContent",mv=v.forwardRef((n,r)=>{const s=jr(Zr,n.__scopeSelect),[i,a]=v.useState();if(gt(()=>{a(new DocumentFragment)},[]),!s.open){const u=i;return u?Vs.createPortal(p.jsx(hv,{scope:n.__scopeSelect,children:p.jsx(la.Slot,{scope:n.__scopeSelect,children:p.jsx("div",{children:n.children})})}),u):null}return p.jsx(gv,{...n,ref:r})});mv.displayName=Zr;var ln=10,[hv,Pr]=qo(Zr),EN="SelectContentImpl",CN=Us("SelectContent.RemoveScroll"),gv=v.forwardRef((n,r)=>{const{__scopeSelect:s,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:d,side:f,sideOffset:h,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:N,hideWhenDetached:S,avoidCollisions:C,...T}=n,k=jr(Zr,s),[j,L]=v.useState(null),[B,V]=v.useState(null),$=et(r,Q=>L(Q)),[ie,ne]=v.useState(null),[ce,me]=v.useState(null),Z=aa(s),[A,J]=v.useState(!1),Y=v.useRef(!1);v.useEffect(()=>{if(j)return vg(j)},[j]),ag();const te=v.useCallback(Q=>{const[pe,...we]=Z().map(ke=>ke.ref.current),[Ce]=we.slice(-1),Ne=document.activeElement;for(const ke of Q)if(ke===Ne||(ke==null||ke.scrollIntoView({block:"nearest"}),ke===pe&&B&&(B.scrollTop=0),ke===Ce&&B&&(B.scrollTop=B.scrollHeight),ke==null||ke.focus(),document.activeElement!==Ne))return},[Z,B]),se=v.useCallback(()=>te([ie,j]),[te,ie,j]);v.useEffect(()=>{A&&se()},[A,se]);const{onOpenChange:U,triggerPointerDownPosRef:W}=k;v.useEffect(()=>{if(j){let Q={x:0,y:0};const pe=Ce=>{var Ne,ke;Q={x:Math.abs(Math.round(Ce.pageX)-(((Ne=W.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((ke=W.current)==null?void 0:ke.y)??0))}},we=Ce=>{Q.x<=10&&Q.y<=10?Ce.preventDefault():j.contains(Ce.target)||U(!1),document.removeEventListener("pointermove",pe),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",we,{capture:!0})}}},[j,U,W]),v.useEffect(()=>{const Q=()=>U(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[U]);const[G,O]=Ov(Q=>{const pe=Z().filter(Ne=>!Ne.disabled),we=pe.find(Ne=>Ne.ref.current===document.activeElement),Ce=_v(pe,Q,we);Ce&&setTimeout(()=>Ce.ref.current.focus())}),z=v.useCallback((Q,pe,we)=>{const Ce=!Y.current&&!we;(k.value!==void 0&&k.value===pe||Ce)&&(ne(Q),Ce&&(Y.current=!0))},[k.value]),re=v.useCallback(()=>j==null?void 0:j.focus(),[j]),oe=v.useCallback((Q,pe,we)=>{const Ce=!Y.current&&!we;(k.value!==void 0&&k.value===pe||Ce)&&me(Q)},[k.value]),he=i==="popper"?Oc:vv,xe=he===Oc?{side:f,sideOffset:h,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:N,hideWhenDetached:S,avoidCollisions:C}:{};return p.jsx(hv,{scope:s,content:j,viewport:B,onViewportChange:V,itemRefCallback:z,selectedItem:ie,onItemLeave:re,itemTextRefCallback:oe,focusSelectedItem:se,selectedItemText:ce,position:i,isPositioned:A,searchRef:G,children:p.jsx(ed,{as:CN,allowPinchZoom:!0,children:p.jsx(Jc,{asChild:!0,trapped:k.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:Be(a,Q=>{var pe;(pe=k.trigger)==null||pe.focus({preventScroll:!0}),Q.preventDefault()}),children:p.jsx(Xc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:p.jsx(he,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:Q=>Q.preventDefault(),...T,...xe,onPlaced:()=>J(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Be(T.onKeyDown,Q=>{const pe=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!pe&&Q.key.length===1&&O(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ce=Z().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Ne=Q.target,ke=Ce.indexOf(Ne);Ce=Ce.slice(ke+1)}setTimeout(()=>te(Ce)),Q.preventDefault()}})})})})})})});gv.displayName=EN;var bN="SelectItemAlignedPosition",vv=v.forwardRef((n,r)=>{const{__scopeSelect:s,onPlaced:i,...a}=n,u=jr(Zr,s),d=Pr(Zr,s),[f,h]=v.useState(null),[g,y]=v.useState(null),w=et(r,$=>y($)),b=aa(s),E=v.useRef(!1),N=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:T,focusSelectedItem:k}=d,j=v.useCallback(()=>{if(u.trigger&&u.valueNode&&f&&g&&S&&C&&T){const $=u.trigger.getBoundingClientRect(),ie=g.getBoundingClientRect(),ne=u.valueNode.getBoundingClientRect(),ce=T.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=ce.left-ie.left,ke=ne.left-Ne,Xe=$.left-ke,ct=$.width+Xe,fn=Math.max(ct,ie.width),Yt=window.innerWidth-ln,qt=Hm(ke,[ln,Math.max(ln,Yt-fn)]);f.style.minWidth=ct+"px",f.style.left=qt+"px"}else{const Ne=ie.right-ce.right,ke=window.innerWidth-ne.right-Ne,Xe=window.innerWidth-$.right-ke,ct=$.width+Xe,fn=Math.max(ct,ie.width),Yt=window.innerWidth-ln,qt=Hm(ke,[ln,Math.max(ln,Yt-fn)]);f.style.minWidth=ct+"px",f.style.right=qt+"px"}const me=b(),Z=window.innerHeight-ln*2,A=S.scrollHeight,J=window.getComputedStyle(g),Y=parseInt(J.borderTopWidth,10),te=parseInt(J.paddingTop,10),se=parseInt(J.borderBottomWidth,10),U=parseInt(J.paddingBottom,10),W=Y+te+A+U+se,G=Math.min(C.offsetHeight*5,W),O=window.getComputedStyle(S),z=parseInt(O.paddingTop,10),re=parseInt(O.paddingBottom,10),oe=$.top+$.height/2-ln,he=Z-oe,xe=C.offsetHeight/2,Q=C.offsetTop+xe,pe=Y+te+Q,we=W-pe;if(pe<=oe){const Ne=me.length>0&&C===me[me.length-1].ref.current;f.style.bottom="0px";const ke=g.clientHeight-S.offsetTop-S.offsetHeight,Xe=Math.max(he,xe+(Ne?re:0)+ke+se),ct=pe+Xe;f.style.height=ct+"px"}else{const Ne=me.length>0&&C===me[0].ref.current;f.style.top="0px";const Xe=Math.max(oe,Y+S.offsetTop+(Ne?z:0)+xe)+we;f.style.height=Xe+"px",S.scrollTop=pe-oe+S.offsetTop}f.style.margin=`${ln}px 0`,f.style.minHeight=G+"px",f.style.maxHeight=Z+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[b,u.trigger,u.valueNode,f,g,S,C,T,u.dir,i]);gt(()=>j(),[j]);const[L,B]=v.useState();gt(()=>{g&&B(window.getComputedStyle(g).zIndex)},[g]);const V=v.useCallback($=>{$&&N.current===!0&&(j(),k==null||k(),N.current=!1)},[j,k]);return p.jsx(RN,{scope:s,contentWrapper:f,shouldExpandOnScrollRef:E,onScrollButtonChange:V,children:p.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:p.jsx(De.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});vv.displayName=bN;var NN="SelectPopperPosition",Oc=v.forwardRef((n,r)=>{const{__scopeSelect:s,align:i="start",collisionPadding:a=ln,...u}=n,d=ua(s);return p.jsx(uN,{...d,...u,ref:r,align:i,collisionPadding:a,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Oc.displayName=NN;var[RN,fd]=qo(Zr,{}),_c="SelectViewport",yv=v.forwardRef((n,r)=>{const{__scopeSelect:s,nonce:i,...a}=n,u=Pr(_c,s),d=fd(_c,s),f=et(r,u.onViewportChange),h=v.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),p.jsx(la.Slot,{scope:s,children:p.jsx(De.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Be(a.onScroll,g=>{const y=g.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:b}=d;if(b!=null&&b.current&&w){const E=Math.abs(h.current-y.scrollTop);if(E>0){const N=window.innerHeight-ln*2,S=parseFloat(w.style.minHeight),C=parseFloat(w.style.height),T=Math.max(S,C);if(T<N){const k=T+E,j=Math.min(N,k),L=k-j;w.style.height=j+"px",w.style.bottom==="0px"&&(y.scrollTop=L>0?L:0,w.style.justifyContent="flex-end")}}}h.current=y.scrollTop})})})]})});yv.displayName=_c;var xv="SelectGroup",[kN,jN]=qo(xv),PN=v.forwardRef((n,r)=>{const{__scopeSelect:s,...i}=n,a=Lo();return p.jsx(kN,{scope:s,id:a,children:p.jsx(De.div,{role:"group","aria-labelledby":a,...i,ref:r})})});PN.displayName=xv;var wv="SelectLabel",Sv=v.forwardRef((n,r)=>{const{__scopeSelect:s,...i}=n,a=jN(wv,s);return p.jsx(De.div,{id:a.id,...i,ref:r})});Sv.displayName=wv;var Bl="SelectItem",[TN,Ev]=qo(Bl),Cv=v.forwardRef((n,r)=>{const{__scopeSelect:s,value:i,disabled:a=!1,textValue:u,...d}=n,f=jr(Bl,s),h=Pr(Bl,s),g=f.value===i,[y,w]=v.useState(u??""),[b,E]=v.useState(!1),N=et(r,k=>{var j;return(j=h.itemRefCallback)==null?void 0:j.call(h,k,i,a)}),S=Lo(),C=v.useRef("touch"),T=()=>{a||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(TN,{scope:s,value:i,disabled:a,textId:S,isSelected:g,onItemTextChange:v.useCallback(k=>{w(j=>j||((k==null?void 0:k.textContent)??"").trim())},[]),children:p.jsx(la.ItemSlot,{scope:s,value:i,disabled:a,textValue:y,children:p.jsx(De.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...d,ref:N,onFocus:Be(d.onFocus,()=>E(!0)),onBlur:Be(d.onBlur,()=>E(!1)),onClick:Be(d.onClick,()=>{C.current!=="mouse"&&T()}),onPointerUp:Be(d.onPointerUp,()=>{C.current==="mouse"&&T()}),onPointerDown:Be(d.onPointerDown,k=>{C.current=k.pointerType}),onPointerMove:Be(d.onPointerMove,k=>{var j;C.current=k.pointerType,a?(j=h.onItemLeave)==null||j.call(h):C.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Be(d.onPointerLeave,k=>{var j;k.currentTarget===document.activeElement&&((j=h.onItemLeave)==null||j.call(h))}),onKeyDown:Be(d.onKeyDown,k=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&k.key===" "||(hN.includes(k.key)&&T(),k.key===" "&&k.preventDefault())})})})})});Cv.displayName=Bl;var Ds="SelectItemText",bv=v.forwardRef((n,r)=>{const{__scopeSelect:s,className:i,style:a,...u}=n,d=jr(Ds,s),f=Pr(Ds,s),h=Ev(Ds,s),g=xN(Ds,s),[y,w]=v.useState(null),b=et(r,T=>w(T),h.onItemTextChange,T=>{var k;return(k=f.itemTextRefCallback)==null?void 0:k.call(f,T,h.value,h.disabled)}),E=y==null?void 0:y.textContent,N=v.useMemo(()=>p.jsx("option",{value:h.value,disabled:h.disabled,children:E},h.value),[h.disabled,h.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return gt(()=>(S(N),()=>C(N)),[S,C,N]),p.jsxs(p.Fragment,{children:[p.jsx(De.span,{id:h.textId,...u,ref:b}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Vs.createPortal(u.children,d.valueNode):null]})});bv.displayName=Ds;var Nv="SelectItemIndicator",Rv=v.forwardRef((n,r)=>{const{__scopeSelect:s,...i}=n;return Ev(Nv,s).isSelected?p.jsx(De.span,{"aria-hidden":!0,...i,ref:r}):null});Rv.displayName=Nv;var Ac="SelectScrollUpButton",ON=v.forwardRef((n,r)=>{const s=Pr(Ac,n.__scopeSelect),i=fd(Ac,n.__scopeSelect),[a,u]=v.useState(!1),d=et(r,i.onScrollButtonChange);return gt(()=>{if(s.viewport&&s.isPositioned){let f=function(){const g=h.scrollTop>0;u(g)};const h=s.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),a?p.jsx(kv,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=s;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});ON.displayName=Ac;var Lc="SelectScrollDownButton",_N=v.forwardRef((n,r)=>{const s=Pr(Lc,n.__scopeSelect),i=fd(Lc,n.__scopeSelect),[a,u]=v.useState(!1),d=et(r,i.onScrollButtonChange);return gt(()=>{if(s.viewport&&s.isPositioned){let f=function(){const g=h.scrollHeight-h.clientHeight,y=Math.ceil(h.scrollTop)<g;u(y)};const h=s.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),a?p.jsx(kv,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=s;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});_N.displayName=Lc;var kv=v.forwardRef((n,r)=>{const{__scopeSelect:s,onAutoScroll:i,...a}=n,u=Pr("SelectScrollButton",s),d=v.useRef(null),f=aa(s),h=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>h(),[h]),gt(()=>{var y;const g=f().find(w=>w.ref.current===document.activeElement);(y=g==null?void 0:g.ref.current)==null||y.scrollIntoView({block:"nearest"})},[f]),p.jsx(De.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:Be(a.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:Be(a.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:Be(a.onPointerLeave,()=>{h()})})}),AN="SelectSeparator",jv=v.forwardRef((n,r)=>{const{__scopeSelect:s,...i}=n;return p.jsx(De.div,{"aria-hidden":!0,...i,ref:r})});jv.displayName=AN;var Ic="SelectArrow",LN=v.forwardRef((n,r)=>{const{__scopeSelect:s,...i}=n,a=ua(s),u=jr(Ic,s),d=Pr(Ic,s);return u.open&&d.position==="popper"?p.jsx(cN,{...a,...i,ref:r}):null});LN.displayName=Ic;var IN="SelectBubbleInput",Pv=v.forwardRef(({__scopeSelect:n,value:r,...s},i)=>{const a=v.useRef(null),u=et(i,a),d=dN(r);return v.useEffect(()=>{const f=a.current;if(!f)return;const h=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(h,"value").set;if(d!==r&&y){const w=new Event("change",{bubbles:!0});y.call(f,r),f.dispatchEvent(w)}},[d,r]),p.jsx(De.select,{...s,style:{...iv,...s.style},ref:u,defaultValue:r})});Pv.displayName=IN;function Tv(n){return n===""||n===void 0}function Ov(n){const r=qr(n),s=v.useRef(""),i=v.useRef(0),a=v.useCallback(d=>{const f=s.current+d;r(f),(function h(g){s.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(f)},[r]),u=v.useCallback(()=>{s.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[s,a,u]}function _v(n,r,s){const a=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,u=s?n.indexOf(s):-1;let d=DN(n,Math.max(u,0));a.length===1&&(d=d.filter(g=>g!==s));const h=d.find(g=>g.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==s?h:void 0}function DN(n,r){return n.map((s,i)=>n[(r+i)%n.length])}var MN=lv,Av=uv,FN=dv,zN=fv,UN=pv,Lv=mv,BN=yv,Iv=Sv,Dv=Cv,$N=bv,WN=Rv,Mv=jv;const $s=MN,Ws=FN,Uo=v.forwardRef(({className:n,children:r,...s},i)=>p.jsxs(Av,{ref:i,className:Pe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...s,children:[r,p.jsx(zN,{asChild:!0,children:p.jsx("i",{className:"ri-arrow-down-s-line text-sm opacity-50"})})]}));Uo.displayName=Av.displayName;const Bo=v.forwardRef(({className:n,children:r,position:s="popper",...i},a)=>p.jsx(UN,{children:p.jsx(Lv,{ref:a,className:Pe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:s,...i,children:p.jsx(BN,{className:Pe("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r})})}));Bo.displayName=Lv.displayName;const VN=v.forwardRef(({className:n,...r},s)=>p.jsx(Iv,{ref:s,className:Pe("px-2 py-1.5 text-xs font-semibold",n),...r}));VN.displayName=Iv.displayName;const Gr=v.forwardRef(({className:n,children:r,...s},i)=>p.jsxs(Dv,{ref:i,className:Pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(WN,{children:p.jsx("i",{className:"ri-check-line text-sm"})})}),p.jsx($N,{children:r})]}));Gr.displayName=Dv.displayName;const HN=v.forwardRef(({className:n,...r},s)=>p.jsx(Mv,{ref:s,className:Pe("-mx-1 my-1 h-px bg-muted",n),...r}));HN.displayName=Mv.displayName;const KN=["none","bearer","api_key","basic","oauth2_cc"],rh={none:'{"type":"none"}',bearer:'{"type":"bearer","token":"YOUR_TOKEN"}',api_key:'{"type":"api_key","key":"YOUR_KEY","in":"header","name":"X-API-Key"}',basic:'{"type":"basic","username":"user","password":"pass"}',oauth2_cc:'{"type":"oauth2_cc","tokenUrl":"https://auth.example.com/token","clientId":"id","clientSecret":"secret","scopes":[]}'},oh={groupId:"",name:"",description:"",remoteUrl:"",baseEndpoint:"",authType:"none",authConfig:'{"type":"none"}',cacheTtl:"3600",enabled:!0};function GN(){const[n,r]=v.useState([]),[s,i]=v.useState([]),[a,u]=v.useState(!0),[d,f]=v.useState(!1),[h,g]=v.useState("create"),[y,w]=v.useState(null),[b,E]=v.useState(oh),[N,S]=v.useState(!1),[C,T]=v.useState(""),[k,j]=v.useState(null),[L,B]=v.useState(!1);async function V(){try{const[A,J]=await Promise.all([Yc(),Qs()]);r(A),i(J)}catch{Ge.error("Failed to load data")}finally{u(!1)}}v.useEffect(()=>{V()},[]);function $(){var A;g("create"),w(null),E({...oh,groupId:((A=s[0])==null?void 0:A.id)??""}),T(""),f(!0)}function ie(A){g("edit"),w(A.id),E({groupId:A.groupId,name:A.name,description:A.description??"",remoteUrl:A.remoteUrl,baseEndpoint:A.baseEndpoint??"",authType:A.authType,authConfig:JSON.stringify(A.authConfig,null,2),cacheTtl:String(A.cacheTtl),enabled:A.enabled}),T(""),f(!0)}function ne(A,J){E(Y=>({...Y,[A]:J})),A==="authType"&&E(Y=>({...Y,authType:J,authConfig:rh[J]}))}async function ce(A){A.preventDefault(),T("");let J;try{J=JSON.parse(b.authConfig)}catch{T("Auth config must be valid JSON");return}S(!0);try{const Y={groupId:b.groupId,name:b.name.trim(),description:b.description.trim(),remoteUrl:b.remoteUrl.trim(),baseEndpoint:b.baseEndpoint.trim()||void 0,authType:b.authType,authConfig:J,cacheTtl:parseInt(b.cacheTtl,10)||3600};h==="create"?(await J1(Y),Ge.success("OAS entry created")):(await Z1(y,{...Y,enabled:b.enabled}),Ge.success("OAS entry updated")),f(!1),V()}catch(Y){Ge.error(Jl(Y,`Failed to ${h} OAS entry`))}finally{S(!1)}}async function me(){if(k){B(!0);try{await eE(k.id),Ge.success("OAS entry deleted"),j(null),V()}catch{Ge.error("Failed to delete OAS entry")}finally{B(!1)}}}const Z=A=>{var J;return((J=s.find(Y=>Y.id===A))==null?void 0:J.name)??A.slice(0,8)};return p.jsxs("div",{className:"p-6 space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"OAS Entries"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Registered OpenAPI services with encrypted auth configs"})]}),p.jsxs(_e,{onClick:$,disabled:s.length===0,children:[p.jsx("i",{className:"ri-upload-cloud-line"}),"Import OAS"]})]}),s.length===0&&!a&&p.jsxs("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 flex items-center gap-2",children:[p.jsx("i",{className:"ri-alert-line"}),"Create a group first before importing OAS entries."]}),a?p.jsx("div",{className:"flex justify-center py-12",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):n.length===0?p.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[p.jsx("i",{className:"ri-file-code-line text-3xl block mb-2"}),p.jsx("p",{className:"text-sm",children:"No OAS entries yet."})]}):p.jsx("div",{className:"rounded-lg border",children:p.jsxs(Js,{children:[p.jsx(Zs,{children:p.jsxs(Hn,{children:[p.jsx(We,{children:"Name"}),p.jsx(We,{children:"Group"}),p.jsx(We,{children:"Auth"}),p.jsx(We,{children:"Status"}),p.jsx(We,{children:"Remote URL"}),p.jsx(We,{children:"Updated"}),p.jsx(We,{className:"w-24"})]})}),p.jsx(ei,{children:n.map(A=>p.jsxs(Hn,{children:[p.jsx(Ve,{className:"font-mono font-medium",children:A.name}),p.jsx(Ve,{children:p.jsx(br,{variant:"secondary",children:Z(A.groupId)})}),p.jsx(Ve,{children:p.jsx(br,{variant:"outline",children:A.authType})}),p.jsx(Ve,{children:p.jsx(br,{variant:A.enabled?"success":"secondary",children:A.enabled?"enabled":"disabled"})}),p.jsx(Ve,{className:"text-xs text-muted-foreground max-w-[200px] truncate",children:A.remoteUrl}),p.jsx(Ve,{className:"text-xs text-muted-foreground",children:zs(A.updatedAt)}),p.jsx(Ve,{children:p.jsxs("div",{className:"flex gap-1",children:[p.jsx(_e,{variant:"ghost",size:"icon",onClick:()=>ie(A),children:p.jsx("i",{className:"ri-edit-line"})}),p.jsx(_e,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>j(A),children:p.jsx("i",{className:"ri-delete-bin-line"})})]})})]},A.id))})]})}),p.jsx(Nr,{open:d,onOpenChange:f,children:p.jsxs(Vn,{className:"sm:max-w-xl max-h-[90vh] overflow-y-auto",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:h==="create"?"Import OAS Entry":"Edit OAS Entry"}),p.jsx(On,{children:h==="create"?"Register a new OpenAPI service. Auth config is encrypted at rest.":"Update the OAS entry details."})]}),p.jsxs("form",{onSubmit:ce,className:"space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"oname",children:["Name ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"oname",placeholder:"payments-api",value:b.name,onChange:A=>ne("name",A.target.value),required:!0,disabled:h==="edit"})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{children:["Group ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsxs($s,{value:b.groupId,onValueChange:A=>ne("groupId",A),children:[p.jsx(Uo,{children:p.jsx(Ws,{placeholder:"Select group"})}),p.jsx(Bo,{children:s.map(A=>p.jsx(Gr,{value:A.id,children:A.name},A.id))})]})]})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"odesc",children:"Description"}),p.jsx(St,{id:"odesc",placeholder:"Optional description",value:b.description,onChange:A=>ne("description",A.target.value)})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"ourl",children:["Remote OAS URL ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"ourl",placeholder:"https://api.example.com/openapi.json",type:"url",value:b.remoteUrl,onChange:A=>ne("remoteUrl",A.target.value),required:!0})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"obase",children:"Base Endpoint Override"}),p.jsx(St,{id:"obase",placeholder:"https://api.example.com (optional)",type:"url",value:b.baseEndpoint,onChange:A=>ne("baseEndpoint",A.target.value)})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{children:["Auth Type ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsxs($s,{value:b.authType,onValueChange:A=>ne("authType",A),children:[p.jsx(Uo,{children:p.jsx(Ws,{})}),p.jsx(Bo,{children:KN.map(A=>p.jsx(Gr,{value:A,children:A},A))})]})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"ottl",children:"Cache TTL (seconds)"}),p.jsx(St,{id:"ottl",type:"number",min:"0",placeholder:"3600",value:b.cacheTtl,onChange:A=>ne("cacheTtl",A.target.value)})]})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"oauth",children:["Auth Config (JSON) ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(Xs,{id:"oauth",placeholder:rh[b.authType],value:b.authConfig,onChange:A=>ne("authConfig",A.target.value),rows:4,className:"font-mono text-xs",required:!0})]}),h==="edit"&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"checkbox",id:"oenabled",checked:b.enabled,onChange:A=>ne("enabled",A.target.checked),className:"h-4 w-4 rounded"}),p.jsx(Ue,{htmlFor:"oenabled",className:"cursor-pointer",children:"Enabled"})]}),C&&p.jsxs("p",{className:"text-sm text-destructive flex items-center gap-1",children:[p.jsx("i",{className:"ri-error-warning-line"}),C]}),p.jsxs(Pn,{children:[p.jsx(_e,{type:"button",variant:"outline",onClick:()=>f(!1),children:"Cancel"}),p.jsxs(_e,{type:"submit",disabled:N,children:[N&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),h==="create"?"Import":"Save changes"]})]})]})]})}),p.jsx(Nr,{open:!!k,onOpenChange:A=>!A&&j(null),children:p.jsxs(Vn,{className:"sm:max-w-md",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"Delete OAS entry?"}),p.jsxs(On,{children:["This will permanently delete ",p.jsx("strong",{children:k==null?void 0:k.name}),". Clients using this service will lose access. This action cannot be undone."]})]}),p.jsxs(Pn,{children:[p.jsx(_e,{variant:"outline",onClick:()=>j(null),children:"Cancel"}),p.jsxs(_e,{variant:"destructive",onClick:me,disabled:L,children:[L&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Delete"]})]})]})})]})}const sh={http_headers:'{"type":"http_headers","headers":{"Authorization":"Bearer YOUR_TOKEN"}}',env:'{"type":"env","env":{"API_KEY":"YOUR_API_KEY"}}'},ih={groupId:"",name:"",description:"",transport:"http",serverUrl:"",command:"",authConfig:'{"type":"none"}',enabled:!0};function YN(){const[n,r]=v.useState([]),[s,i]=v.useState([]),[a,u]=v.useState(!0),[d,f]=v.useState(!1),[h,g]=v.useState("create"),[y,w]=v.useState(null),[b,E]=v.useState(ih),[N,S]=v.useState(!1),[C,T]=v.useState(""),[k,j]=v.useState(null),[L,B]=v.useState(!1);async function V(){try{const[A,J]=await Promise.all([tE(),Qs()]);r(A),i(J)}catch{Ge.error("Failed to load data")}finally{u(!1)}}v.useEffect(()=>{V()},[]);function $(){var A;g("create"),w(null),E({...ih,groupId:((A=s[0])==null?void 0:A.id)??""}),T(""),f(!0)}function ie(A){g("edit"),w(A.id),E({groupId:A.groupId,name:A.name,description:A.description??"",transport:A.transport,serverUrl:A.serverUrl??"",command:A.command??"",authConfig:JSON.stringify(A.authConfig,null,2),enabled:A.enabled}),T(""),f(!0)}function ne(A,J){E(Y=>({...Y,[A]:J}))}async function ce(A){A.preventDefault(),T("");let J;try{J=JSON.parse(b.authConfig)}catch{T("Auth config must be valid JSON");return}S(!0);try{const Y={groupId:b.groupId,name:b.name.trim(),description:b.description.trim(),transport:b.transport,serverUrl:b.serverUrl.trim()||void 0,command:b.command.trim()||void 0,authConfig:J};h==="create"?(await nE(Y),Ge.success("MCP server registered")):(await rE(y,{...Y,enabled:b.enabled}),Ge.success("MCP server updated")),f(!1),V()}catch(Y){Ge.error(Jl(Y,`Failed to ${h} MCP server`))}finally{S(!1)}}async function me(){if(k){B(!0);try{await oE(k.id),Ge.success("MCP server deleted"),j(null),V()}catch{Ge.error("Failed to delete MCP server")}finally{B(!1)}}}const Z=A=>{var J;return((J=s.find(Y=>Y.id===A))==null?void 0:J.name)??A.slice(0,8)};return p.jsxs("div",{className:"p-6 space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"MCP Servers"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Registered MCP servers with encrypted auth configs"})]}),p.jsxs(_e,{onClick:$,disabled:s.length===0,children:[p.jsx("i",{className:"ri-add-line"}),"Add MCP Server"]})]}),s.length===0&&!a&&p.jsxs("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 flex items-center gap-2",children:[p.jsx("i",{className:"ri-alert-line"}),"Create a group first before adding MCP servers."]}),a?p.jsx("div",{className:"flex justify-center py-12",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):n.length===0?p.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[p.jsx("i",{className:"ri-robot-line text-3xl block mb-2"}),p.jsx("p",{className:"text-sm",children:"No MCP servers yet."})]}):p.jsx("div",{className:"rounded-lg border",children:p.jsxs(Js,{children:[p.jsx(Zs,{children:p.jsxs(Hn,{children:[p.jsx(We,{children:"Name"}),p.jsx(We,{children:"Group"}),p.jsx(We,{children:"Transport"}),p.jsx(We,{children:"Status"}),p.jsx(We,{children:"Target"}),p.jsx(We,{children:"Updated"}),p.jsx(We,{className:"w-24"})]})}),p.jsx(ei,{children:n.map(A=>p.jsxs(Hn,{children:[p.jsx(Ve,{className:"font-mono font-medium",children:A.name}),p.jsx(Ve,{children:p.jsx(br,{variant:"secondary",children:Z(A.groupId)})}),p.jsx(Ve,{children:p.jsx(br,{variant:"outline",children:A.transport})}),p.jsx(Ve,{children:p.jsx(br,{variant:A.enabled?"success":"secondary",children:A.enabled?"enabled":"disabled"})}),p.jsx(Ve,{className:"text-xs text-muted-foreground max-w-[200px] truncate",children:A.serverUrl??A.command??"—"}),p.jsx(Ve,{className:"text-xs text-muted-foreground",children:zs(A.updatedAt)}),p.jsx(Ve,{children:p.jsxs("div",{className:"flex gap-1",children:[p.jsx(_e,{variant:"ghost",size:"icon",onClick:()=>ie(A),children:p.jsx("i",{className:"ri-edit-line"})}),p.jsx(_e,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>j(A),children:p.jsx("i",{className:"ri-delete-bin-line"})})]})})]},A.id))})]})}),p.jsx(Nr,{open:d,onOpenChange:f,children:p.jsxs(Vn,{className:"sm:max-w-xl max-h-[90vh] overflow-y-auto",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:h==="create"?"Add MCP Server":"Edit MCP Server"}),p.jsx(On,{children:h==="create"?"Register a new MCP server. Auth config is encrypted at rest.":"Update the MCP server details."})]}),p.jsxs("form",{onSubmit:ce,className:"space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"mname",children:["Name ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"mname",placeholder:"my-mcp-server",value:b.name,onChange:A=>ne("name",A.target.value),required:!0,disabled:h==="edit"})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{children:["Group ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsxs($s,{value:b.groupId,onValueChange:A=>ne("groupId",A),children:[p.jsx(Uo,{children:p.jsx(Ws,{placeholder:"Select group"})}),p.jsx(Bo,{children:s.map(A=>p.jsx(Gr,{value:A.id,children:A.name},A.id))})]})]})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"mdesc",children:"Description"}),p.jsx(St,{id:"mdesc",placeholder:"Optional description",value:b.description,onChange:A=>ne("description",A.target.value)})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{children:["Transport ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsxs($s,{value:b.transport,onValueChange:A=>ne("transport",A),children:[p.jsx(Uo,{children:p.jsx(Ws,{})}),p.jsxs(Bo,{children:[p.jsx(Gr,{value:"http",children:"http (SSE/streaming)"}),p.jsx(Gr,{value:"stdio",children:"stdio (subprocess)"})]})]})]}),b.transport==="http"?p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"murl",children:["Server URL ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"murl",placeholder:"https://mcp.example.com/sse",type:"url",value:b.serverUrl,onChange:A=>ne("serverUrl",A.target.value),required:b.transport==="http"})]}):p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"mcmd",children:["Command ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"mcmd",placeholder:"npx -y my-mcp-server",value:b.command,onChange:A=>ne("command",A.target.value),required:b.transport==="stdio"})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"mauth",children:["Auth Config (JSON) ",p.jsx("span",{className:"text-destructive",children:"*"}),p.jsx("span",{className:"text-muted-foreground ml-1 font-normal text-xs",children:"— none / http_headers / env"})]}),p.jsx(Xs,{id:"mauth",placeholder:b.transport==="http"?sh.http_headers:sh.env,value:b.authConfig,onChange:A=>ne("authConfig",A.target.value),rows:4,className:"font-mono text-xs",required:!0})]}),h==="edit"&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"checkbox",id:"menabled",checked:b.enabled,onChange:A=>ne("enabled",A.target.checked),className:"h-4 w-4 rounded"}),p.jsx(Ue,{htmlFor:"menabled",className:"cursor-pointer",children:"Enabled"})]}),C&&p.jsxs("p",{className:"text-sm text-destructive flex items-center gap-1",children:[p.jsx("i",{className:"ri-error-warning-line"}),C]}),p.jsxs(Pn,{children:[p.jsx(_e,{type:"button",variant:"outline",onClick:()=>f(!1),children:"Cancel"}),p.jsxs(_e,{type:"submit",disabled:N,children:[N&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),h==="create"?"Add Server":"Save changes"]})]})]})]})}),p.jsx(Nr,{open:!!k,onOpenChange:A=>!A&&j(null),children:p.jsxs(Vn,{className:"sm:max-w-md",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"Delete MCP server?"}),p.jsxs(On,{children:["This will permanently delete ",p.jsx("strong",{children:k==null?void 0:k.name}),". Clients using this server will lose access. This action cannot be undone."]})]}),p.jsxs(Pn,{children:[p.jsx(_e,{variant:"outline",onClick:()=>j(null),children:"Cancel"}),p.jsxs(_e,{variant:"destructive",onClick:me,disabled:L,children:[L&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Delete"]})]})]})})]})}function qN(n){return n.revokedAt?{label:"revoked",variant:"destructive"}:n.expiresAt&&new Date(n.expiresAt)<new Date?{label:"expired",variant:"warning"}:{label:"active",variant:"success"}}function QN(){var J;const[n,r]=v.useState([]),[s,i]=v.useState(""),[a,u]=v.useState([]),[d,f]=v.useState(!0),[h,g]=v.useState(!1),[y,w]=v.useState(!1),[b,E]=v.useState(""),[N,S]=v.useState("86400"),[C,T]=v.useState(!1),[k,j]=v.useState(null),[L,B]=v.useState(!1),[V,$]=v.useState(null),[ie,ne]=v.useState(!1);v.useEffect(()=>{Qs().then(Y=>{r(Y),Y.length>0&&i(Y[0].id)}).finally(()=>f(!1))},[]),v.useEffect(()=>{s&&(g(!0),jl(s).then(u).catch(()=>Ge.error("Failed to load tokens")).finally(()=>g(!1)))},[s]);async function ce(Y){if(Y.preventDefault(),!!s){T(!0);try{const te=await Q1(s,{name:b.trim(),ttlSec:parseInt(N,10)||void 0});j(te.jwt),E("");const se=await jl(s);u(se)}catch(te){Ge.error(Jl(te,"Failed to issue token"))}finally{T(!1)}}}async function me(){if(V){ne(!0);try{await X1(V.id),Ge.success("Token revoked"),$(null);const Y=await jl(s);u(Y)}catch{Ge.error("Failed to revoke token")}finally{ne(!1)}}}v.useEffect(()=>{if(!L)return;const Y=setTimeout(()=>B(!1),2e3);return()=>clearTimeout(Y)},[L]);function Z(){k&&navigator.clipboard.writeText(k).then(()=>B(!0))}function A(){w(!1),j(null),B(!1)}return d?p.jsx("div",{className:"flex h-full items-center justify-center",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):p.jsxs("div",{className:"p-6 space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Tokens"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Group JWTs (RS256) for client authentication"})]}),p.jsxs(_e,{onClick:()=>{w(!0),j(null)},disabled:!s,children:[p.jsx("i",{className:"ri-key-2-line"}),"Issue Token"]})]}),n.length===0?p.jsxs("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 flex items-center gap-2",children:[p.jsx("i",{className:"ri-alert-line"}),"Create a group first to issue tokens."]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Ue,{className:"shrink-0 text-sm",children:"Group:"}),p.jsx("div",{className:"w-56",children:p.jsxs($s,{value:s,onValueChange:i,children:[p.jsx(Uo,{children:p.jsx(Ws,{})}),p.jsx(Bo,{children:n.map(Y=>p.jsx(Gr,{value:Y.id,children:Y.name},Y.id))})]})})]}),h?p.jsx("div",{className:"flex justify-center py-12",children:p.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):a.length===0?p.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[p.jsx("i",{className:"ri-key-line text-3xl block mb-2"}),p.jsx("p",{className:"text-sm",children:"No tokens for this group."})]}):p.jsx("div",{className:"rounded-lg border",children:p.jsxs(Js,{children:[p.jsx(Zs,{children:p.jsxs(Hn,{children:[p.jsx(We,{children:"Name"}),p.jsx(We,{children:"Status"}),p.jsx(We,{children:"Expires"}),p.jsx(We,{children:"Created"}),p.jsx(We,{className:"w-20"})]})}),p.jsx(ei,{children:a.map(Y=>{const{label:te,variant:se}=qN(Y);return p.jsxs(Hn,{children:[p.jsx(Ve,{className:"font-mono font-medium",children:Y.name}),p.jsx(Ve,{children:p.jsx(br,{variant:se,children:te})}),p.jsx(Ve,{className:"text-xs text-muted-foreground",children:Y.expiresAt?zs(Y.expiresAt):p.jsx("span",{className:"italic",children:"never"})}),p.jsx(Ve,{className:"text-xs text-muted-foreground",children:zs(Y.createdAt)}),p.jsx(Ve,{children:!Y.revokedAt&&p.jsx(_e,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>$(Y),children:p.jsx("i",{className:"ri-forbid-line"})})})]},Y.id)})})]})})]}),p.jsx(Nr,{open:y,onOpenChange:Y=>!Y&&A(),children:p.jsx(Vn,{className:"sm:max-w-md",children:k?p.jsxs(p.Fragment,{children:[p.jsxs(jn,{children:[p.jsxs(Tn,{className:"flex items-center gap-2 text-green-700",children:[p.jsx("i",{className:"ri-checkbox-circle-line text-lg"}),"Token issued!"]}),p.jsxs(On,{children:["Copy your JWT now — ",p.jsx("strong",{children:"it will not be shown again"}),"."]})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx(Xs,{readOnly:!0,value:k,rows:4,className:"font-mono text-xs break-all bg-muted"}),p.jsxs(_e,{className:"w-full",variant:"outline",onClick:Z,children:[p.jsx("i",{className:L?"ri-checkbox-circle-line text-green-600":"ri-clipboard-line"}),L?"Copied!":"Copy to clipboard"]})]}),p.jsx(Pn,{children:p.jsx(_e,{onClick:A,children:"Done"})})]}):p.jsxs(p.Fragment,{children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"Issue Token"}),p.jsxs(On,{children:["Issue a new RS256-signed JWT for group ",p.jsx("strong",{children:(J=n.find(Y=>Y.id===s))==null?void 0:J.name}),"."]})]}),p.jsxs("form",{onSubmit:ce,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(Ue,{htmlFor:"tname",children:["Token name ",p.jsx("span",{className:"text-destructive",children:"*"})]}),p.jsx(St,{id:"tname",placeholder:"agent-prod",value:b,onChange:Y=>E(Y.target.value),required:!0})]}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(Ue,{htmlFor:"tttl",children:"TTL (seconds)"}),p.jsx(St,{id:"tttl",type:"number",min:"0",placeholder:"86400",value:N,onChange:Y=>S(Y.target.value)}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"0 = never expires"})]}),p.jsxs(Pn,{children:[p.jsx(_e,{type:"button",variant:"outline",onClick:A,children:"Cancel"}),p.jsxs(_e,{type:"submit",disabled:C,children:[C&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Issue"]})]})]})]})})}),p.jsx(Nr,{open:!!V,onOpenChange:Y=>!Y&&$(null),children:p.jsxs(Vn,{className:"sm:max-w-md",children:[p.jsxs(jn,{children:[p.jsx(Tn,{children:"Revoke token?"}),p.jsxs(On,{children:["This will immediately revoke ",p.jsx("strong",{children:V==null?void 0:V.name}),". Any client using this token will lose access. This action cannot be undone."]})]}),p.jsxs(Pn,{children:[p.jsx(_e,{variant:"outline",onClick:()=>$(null),children:"Cancel"}),p.jsxs(_e,{variant:"destructive",onClick:me,disabled:ie,children:[ie&&p.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Revoke"]})]})]})})]})}function XN({children:n}){return wh()?p.jsx(p.Fragment,{children:n}):p.jsx(hc,{to:"/login",replace:!0})}function JN(){return p.jsxs(U0,{basename:"/admin-ui",children:[p.jsx(xw,{position:"top-right",richColors:!0,closeButton:!0}),p.jsxs(_0,{children:[p.jsx(Nn,{path:"/login",element:p.jsx(aE,{})}),p.jsxs(Nn,{element:p.jsx(XN,{children:p.jsx(mS,{})}),children:[p.jsx(Nn,{index:!0,element:p.jsx(hc,{to:"/dashboard",replace:!0})}),p.jsx(Nn,{path:"/dashboard",element:p.jsx(cE,{})}),p.jsx(Nn,{path:"/groups",element:p.jsx(VC,{})}),p.jsx(Nn,{path:"/oas",element:p.jsx(GN,{})}),p.jsx(Nn,{path:"/mcp",element:p.jsx(YN,{})}),p.jsx(Nn,{path:"/tokens",element:p.jsx(QN,{})})]}),p.jsx(Nn,{path:"*",element:p.jsx(hc,{to:"/dashboard",replace:!0})})]})]})}zx.createRoot(document.getElementById("root")).render(p.jsx(v.StrictMode,{children:p.jsx(JN,{})}));
|