@codeexpander/plugin-html 0.1.0
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/LICENSE +22 -0
- package/dist/assets/index-BTHcrWgh.css +1 -0
- package/dist/assets/index-uFUkUq5X.js +397 -0
- package/dist/index.html +4 -0
- package/dist/plugin.json +13 -0
- package/package.json +35 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
function cR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ig={exports:{}},Hl={},Ag={exports:{}},fe={};/**
|
|
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 Ms=Symbol.for("react.element"),uR=Symbol.for("react.portal"),dR=Symbol.for("react.fragment"),fR=Symbol.for("react.strict_mode"),pR=Symbol.for("react.profiler"),mR=Symbol.for("react.provider"),hR=Symbol.for("react.context"),vR=Symbol.for("react.forward_ref"),gR=Symbol.for("react.suspense"),yR=Symbol.for("react.memo"),xR=Symbol.for("react.lazy"),sh=Symbol.iterator;function wR(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var Og={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,Lg={};function aa(e,t,n){this.props=e,this.context=t,this.refs=Lg,this.updater=n||Og}aa.prototype.isReactComponent={};aa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};aa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $g(){}$g.prototype=aa.prototype;function _f(e,t,n){this.props=e,this.context=t,this.refs=Lg,this.updater=n||Og}var Mf=_f.prototype=new $g;Mf.constructor=_f;Dg(Mf,aa.prototype);Mf.isPureReactComponent=!0;var ih=Array.isArray,zg=Object.prototype.hasOwnProperty,jf={current:null},Fg={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)zg.call(t,r)&&!Fg.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Ms,type:e,key:a,ref:s,props:o,_owner:jf.current}}function bR(e,t){return{$$typeof:Ms,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function If(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ms}function SR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lh=/\/+/g;function ru(e,t){return typeof e=="object"&&e!==null&&e.key!=null?SR(""+e.key):t.toString(36)}function Ii(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ms:case uR:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+ru(s,0):r,ih(o)?(n="",e!=null&&(n=e.replace(lh,"$&/")+"/"),Ii(o,t,n,"",function(d){return d})):o!=null&&(If(o)&&(o=bR(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(lh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",ih(e))for(var i=0;i<e.length;i++){a=e[i];var l=r+ru(a,i);s+=Ii(a,t,n,l,o)}else if(l=wR(e),typeof l=="function")for(e=l.call(e),i=0;!(a=e.next()).done;)a=a.value,l=r+ru(a,i++),s+=Ii(a,t,n,l,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function oi(e,t,n){if(e==null)return e;var r=[],o=0;return Ii(e,r,"","",function(a){return t.call(n,a,o++)}),r}function CR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ct={current:null},Ai={transition:null},ER={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:Ai,ReactCurrentOwner:jf};function Bg(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:oi,forEach:function(e,t,n){oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oi(e,function(){t++}),t},toArray:function(e){return oi(e,function(t){return t})||[]},only:function(e){if(!If(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=aa;fe.Fragment=dR;fe.Profiler=pR;fe.PureComponent=_f;fe.StrictMode=fR;fe.Suspense=gR;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ER;fe.act=Bg;fe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=jf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)zg.call(t,l)&&!Fg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){i=Array(l);for(var d=0;d<l;d++)i[d]=arguments[d+2];r.children=i}return{$$typeof:Ms,type:e.type,key:o,ref:a,props:r,_owner:s}};fe.createContext=function(e){return e={$$typeof:hR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mR,_context:e},e.Consumer=e};fe.createElement=Hg;fe.createFactory=function(e){var t=Hg.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:vR,render:e}};fe.isValidElement=If;fe.lazy=function(e){return{$$typeof:xR,_payload:{_status:-1,_result:e},_init:CR}};fe.memo=function(e,t){return{$$typeof:yR,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ai.transition;Ai.transition={};try{e()}finally{Ai.transition=t}};fe.unstable_act=Bg;fe.useCallback=function(e,t){return ct.current.useCallback(e,t)};fe.useContext=function(e){return ct.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return ct.current.useDeferredValue(e)};fe.useEffect=function(e,t){return ct.current.useEffect(e,t)};fe.useId=function(){return ct.current.useId()};fe.useImperativeHandle=function(e,t,n){return ct.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return ct.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return ct.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return ct.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return ct.current.useReducer(e,t,n)};fe.useRef=function(e){return ct.current.useRef(e)};fe.useState=function(e){return ct.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return ct.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return ct.current.useTransition()};fe.version="18.3.1";Ag.exports=fe;var c=Ag.exports;const F=Fl(c),Bl=cR({__proto__:null,default:F},[c]);/**
|
|
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 NR=c,RR=Symbol.for("react.element"),PR=Symbol.for("react.fragment"),TR=Object.prototype.hasOwnProperty,kR=NR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_R={key:!0,ref:!0,__self:!0,__source:!0};function Vg(e,t,n){var r,o={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)TR.call(t,r)&&!_R.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:RR,type:e,key:a,ref:s,props:o,_owner:kR.current}}Hl.Fragment=PR;Hl.jsx=Vg;Hl.jsxs=Vg;Ig.exports=Hl;var u=Ig.exports,ed={},Ug={exports:{}},It={},Wg={exports:{}},Gg={};/**
|
|
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
|
+
*/(function(e){function t(I,T){var W=I.length;I.push(T);e:for(;0<W;){var J=W-1>>>1,_=I[J];if(0<o(_,T))I[J]=T,I[W]=_,W=J;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var T=I[0],W=I.pop();if(W!==T){I[0]=W;e:for(var J=0,_=I.length,A=_>>>1;J<A;){var z=2*(J+1)-1,H=I[z],G=z+1,j=I[G];if(0>o(H,W))G<_&&0>o(j,H)?(I[J]=j,I[G]=W,J=G):(I[J]=H,I[z]=W,J=z);else if(G<_&&0>o(j,W))I[J]=j,I[G]=W,J=G;else break e}}return T}function o(I,T){var W=I.sortIndex-T.sortIndex;return W!==0?W:I.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var l=[],d=[],p=1,f=null,m=3,h=!1,x=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(I){for(var T=n(d);T!==null;){if(T.callback===null)r(d);else if(T.startTime<=I)r(d),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(d)}}function S(I){if(g=!1,w(I),!x)if(n(l)!==null)x=!0,B(C);else{var T=n(d);T!==null&&Z(S,T.startTime-I)}}function C(I,T){x=!1,g&&(g=!1,v(R),R=-1),h=!0;var W=m;try{for(w(T),f=n(l);f!==null&&(!(f.expirationTime>T)||I&&!k());){var J=f.callback;if(typeof J=="function"){f.callback=null,m=f.priorityLevel;var _=J(f.expirationTime<=T);T=e.unstable_now(),typeof _=="function"?f.callback=_:f===n(l)&&r(l),w(T)}else r(l);f=n(l)}if(f!==null)var A=!0;else{var z=n(d);z!==null&&Z(S,z.startTime-T),A=!1}return A}finally{f=null,m=W,h=!1}}var E=!1,N=null,R=-1,P=5,O=-1;function k(){return!(e.unstable_now()-O<P)}function D(){if(N!==null){var I=e.unstable_now();O=I;var T=!0;try{T=N(!0,I)}finally{T?V():(E=!1,N=null)}}else E=!1}var V;if(typeof y=="function")V=function(){y(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=D,V=function(){U.postMessage(null)}}else V=function(){b(D,0)};function B(I){N=I,E||(E=!0,V())}function Z(I,T){R=b(function(){I(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,B(C))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(m){case 1:case 2:case 3:var T=3;break;default:T=m}var W=m;m=T;try{return I()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,T){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var W=m;m=I;try{return T()}finally{m=W}},e.unstable_scheduleCallback=function(I,T,W){var J=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?J+W:J):W=J,I){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=W+_,I={id:p++,callback:T,priorityLevel:I,startTime:W,expirationTime:_,sortIndex:-1},W>J?(I.sortIndex=W,t(d,I),n(l)===null&&I===n(d)&&(g?(v(R),R=-1):g=!0,Z(S,W-J))):(I.sortIndex=_,t(l,I),x||h||(x=!0,B(C))),I},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(I){var T=m;return function(){var W=m;m=T;try{return I.apply(this,arguments)}finally{m=W}}}})(Gg);Wg.exports=Gg;var MR=Wg.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 jR=c,jt=MR;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Kg=new Set,os={};function no(e,t){Go(e,t),Go(e+"Capture",t)}function Go(e,t){for(os[e]=t,e=0;e<t.length;e++)Kg.add(t[e])}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=Object.prototype.hasOwnProperty,IR=/^[: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]*$/,ch={},uh={};function AR(e){return td.call(uh,e)?!0:td.call(ch,e)?!1:IR.test(e)?uh[e]=!0:(ch[e]=!0,!1)}function OR(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function DR(e,t,n,r){if(t===null||typeof t>"u"||OR(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,o,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new ut(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){Je[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Af=/[\-:]([a-z])/g;function Of(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(Af,Of);Je[t]=new ut(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(Af,Of);Je[t]=new ut(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(Af,Of);Je[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Df(e,t,n,r){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(DR(t,n,o,r)&&(n=null),r||o===null?AR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Fn=jR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ai=Symbol.for("react.element"),So=Symbol.for("react.portal"),Co=Symbol.for("react.fragment"),Lf=Symbol.for("react.strict_mode"),nd=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),$f=Symbol.for("react.forward_ref"),rd=Symbol.for("react.suspense"),od=Symbol.for("react.suspense_list"),zf=Symbol.for("react.memo"),tr=Symbol.for("react.lazy"),qg=Symbol.for("react.offscreen"),dh=Symbol.iterator;function Sa(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var De=Object.assign,ou;function Da(e){if(ou===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ou=t&&t[1]||""}return`
|
|
34
|
+
`+ou+e}var au=!1;function su(e,t){if(!e||au)return"";au=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
|
|
35
|
+
`),a=r.stack.split(`
|
|
36
|
+
`),s=o.length-1,i=a.length-1;1<=s&&0<=i&&o[s]!==a[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==a[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==a[i]){var l=`
|
|
37
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{au=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Da(e):""}function LR(e){switch(e.tag){case 5:return Da(e.type);case 16:return Da("Lazy");case 13:return Da("Suspense");case 19:return Da("SuspenseList");case 0:case 2:case 15:return e=su(e.type,!1),e;case 11:return e=su(e.type.render,!1),e;case 1:return e=su(e.type,!0),e;default:return""}}function ad(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 Co:return"Fragment";case So:return"Portal";case nd:return"Profiler";case Lf:return"StrictMode";case rd:return"Suspense";case od:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case $f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zf:return t=e.displayName||null,t!==null?t:ad(e.type)||"Memo";case tr:t=e._payload,e=e._init;try{return ad(e(t))}catch{}}return null}function $R(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 ad(t);case 8:return t===Lf?"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 vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zR(e){var t=Qg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function si(e){e._valueTracker||(e._valueTracker=zR(e))}function Zg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(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 sd(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jg(e,t){t=t.checked,t!=null&&Df(e,"checked",t,!1)}function id(e,t){Jg(e,t);var n=vr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ld(e,t.type,n):t.hasOwnProperty("defaultValue")&&ld(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ph(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ld(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var La=Array.isArray;function Oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function cd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(X(91));return De({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(X(92));if(La(n)){if(1<n.length)throw Error(X(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vr(n)}}function ey(e,t){var n=vr(t.value),r=vr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ty(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 ud(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ty(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,ny=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wa={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},FR=["Webkit","ms","Moz","O"];Object.keys(Wa).forEach(function(e){FR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wa[t]=Wa[e]})});function ry(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wa.hasOwnProperty(e)&&Wa[e]?(""+t).trim():t+"px"}function oy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ry(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var HR=De({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 dd(e,t){if(t){if(HR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function fd(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 pd=null;function Ff(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var md=null,Do=null,Lo=null;function vh(e){if(e=As(e)){if(typeof md!="function")throw Error(X(280));var t=e.stateNode;t&&(t=Kl(t),md(e.stateNode,e.type,t))}}function ay(e){Do?Lo?Lo.push(e):Lo=[e]:Do=e}function sy(){if(Do){var e=Do,t=Lo;if(Lo=Do=null,vh(e),t)for(e=0;e<t.length;e++)vh(t[e])}}function iy(e,t){return e(t)}function ly(){}var iu=!1;function cy(e,t,n){if(iu)return e(t,n);iu=!0;try{return iy(e,t,n)}finally{iu=!1,(Do!==null||Lo!==null)&&(ly(),sy())}}function ss(e,t){var n=e.stateNode;if(n===null)return null;var r=Kl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(X(231,t,typeof n));return n}var hd=!1;if(An)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){hd=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{hd=!1}function BR(e,t,n,r,o,a,s,i,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var Ga=!1,qi=null,Qi=!1,vd=null,VR={onError:function(e){Ga=!0,qi=e}};function UR(e,t,n,r,o,a,s,i,l){Ga=!1,qi=null,BR.apply(VR,arguments)}function WR(e,t,n,r,o,a,s,i,l){if(UR.apply(this,arguments),Ga){if(Ga){var d=qi;Ga=!1,qi=null}else throw Error(X(198));Qi||(Qi=!0,vd=d)}}function ro(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function uy(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 gh(e){if(ro(e)!==e)throw Error(X(188))}function GR(e){var t=e.alternate;if(!t){if(t=ro(e),t===null)throw Error(X(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return gh(o),e;if(a===r)return gh(o),t;a=a.sibling}throw Error(X(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=a;break}if(i===r){s=!0,r=o,n=a;break}i=i.sibling}if(!s){for(i=a.child;i;){if(i===n){s=!0,n=a,r=o;break}if(i===r){s=!0,r=a,n=o;break}i=i.sibling}if(!s)throw Error(X(189))}}if(n.alternate!==r)throw Error(X(190))}if(n.tag!==3)throw Error(X(188));return n.stateNode.current===n?e:t}function dy(e){return e=GR(e),e!==null?fy(e):null}function fy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fy(e);if(t!==null)return t;e=e.sibling}return null}var py=jt.unstable_scheduleCallback,yh=jt.unstable_cancelCallback,KR=jt.unstable_shouldYield,YR=jt.unstable_requestPaint,He=jt.unstable_now,XR=jt.unstable_getCurrentPriorityLevel,Hf=jt.unstable_ImmediatePriority,my=jt.unstable_UserBlockingPriority,Zi=jt.unstable_NormalPriority,qR=jt.unstable_LowPriority,hy=jt.unstable_IdlePriority,Vl=null,xn=null;function QR(e){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(Vl,e,void 0,(e.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:eP,ZR=Math.log,JR=Math.LN2;function eP(e){return e>>>=0,e===0?32:31-(ZR(e)/JR|0)|0}var li=64,ci=4194304;function $a(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 Ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=$a(i):(a&=s,a!==0&&(r=$a(a)))}else s=n&~o,s!==0?r=$a(s):a!==0&&(r=$a(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-nn(t),o=1<<n,r|=e[n],t&=~o;return r}function tP(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 nP(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-nn(a),i=1<<s,l=o[s];l===-1?(!(i&n)||i&r)&&(o[s]=tP(i,t)):l<=t&&(e.expiredLanes|=i),a&=~i}}function gd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vy(){var e=li;return li<<=1,!(li&4194240)&&(li=64),e}function lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function rP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-nn(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function Bf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-nn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xe=0;function gy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yy,Vf,xy,wy,by,yd=!1,ui=[],ir=null,lr=null,cr=null,is=new Map,ls=new Map,rr=[],oP="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 xh(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ls.delete(t.pointerId)}}function Ea(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=As(t),t!==null&&Vf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function aP(e,t,n,r,o){switch(t){case"focusin":return ir=Ea(ir,e,t,n,r,o),!0;case"dragenter":return lr=Ea(lr,e,t,n,r,o),!0;case"mouseover":return cr=Ea(cr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return is.set(a,Ea(is.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,ls.set(a,Ea(ls.get(a)||null,e,t,n,r,o)),!0}return!1}function Sy(e){var t=zr(e.target);if(t!==null){var n=ro(t);if(n!==null){if(t=n.tag,t===13){if(t=uy(n),t!==null){e.blockedOn=t,by(e.priority,function(){xy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pd=r,n.target.dispatchEvent(r),pd=null}else return t=As(n),t!==null&&Vf(t),e.blockedOn=n,!1;t.shift()}return!0}function wh(e,t,n){Oi(e)&&n.delete(t)}function sP(){yd=!1,ir!==null&&Oi(ir)&&(ir=null),lr!==null&&Oi(lr)&&(lr=null),cr!==null&&Oi(cr)&&(cr=null),is.forEach(wh),ls.forEach(wh)}function Na(e,t){e.blockedOn===t&&(e.blockedOn=null,yd||(yd=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,sP)))}function cs(e){function t(o){return Na(o,e)}if(0<ui.length){Na(ui[0],e);for(var n=1;n<ui.length;n++){var r=ui[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ir!==null&&Na(ir,e),lr!==null&&Na(lr,e),cr!==null&&Na(cr,e),is.forEach(t),ls.forEach(t),n=0;n<rr.length;n++)r=rr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rr.length&&(n=rr[0],n.blockedOn===null);)Sy(n),n.blockedOn===null&&rr.shift()}var $o=Fn.ReactCurrentBatchConfig,el=!0;function iP(e,t,n,r){var o=xe,a=$o.transition;$o.transition=null;try{xe=1,Uf(e,t,n,r)}finally{xe=o,$o.transition=a}}function lP(e,t,n,r){var o=xe,a=$o.transition;$o.transition=null;try{xe=4,Uf(e,t,n,r)}finally{xe=o,$o.transition=a}}function Uf(e,t,n,r){if(el){var o=xd(e,t,n,r);if(o===null)yu(e,t,r,tl,n),xh(e,r);else if(aP(o,e,t,n,r))r.stopPropagation();else if(xh(e,r),t&4&&-1<oP.indexOf(e)){for(;o!==null;){var a=As(o);if(a!==null&&yy(a),a=xd(e,t,n,r),a===null&&yu(e,t,r,tl,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else yu(e,t,r,null,n)}}var tl=null;function xd(e,t,n,r){if(tl=null,e=Ff(r),e=zr(e),e!==null)if(t=ro(e),t===null)e=null;else if(n=t.tag,n===13){if(e=uy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return tl=e,null}function Cy(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(XR()){case Hf:return 1;case my:return 4;case Zi:case qR:return 16;case hy:return 536870912;default:return 16}default:return 16}}var ar=null,Wf=null,Di=null;function Ey(){if(Di)return Di;var e,t=Wf,n=t.length,r,o="value"in ar?ar.value:ar.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[a-r];r++);return Di=o.slice(e,1<r?1-r:void 0)}function Li(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 di(){return!0}function bh(){return!1}function At(e){function t(n,r,o,a,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(a):a[i]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?di:bh,this.isPropagationStopped=bh,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gf=At(sa),Is=De({},sa,{view:0,detail:0}),cP=At(Is),cu,uu,Ra,Ul=De({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kf,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!==Ra&&(Ra&&e.type==="mousemove"?(cu=e.screenX-Ra.screenX,uu=e.screenY-Ra.screenY):uu=cu=0,Ra=e),cu)},movementY:function(e){return"movementY"in e?e.movementY:uu}}),Sh=At(Ul),uP=De({},Ul,{dataTransfer:0}),dP=At(uP),fP=De({},Is,{relatedTarget:0}),du=At(fP),pP=De({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),mP=At(pP),hP=De({},sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vP=At(hP),gP=De({},sa,{data:0}),Ch=At(gP),yP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xP={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"},wP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wP[e])?!!t[e]:!1}function Kf(){return bP}var SP=De({},Is,{key:function(e){if(e.key){var t=yP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kf,charCode:function(e){return e.type==="keypress"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),CP=At(SP),EP=De({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=At(EP),NP=De({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kf}),RP=At(NP),PP=De({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),TP=At(PP),kP=De({},Ul,{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}),_P=At(kP),MP=[9,13,27,32],Yf=An&&"CompositionEvent"in window,Ka=null;An&&"documentMode"in document&&(Ka=document.documentMode);var jP=An&&"TextEvent"in window&&!Ka,Ny=An&&(!Yf||Ka&&8<Ka&&11>=Ka),Nh=" ",Rh=!1;function Ry(e,t){switch(e){case"keyup":return MP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function IP(e,t){switch(e){case"compositionend":return Py(t);case"keypress":return t.which!==32?null:(Rh=!0,Nh);case"textInput":return e=t.data,e===Nh&&Rh?null:e;default:return null}}function AP(e,t){if(Eo)return e==="compositionend"||!Yf&&Ry(e,t)?(e=Ey(),Di=Wf=ar=null,Eo=!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 Ny&&t.locale!=="ko"?null:t.data;default:return null}}var OP={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 Ph(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OP[e.type]:t==="textarea"}function Ty(e,t,n,r){ay(r),t=nl(t,"onChange"),0<t.length&&(n=new Gf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ya=null,us=null;function DP(e){zy(e,0)}function Wl(e){var t=Po(e);if(Zg(t))return e}function LP(e,t){if(e==="change")return t}var ky=!1;if(An){var fu;if(An){var pu="oninput"in document;if(!pu){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),pu=typeof Th.oninput=="function"}fu=pu}else fu=!1;ky=fu&&(!document.documentMode||9<document.documentMode)}function kh(){Ya&&(Ya.detachEvent("onpropertychange",_y),us=Ya=null)}function _y(e){if(e.propertyName==="value"&&Wl(us)){var t=[];Ty(t,us,e,Ff(e)),cy(DP,t)}}function $P(e,t,n){e==="focusin"?(kh(),Ya=t,us=n,Ya.attachEvent("onpropertychange",_y)):e==="focusout"&&kh()}function zP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wl(us)}function FP(e,t){if(e==="click")return Wl(t)}function HP(e,t){if(e==="input"||e==="change")return Wl(t)}function BP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:BP;function ds(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!td.call(t,o)||!an(e[o],t[o]))return!1}return!0}function _h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mh(e,t){var n=_h(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_h(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function Xf(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 VP(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&Xf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Mh(n,a);var s=Mh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var UP=An&&"documentMode"in document&&11>=document.documentMode,No=null,wd=null,Xa=null,bd=!1;function jh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||No==null||No!==Xi(r)||(r=No,"selectionStart"in r&&Xf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xa&&ds(Xa,r)||(Xa=r,r=nl(wd,"onSelect"),0<r.length&&(t=new Gf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=No)))}function fi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ro={animationend:fi("Animation","AnimationEnd"),animationiteration:fi("Animation","AnimationIteration"),animationstart:fi("Animation","AnimationStart"),transitionend:fi("Transition","TransitionEnd")},mu={},Iy={};An&&(Iy=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function Gl(e){if(mu[e])return mu[e];if(!Ro[e])return e;var t=Ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Iy)return mu[e]=t[n];return e}var Ay=Gl("animationend"),Oy=Gl("animationiteration"),Dy=Gl("animationstart"),Ly=Gl("transitionend"),$y=new Map,Ih="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 Cr(e,t){$y.set(e,t),no(t,[e])}for(var hu=0;hu<Ih.length;hu++){var vu=Ih[hu],WP=vu.toLowerCase(),GP=vu[0].toUpperCase()+vu.slice(1);Cr(WP,"on"+GP)}Cr(Ay,"onAnimationEnd");Cr(Oy,"onAnimationIteration");Cr(Dy,"onAnimationStart");Cr("dblclick","onDoubleClick");Cr("focusin","onFocus");Cr("focusout","onBlur");Cr(Ly,"onTransitionEnd");Go("onMouseEnter",["mouseout","mouseover"]);Go("onMouseLeave",["mouseout","mouseover"]);Go("onPointerEnter",["pointerout","pointerover"]);Go("onPointerLeave",["pointerout","pointerover"]);no("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));no("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));no("onBeforeInput",["compositionend","keypress","textInput","paste"]);no("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));no("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));no("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var za="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(" "),KP=new Set("cancel close invalid load scroll toggle".split(" ").concat(za));function Ah(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,WR(r,t,void 0,e),e.currentTarget=null}function zy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,d=i.currentTarget;if(i=i.listener,l!==a&&o.isPropagationStopped())break e;Ah(o,i,d),a=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,d=i.currentTarget,i=i.listener,l!==a&&o.isPropagationStopped())break e;Ah(o,i,d),a=l}}}if(Qi)throw e=vd,Qi=!1,vd=null,e}function Re(e,t){var n=t[Rd];n===void 0&&(n=t[Rd]=new Set);var r=e+"__bubble";n.has(r)||(Fy(t,e,2,!1),n.add(r))}function gu(e,t,n){var r=0;t&&(r|=4),Fy(n,e,r,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[pi]){e[pi]=!0,Kg.forEach(function(n){n!=="selectionchange"&&(KP.has(n)||gu(n,!1,e),gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,gu("selectionchange",!1,t))}}function Fy(e,t,n,r){switch(Cy(t)){case 1:var o=iP;break;case 4:o=lP;break;default:o=Uf}n=o.bind(null,t,n,e),o=void 0,!hd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function yu(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=zr(i),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}i=i.parentNode}}r=r.return}cy(function(){var d=a,p=Ff(n),f=[];e:{var m=$y.get(e);if(m!==void 0){var h=Gf,x=e;switch(e){case"keypress":if(Li(n)===0)break e;case"keydown":case"keyup":h=CP;break;case"focusin":x="focus",h=du;break;case"focusout":x="blur",h=du;break;case"beforeblur":case"afterblur":h=du;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=dP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=RP;break;case Ay:case Oy:case Dy:h=mP;break;case Ly:h=TP;break;case"scroll":h=cP;break;case"wheel":h=_P;break;case"copy":case"cut":case"paste":h=vP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Eh}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?m!==null?m+"Capture":null:m;g=[];for(var y=d,w;y!==null;){w=y;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,v!==null&&(S=ss(y,v),S!=null&&g.push(ps(y,S,w)))),b)break;y=y.return}0<g.length&&(m=new h(m,x,null,n,p),f.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==pd&&(x=n.relatedTarget||n.fromElement)&&(zr(x)||x[On]))break e;if((h||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,h?(x=n.relatedTarget||n.toElement,h=d,x=x?zr(x):null,x!==null&&(b=ro(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(h=null,x=d),h!==x)){if(g=Sh,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=Eh,S="onPointerLeave",v="onPointerEnter",y="pointer"),b=h==null?m:Po(h),w=x==null?m:Po(x),m=new g(S,y+"leave",h,n,p),m.target=b,m.relatedTarget=w,S=null,zr(p)===d&&(g=new g(v,y+"enter",x,n,p),g.target=w,g.relatedTarget=b,S=g),b=S,h&&x)t:{for(g=h,v=x,y=0,w=g;w;w=mo(w))y++;for(w=0,S=v;S;S=mo(S))w++;for(;0<y-w;)g=mo(g),y--;for(;0<w-y;)v=mo(v),w--;for(;y--;){if(g===v||v!==null&&g===v.alternate)break t;g=mo(g),v=mo(v)}g=null}else g=null;h!==null&&Oh(f,m,h,g,!1),x!==null&&b!==null&&Oh(f,b,x,g,!0)}}e:{if(m=d?Po(d):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var C=LP;else if(Ph(m))if(ky)C=HP;else{C=zP;var E=$P}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=FP);if(C&&(C=C(e,d))){Ty(f,C,n,p);break e}E&&E(e,m,d),e==="focusout"&&(E=m._wrapperState)&&E.controlled&&m.type==="number"&&ld(m,"number",m.value)}switch(E=d?Po(d):window,e){case"focusin":(Ph(E)||E.contentEditable==="true")&&(No=E,wd=d,Xa=null);break;case"focusout":Xa=wd=No=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,jh(f,n,p);break;case"selectionchange":if(UP)break;case"keydown":case"keyup":jh(f,n,p)}var N;if(Yf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Eo?Ry(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Ny&&n.locale!=="ko"&&(Eo||R!=="onCompositionStart"?R==="onCompositionEnd"&&Eo&&(N=Ey()):(ar=p,Wf="value"in ar?ar.value:ar.textContent,Eo=!0)),E=nl(d,R),0<E.length&&(R=new Ch(R,e,null,n,p),f.push({event:R,listeners:E}),N?R.data=N:(N=Py(n),N!==null&&(R.data=N)))),(N=jP?IP(e,n):AP(e,n))&&(d=nl(d,"onBeforeInput"),0<d.length&&(p=new Ch("onBeforeInput","beforeinput",null,n,p),f.push({event:p,listeners:d}),p.data=N))}zy(f,t)})}function ps(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=ss(e,n),a!=null&&r.unshift(ps(e,a,o)),a=ss(e,t),a!=null&&r.push(ps(e,a,o))),e=e.return}return r}function mo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Oh(e,t,n,r,o){for(var a=t._reactName,s=[];n!==null&&n!==r;){var i=n,l=i.alternate,d=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&d!==null&&(i=d,o?(l=ss(n,a),l!=null&&s.unshift(ps(n,l,i))):o||(l=ss(n,a),l!=null&&s.push(ps(n,l,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var YP=/\r\n?/g,XP=/\u0000|\uFFFD/g;function Dh(e){return(typeof e=="string"?e:""+e).replace(YP,`
|
|
38
|
+
`).replace(XP,"")}function mi(e,t,n){if(t=Dh(t),Dh(e)!==t&&n)throw Error(X(425))}function rl(){}var Sd=null,Cd=null;function Ed(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 Nd=typeof setTimeout=="function"?setTimeout:void 0,qP=typeof clearTimeout=="function"?clearTimeout:void 0,Lh=typeof Promise=="function"?Promise:void 0,QP=typeof queueMicrotask=="function"?queueMicrotask:typeof Lh<"u"?function(e){return Lh.resolve(null).then(e).catch(ZP)}:Nd;function ZP(e){setTimeout(function(){throw e})}function xu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),cs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);cs(t)}function ur(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 $h(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ia=Math.random().toString(36).slice(2),vn="__reactFiber$"+ia,ms="__reactProps$"+ia,On="__reactContainer$"+ia,Rd="__reactEvents$"+ia,JP="__reactListeners$"+ia,eT="__reactHandles$"+ia;function zr(e){var t=e[vn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[vn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$h(e);e!==null;){if(n=e[vn])return n;e=$h(e)}return t}e=n,n=e.parentNode}return null}function As(e){return e=e[vn]||e[On],!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(X(33))}function Kl(e){return e[ms]||null}var Pd=[],To=-1;function Er(e){return{current:e}}function Pe(e){0>To||(e.current=Pd[To],Pd[To]=null,To--)}function Ee(e,t){To++,Pd[To]=e.current,e.current=t}var gr={},at=Er(gr),vt=Er(!1),Ur=gr;function Ko(e,t){var n=e.type.contextTypes;if(!n)return gr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function ol(){Pe(vt),Pe(at)}function zh(e,t,n){if(at.current!==gr)throw Error(X(168));Ee(at,t),Ee(vt,n)}function Hy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(X(108,$R(e)||"Unknown",o));return De({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gr,Ur=at.current,Ee(at,e),Ee(vt,vt.current),!0}function Fh(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=Hy(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,Pe(vt),Pe(at),Ee(at,e)):Pe(vt),Ee(vt,n)}var kn=null,Yl=!1,wu=!1;function By(e){kn===null?kn=[e]:kn.push(e)}function tT(e){Yl=!0,By(e)}function Nr(){if(!wu&&kn!==null){wu=!0;var e=0,t=xe;try{var n=kn;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kn=null,Yl=!1}catch(o){throw kn!==null&&(kn=kn.slice(e+1)),py(Hf,Nr),o}finally{xe=t,wu=!1}}return null}var ko=[],_o=0,sl=null,il=0,Dt=[],Lt=0,Wr=null,Mn=1,jn="";function Lr(e,t){ko[_o++]=il,ko[_o++]=sl,sl=e,il=t}function Vy(e,t,n){Dt[Lt++]=Mn,Dt[Lt++]=jn,Dt[Lt++]=Wr,Wr=e;var r=Mn;e=jn;var o=32-nn(r)-1;r&=~(1<<o),n+=1;var a=32-nn(t)+o;if(30<a){var s=o-o%5;a=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Mn=1<<32-nn(t)+o|n<<o|r,jn=a+e}else Mn=1<<a|n<<o|r,jn=e}function qf(e){e.return!==null&&(Lr(e,1),Vy(e,1,0))}function Qf(e){for(;e===sl;)sl=ko[--_o],ko[_o]=null,il=ko[--_o],ko[_o]=null;for(;e===Wr;)Wr=Dt[--Lt],Dt[Lt]=null,jn=Dt[--Lt],Dt[Lt]=null,Mn=Dt[--Lt],Dt[Lt]=null}var _t=null,kt=null,Me=!1,tn=null;function Uy(e,t){var n=$t(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_t=e,kt=ur(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_t=e,kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wr!==null?{id:Mn,overflow:jn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=$t(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_t=e,kt=null,!0):!1;default:return!1}}function Td(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kd(e){if(Me){var t=kt;if(t){var n=t;if(!Hh(e,t)){if(Td(e))throw Error(X(418));t=ur(n.nextSibling);var r=_t;t&&Hh(e,t)?Uy(r,n):(e.flags=e.flags&-4097|2,Me=!1,_t=e)}}else{if(Td(e))throw Error(X(418));e.flags=e.flags&-4097|2,Me=!1,_t=e}}}function Bh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function hi(e){if(e!==_t)return!1;if(!Me)return Bh(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ed(e.type,e.memoizedProps)),t&&(t=kt)){if(Td(e))throw Wy(),Error(X(418));for(;t;)Uy(e,t),t=ur(t.nextSibling)}if(Bh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kt=ur(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kt=null}}else kt=_t?ur(e.stateNode.nextSibling):null;return!0}function Wy(){for(var e=kt;e;)e=ur(e.nextSibling)}function Yo(){kt=_t=null,Me=!1}function Zf(e){tn===null?tn=[e]:tn.push(e)}var nT=Fn.ReactCurrentBatchConfig;function Pa(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(X(309));var r=n.stateNode}if(!r)throw Error(X(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var i=o.refs;s===null?delete i[a]:i[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(X(284));if(!n._owner)throw Error(X(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vh(e){var t=e._init;return t(e._payload)}function Gy(e){function t(v,y){if(e){var w=v.deletions;w===null?(v.deletions=[y],v.flags|=16):w.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function o(v,y){return v=mr(v,y),v.index=0,v.sibling=null,v}function a(v,y,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<y?(v.flags|=2,y):w):(v.flags|=2,y)):(v.flags|=1048576,y)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function i(v,y,w,S){return y===null||y.tag!==6?(y=Pu(w,v.mode,S),y.return=v,y):(y=o(y,w),y.return=v,y)}function l(v,y,w,S){var C=w.type;return C===Co?p(v,y,w.props.children,S,w.key):y!==null&&(y.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tr&&Vh(C)===y.type)?(S=o(y,w.props),S.ref=Pa(v,y,w),S.return=v,S):(S=Ui(w.type,w.key,w.props,null,v.mode,S),S.ref=Pa(v,y,w),S.return=v,S)}function d(v,y,w,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Tu(w,v.mode,S),y.return=v,y):(y=o(y,w.children||[]),y.return=v,y)}function p(v,y,w,S,C){return y===null||y.tag!==7?(y=Vr(w,v.mode,S,C),y.return=v,y):(y=o(y,w),y.return=v,y)}function f(v,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Pu(""+y,v.mode,w),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ai:return w=Ui(y.type,y.key,y.props,null,v.mode,w),w.ref=Pa(v,null,y),w.return=v,w;case So:return y=Tu(y,v.mode,w),y.return=v,y;case tr:var S=y._init;return f(v,S(y._payload),w)}if(La(y)||Sa(y))return y=Vr(y,v.mode,w,null),y.return=v,y;vi(v,y)}return null}function m(v,y,w,S){var C=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:i(v,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ai:return w.key===C?l(v,y,w,S):null;case So:return w.key===C?d(v,y,w,S):null;case tr:return C=w._init,m(v,y,C(w._payload),S)}if(La(w)||Sa(w))return C!==null?null:p(v,y,w,S,null);vi(v,w)}return null}function h(v,y,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(w)||null,i(y,v,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ai:return v=v.get(S.key===null?w:S.key)||null,l(y,v,S,C);case So:return v=v.get(S.key===null?w:S.key)||null,d(y,v,S,C);case tr:var E=S._init;return h(v,y,w,E(S._payload),C)}if(La(S)||Sa(S))return v=v.get(w)||null,p(y,v,S,C,null);vi(y,S)}return null}function x(v,y,w,S){for(var C=null,E=null,N=y,R=y=0,P=null;N!==null&&R<w.length;R++){N.index>R?(P=N,N=null):P=N.sibling;var O=m(v,N,w[R],S);if(O===null){N===null&&(N=P);break}e&&N&&O.alternate===null&&t(v,N),y=a(O,y,R),E===null?C=O:E.sibling=O,E=O,N=P}if(R===w.length)return n(v,N),Me&&Lr(v,R),C;if(N===null){for(;R<w.length;R++)N=f(v,w[R],S),N!==null&&(y=a(N,y,R),E===null?C=N:E.sibling=N,E=N);return Me&&Lr(v,R),C}for(N=r(v,N);R<w.length;R++)P=h(N,v,R,w[R],S),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?R:P.key),y=a(P,y,R),E===null?C=P:E.sibling=P,E=P);return e&&N.forEach(function(k){return t(v,k)}),Me&&Lr(v,R),C}function g(v,y,w,S){var C=Sa(w);if(typeof C!="function")throw Error(X(150));if(w=C.call(w),w==null)throw Error(X(151));for(var E=C=null,N=y,R=y=0,P=null,O=w.next();N!==null&&!O.done;R++,O=w.next()){N.index>R?(P=N,N=null):P=N.sibling;var k=m(v,N,O.value,S);if(k===null){N===null&&(N=P);break}e&&N&&k.alternate===null&&t(v,N),y=a(k,y,R),E===null?C=k:E.sibling=k,E=k,N=P}if(O.done)return n(v,N),Me&&Lr(v,R),C;if(N===null){for(;!O.done;R++,O=w.next())O=f(v,O.value,S),O!==null&&(y=a(O,y,R),E===null?C=O:E.sibling=O,E=O);return Me&&Lr(v,R),C}for(N=r(v,N);!O.done;R++,O=w.next())O=h(N,v,R,O.value,S),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?R:O.key),y=a(O,y,R),E===null?C=O:E.sibling=O,E=O);return e&&N.forEach(function(D){return t(v,D)}),Me&&Lr(v,R),C}function b(v,y,w,S){if(typeof w=="object"&&w!==null&&w.type===Co&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ai:e:{for(var C=w.key,E=y;E!==null;){if(E.key===C){if(C=w.type,C===Co){if(E.tag===7){n(v,E.sibling),y=o(E,w.props.children),y.return=v,v=y;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tr&&Vh(C)===E.type){n(v,E.sibling),y=o(E,w.props),y.ref=Pa(v,E,w),y.return=v,v=y;break e}n(v,E);break}else t(v,E);E=E.sibling}w.type===Co?(y=Vr(w.props.children,v.mode,S,w.key),y.return=v,v=y):(S=Ui(w.type,w.key,w.props,null,v.mode,S),S.ref=Pa(v,y,w),S.return=v,v=S)}return s(v);case So:e:{for(E=w.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=o(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Tu(w,v.mode,S),y.return=v,v=y}return s(v);case tr:return E=w._init,b(v,y,E(w._payload),S)}if(La(w))return x(v,y,w,S);if(Sa(w))return g(v,y,w,S);vi(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,w),y.return=v,v=y):(n(v,y),y=Pu(w,v.mode,S),y.return=v,v=y),s(v)):n(v,y)}return b}var Xo=Gy(!0),Ky=Gy(!1),ll=Er(null),cl=null,Mo=null,Jf=null;function ep(){Jf=Mo=cl=null}function tp(e){var t=ll.current;Pe(ll),e._currentValue=t}function _d(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zo(e,t){cl=e,Jf=Mo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Jf!==e)if(e={context:e,memoizedValue:t,next:null},Mo===null){if(cl===null)throw Error(X(308));Mo=e,cl.dependencies={lanes:0,firstContext:e}}else Mo=Mo.next=e;return t}var Fr=null;function np(e){Fr===null?Fr=[e]:Fr.push(e)}function Yy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,np(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nr=!1;function rp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xy(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 In(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Dn(e,n)}return o=r.interleaved,o===null?(t.next=t,np(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dn(e,n)}function $i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bf(e,n)}}function Uh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ul(e,t,n,r){var o=e.updateQueue;nr=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,d=l.next;l.next=null,s===null?a=d:s.next=d,s=l;var p=e.alternate;p!==null&&(p=p.updateQueue,i=p.lastBaseUpdate,i!==s&&(i===null?p.firstBaseUpdate=d:i.next=d,p.lastBaseUpdate=l))}if(a!==null){var f=o.baseState;s=0,p=d=l=null,i=a;do{var m=i.lane,h=i.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var x=e,g=i;switch(m=t,h=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(h,f,m);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,m=typeof x=="function"?x.call(h,f,m):x,m==null)break e;f=De({},f,m);break e;case 2:nr=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[i]:m.push(i))}else h={eventTime:h,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},p===null?(d=p=h,l=f):p=p.next=h,s|=m;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;m=i,i=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(p===null&&(l=f),o.baseState=l,o.firstBaseUpdate=d,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Kr|=s,e.lanes=s,e.memoizedState=f}}function Wh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(X(191,o));o.call(r)}}}var Os={},wn=Er(Os),hs=Er(Os),vs=Er(Os);function Hr(e){if(e===Os)throw Error(X(174));return e}function op(e,t){switch(Ee(vs,t),Ee(hs,e),Ee(wn,Os),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ud(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ud(t,e)}Pe(wn),Ee(wn,t)}function qo(){Pe(wn),Pe(hs),Pe(vs)}function qy(e){Hr(vs.current);var t=Hr(wn.current),n=ud(t,e.type);t!==n&&(Ee(hs,e),Ee(wn,n))}function ap(e){hs.current===e&&(Pe(wn),Pe(hs))}var Ie=Er(0);function dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 bu=[];function sp(){for(var e=0;e<bu.length;e++)bu[e]._workInProgressVersionPrimary=null;bu.length=0}var zi=Fn.ReactCurrentDispatcher,Su=Fn.ReactCurrentBatchConfig,Gr=0,Oe=null,Ve=null,We=null,fl=!1,qa=!1,gs=0,rT=0;function tt(){throw Error(X(321))}function ip(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function lp(e,t,n,r,o,a){if(Gr=a,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zi.current=e===null||e.memoizedState===null?iT:lT,e=n(r,o),qa){a=0;do{if(qa=!1,gs=0,25<=a)throw Error(X(301));a+=1,We=Ve=null,t.updateQueue=null,zi.current=cT,e=n(r,o)}while(qa)}if(zi.current=pl,t=Ve!==null&&Ve.next!==null,Gr=0,We=Ve=Oe=null,fl=!1,t)throw Error(X(300));return e}function cp(){var e=gs!==0;return gs=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Oe.memoizedState=We=e:We=We.next=e,We}function Bt(){if(Ve===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=We===null?Oe.memoizedState:We.next;if(t!==null)We=t,Ve=e;else{if(e===null)throw Error(X(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},We===null?Oe.memoizedState=We=e:We=We.next=e}return We}function ys(e,t){return typeof t=="function"?t(e):t}function Cu(e){var t=Bt(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var r=Ve,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var i=s=null,l=null,d=a;do{var p=d.lane;if((Gr&p)===p)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var f={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(i=l=f,s=r):l=l.next=f,Oe.lanes|=p,Kr|=p}d=d.next}while(d!==null&&d!==a);l===null?s=r:l.next=i,an(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,Oe.lanes|=a,Kr|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Eu(e){var t=Bt(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);an(a,t.memoizedState)||(ht=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Qy(){}function Zy(e,t){var n=Oe,r=Bt(),o=t(),a=!an(r.memoizedState,o);if(a&&(r.memoizedState=o,ht=!0),r=r.queue,up(tx.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,xs(9,ex.bind(null,n,r,o,t),void 0,null),Ge===null)throw Error(X(349));Gr&30||Jy(n,t,o)}return o}function Jy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ex(e,t,n,r){t.value=n,t.getSnapshot=r,nx(t)&&rx(e)}function tx(e,t,n){return n(function(){nx(t)&&rx(e)})}function nx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function rx(e){var t=Dn(e,1);t!==null&&rn(t,e,1,-1)}function Gh(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ys,lastRenderedState:e},t.queue=e,e=e.dispatch=sT.bind(null,Oe,e),[t.memoizedState,e]}function xs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ox(){return Bt().memoizedState}function Fi(e,t,n,r){var o=hn();Oe.flags|=e,o.memoizedState=xs(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var o=Bt();r=r===void 0?null:r;var a=void 0;if(Ve!==null){var s=Ve.memoizedState;if(a=s.destroy,r!==null&&ip(r,s.deps)){o.memoizedState=xs(t,n,a,r);return}}Oe.flags|=e,o.memoizedState=xs(1|t,n,a,r)}function Kh(e,t){return Fi(8390656,8,e,t)}function up(e,t){return Xl(2048,8,e,t)}function ax(e,t){return Xl(4,2,e,t)}function sx(e,t){return Xl(4,4,e,t)}function ix(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 lx(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,ix.bind(null,t,e),n)}function dp(){}function cx(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ip(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ux(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ip(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dx(e,t,n){return Gr&21?(an(n,t)||(n=vy(),Oe.lanes|=n,Kr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function oT(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=Su.transition;Su.transition={};try{e(!1),t()}finally{xe=n,Su.transition=r}}function fx(){return Bt().memoizedState}function aT(e,t,n){var r=pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},px(e))mx(t,n);else if(n=Yy(e,t,n,r),n!==null){var o=it();rn(n,e,r,o),hx(n,t,r)}}function sT(e,t,n){var r=pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(px(e))mx(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,i=a(s,n);if(o.hasEagerState=!0,o.eagerState=i,an(i,s)){var l=t.interleaved;l===null?(o.next=o,np(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Yy(e,t,o,r),n!==null&&(o=it(),rn(n,e,r,o),hx(n,t,r))}}function px(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function mx(e,t){qa=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bf(e,n)}}var pl={readContext:Ht,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},iT={readContext:Ht,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Kh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,ix.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=aT.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Gh,useDebugValue:dp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Gh(!1),t=e[0];return e=oT.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=hn();if(Me){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),Ge===null)throw Error(X(349));Gr&30||Jy(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Kh(tx.bind(null,r,a,e),[e]),r.flags|=2048,xs(9,ex.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=hn(),t=Ge.identifierPrefix;if(Me){var n=jn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rT++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lT={readContext:Ht,useCallback:cx,useContext:Ht,useEffect:up,useImperativeHandle:lx,useInsertionEffect:ax,useLayoutEffect:sx,useMemo:ux,useReducer:Cu,useRef:ox,useState:function(){return Cu(ys)},useDebugValue:dp,useDeferredValue:function(e){var t=Bt();return dx(t,Ve.memoizedState,e)},useTransition:function(){var e=Cu(ys)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:Qy,useSyncExternalStore:Zy,useId:fx,unstable_isNewReconciler:!1},cT={readContext:Ht,useCallback:cx,useContext:Ht,useEffect:up,useImperativeHandle:lx,useInsertionEffect:ax,useLayoutEffect:sx,useMemo:ux,useReducer:Eu,useRef:ox,useState:function(){return Eu(ys)},useDebugValue:dp,useDeferredValue:function(e){var t=Bt();return Ve===null?t.memoizedState=e:dx(t,Ve.memoizedState,e)},useTransition:function(){var e=Eu(ys)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:Qy,useSyncExternalStore:Zy,useId:fx,unstable_isNewReconciler:!1};function Jt(e,t){if(e&&e.defaultProps){t=De({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Md(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:De({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ql={isMounted:function(e){return(e=e._reactInternals)?ro(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=pr(e),a=In(r,o);a.payload=t,n!=null&&(a.callback=n),t=dr(e,a,o),t!==null&&(rn(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=pr(e),a=In(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=dr(e,a,o),t!==null&&(rn(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=pr(e),o=In(n,r);o.tag=2,t!=null&&(o.callback=t),t=dr(e,o,r),t!==null&&(rn(t,e,r,n),$i(t,e,r))}};function Yh(e,t,n,r,o,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!ds(n,r)||!ds(o,a):!0}function vx(e,t,n){var r=!1,o=gr,a=t.contextType;return typeof a=="object"&&a!==null?a=Ht(a):(o=gt(t)?Ur:at.current,r=t.contextTypes,a=(r=r!=null)?Ko(e,o):gr),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Xh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ql.enqueueReplaceState(t,t.state,null)}function jd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},rp(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=Ht(a):(a=gt(t)?Ur:at.current,o.context=Ko(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Md(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ql.enqueueReplaceState(o,o.state,null),ul(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Qo(e,t){try{var n="",r=t;do n+=LR(r),r=r.return;while(r);var o=n}catch(a){o=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function Nu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Id(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uT=typeof WeakMap=="function"?WeakMap:Map;function gx(e,t,n){n=In(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,Vd=r),Id(e,t)},n}function yx(e,t,n){n=In(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Id(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Id(e,t),typeof r!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function qh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uT;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ET.bind(null,e,t,n),t.then(e,e))}function Qh(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 Zh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=In(-1,1),t.tag=2,dr(n,t,1))),n.lanes|=1),e)}var dT=Fn.ReactCurrentOwner,ht=!1;function st(e,t,n,r){t.child=e===null?Ky(t,null,n,r):Xo(t,e.child,n,r)}function Jh(e,t,n,r,o){n=n.render;var a=t.ref;return zo(t,o),r=lp(e,t,n,r,a,o),n=cp(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(Me&&n&&qf(t),t.flags|=1,st(e,t,r,o),t.child)}function ev(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!xp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,xx(e,t,a,r,o)):(e=Ui(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(s,r)&&e.ref===t.ref)return Ln(e,t,o)}return t.flags|=1,e=mr(a,r),e.ref=t.ref,e.return=t,t.child=e}function xx(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(ds(a,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Ln(e,t,o)}return Ad(e,t,n,r,o)}function wx(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Io,Nt),Nt|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Io,Nt),Nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ee(Io,Nt),Nt|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ee(Io,Nt),Nt|=r;return st(e,t,o,n),t.child}function bx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ad(e,t,n,r,o){var a=gt(n)?Ur:at.current;return a=Ko(t,a),zo(t,o),n=lp(e,t,n,r,a,o),r=cp(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(Me&&r&&qf(t),t.flags|=1,st(e,t,n,o),t.child)}function tv(e,t,n,r,o){if(gt(n)){var a=!0;al(t)}else a=!1;if(zo(t,o),t.stateNode===null)Hi(e,t),vx(t,n,r),jd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ht(d):(d=gt(n)?Ur:at.current,d=Ko(t,d));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==d)&&Xh(t,s,r,d),nr=!1;var m=t.memoizedState;s.state=m,ul(t,r,s,o),l=t.memoizedState,i!==r||m!==l||vt.current||nr?(typeof p=="function"&&(Md(t,n,p,r),l=t.memoizedState),(i=nr||Yh(t,n,i,r,m,l,d))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=d,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Xy(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:Jt(t.type,i),s.props=d,f=t.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ht(l):(l=gt(n)?Ur:at.current,l=Ko(t,l));var h=n.getDerivedStateFromProps;(p=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==f||m!==l)&&Xh(t,s,r,l),nr=!1,m=t.memoizedState,s.state=m,ul(t,r,s,o);var x=t.memoizedState;i!==f||m!==x||vt.current||nr?(typeof h=="function"&&(Md(t,n,h,r),x=t.memoizedState),(d=nr||Yh(t,n,d,r,m,x,l)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=l,r=d):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Od(e,t,n,r,a,o)}function Od(e,t,n,r,o,a){bx(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Fh(t,n,!1),Ln(e,t,a);r=t.stateNode,dT.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Xo(t,e.child,null,a),t.child=Xo(t,null,i,a)):st(e,t,i,a),t.memoizedState=r.state,o&&Fh(t,n,!0),t.child}function Sx(e){var t=e.stateNode;t.pendingContext?zh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zh(e,t.context,!1),op(e,t.containerInfo)}function nv(e,t,n,r,o){return Yo(),Zf(o),t.flags|=256,st(e,t,n,r),t.child}var Dd={dehydrated:null,treeContext:null,retryLane:0};function Ld(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cx(e,t,n){var r=t.pendingProps,o=Ie.current,a=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ee(Ie,o&1),e===null)return kd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=Jl(s,r,0,null),e=Vr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ld(n),t.memoizedState=Dd,e):fp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return fT(e,t,s,r,i,o,n);if(a){a=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=mr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?a=mr(i,a):(a=Vr(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?Ld(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Dd,r}return a=e.child,e=a.sibling,r=mr(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fp(e,t){return t=Jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gi(e,t,n,r){return r!==null&&Zf(r),Xo(t,e.child,null,n),e=fp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fT(e,t,n,r,o,a,s){if(n)return t.flags&256?(t.flags&=-257,r=Nu(Error(X(422))),gi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Jl({mode:"visible",children:r.children},o,0,null),a=Vr(a,o,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Xo(t,e.child,null,s),t.child.memoizedState=Ld(s),t.memoizedState=Dd,a);if(!(t.mode&1))return gi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,a=Error(X(419)),r=Nu(a,r,void 0),gi(e,t,s,r)}if(i=(s&e.childLanes)!==0,ht||i){if(r=Ge,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Dn(e,o),rn(r,e,o,-1))}return yp(),r=Nu(Error(X(421))),gi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=NT.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,kt=ur(o.nextSibling),_t=t,Me=!0,tn=null,e!==null&&(Dt[Lt++]=Mn,Dt[Lt++]=jn,Dt[Lt++]=Wr,Mn=e.id,jn=e.overflow,Wr=t),t=fp(t,r.children),t.flags|=4096,t)}function rv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_d(e.return,t,n)}function Ru(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Ex(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(st(e,t,r.children,n),r=Ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rv(e,n,t);else if(e.tag===19)rv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Ie,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ru(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ru(t,!0,n,null,a);break;case"together":Ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pT(e,t,n){switch(t.tag){case 3:Sx(t),Yo();break;case 5:qy(t);break;case 1:gt(t.type)&&al(t);break;case 4:op(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ee(ll,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?Cx(e,t,n):(Ee(Ie,Ie.current&1),e=Ln(e,t,n),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ex(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ee(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return Ln(e,t,n)}var Nx,$d,Rx,Px;Nx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$d=function(){};Rx=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Hr(wn.current);var a=null;switch(n){case"input":o=sd(e,o),r=sd(e,r),a=[];break;case"select":o=De({},o,{value:void 0}),r=De({},r,{value:void 0}),a=[];break;case"textarea":o=cd(e,o),r=cd(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=rl)}dd(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var i=o[d];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(os.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in r){var l=r[d];if(i=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&l!==i&&(l!=null||i!=null))if(d==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(d,n)),n=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(a=a||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(os.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Re("scroll",e),a||i===l||(a=[])):(a=a||[]).push(d,l))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}};Px=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ta(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mT(e,t,n){var r=t.pendingProps;switch(Qf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return gt(t.type)&&ol(),nt(t),null;case 3:return r=t.stateNode,qo(),Pe(vt),Pe(at),sp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tn!==null&&(Gd(tn),tn=null))),$d(e,t),nt(t),null;case 5:ap(t);var o=Hr(vs.current);if(n=t.type,e!==null&&t.stateNode!=null)Rx(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(X(166));return nt(t),null}if(e=Hr(wn.current),hi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[vn]=t,r[ms]=a,e=(t.mode&1)!==0,n){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(o=0;o<za.length;o++)Re(za[o],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":fh(r,a),Re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Re("invalid",r);break;case"textarea":mh(r,a),Re("invalid",r)}dd(n,a),o=null;for(var s in a)if(a.hasOwnProperty(s)){var i=a[s];s==="children"?typeof i=="string"?r.textContent!==i&&(a.suppressHydrationWarning!==!0&&mi(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(a.suppressHydrationWarning!==!0&&mi(r.textContent,i,e),o=["children",""+i]):os.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Re("scroll",r)}switch(n){case"input":si(r),ph(r,a,!0);break;case"textarea":si(r),hh(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=rl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ty(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[vn]=t,e[ms]=r,Nx(e,t,!1,!1),t.stateNode=e;e:{switch(s=fd(n,r),n){case"dialog":Re("cancel",e),Re("close",e),o=r;break;case"iframe":case"object":case"embed":Re("load",e),o=r;break;case"video":case"audio":for(o=0;o<za.length;o++)Re(za[o],e);o=r;break;case"source":Re("error",e),o=r;break;case"img":case"image":case"link":Re("error",e),Re("load",e),o=r;break;case"details":Re("toggle",e),o=r;break;case"input":fh(e,r),o=sd(e,r),Re("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=De({},r,{value:void 0}),Re("invalid",e);break;case"textarea":mh(e,r),o=cd(e,r),Re("invalid",e);break;default:o=r}dd(n,o),i=o;for(a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="style"?oy(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ny(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&as(e,l):typeof l=="number"&&as(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(os.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Re("scroll",e):l!=null&&Df(e,a,l,s))}switch(n){case"input":si(e),ph(e,r,!1);break;case"textarea":si(e),hh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vr(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Oo(e,!!r.multiple,a,!1):r.defaultValue!=null&&Oo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=rl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return nt(t),null;case 6:if(e&&t.stateNode!=null)Px(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(X(166));if(n=Hr(vs.current),Hr(wn.current),hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[vn]=t,(a=r.nodeValue!==n)&&(e=_t,e!==null))switch(e.tag){case 3:mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mi(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vn]=t,t.stateNode=r}return nt(t),null;case 13:if(Pe(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&kt!==null&&t.mode&1&&!(t.flags&128))Wy(),Yo(),t.flags|=98560,a=!1;else if(a=hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(X(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(X(317));a[vn]=t}else Yo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;nt(t),a=!1}else tn!==null&&(Gd(tn),tn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?Ue===0&&(Ue=3):yp())),t.updateQueue!==null&&(t.flags|=4),nt(t),null);case 4:return qo(),$d(e,t),e===null&&fs(t.stateNode.containerInfo),nt(t),null;case 10:return tp(t.type._context),nt(t),null;case 17:return gt(t.type)&&ol(),nt(t),null;case 19:if(Pe(Ie),a=t.memoizedState,a===null)return nt(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)Ta(a,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=dl(e),s!==null){for(t.flags|=128,Ta(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(Ie,Ie.current&1|2),t.child}e=e.sibling}a.tail!==null&&He()>Zo&&(t.flags|=128,r=!0,Ta(a,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ta(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Me)return nt(t),null}else 2*He()-a.renderingStartTime>Zo&&n!==1073741824&&(t.flags|=128,r=!0,Ta(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=He(),t.sibling=null,n=Ie.current,Ee(Ie,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return gp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function hT(e,t){switch(Qf(t),t.tag){case 1:return gt(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),Pe(vt),Pe(at),sp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ap(t),null;case 13:if(Pe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ie),null;case 4:return qo(),null;case 10:return tp(t.type._context),null;case 22:case 23:return gp(),null;case 24:return null;default:return null}}var yi=!1,rt=!1,vT=typeof WeakSet=="function"?WeakSet:Set,ae=null;function jo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function zd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var ov=!1;function gT(e,t){if(Sd=el,e=jy(),Xf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,i=-1,l=-1,d=0,p=0,f=e,m=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(i=s+o),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++d===o&&(i=s),m===a&&++p===r&&(l=s),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cd={focusedElem:e,selectionRange:n},el=!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 x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,b=x.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Jt(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(S){$e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return x=ov,ov=!1,x}function Qa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&zd(t,n,a)}o=o.next}while(o!==r)}}function Ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tx(e){var t=e.alternate;t!==null&&(e.alternate=null,Tx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[ms],delete t[Rd],delete t[JP],delete t[eT])),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 kx(e){return e.tag===5||e.tag===3||e.tag===4}function av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kx(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 Hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rl));else if(r!==4&&(e=e.child,e!==null))for(Hd(e,t,n),e=e.sibling;e!==null;)Hd(e,t,n),e=e.sibling}function Bd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bd(e,t,n),e=e.sibling;e!==null;)Bd(e,t,n),e=e.sibling}var qe=null,en=!1;function Qn(e,t,n){for(n=n.child;n!==null;)_x(e,t,n),n=n.sibling}function _x(e,t,n){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:rt||jo(n,t);case 6:var r=qe,o=en;qe=null,Qn(e,t,n),qe=r,en=o,qe!==null&&(en?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(en?(e=qe,n=n.stateNode,e.nodeType===8?xu(e.parentNode,n):e.nodeType===1&&xu(e,n),cs(e)):xu(qe,n.stateNode));break;case 4:r=qe,o=en,qe=n.stateNode.containerInfo,en=!0,Qn(e,t,n),qe=r,en=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&zd(n,t,s),o=o.next}while(o!==r)}Qn(e,t,n);break;case 1:if(!rt&&(jo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){$e(n,t,i)}Qn(e,t,n);break;case 21:Qn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,Qn(e,t,n),rt=r):Qn(e,t,n);break;default:Qn(e,t,n)}}function sv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vT),t.forEach(function(r){var o=RT.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:qe=i.stateNode,en=!1;break e;case 3:qe=i.stateNode.containerInfo,en=!0;break e;case 4:qe=i.stateNode.containerInfo,en=!0;break e}i=i.return}if(qe===null)throw Error(X(160));_x(a,s,o),qe=null,en=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(d){$e(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mx(t,e),t=t.sibling}function Mx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qt(t,e),mn(e),r&4){try{Qa(3,e,e.return),Ql(3,e)}catch(g){$e(e,e.return,g)}try{Qa(5,e,e.return)}catch(g){$e(e,e.return,g)}}break;case 1:qt(t,e),mn(e),r&512&&n!==null&&jo(n,n.return);break;case 5:if(qt(t,e),mn(e),r&512&&n!==null&&jo(n,n.return),e.flags&32){var o=e.stateNode;try{as(o,"")}catch(g){$e(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&a.type==="radio"&&a.name!=null&&Jg(o,a),fd(i,s);var d=fd(i,a);for(s=0;s<l.length;s+=2){var p=l[s],f=l[s+1];p==="style"?oy(o,f):p==="dangerouslySetInnerHTML"?ny(o,f):p==="children"?as(o,f):Df(o,p,f,d)}switch(i){case"input":id(o,a);break;case"textarea":ey(o,a);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Oo(o,!!a.multiple,h,!1):m!==!!a.multiple&&(a.defaultValue!=null?Oo(o,!!a.multiple,a.defaultValue,!0):Oo(o,!!a.multiple,a.multiple?[]:"",!1))}o[ms]=a}catch(g){$e(e,e.return,g)}}break;case 6:if(qt(t,e),mn(e),r&4){if(e.stateNode===null)throw Error(X(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){$e(e,e.return,g)}}break;case 3:if(qt(t,e),mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cs(t.containerInfo)}catch(g){$e(e,e.return,g)}break;case 4:qt(t,e),mn(e);break;case 13:qt(t,e),mn(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(hp=He())),r&4&&sv(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(rt=(d=rt)||p,qt(t,e),rt=d):qt(t,e),mn(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(ae=e,p=e.child;p!==null;){for(f=ae=p;ae!==null;){switch(m=ae,h=m.child,m.tag){case 0:case 11:case 14:case 15:Qa(4,m,m.return);break;case 1:jo(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){$e(r,n,g)}}break;case 5:jo(m,m.return);break;case 22:if(m.memoizedState!==null){lv(f);continue}}h!==null?(h.return=m,ae=h):lv(f)}p=p.sibling}e:for(p=null,f=e;;){if(f.tag===5){if(p===null){p=f;try{o=f.stateNode,d?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(i=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=ry("display",s))}catch(g){$e(e,e.return,g)}}}else if(f.tag===6){if(p===null)try{f.stateNode.nodeValue=d?"":f.memoizedProps}catch(g){$e(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;p===f&&(p=null),f=f.return}p===f&&(p=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:qt(t,e),mn(e),r&4&&sv(e);break;case 21:break;default:qt(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kx(n)){var r=n;break e}n=n.return}throw Error(X(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(as(o,""),r.flags&=-33);var a=av(e);Bd(e,a,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=av(e);Hd(e,i,s);break;default:throw Error(X(161))}}catch(l){$e(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yT(e,t,n){ae=e,jx(e)}function jx(e,t,n){for(var r=(e.mode&1)!==0;ae!==null;){var o=ae,a=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||yi;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||rt;i=yi;var d=rt;if(yi=s,(rt=l)&&!d)for(ae=o;ae!==null;)s=ae,l=s.child,s.tag===22&&s.memoizedState!==null?cv(o):l!==null?(l.return=s,ae=l):cv(o);for(;a!==null;)ae=a,jx(a),a=a.sibling;ae=o,yi=i,rt=d}iv(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,ae=a):iv(e)}}function iv(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||Ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Jt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Wh(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wh(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var f=p.dehydrated;f!==null&&cs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}rt||t.flags&512&&Fd(t)}catch(m){$e(t,t.return,m)}}if(t===e){ae=null;break}if(n=t.sibling,n!==null){n.return=t.return,ae=n;break}ae=t.return}}function lv(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ae=n;break}ae=t.return}}function cv(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ql(4,t)}catch(l){$e(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){$e(t,o,l)}}var a=t.return;try{Fd(t)}catch(l){$e(t,a,l)}break;case 5:var s=t.return;try{Fd(t)}catch(l){$e(t,s,l)}}}catch(l){$e(t,t.return,l)}if(t===e){ae=null;break}var i=t.sibling;if(i!==null){i.return=t.return,ae=i;break}ae=t.return}}var xT=Math.ceil,ml=Fn.ReactCurrentDispatcher,pp=Fn.ReactCurrentOwner,zt=Fn.ReactCurrentBatchConfig,ve=0,Ge=null,Be=null,Qe=0,Nt=0,Io=Er(0),Ue=0,ws=null,Kr=0,Zl=0,mp=0,Za=null,mt=null,hp=0,Zo=1/0,Tn=null,hl=!1,Vd=null,fr=null,xi=!1,sr=null,vl=0,Ja=0,Ud=null,Bi=-1,Vi=0;function it(){return ve&6?He():Bi!==-1?Bi:Bi=He()}function pr(e){return e.mode&1?ve&2&&Qe!==0?Qe&-Qe:nT.transition!==null?(Vi===0&&(Vi=vy()),Vi):(e=xe,e!==0||(e=window.event,e=e===void 0?16:Cy(e.type)),e):1}function rn(e,t,n,r){if(50<Ja)throw Ja=0,Ud=null,Error(X(185));js(e,n,r),(!(ve&2)||e!==Ge)&&(e===Ge&&(!(ve&2)&&(Zl|=n),Ue===4&&or(e,Qe)),yt(e,r),n===1&&ve===0&&!(t.mode&1)&&(Zo=He()+500,Yl&&Nr()))}function yt(e,t){var n=e.callbackNode;nP(e,t);var r=Ji(e,e===Ge?Qe:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?tT(uv.bind(null,e)):By(uv.bind(null,e)),QP(function(){!(ve&6)&&Nr()}),n=null;else{switch(gy(r)){case 1:n=Hf;break;case 4:n=my;break;case 16:n=Zi;break;case 536870912:n=hy;break;default:n=Zi}n=Fx(n,Ix.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ix(e,t){if(Bi=-1,Vi=0,ve&6)throw Error(X(327));var n=e.callbackNode;if(Fo()&&e.callbackNode!==n)return null;var r=Ji(e,e===Ge?Qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gl(e,r);else{t=r;var o=ve;ve|=2;var a=Ox();(Ge!==e||Qe!==t)&&(Tn=null,Zo=He()+500,Br(e,t));do try{ST();break}catch(i){Ax(e,i)}while(!0);ep(),ml.current=a,ve=o,Be!==null?t=0:(Ge=null,Qe=0,t=Ue)}if(t!==0){if(t===2&&(o=gd(e),o!==0&&(r=o,t=Wd(e,o))),t===1)throw n=ws,Br(e,0),or(e,r),yt(e,He()),n;if(t===6)or(e,r);else{if(o=e.current.alternate,!(r&30)&&!wT(o)&&(t=gl(e,r),t===2&&(a=gd(e),a!==0&&(r=a,t=Wd(e,a))),t===1))throw n=ws,Br(e,0),or(e,r),yt(e,He()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(X(345));case 2:$r(e,mt,Tn);break;case 3:if(or(e,r),(r&130023424)===r&&(t=hp+500-He(),10<t)){if(Ji(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Nd($r.bind(null,e,mt,Tn),t);break}$r(e,mt,Tn);break;case 4:if(or(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-nn(r);a=1<<s,s=t[s],s>o&&(o=s),r&=~a}if(r=o,r=He()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xT(r/1960))-r,10<r){e.timeoutHandle=Nd($r.bind(null,e,mt,Tn),r);break}$r(e,mt,Tn);break;case 5:$r(e,mt,Tn);break;default:throw Error(X(329))}}}return yt(e,He()),e.callbackNode===n?Ix.bind(null,e):null}function Wd(e,t){var n=Za;return e.current.memoizedState.isDehydrated&&(Br(e,t).flags|=256),e=gl(e,t),e!==2&&(t=mt,mt=n,t!==null&&Gd(t)),e}function Gd(e){mt===null?mt=e:mt.push.apply(mt,e)}function wT(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!an(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t){for(t&=~mp,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-nn(t),r=1<<n;e[n]=-1,t&=~r}}function uv(e){if(ve&6)throw Error(X(327));Fo();var t=Ji(e,0);if(!(t&1))return yt(e,He()),null;var n=gl(e,t);if(e.tag!==0&&n===2){var r=gd(e);r!==0&&(t=r,n=Wd(e,r))}if(n===1)throw n=ws,Br(e,0),or(e,t),yt(e,He()),n;if(n===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$r(e,mt,Tn),yt(e,He()),null}function vp(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(Zo=He()+500,Yl&&Nr())}}function Yr(e){sr!==null&&sr.tag===0&&!(ve&6)&&Fo();var t=ve;ve|=1;var n=zt.transition,r=xe;try{if(zt.transition=null,xe=1,e)return e()}finally{xe=r,zt.transition=n,ve=t,!(ve&6)&&Nr()}}function gp(){Nt=Io.current,Pe(Io)}function Br(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qP(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(Qf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ol();break;case 3:qo(),Pe(vt),Pe(at),sp();break;case 5:ap(r);break;case 4:qo();break;case 13:Pe(Ie);break;case 19:Pe(Ie);break;case 10:tp(r.type._context);break;case 22:case 23:gp()}n=n.return}if(Ge=e,Be=e=mr(e.current,null),Qe=Nt=t,Ue=0,ws=null,mp=Zl=Kr=0,mt=Za=null,Fr!==null){for(t=0;t<Fr.length;t++)if(n=Fr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=o,r.next=s}n.pending=r}Fr=null}return e}function Ax(e,t){do{var n=Be;try{if(ep(),zi.current=pl,fl){for(var r=Oe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}fl=!1}if(Gr=0,We=Ve=Oe=null,qa=!1,gs=0,pp.current=null,n===null||n.return===null){Ue=1,ws=t,Be=null;break}e:{var a=e,s=n.return,i=n,l=t;if(t=Qe,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,p=i,f=p.tag;if(!(p.mode&1)&&(f===0||f===11||f===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var h=Qh(s);if(h!==null){h.flags&=-257,Zh(h,s,i,a,t),h.mode&1&&qh(a,d,t),t=h,l=d;var x=t.updateQueue;if(x===null){var g=new Set;g.add(l),t.updateQueue=g}else x.add(l);break e}else{if(!(t&1)){qh(a,d,t),yp();break e}l=Error(X(426))}}else if(Me&&i.mode&1){var b=Qh(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Zh(b,s,i,a,t),Zf(Qo(l,i));break e}}a=l=Qo(l,i),Ue!==4&&(Ue=2),Za===null?Za=[a]:Za.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=gx(a,l,t);Uh(a,v);break e;case 1:i=l;var y=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(fr===null||!fr.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=yx(a,i,t);Uh(a,S);break e}}a=a.return}while(a!==null)}Lx(n)}catch(C){t=C,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(!0)}function Ox(){var e=ml.current;return ml.current=pl,e===null?pl:e}function yp(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ge===null||!(Kr&268435455)&&!(Zl&268435455)||or(Ge,Qe)}function gl(e,t){var n=ve;ve|=2;var r=Ox();(Ge!==e||Qe!==t)&&(Tn=null,Br(e,t));do try{bT();break}catch(o){Ax(e,o)}while(!0);if(ep(),ve=n,ml.current=r,Be!==null)throw Error(X(261));return Ge=null,Qe=0,Ue}function bT(){for(;Be!==null;)Dx(Be)}function ST(){for(;Be!==null&&!KR();)Dx(Be)}function Dx(e){var t=zx(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?Lx(e):Be=t,pp.current=null}function Lx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hT(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Be=null;return}}else if(n=mT(n,t,Nt),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ue===0&&(Ue=5)}function $r(e,t,n){var r=xe,o=zt.transition;try{zt.transition=null,xe=1,CT(e,t,n,r)}finally{zt.transition=o,xe=r}return null}function CT(e,t,n,r){do Fo();while(sr!==null);if(ve&6)throw Error(X(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(rP(e,a),e===Ge&&(Be=Ge=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xi||(xi=!0,Fx(Zi,function(){return Fo(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=zt.transition,zt.transition=null;var s=xe;xe=1;var i=ve;ve|=4,pp.current=null,gT(e,n),Mx(n,e),VP(Cd),el=!!Sd,Cd=Sd=null,e.current=n,yT(n),YR(),ve=i,xe=s,zt.transition=a}else e.current=n;if(xi&&(xi=!1,sr=e,vl=o),a=e.pendingLanes,a===0&&(fr=null),QR(n.stateNode),yt(e,He()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(hl)throw hl=!1,e=Vd,Vd=null,e;return vl&1&&e.tag!==0&&Fo(),a=e.pendingLanes,a&1?e===Ud?Ja++:(Ja=0,Ud=e):Ja=0,Nr(),null}function Fo(){if(sr!==null){var e=gy(vl),t=zt.transition,n=xe;try{if(zt.transition=null,xe=16>e?16:e,sr===null)var r=!1;else{if(e=sr,sr=null,vl=0,ve&6)throw Error(X(331));var o=ve;for(ve|=4,ae=e.current;ae!==null;){var a=ae,s=a.child;if(ae.flags&16){var i=a.deletions;if(i!==null){for(var l=0;l<i.length;l++){var d=i[l];for(ae=d;ae!==null;){var p=ae;switch(p.tag){case 0:case 11:case 15:Qa(8,p,a)}var f=p.child;if(f!==null)f.return=p,ae=f;else for(;ae!==null;){p=ae;var m=p.sibling,h=p.return;if(Tx(p),p===d){ae=null;break}if(m!==null){m.return=h,ae=m;break}ae=h}}}var x=a.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}ae=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,ae=s;else e:for(;ae!==null;){if(a=ae,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Qa(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,ae=v;break e}ae=a.return}}var y=e.current;for(ae=y;ae!==null;){s=ae;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,ae=w;else e:for(s=y;ae!==null;){if(i=ae,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Ql(9,i)}}catch(C){$e(i,i.return,C)}if(i===s){ae=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,ae=S;break e}ae=i.return}}if(ve=o,Nr(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Vl,e)}catch{}r=!0}return r}finally{xe=n,zt.transition=t}}return!1}function dv(e,t,n){t=Qo(n,t),t=gx(e,t,1),e=dr(e,t,1),t=it(),e!==null&&(js(e,1,t),yt(e,t))}function $e(e,t,n){if(e.tag===3)dv(e,e,n);else for(;t!==null;){if(t.tag===3){dv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fr===null||!fr.has(r))){e=Qo(n,e),e=yx(t,e,1),t=dr(t,e,1),e=it(),t!==null&&(js(t,1,e),yt(t,e));break}}t=t.return}}function ET(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(Qe&n)===n&&(Ue===4||Ue===3&&(Qe&130023424)===Qe&&500>He()-hp?Br(e,0):mp|=n),yt(e,t)}function $x(e,t){t===0&&(e.mode&1?(t=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):t=1);var n=it();e=Dn(e,t),e!==null&&(js(e,t,n),yt(e,n))}function NT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$x(e,n)}function RT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),$x(e,n)}var zx;zx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,pT(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Me&&t.flags&1048576&&Vy(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var o=Ko(t,at.current);zo(t,n),o=lp(null,t,r,e,o,n);var a=cp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(a=!0,al(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rp(t),o.updater=ql,t.stateNode=o,o._reactInternals=t,jd(t,r,e,n),t=Od(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&qf(t),st(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=TT(r),e=Jt(r,e),o){case 0:t=Ad(null,t,r,e,n);break e;case 1:t=tv(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ev(null,t,r,Jt(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ad(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),tv(e,t,r,o,n);case 3:e:{if(Sx(t),e===null)throw Error(X(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Xy(e,t),ul(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Qo(Error(X(423)),t),t=nv(e,t,r,n,o);break e}else if(r!==o){o=Qo(Error(X(424)),t),t=nv(e,t,r,n,o);break e}else for(kt=ur(t.stateNode.containerInfo.firstChild),_t=t,Me=!0,tn=null,n=Ky(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yo(),r===o){t=Ln(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return qy(t),e===null&&kd(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,s=o.children,Ed(r,o)?s=null:a!==null&&Ed(r,a)&&(t.flags|=32),bx(e,t),st(e,t,s,n),t.child;case 6:return e===null&&kd(t),null;case 13:return Cx(e,t,n);case 4:return op(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xo(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Jh(e,t,r,o,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ee(ll,r._currentValue),r._currentValue=s,a!==null)if(an(a.value,s)){if(a.children===o.children&&!vt.current){t=Ln(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){s=a.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=In(-1,n&-n),l.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?l.next=l:(l.next=p.next,p.next=l),d.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),_d(a.return,n,t),i.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(X(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),_d(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}st(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zo(t,n),o=Ht(o),r=r(o),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),ev(e,t,r,o,n);case 15:return xx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Hi(e,t),t.tag=1,gt(r)?(e=!0,al(t)):e=!1,zo(t,n),vx(t,r,o),jd(t,r,o,n),Od(null,t,r,!0,e,n);case 19:return Ex(e,t,n);case 22:return wx(e,t,n)}throw Error(X(156,t.tag))};function Fx(e,t){return py(e,t)}function PT(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(e,t,n,r){return new PT(e,t,n,r)}function xp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TT(e){if(typeof e=="function")return xp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$f)return 11;if(e===zf)return 14}return 2}function mr(e,t){var n=e.alternate;return n===null?(n=$t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ui(e,t,n,r,o,a){var s=2;if(r=e,typeof e=="function")xp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Co:return Vr(n.children,o,a,t);case Lf:s=8,o|=8;break;case nd:return e=$t(12,n,t,o|2),e.elementType=nd,e.lanes=a,e;case rd:return e=$t(13,n,t,o),e.elementType=rd,e.lanes=a,e;case od:return e=$t(19,n,t,o),e.elementType=od,e.lanes=a,e;case qg:return Jl(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yg:s=10;break e;case Xg:s=9;break e;case $f:s=11;break e;case zf:s=14;break e;case tr:s=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=$t(s,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Vr(e,t,n,r){return e=$t(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=$t(22,e,r,t),e.elementType=qg,e.lanes=n,e.stateNode={isHidden:!1},e}function Pu(e,t,n){return e=$t(6,e,null,t),e.lanes=n,e}function Tu(e,t,n){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kT(e,t,n,r,o){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=lu(0),this.expirationTimes=lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wp(e,t,n,r,o,a,s,i,l){return e=new kT(e,t,n,i,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$t(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rp(a),e}function _T(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:So,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hx(e){if(!e)return gr;e=e._reactInternals;e:{if(ro(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var n=e.type;if(gt(n))return Hy(e,n,t)}return t}function Bx(e,t,n,r,o,a,s,i,l){return e=wp(n,r,!0,e,o,a,s,i,l),e.context=Hx(null),n=e.current,r=it(),o=pr(n),a=In(r,o),a.callback=t??null,dr(n,a,o),e.current.lanes=o,js(e,o,r),yt(e,r),e}function ec(e,t,n,r){var o=t.current,a=it(),s=pr(o);return n=Hx(n),t.context===null?t.context=n:t.pendingContext=n,t=In(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dr(o,t,s),e!==null&&(rn(e,o,s,a),$i(e,o,s)),s}function yl(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 fv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bp(e,t){fv(e,t),(e=e.alternate)&&fv(e,t)}function MT(){return null}var Vx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sp(e){this._internalRoot=e}tc.prototype.render=Sp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));ec(e,t,null,null)};tc.prototype.unmount=Sp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yr(function(){ec(null,e,null,null)}),t[On]=null}};function tc(e){this._internalRoot=e}tc.prototype.unstable_scheduleHydration=function(e){if(e){var t=wy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rr.length&&t!==0&&t<rr[n].priority;n++);rr.splice(n,0,e),n===0&&Sy(e)}};function Cp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pv(){}function jT(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var d=yl(s);a.call(d)}}var s=Bx(t,r,e,0,null,!1,!1,"",pv);return e._reactRootContainer=s,e[On]=s.current,fs(e.nodeType===8?e.parentNode:e),Yr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=yl(l);i.call(d)}}var l=wp(e,0,!1,null,null,!1,!1,"",pv);return e._reactRootContainer=l,e[On]=l.current,fs(e.nodeType===8?e.parentNode:e),Yr(function(){ec(t,l,n,r)}),l}function rc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var s=a;if(typeof o=="function"){var i=o;o=function(){var l=yl(s);i.call(l)}}ec(t,s,e,o)}else s=jT(n,t,e,o,r);return yl(s)}yy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$a(t.pendingLanes);n!==0&&(Bf(t,n|1),yt(t,He()),!(ve&6)&&(Zo=He()+500,Nr()))}break;case 13:Yr(function(){var r=Dn(e,1);if(r!==null){var o=it();rn(r,e,1,o)}}),bp(e,1)}};Vf=function(e){if(e.tag===13){var t=Dn(e,134217728);if(t!==null){var n=it();rn(t,e,134217728,n)}bp(e,134217728)}};xy=function(e){if(e.tag===13){var t=pr(e),n=Dn(e,t);if(n!==null){var r=it();rn(n,e,t,r)}bp(e,t)}};wy=function(){return xe};by=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};md=function(e,t,n){switch(t){case"input":if(id(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Kl(r);if(!o)throw Error(X(90));Zg(r),id(r,o)}}}break;case"textarea":ey(e,n);break;case"select":t=n.value,t!=null&&Oo(e,!!n.multiple,t,!1)}};iy=vp;ly=Yr;var IT={usingClientEntryPoint:!1,Events:[As,Po,Kl,ay,sy,vp]},ka={findFiberByHostInstance:zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},AT={bundleType:ka.bundleType,version:ka.version,rendererPackageName:ka.rendererPackageName,rendererConfig:ka.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dy(e),e===null?null:e.stateNode},findFiberByHostInstance:ka.findFiberByHostInstance||MT,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 wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wi.isDisabled&&wi.supportsFiber)try{Vl=wi.inject(AT),xn=wi}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IT;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cp(t))throw Error(X(200));return _T(e,t,null,n)};It.createRoot=function(e,t){if(!Cp(e))throw Error(X(299));var n=!1,r="",o=Vx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=wp(e,1,!1,null,null,n,!1,r,o),e[On]=t.current,fs(e.nodeType===8?e.parentNode:e),new Sp(t)};It.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(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=dy(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Yr(e)};It.hydrate=function(e,t,n){if(!nc(t))throw Error(X(200));return rc(null,e,t,!0,n)};It.hydrateRoot=function(e,t,n){if(!Cp(e))throw Error(X(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",s=Vx;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Bx(t,null,e,1,n??null,o,!1,a,s),e[On]=t.current,fs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new tc(t)};It.render=function(e,t,n){if(!nc(t))throw Error(X(200));return rc(null,e,t,!1,n)};It.unmountComponentAtNode=function(e){if(!nc(e))throw Error(X(40));return e._reactRootContainer?(Yr(function(){rc(null,null,e,!1,function(){e._reactRootContainer=null,e[On]=null})}),!0):!1};It.unstable_batchedUpdates=vp;It.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return rc(e,t,n,!1,r)};It.version="18.3.1-next-f1338f8080-20240426";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),Ug.exports=It;var oo=Ug.exports;const Ep=Fl(oo);var mv=oo;ed.createRoot=mv.createRoot,ed.hydrateRoot=mv.hydrateRoot;function Wx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Np(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wx(e))&&(r&&(r+=" "),r+=t);return r}const Rp="-",OT=e=>{const t=LT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(Rp);return i[0]===""&&i.length!==1&&i.shift(),Gx(i,t)||DT(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Gx=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Gx(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Rp);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},hv=/^\[(.+)\]$/,DT=e=>{if(hv.test(e)){const t=hv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LT=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return zT(Object.entries(e.classGroups),n).forEach(([a,s])=>{Kd(s,r,a,t)}),r},Kd=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:vv(t,o);a.classGroupId=n;return}if(typeof o=="function"){if($T(o)){Kd(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Kd(s,vv(t,a),n,r)})})},vv=(e,t)=>{let n=e;return t.split(Rp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$T=e=>e.isThemeGetter,zT=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[n,o]}):e,FT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},Kx="!",HT=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,s=i=>{const l=[];let d=0,p=0,f;for(let b=0;b<i.length;b++){let v=i[b];if(d===0){if(v===o&&(r||i.slice(b,b+a)===t)){l.push(i.slice(p,b)),p=b+a;continue}if(v==="/"){f=b;continue}}v==="["?d++:v==="]"&&d--}const m=l.length===0?i:i.substring(p),h=m.startsWith(Kx),x=h?m.substring(1):m,g=f&&f>p?f-p:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:g}};return n?i=>n({className:i,parseClassName:s}):s},BT=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},VT=e=>({cache:FT(e.cacheSize),parseClassName:HT(e),...OT(e)}),UT=/\s+/,WT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(UT);let i="";for(let l=s.length-1;l>=0;l-=1){const d=s[l],{modifiers:p,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:h}=n(d);let x=!!h,g=r(x?m.substring(0,h):m);if(!g){if(!x){i=d+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=d+(i.length>0?" "+i:i);continue}x=!1}const b=BT(p).join(":"),v=f?b+Kx:b,y=v+g;if(a.includes(y))continue;a.push(y);const w=o(g,x);for(let S=0;S<w.length;++S){const C=w[S];a.push(v+C)}i=d+(i.length>0?" "+i:i)}return i};function GT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Yx(t))&&(r&&(r+=" "),r+=n);return r}const Yx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yx(e[r]))&&(n&&(n+=" "),n+=t);return n};function KT(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((p,f)=>f(p),e());return n=VT(d),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const d=r(l);if(d)return d;const p=WT(l,n);return o(l,p),p}return function(){return a(GT.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Xx=/^\[(?:([a-z-]+):)?(.+)\]$/i,YT=/^\d+\/\d+$/,XT=new Set(["px","full","screen"]),qT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QT=/\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$/,ZT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ek=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=e=>Ho(e)||XT.has(e)||YT.test(e),Zn=e=>la(e,"length",lk),Ho=e=>!!e&&!Number.isNaN(Number(e)),ku=e=>la(e,"number",Ho),_a=e=>!!e&&Number.isInteger(Number(e)),tk=e=>e.endsWith("%")&&Ho(e.slice(0,-1)),ue=e=>Xx.test(e),Jn=e=>qT.test(e),nk=new Set(["length","size","percentage"]),rk=e=>la(e,nk,qx),ok=e=>la(e,"position",qx),ak=new Set(["image","url"]),sk=e=>la(e,ak,uk),ik=e=>la(e,"",ck),Ma=()=>!0,la=(e,t,n)=>{const r=Xx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},lk=e=>QT.test(e)&&!ZT.test(e),qx=()=>!1,ck=e=>JT.test(e),uk=e=>ek.test(e),dk=()=>{const e=Ne("colors"),t=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),o=Ne("borderColor"),a=Ne("borderRadius"),s=Ne("borderSpacing"),i=Ne("borderWidth"),l=Ne("contrast"),d=Ne("grayscale"),p=Ne("hueRotate"),f=Ne("invert"),m=Ne("gap"),h=Ne("gradientColorStops"),x=Ne("gradientColorStopPositions"),g=Ne("inset"),b=Ne("margin"),v=Ne("opacity"),y=Ne("padding"),w=Ne("saturate"),S=Ne("scale"),C=Ne("sepia"),E=Ne("skew"),N=Ne("space"),R=Ne("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ue,t],D=()=>[ue,t],V=()=>["",Pn,Zn],$=()=>["auto",Ho,ue],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",ue],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[Ho,ue];return{cacheSize:500,separator:":",theme:{colors:[Ma],spacing:[Pn,Zn],blur:["none","",Jn,ue],brightness:J(),borderColor:[e],borderRadius:["none","","full",Jn,ue],borderSpacing:D(),borderWidth:V(),contrast:J(),grayscale:T(),hueRotate:J(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[tk,Zn],inset:k(),margin:k(),opacity:J(),padding:D(),saturate:J(),scale:J(),sepia:T(),skew:J(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[Jn]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),ue]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_a,ue]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",_a,ue]}],"grid-cols":[{"grid-cols":[Ma]}],"col-start-end":[{col:["auto",{span:["full",_a,ue]},ue]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Ma]}],"row-start-end":[{row:["auto",{span:[_a,ue]},ue]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[Jn]},Jn]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jn,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ku]}],"font-family":[{font:[Ma]}],"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",ue]}],"line-clamp":[{"line-clamp":["none",Ho,ku]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pn,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pn,Zn]}],"underline-offset":[{"underline-offset":["auto",Pn,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],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",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),ok]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Pn,ue]}],"outline-w":[{outline:[Pn,Zn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Pn,Zn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jn,ik]}],"shadow-color":[{shadow:[Ma]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jn,ue]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_a,ue]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],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",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pn,Zn,ku]}],stroke:[{stroke:[e,"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"]}}},fk=KT(dk);function M(...e){return fk(Np(e))}function pk(e,t){const n=c.createContext(t),r=a=>{const{children:s,...i}=a,l=c.useMemo(()=>i,Object.values(i));return u.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ke(e,t=[]){let n=[];function r(a,s){const i=c.createContext(s),l=n.length;n=[...n,s];const d=f=>{var v;const{scope:m,children:h,...x}=f,g=((v=m==null?void 0:m[e])==null?void 0:v[l])||i,b=c.useMemo(()=>x,Object.values(x));return u.jsx(g.Provider,{value:b,children:h})};d.displayName=a+"Provider";function p(f,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[l])||i,x=c.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,p]}const o=()=>{const a=n.map(s=>c.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,mk(o,...t)]}function mk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const f=l(a)[`__scope${d}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function gv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=gv(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():gv(e[o],null)}}}}function se(...e){return c.useCallback(sn(...e),e)}function Xr(e){const t=hk(e),n=c.forwardRef((r,o)=>{const{children:a,...s}=r,i=c.Children.toArray(a),l=i.find(vk);if(l){const d=l.props.children,p=i.map(f=>f===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return u.jsx(t,{...s,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,p):null})}return u.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function hk(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const s=yk(o),i=gk(a,o.props);return o.type!==c.Fragment&&(i.ref=r?sn(r,s):s),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qx=Symbol("radix.slottable");function Zx(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qx,t}function vk(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qx}function gk(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function yk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Hn(e){const t=e+"CollectionProvider",[n,r]=ke(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:v}=g,y=F.useRef(null),w=F.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:w,collectionRef:y,children:v})};s.displayName=t;const i=e+"CollectionSlot",l=Xr(i),d=F.forwardRef((g,b)=>{const{scope:v,children:y}=g,w=a(i,v),S=se(b,w.collectionRef);return u.jsx(l,{ref:S,children:y})});d.displayName=i;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=Xr(p),h=F.forwardRef((g,b)=>{const{scope:v,children:y,...w}=g,S=F.useRef(null),C=se(b,S),E=a(p,v);return F.useEffect(()=>(E.itemMap.set(S,{ref:S,...w}),()=>void E.itemMap.delete(S))),u.jsx(m,{[f]:"",ref:C,children:y})});h.displayName=p;function x(g){const b=a(e+"CollectionConsumer",g);return F.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((E,N)=>w.indexOf(E.ref.current)-w.indexOf(N.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},x,r]}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Te=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},xk=Bl[" useInsertionEffect ".trim().toString()]||Te;function Ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=wk({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=c.useRef(e!==void 0);c.useEffect(()=>{const f=p.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,r])}const d=c.useCallback(p=>{var f;if(i){const m=bk(p)?p(e):p;m!==e&&((f=s.current)==null||f.call(s,m))}else a(p)},[i,e,a,s]);return[l,d]}function wk({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return xk(()=>{a.current=t},[t]),c.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function bk(e){return typeof e=="function"}var Sk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=Sk.reduce((e,t)=>{const n=Xr(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bs(e,t){e&&oo.flushSync(()=>e.dispatchEvent(t))}function Ck(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=Ek(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=se(r.ref,Nk(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};_e.displayName="Presence";function Ek(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Ck(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=bi(r.current);a.current=i==="mounted"?d:"none"},[i]),Te(()=>{const d=r.current,p=o.current;if(p!==e){const m=a.current,h=bi(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(p&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Te(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=h=>{const g=bi(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(a.current=bi(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function bi(e){return(e==null?void 0:e.animationName)||"none"}function Nk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rk=Bl[" useId ".trim().toString()]||(()=>{}),Pk=0;function Ke(e){const[t,n]=c.useState(Rk());return Te(()=>{n(r=>r??String(Pk++))},[e]),t?`radix-${t}`:""}var oc="Collapsible",[Tk,Jx]=ke(oc),[kk,Pp]=Tk(oc),ew=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,d]=Ye({prop:r,defaultProp:o??!1,onChange:s,caller:oc});return u.jsx(kk,{scope:n,disabled:a,contentId:Ke(),open:l,onOpenToggle:c.useCallback(()=>d(p=>!p),[d]),children:u.jsx(Q.div,{"data-state":kp(l),"data-disabled":a?"":void 0,...i,ref:t})})});ew.displayName=oc;var tw="CollapsibleTrigger",nw=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Pp(tw,n);return u.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":kp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:L(e.onClick,o.onOpenToggle)})});nw.displayName=tw;var Tp="CollapsibleContent",rw=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Pp(Tp,e.__scopeCollapsible);return u.jsx(_e,{present:n||o.open,children:({present:a})=>u.jsx(_k,{...r,ref:t,present:a})})});rw.displayName=Tp;var _k=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=Pp(Tp,n),[i,l]=c.useState(r),d=c.useRef(null),p=se(t,d),f=c.useRef(0),m=f.current,h=c.useRef(0),x=h.current,g=s.open||i,b=c.useRef(g),v=c.useRef(void 0);return c.useEffect(()=>{const y=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(y)},[]),Te(()=>{const y=d.current;if(y){v.current=v.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();f.current=w.height,h.current=w.width,b.current||(y.style.transitionDuration=v.current.transitionDuration,y.style.animationName=v.current.animationName),l(r)}},[s.open,r]),u.jsx(Q.div,{"data-state":kp(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:g&&o})});function kp(e){return e?"open":"closed"}var Mk=ew,jk=nw,Ik=rw,Ak=c.createContext(void 0);function Bn(e){const t=c.useContext(Ak);return e||t||"ltr"}var fn="Accordion",Ok=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_p,Dk,Lk]=Hn(fn),[ac]=ke(fn,[Lk,Jx]),Mp=Jx(),$k=F.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return u.jsx(_p.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?u.jsx(Bk,{...a,ref:t}):u.jsx(Hk,{...o,ref:t})})});$k.displayName=fn;var[ow,zk]=ac(fn),[aw,Fk]=ac(fn,{collapsible:!1}),Hk=F.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,l]=Ye({prop:n,defaultProp:r??"",onChange:o,caller:fn});return u.jsx(ow,{scope:e.__scopeAccordion,value:F.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:F.useCallback(()=>a&&l(""),[a,l]),children:u.jsx(aw,{scope:e.__scopeAccordion,collapsible:a,children:u.jsx(sw,{...s,ref:t})})})}),Bk=F.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ye({prop:n,defaultProp:r??[],onChange:o,caller:fn}),l=F.useCallback(p=>i((f=[])=>[...f,p]),[i]),d=F.useCallback(p=>i((f=[])=>f.filter(m=>m!==p)),[i]);return u.jsx(ow,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:d,children:u.jsx(aw,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(sw,{...a,ref:t})})})}),[Vk,sc]=ac(fn),sw=F.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,i=F.useRef(null),l=se(i,t),d=Dk(n),f=Bn(o)==="ltr",m=L(e.onKeyDown,h=>{var R;if(!Ok.includes(h.key))return;const x=h.target,g=d().filter(P=>{var O;return!((O=P.ref.current)!=null&&O.disabled)}),b=g.findIndex(P=>P.ref.current===x),v=g.length;if(b===-1)return;h.preventDefault();let y=b;const w=0,S=v-1,C=()=>{y=b+1,y>S&&(y=w)},E=()=>{y=b-1,y<w&&(y=S)};switch(h.key){case"Home":y=w;break;case"End":y=S;break;case"ArrowRight":a==="horizontal"&&(f?C():E());break;case"ArrowDown":a==="vertical"&&C();break;case"ArrowLeft":a==="horizontal"&&(f?E():C());break;case"ArrowUp":a==="vertical"&&E();break}const N=y%v;(R=g[N].ref.current)==null||R.focus()});return u.jsx(Vk,{scope:n,disabled:r,direction:o,orientation:a,children:u.jsx(_p.Slot,{scope:n,children:u.jsx(Q.div,{...s,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),xl="AccordionItem",[Uk,jp]=ac(xl),iw=F.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=sc(xl,n),s=zk(xl,n),i=Mp(n),l=Ke(),d=r&&s.value.includes(r)||!1,p=a.disabled||e.disabled;return u.jsx(Uk,{scope:n,open:d,disabled:p,triggerId:l,children:u.jsx(Mk,{"data-orientation":a.orientation,"data-state":pw(d),...i,...o,ref:t,disabled:p,open:d,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});iw.displayName=xl;var lw="AccordionHeader",cw=F.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sc(fn,n),a=jp(lw,n);return u.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":pw(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});cw.displayName=lw;var Yd="AccordionTrigger",uw=F.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sc(fn,n),a=jp(Yd,n),s=Fk(Yd,n),i=Mp(n);return u.jsx(_p.ItemSlot,{scope:n,children:u.jsx(jk,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...r,ref:t})})});uw.displayName=Yd;var dw="AccordionContent",fw=F.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sc(fn,n),a=jp(dw,n),s=Mp(n);return u.jsx(Ik,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});fw.displayName=dw;function pw(e){return e?"open":"closed"}var Wk=iw,Gk=cw,mw=uw,hw=fw;/**
|
|
41
|
+
* @license lucide-react v0.462.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const Kk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v0.462.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var Yk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
+
* @license lucide-react v0.462.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const Xk=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>c.createElement("svg",{ref:l,...Yk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vw("lucide",o),...i},[...s.map(([d,p])=>c.createElement(d,p)),...Array.isArray(a)?a:[a]]));/**
|
|
56
|
+
* @license lucide-react v0.462.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const pe=(e,t)=>{const n=c.forwardRef(({className:r,...o},a)=>c.createElement(Xk,{ref:a,iconNode:t,className:vw(`lucide-${Kk(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
61
|
+
* @license lucide-react v0.462.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const qk=pe("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
66
|
+
* @license lucide-react v0.462.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const Qk=pe("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
71
|
+
* @license lucide-react v0.462.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Zk=pe("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
76
|
+
* @license lucide-react v0.462.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const Jk=pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
81
|
+
* @license lucide-react v0.462.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const e_=pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
86
|
+
* @license lucide-react v0.462.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const t_=pe("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
91
|
+
* @license lucide-react v0.462.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const Ds=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
96
|
+
* @license lucide-react v0.462.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const ic=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
101
|
+
* @license lucide-react v0.462.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Ip=pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
106
|
+
* @license lucide-react v0.462.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const n_=pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
111
|
+
* @license lucide-react v0.462.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const lc=pe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
116
|
+
* @license lucide-react v0.462.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const r_=pe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
121
|
+
* @license lucide-react v0.462.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const yr=pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
126
|
+
* @license lucide-react v0.462.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const o_=pe("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
|
|
131
|
+
* @license lucide-react v0.462.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const xr=pe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
136
|
+
* @license lucide-react v0.462.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const a_=pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
141
|
+
* @license lucide-react v0.462.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const s_=pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
146
|
+
* @license lucide-react v0.462.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const gw=pe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
151
|
+
* @license lucide-react v0.462.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const i_=pe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
156
|
+
* @license lucide-react v0.462.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const l_=pe("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
161
|
+
* @license lucide-react v0.462.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const c_=pe("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
166
|
+
* @license lucide-react v0.462.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const u_=pe("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
171
|
+
* @license lucide-react v0.462.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const d_=pe("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
176
|
+
* @license lucide-react v0.462.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const f_=pe("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
|
|
181
|
+
* @license lucide-react v0.462.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const p_=pe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
186
|
+
* @license lucide-react v0.462.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const m_=pe("Redo",[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]]);/**
|
|
191
|
+
* @license lucide-react v0.462.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const h_=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
196
|
+
* @license lucide-react v0.462.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const v_=pe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
201
|
+
* @license lucide-react v0.462.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const g_=pe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
206
|
+
* @license lucide-react v0.462.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const y_=pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
211
|
+
* @license lucide-react v0.462.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const x_=pe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
216
|
+
* @license lucide-react v0.462.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const w_=pe("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
|
|
221
|
+
* @license lucide-react v0.462.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const b_=pe("Undo",[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]]);/**
|
|
226
|
+
* @license lucide-react v0.462.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const Ap=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
231
|
+
* @license lucide-react v0.462.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const S_=pe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),C_=c.forwardRef(({className:e,...t},n)=>u.jsx(Wk,{ref:n,className:M("border-b",e),...t}));C_.displayName="AccordionItem";const E_=c.forwardRef(({className:e,children:t,...n},r)=>u.jsx(Gk,{className:"flex",children:u.jsxs(mw,{ref:r,className:M("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,u.jsx(ic,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));E_.displayName=mw.displayName;const N_=c.forwardRef(({className:e,children:t,...n},r)=>u.jsx(hw,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:u.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));N_.displayName=hw.displayName;const yv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xv=Np,Vn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return xv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const p=n==null?void 0:n[d],f=a==null?void 0:a[d];if(p===null)return null;const m=yv(p)||yv(f);return o[d][m]}),i=n&&Object.entries(n).reduce((d,p)=>{let[f,m]=p;return m===void 0||(d[f]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:f,className:m,...h}=p;return Object.entries(h).every(x=>{let[g,b]=x;return Array.isArray(b)?b.includes({...a,...i}[g]):{...a,...i}[g]===b})?[...d,f,m]:d},[]);return xv(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},R_=Vn("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),P_=c.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,role:"alert",className:M(R_({variant:t}),e),...n}));P_.displayName="Alert";const T_=c.forwardRef(({className:e,...t},n)=>u.jsx("h5",{ref:n,className:M("mb-1 font-medium leading-none tracking-tight",e),...t}));T_.displayName="AlertTitle";const k_=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("text-sm [&_p]:leading-relaxed",e),...t}));k_.displayName="AlertDescription";function we(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function __(e,t=globalThis==null?void 0:globalThis.document){const n=we(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var M_="DismissableLayer",Xd="dismissableLayer.update",j_="dismissableLayer.pointerDownOutside",I_="dismissableLayer.focusOutside",wv,yw=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Un=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=c.useContext(yw),[p,f]=c.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),x=se(t,N=>f(N)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(b),y=p?g.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,C=O_(N=>{const R=N.target,P=[...d.branches].some(O=>O.contains(R));!S||P||(o==null||o(N),s==null||s(N),N.defaultPrevented||i==null||i())},m),E=D_(N=>{const R=N.target;[...d.branches].some(O=>O.contains(R))||(a==null||a(N),s==null||s(N),N.defaultPrevented||i==null||i())},m);return __(N=>{y===d.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&i&&(N.preventDefault(),i()))},m),c.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(wv=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),bv(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=wv)}},[p,m,n,d]),c.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),bv())},[p,d]),c.useEffect(()=>{const N=()=>h({});return document.addEventListener(Xd,N),()=>document.removeEventListener(Xd,N)},[]),u.jsx(Q.div,{...l,ref:x,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,E.onFocusCapture),onBlurCapture:L(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,C.onPointerDownCapture)})});Un.displayName=M_;var A_="DismissableLayerBranch",xw=c.forwardRef((e,t)=>{const n=c.useContext(yw),r=c.useRef(null),o=se(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(Q.div,{...e,ref:o})});xw.displayName=A_;function O_(e,t=globalThis==null?void 0:globalThis.document){const n=we(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){ww(j_,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function D_(e,t=globalThis==null?void 0:globalThis.document){const n=we(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&ww(I_,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bv(){const e=new CustomEvent(Xd);document.dispatchEvent(e)}function ww(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bs(o,a):o.dispatchEvent(a)}var L_=Un,$_=xw,_u="focusScope.autoFocusOnMount",Mu="focusScope.autoFocusOnUnmount",Sv={bubbles:!1,cancelable:!0},z_="FocusScope",Ls=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=c.useState(null),d=we(o),p=we(a),f=c.useRef(null),m=se(t,g=>l(g)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let g=function(w){if(h.paused||!i)return;const S=w.target;i.contains(S)?f.current=S:er(f.current,{select:!0})},b=function(w){if(h.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||er(f.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&er(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const y=new MutationObserver(v);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),y.disconnect()}}},[r,i,h.paused]),c.useEffect(()=>{if(i){Ev.add(h);const g=document.activeElement;if(!i.contains(g)){const v=new CustomEvent(_u,Sv);i.addEventListener(_u,d),i.dispatchEvent(v),v.defaultPrevented||(F_(W_(bw(i)),{select:!0}),document.activeElement===g&&er(i))}return()=>{i.removeEventListener(_u,d),setTimeout(()=>{const v=new CustomEvent(Mu,Sv);i.addEventListener(Mu,p),i.dispatchEvent(v),v.defaultPrevented||er(g??document.body,{select:!0}),i.removeEventListener(Mu,p),Ev.remove(h)},0)}}},[i,d,p,h]);const x=c.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(b&&v){const y=g.currentTarget,[w,S]=H_(y);w&&S?!g.shiftKey&&v===S?(g.preventDefault(),n&&er(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&er(S,{select:!0})):v===y&&g.preventDefault()}},[n,r,h.paused]);return u.jsx(Q.div,{tabIndex:-1,...s,ref:m,onKeyDown:x})});Ls.displayName=z_;function F_(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(er(r,{select:t}),document.activeElement!==n)return}function H_(e){const t=bw(e),n=Cv(t,e),r=Cv(t.reverse(),e);return[n,r]}function bw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cv(e,t){for(const n of e)if(!B_(n,{upTo:t}))return n}function B_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function V_(e){return e instanceof HTMLInputElement&&"select"in e}function er(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&V_(e)&&t&&e.select()}}var Ev=U_();function U_(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Nv(e,t),e.unshift(t)},remove(t){var n;e=Nv(e,t),(n=e[0])==null||n.resume()}}}function Nv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function W_(e){return e.filter(t=>t.tagName!=="A")}var G_="Portal",ca=c.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=c.useState(!1);Te(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Ep.createPortal(u.jsx(Q.div,{...r,ref:t}),s):null});ca.displayName=G_;var ju=0;function cc(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rv()),document.body.insertAdjacentElement("beforeend",e[1]??Rv()),ju++,()=>{ju===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ju--}},[])}function Rv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gn=function(){return gn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},gn.apply(this,arguments)};function Sw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function K_(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Wi="right-scroll-bar-position",Gi="width-before-scroll-bar",Y_="with-scroll-bars-hidden",X_="--removed-body-scroll-bar-size";function Iu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function q_(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Q_=typeof window<"u"?c.useLayoutEffect:c.useEffect,Pv=new WeakMap;function Z_(e,t){var n=q_(null,function(r){return e.forEach(function(o){return Iu(o,r)})});return Q_(function(){var r=Pv.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Iu(i,null)}),a.forEach(function(i){o.has(i)||Iu(i,s)})}Pv.set(n,e)},[e]),n}function J_(e){return e}function eM(e,t){t===void 0&&(t=J_);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(p){s.push(p),d()},filter:function(p){return s=s.filter(p),n}}}};return o}function tM(e){e===void 0&&(e={});var t=eM(null);return t.options=gn({async:!0,ssr:!1},e),t}var Cw=function(e){var t=e.sideCar,n=Sw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,gn({},n))};Cw.isSideCarExport=!0;function nM(e,t){return e.useMedium(t),Cw}var Ew=tM(),Au=function(){},uc=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Au,onWheelCapture:Au,onTouchMoveCapture:Au}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,x=e.noIsolation,g=e.inert,b=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,S=Sw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,E=Z_([n,t]),N=gn(gn({},S),o);return c.createElement(c.Fragment,null,p&&c.createElement(C,{sideCar:Ew,removeScrollBar:d,shards:f,noRelative:h,noIsolation:x,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:w}),s?c.cloneElement(c.Children.only(i),gn(gn({},N),{ref:E})):c.createElement(y,gn({},N,{className:l,ref:E}),i))});uc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uc.classNames={fullWidth:Gi,zeroRight:Wi};var rM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rM();return t&&e.setAttribute("nonce",t),e}function aM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oM())&&(aM(t,n),sM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lM=function(){var e=iM();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Nw=function(){var e=lM(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},cM={left:0,top:0,right:0,gap:0},Ou=function(e){return parseInt(e||"",10)||0},uM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ou(n),Ou(r),Ou(o)]},dM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cM;var t=uM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fM=Nw(),Bo="data-scroll-locked",pM=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
236
|
+
.`.concat(Y_,` {
|
|
237
|
+
overflow: hidden `).concat(r,`;
|
|
238
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
239
|
+
}
|
|
240
|
+
body[`).concat(Bo,`] {
|
|
241
|
+
overflow: hidden `).concat(r,`;
|
|
242
|
+
overscroll-behavior: contain;
|
|
243
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
244
|
+
padding-left: `.concat(o,`px;
|
|
245
|
+
padding-top: `).concat(a,`px;
|
|
246
|
+
padding-right: `).concat(s,`px;
|
|
247
|
+
margin-left:0;
|
|
248
|
+
margin-top:0;
|
|
249
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
250
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.`).concat(Wi,` {
|
|
254
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.`).concat(Gi,` {
|
|
258
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.`).concat(Wi," .").concat(Wi,` {
|
|
262
|
+
right: 0 `).concat(r,`;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.`).concat(Gi," .").concat(Gi,` {
|
|
266
|
+
margin-right: 0 `).concat(r,`;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
body[`).concat(Bo,`] {
|
|
270
|
+
`).concat(X_,": ").concat(i,`px;
|
|
271
|
+
}
|
|
272
|
+
`)},Tv=function(){var e=parseInt(document.body.getAttribute(Bo)||"0",10);return isFinite(e)?e:0},mM=function(){c.useEffect(function(){return document.body.setAttribute(Bo,(Tv()+1).toString()),function(){var e=Tv()-1;e<=0?document.body.removeAttribute(Bo):document.body.setAttribute(Bo,e.toString())}},[])},hM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;mM();var a=c.useMemo(function(){return dM(o)},[o]);return c.createElement(fM,{styles:pM(a,!t,o,n?"":"!important")})},qd=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return qd=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{qd=!1}var ho=qd?{passive:!1}:!1,vM=function(e){return e.tagName==="TEXTAREA"},Rw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vM(e)&&n[t]==="visible")},gM=function(e){return Rw(e,"overflowY")},yM=function(e){return Rw(e,"overflowX")},kv=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Pw(e,r);if(o){var a=Tw(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pw=function(e,t){return e==="v"?gM(t):yM(t)},Tw=function(e,t){return e==="v"?xM(t):wM(t)},bM=function(e,t){return e==="h"&&t==="rtl"?-1:1},SM=function(e,t,n,r,o){var a=bM(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,p=s>0,f=0,m=0;do{if(!i)break;var h=Tw(e,i),x=h[0],g=h[1],b=h[2],v=g-b-a*x;(x||v)&&Pw(e,i)&&(f+=v,m+=x);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(f)<1||!p&&Math.abs(m)<1)&&(d=!0),d},Ci=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_v=function(e){return[e.deltaX,e.deltaY]},Mv=function(e){return e&&"current"in e?e.current:e},CM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EM=function(e){return`
|
|
273
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
274
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
275
|
+
`)},NM=0,vo=[];function RM(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(NM++)[0],a=c.useState(Nw)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=K_([e.lockRef.current],(e.shards||[]).map(Mv),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var v=Ci(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-v[0],S="deltaY"in g?g.deltaY:y[1]-v[1],C,E=g.target,N=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in g&&N==="h"&&E.type==="range")return!1;var R=window.getSelection(),P=R&&R.anchorNode,O=P?P===E||P.contains(E):!1;if(O)return!1;var k=kv(N,E);if(!k)return!0;if(k?C=N:(C=N==="v"?"h":"v",k=kv(N,E)),!k)return!1;if(!r.current&&"changedTouches"in g&&(w||S)&&(r.current=C),!C)return!0;var D=r.current||C;return SM(D,b,g,D==="h"?w:S)},[]),l=c.useCallback(function(g){var b=g;if(!(!vo.length||vo[vo.length-1]!==a)){var v="deltaY"in b?_v(b):Ci(b),y=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&CM(C.delta,v)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(Mv).filter(Boolean).filter(function(C){return C.contains(b.target)}),S=w.length>0?i(b,w[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),d=c.useCallback(function(g,b,v,y){var w={name:g,delta:b,target:v,should:y,shadowParent:PM(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=c.useCallback(function(g){n.current=Ci(g),r.current=void 0},[]),f=c.useCallback(function(g){d(g.type,_v(g),g.target,i(g,e.lockRef.current))},[]),m=c.useCallback(function(g){d(g.type,Ci(g),g.target,i(g,e.lockRef.current))},[]);c.useEffect(function(){return vo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,ho),document.addEventListener("touchmove",l,ho),document.addEventListener("touchstart",p,ho),function(){vo=vo.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,ho),document.removeEventListener("touchmove",l,ho),document.removeEventListener("touchstart",p,ho)}},[]);var h=e.removeScrollBar,x=e.inert;return c.createElement(c.Fragment,null,x?c.createElement(a,{styles:EM(o)}):null,h?c.createElement(hM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TM=nM(Ew,RM);var $s=c.forwardRef(function(e,t){return c.createElement(uc,gn({},e,{ref:t,sideCar:TM}))});$s.classNames=uc.classNames;var kM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,Ei=new WeakMap,Ni={},Du=0,kw=function(e){return e&&(e.host||kw(e.parentNode))},_M=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=kw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},MM=function(e,t,n,r){var o=_M(t,Array.isArray(e)?e:[e]);Ni[n]||(Ni[n]=new WeakMap);var a=Ni[n],s=[],i=new Set,l=new Set(o),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};o.forEach(d);var p=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(m){if(i.has(m))p(m);else try{var h=m.getAttribute(r),x=h!==null&&h!=="false",g=(go.get(m)||0)+1,b=(a.get(m)||0)+1;go.set(m,g),a.set(m,b),s.push(m),g===1&&x&&Ei.set(m,!0),b===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return p(t),i.clear(),Du++,function(){s.forEach(function(f){var m=go.get(f)-1,h=a.get(f)-1;go.set(f,m),a.set(f,h),m||(Ei.has(f)||f.removeAttribute(r),Ei.delete(f)),h||f.removeAttribute(n)}),Du--,Du||(go=new WeakMap,go=new WeakMap,Ei=new WeakMap,Ni={})}},dc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kM(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),MM(r,o,n,"aria-hidden")):function(){return null}},fc="Dialog",[_w,Mw]=ke(fc),[jM,pn]=_w(fc),jw=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=c.useRef(null),l=c.useRef(null),[d,p]=Ye({prop:r,defaultProp:o??!1,onChange:a,caller:fc});return u.jsx(jM,{scope:t,triggerRef:i,contentRef:l,contentId:Ke(),titleId:Ke(),descriptionId:Ke(),open:d,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(f=>!f),[p]),modal:s,children:n})};jw.displayName=fc;var Iw="DialogTrigger",Aw=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pn(Iw,n),a=se(t,o.triggerRef);return u.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lp(o.open),...r,ref:a,onClick:L(e.onClick,o.onOpenToggle)})});Aw.displayName=Iw;var Op="DialogPortal",[IM,Ow]=_w(Op,{forceMount:void 0}),Dw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=pn(Op,t);return u.jsx(IM,{scope:t,forceMount:n,children:c.Children.map(r,s=>u.jsx(_e,{present:n||a.open,children:u.jsx(ca,{asChild:!0,container:o,children:s})}))})};Dw.displayName=Op;var wl="DialogOverlay",Lw=c.forwardRef((e,t)=>{const n=Ow(wl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pn(wl,e.__scopeDialog);return a.modal?u.jsx(_e,{present:r||a.open,children:u.jsx(OM,{...o,ref:t})}):null});Lw.displayName=wl;var AM=Xr("DialogOverlay.RemoveScroll"),OM=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pn(wl,n);return u.jsx($s,{as:AM,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Q.div,{"data-state":Lp(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),qr="DialogContent",$w=c.forwardRef((e,t)=>{const n=Ow(qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pn(qr,e.__scopeDialog);return u.jsx(_e,{present:r||a.open,children:a.modal?u.jsx(DM,{...o,ref:t}):u.jsx(LM,{...o,ref:t})})});$w.displayName=qr;var DM=c.forwardRef((e,t)=>{const n=pn(qr,e.__scopeDialog),r=c.useRef(null),o=se(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return dc(a)},[]),u.jsx(zw,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault())})}),LM=c.forwardRef((e,t)=>{const n=pn(qr,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return u.jsx(zw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),zw=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=pn(qr,n),l=c.useRef(null),d=se(t,l);return cc(),u.jsxs(u.Fragment,{children:[u.jsx(Ls,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(Un,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lp(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(zM,{titleId:i.titleId}),u.jsx(HM,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Dp="DialogTitle",Fw=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pn(Dp,n);return u.jsx(Q.h2,{id:o.titleId,...r,ref:t})});Fw.displayName=Dp;var Hw="DialogDescription",Bw=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pn(Hw,n);return u.jsx(Q.p,{id:o.descriptionId,...r,ref:t})});Bw.displayName=Hw;var Vw="DialogClose",Uw=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pn(Vw,n);return u.jsx(Q.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});Uw.displayName=Vw;function Lp(e){return e?"open":"closed"}var Ww="DialogTitleWarning",[$M,Gw]=pk(Ww,{contentName:qr,titleName:Dp,docsSlug:"dialog"}),zM=({titleId:e})=>{const t=Gw(Ww),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
276
|
+
|
|
277
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
278
|
+
|
|
279
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},FM="DialogDescriptionWarning",HM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gw(FM).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Kw=jw,BM=Aw,zs=Dw,ao=Lw,so=$w,ua=Fw,da=Bw,pc=Uw,VM="AlertDialog",[UM]=ke(VM,[Mw]),Rr=Mw(),WM="AlertDialogTrigger",GM=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Rr(n);return u.jsx(BM,{...o,...r,ref:t})});GM.displayName=WM;var KM="AlertDialogPortal",Yw=e=>{const{__scopeAlertDialog:t,...n}=e,r=Rr(t);return u.jsx(zs,{...r,...n})};Yw.displayName=KM;var YM="AlertDialogOverlay",Xw=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Rr(n);return u.jsx(ao,{...o,...r,ref:t})});Xw.displayName=YM;var Vo="AlertDialogContent",[XM,qM]=UM(Vo),QM=Zx("AlertDialogContent"),qw=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Rr(n),s=c.useRef(null),i=se(t,s),l=c.useRef(null);return u.jsx($M,{contentName:Vo,titleName:Qw,docsSlug:"alert-dialog",children:u.jsx(XM,{scope:n,cancelRef:l,children:u.jsxs(so,{role:"alertdialog",...a,...o,ref:i,onOpenAutoFocus:L(o.onOpenAutoFocus,d=>{var p;d.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[u.jsx(QM,{children:r}),u.jsx(JM,{contentRef:s})]})})})});qw.displayName=Vo;var Qw="AlertDialogTitle",Zw=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Rr(n);return u.jsx(ua,{...o,...r,ref:t})});Zw.displayName=Qw;var Jw="AlertDialogDescription",e0=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Rr(n);return u.jsx(da,{...o,...r,ref:t})});e0.displayName=Jw;var ZM="AlertDialogAction",t0=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Rr(n);return u.jsx(pc,{...o,...r,ref:t})});t0.displayName=ZM;var n0="AlertDialogCancel",r0=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=qM(n0,n),a=Rr(n),s=se(t,o);return u.jsx(pc,{...a,...r,ref:s})});r0.displayName=n0;var JM=({contentRef:e})=>{const t=`\`${Vo}\` requires a description for the component to be accessible for screen reader users.
|
|
280
|
+
|
|
281
|
+
You can add a description to the \`${Vo}\` by passing a \`${Jw}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
282
|
+
|
|
283
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
284
|
+
|
|
285
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ej=Yw,o0=Xw,a0=qw,s0=t0,i0=r0,l0=Zw,c0=e0,tj=Symbol.for("react.lazy"),bl=Bl[" use ".trim().toString()];function nj(e){return typeof e=="object"&&e!==null&&"then"in e}function u0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tj&&"_payload"in e&&nj(e._payload)}function d0(e){const t=rj(e),n=c.forwardRef((r,o)=>{let{children:a,...s}=r;u0(a)&&typeof bl=="function"&&(a=bl(a._payload));const i=c.Children.toArray(a),l=i.find(aj);if(l){const d=l.props.children,p=i.map(f=>f===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return u.jsx(t,{...s,ref:o,children:c.isValidElement(d)?c.cloneElement(d,void 0,p):null})}return u.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Pr=d0("Slot");function rj(e){const t=c.forwardRef((n,r)=>{let{children:o,...a}=n;if(u0(o)&&typeof bl=="function"&&(o=bl(o._payload)),c.isValidElement(o)){const s=ij(o),i=sj(a,o.props);return o.type!==c.Fragment&&(i.ref=r?sn(r,s):s),c.cloneElement(o,i)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oj=Symbol("radix.slottable");function aj(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oj}function sj(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ij(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const $p=Vn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ge=c.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?Pr:"button";return u.jsx(s,{className:M($p({variant:t,size:n,className:e})),ref:a,...o})});ge.displayName="Button";const lj=ej,f0=c.forwardRef(({className:e,...t},n)=>u.jsx(o0,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));f0.displayName=o0.displayName;const cj=c.forwardRef(({className:e,...t},n)=>u.jsxs(lj,{children:[u.jsx(f0,{}),u.jsx(a0,{ref:n,className:M("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",e),...t})]}));cj.displayName=a0.displayName;const uj=c.forwardRef(({className:e,...t},n)=>u.jsx(l0,{ref:n,className:M("text-lg font-semibold",e),...t}));uj.displayName=l0.displayName;const dj=c.forwardRef(({className:e,...t},n)=>u.jsx(c0,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));dj.displayName=c0.displayName;const fj=c.forwardRef(({className:e,...t},n)=>u.jsx(s0,{ref:n,className:M($p(),e),...t}));fj.displayName=s0.displayName;const pj=c.forwardRef(({className:e,...t},n)=>u.jsx(i0,{ref:n,className:M($p({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));pj.displayName=i0.displayName;var mj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=mj.reduce((e,t)=>{const n=d0(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function p0(e,t=[]){let n=[];function r(a,s){const i=c.createContext(s);i.displayName=a+"Context";const l=n.length;n=[...n,s];const d=f=>{var v;const{scope:m,children:h,...x}=f,g=((v=m==null?void 0:m[e])==null?void 0:v[l])||i,b=c.useMemo(()=>x,Object.values(x));return u.jsx(g.Provider,{value:b,children:h})};d.displayName=a+"Provider";function p(f,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[l])||i,x=c.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,p]}const o=()=>{const a=n.map(s=>c.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,hj(o,...t)]}function hj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const f=l(a)[`__scope${d}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var m0={exports:{}},h0={};/**
|
|
286
|
+
* @license React
|
|
287
|
+
* use-sync-external-store-shim.production.js
|
|
288
|
+
*
|
|
289
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the MIT license found in the
|
|
292
|
+
* LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/var Jo=c;function vj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gj=typeof Object.is=="function"?Object.is:vj,yj=Jo.useState,xj=Jo.useEffect,wj=Jo.useLayoutEffect,bj=Jo.useDebugValue;function Sj(e,t){var n=t(),r=yj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return wj(function(){o.value=n,o.getSnapshot=t,Lu(o)&&a({inst:o})},[e,n,t]),xj(function(){return Lu(o)&&a({inst:o}),e(function(){Lu(o)&&a({inst:o})})},[e]),bj(n),n}function Lu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gj(e,n)}catch{return!0}}function Cj(e,t){return t()}var Ej=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Cj:Sj;h0.useSyncExternalStore=Jo.useSyncExternalStore!==void 0?Jo.useSyncExternalStore:Ej;m0.exports=h0;var Nj=m0.exports;function Rj(){return Nj.useSyncExternalStore(Pj,()=>!0,()=>!1)}function Pj(){return()=>{}}var zp="Avatar",[Tj]=p0(zp),[kj,v0]=Tj(zp),g0=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return u.jsx(kj,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(dt.span,{...r,ref:t})})});g0.displayName=zp;var y0="AvatarImage",x0=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=v0(y0,n),i=_j(r,a),l=we(d=>{o(d),s.onImageLoadingStatusChange(d)});return Te(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?u.jsx(dt.img,{...a,ref:t,src:r}):null});x0.displayName=y0;var w0="AvatarFallback",b0=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=v0(w0,n),[s,i]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(dt.span,{...o,ref:t}):null});b0.displayName=w0;function jv(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function _j(e,{referrerPolicy:t,crossOrigin:n}){const r=Rj(),o=c.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=c.useState(()=>jv(a,e));return Te(()=>{i(jv(a,e))},[a,e]),Te(()=>{const l=f=>()=>{i(f)};if(!a)return;const d=l("loaded"),p=l("error");return a.addEventListener("load",d),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",d),a.removeEventListener("error",p)}},[a,n,t]),s}var S0=g0,C0=x0,E0=b0;const Mj=c.forwardRef(({className:e,...t},n)=>u.jsx(S0,{ref:n,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Mj.displayName=S0.displayName;const jj=c.forwardRef(({className:e,...t},n)=>u.jsx(C0,{ref:n,className:M("aspect-square h-full w-full",e),...t}));jj.displayName=C0.displayName;const Ij=c.forwardRef(({className:e,...t},n)=>u.jsx(E0,{ref:n,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ij.displayName=E0.displayName;const Aj=Vn("inline-flex items-center rounded-full 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Iv({className:e,variant:t,...n}){return u.jsx("div",{className:M(Aj({variant:t}),e),...n})}const Oj=c.forwardRef(({...e},t)=>u.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Oj.displayName="Breadcrumb";const Dj=c.forwardRef(({className:e,...t},n)=>u.jsx("ol",{ref:n,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Dj.displayName="BreadcrumbList";const Lj=c.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:M("inline-flex items-center gap-1.5",e),...t}));Lj.displayName="BreadcrumbItem";const $j=c.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Pr:"a";return u.jsx(o,{ref:r,className:M("transition-colors hover:text-foreground",t),...n})});$j.displayName="BreadcrumbLink";const zj=c.forwardRef(({className:e,...t},n)=>u.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));zj.displayName="BreadcrumbPage";var es=function(){return es=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},es.apply(this,arguments)};var Fj=c.createContext(void 0);function Hj(){var e=c.useContext(Fj);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}c.createContext(void 0);c.forwardRef(function(e,t){var n=Hj(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var s=a.join(" "),i=es(es({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),u.jsx("button",es({},e,{ref:t,type:"button",className:s,style:i}))});c.createContext(void 0);c.createContext(void 0);var Sn;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Sn||(Sn={}));Sn.Selected;Sn.Disabled;Sn.Hidden;Sn.Today;Sn.RangeEnd;Sn.RangeMiddle;Sn.RangeStart;Sn.Outside;c.createContext(void 0);c.createContext(void 0);c.createContext(void 0);function Bj(e){return Object.prototype.toString.call(e)==="[object Object]"}function Av(e){return Bj(e)||Array.isArray(e)}function Vj(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(s=>{const i=e[s],l=t[s];return typeof i=="function"?`${i}`==`${l}`:!Av(i)||!Av(l)?i===l:Fp(i,l)})}function Ov(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Uj(e,t){if(e.length!==t.length)return!1;const n=Ov(e),r=Ov(t);return n.every((o,a)=>{const s=r[a];return Fp(o,s)})}function Hp(e){return typeof e=="number"}function Qd(e){return typeof e=="string"}function mc(e){return typeof e=="boolean"}function Dv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ae(e){return Math.abs(e)}function Bp(e){return Math.sign(e)}function ts(e,t){return Ae(e-t)}function Wj(e,t){if(e===0||t===0||Ae(e)<=Ae(t))return 0;const n=ts(Ae(e),Ae(t));return Ae(n/e)}function Gj(e){return Math.round(e*100)/100}function Ss(e){return Cs(e).map(Number)}function on(e){return e[Fs(e)]}function Fs(e){return Math.max(0,e.length-1)}function Vp(e,t){return t===Fs(e)}function Lv(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Cs(e){return Object.keys(e)}function N0(e,t){return[e,t].reduce((n,r)=>(Cs(r).forEach(o=>{const a=n[o],s=r[o],i=Dv(a)&&Dv(s);n[o]=i?N0(a,s):s}),n),{})}function Zd(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Kj(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function s(l,d){return Qd(e)?n[e](l):e(t,l,d)}return{measure:s}}function Es(){let e=[];function t(o,a,s,i={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,s,i),l=()=>o.removeEventListener(a,s,i);else{const d=o;d.addListener(s),l=()=>d.removeListener(s)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function Yj(e,t,n,r){const o=Es(),a=1e3/60;let s=null,i=0,l=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&x()})}function p(){h(),o.clear()}function f(b){if(!l)return;s||(s=b,n(),n());const v=b-s;for(s=b,i+=v;i>=a;)n(),i-=a;const y=i/a;r(y),l&&(l=t.requestAnimationFrame(f))}function m(){l||(l=t.requestAnimationFrame(f))}function h(){t.cancelAnimationFrame(l),s=null,i=0,l=0}function x(){s=null,i=0}return{init:d,destroy:p,start:m,stop:h,update:n,render:r}}function Xj(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",s=!r&&n?-1:1,i=p(),l=f();function d(x){const{height:g,width:b}=x;return r?g:b}function p(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function m(x){return x*s}return{scroll:o,cross:a,startEdge:i,endEdge:l,measureSize:d,direction:m}}function Qr(e=0,t=0){const n=Ae(e-t);function r(d){return d<e}function o(d){return d>t}function a(d){return r(d)||o(d)}function s(d){return a(d)?r(d)?e:t:d}function i(d){return n?d-n*Math.ceil((d-t)/n):d}return{length:n,max:t,min:e,constrain:s,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:i}}function R0(e,t,n){const{constrain:r}=Qr(0,e),o=e+1;let a=s(t);function s(m){return n?Ae((o+m)%o):r(m)}function i(){return a}function l(m){return a=s(m),f}function d(m){return p().set(i()+m)}function p(){return R0(e,i(),n)}const f={get:i,set:l,add:d,clone:p};return f}function qj(e,t,n,r,o,a,s,i,l,d,p,f,m,h,x,g,b,v,y){const{cross:w,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],E={passive:!1},N=Es(),R=Es(),P=Qr(50,225).constrain(h.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},D=x?43:25;let V=!1,$=0,U=0,B=!1,Z=!1,I=!1,T=!1;function W(K){if(!y)return;function oe(re){(mc(y)||y(K,re))&&G(re)}const q=t;N.add(q,"dragstart",re=>re.preventDefault(),E).add(q,"touchmove",()=>{},E).add(q,"touchend",()=>{}).add(q,"touchstart",oe).add(q,"mousedown",oe).add(q,"touchcancel",Y).add(q,"contextmenu",Y).add(q,"click",ee,!0)}function J(){N.clear(),R.clear()}function _(){const K=T?n:t;R.add(K,"touchmove",j,E).add(K,"touchend",Y).add(K,"mousemove",j,E).add(K,"mouseup",Y)}function A(K){const oe=K.nodeName||"";return C.includes(oe)}function z(){return(x?k:O)[T?"mouse":"touch"]}function H(K,oe){const q=f.add(Bp(K)*-1),re=p.byDistance(K,!x).distance;return x||Ae(K)<P?re:b&&oe?re*.5:p.byIndex(q.get(),0).distance}function G(K){const oe=Zd(K,r);T=oe,I=x&&oe&&!K.buttons&&V,V=ts(o.get(),s.get())>=2,!(oe&&K.button!==0)&&(A(K.target)||(B=!0,a.pointerDown(K),d.useFriction(0).useDuration(0),o.set(s),_(),$=a.readPoint(K),U=a.readPoint(K,w),m.emit("pointerDown")))}function j(K){if(!Zd(K,r)&&K.touches.length>=2)return Y(K);const q=a.readPoint(K),re=a.readPoint(K,w),de=ts(q,$),me=ts(re,U);if(!Z&&!T&&(!K.cancelable||(Z=de>me,!Z)))return Y(K);const ce=a.pointerMove(K);de>g&&(I=!0),d.useFriction(.3).useDuration(.75),i.start(),o.add(S(ce)),K.preventDefault()}function Y(K){const q=p.byDistance(0,!1).index!==f.get(),re=a.pointerUp(K)*z(),de=H(S(re),q),me=Wj(re,de),ce=D-10*me,le=v+me/50;Z=!1,B=!1,R.clear(),d.useDuration(ce).useFriction(le),l.distance(de,!x),T=!1,m.emit("pointerUp")}function ee(K){I&&(K.stopPropagation(),K.preventDefault(),I=!1)}function te(){return B}return{init:W,destroy:J,pointerDown:te}}function Qj(e,t){let r,o;function a(f){return f.timeStamp}function s(f,m){const x=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Zd(f,t)?f:f.touches[0])[x]}function i(f){return r=f,o=f,s(f)}function l(f){const m=s(f)-s(o),h=a(f)-a(r)>170;return o=f,h&&(r=f),m}function d(f){if(!r||!o)return 0;const m=s(o)-s(r),h=a(f)-a(r),x=a(f)-a(o)>170,g=m/h;return h&&!x&&Ae(g)>.1?g:0}return{pointerDown:i,pointerMove:l,pointerUp:d,readPoint:s}}function Zj(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:s}=n;return{top:r,right:o+a,bottom:r+s,left:o,width:a,height:s}}return{measure:e}}function Jj(e){function t(r){return e*(r/100)}return{measure:t}}function eI(e,t,n,r,o,a,s){const i=[e].concat(r);let l,d,p=[],f=!1;function m(b){return o.measureSize(s.measure(b))}function h(b){if(!a)return;d=m(e),p=r.map(m);function v(y){for(const w of y){if(f)return;const S=w.target===e,C=r.indexOf(w.target),E=S?d:p[C],N=m(S?e:r[C]);if(Ae(N-E)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(y=>{(mc(a)||a(b,y))&&v(y)}),n.requestAnimationFrame(()=>{i.forEach(y=>l.observe(y))})}function x(){f=!0,l&&l.disconnect()}return{init:h,destroy:x}}function tI(e,t,n,r,o,a){let s=0,i=0,l=o,d=a,p=e.get(),f=0;function m(){const E=r.get()-e.get(),N=!l;let R=0;return N?(s=0,n.set(r),e.set(r),R=E):(n.set(e),s+=E/l,s*=d,p+=s,e.add(s),R=p-f),i=Bp(R),f=p,C}function h(){const E=r.get()-t.get();return Ae(E)<.001}function x(){return l}function g(){return i}function b(){return s}function v(){return w(o)}function y(){return S(a)}function w(E){return l=E,C}function S(E){return d=E,C}const C={direction:g,duration:x,velocity:b,seek:m,settled:h,useBaseFriction:y,useBaseDuration:v,useFriction:S,useDuration:w};return C}function nI(e,t,n,r,o){const a=o.measure(10),s=o.measure(50),i=Qr(.1,.99);let l=!1;function d(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(h){if(!d())return;const x=e.reachedMin(t.get())?"min":"max",g=Ae(e[x]-t.get()),b=n.get()-t.get(),v=i.constrain(g/s);n.subtract(b*v),!h&&Ae(b)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(h){l=!h}return{shouldConstrain:d,constrain:p,toggleActive:f}}function rI(e,t,n,r,o){const a=Qr(-t+e,0),s=f(),i=p(),l=m();function d(x,g){return ts(x,g)<=1}function p(){const x=s[0],g=on(s),b=s.lastIndexOf(x),v=s.indexOf(g)+1;return Qr(b,v)}function f(){return n.map((x,g)=>{const{min:b,max:v}=a,y=a.constrain(x),w=!g,S=Vp(n,g);return w?v:S||d(b,y)?b:d(v,y)?v:y}).map(x=>parseFloat(x.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return s;const{min:x,max:g}=i;return s.slice(x,g)}return{snapsContained:l,scrollContainLimit:i}}function oI(e,t,n){const r=t[0],o=n?r-e:on(t);return{limit:Qr(o,r)}}function aI(e,t,n,r){const a=t.min+.1,s=t.max+.1,{reachedMin:i,reachedMax:l}=Qr(a,s);function d(m){return m===1?l(n.get()):m===-1?i(n.get()):!1}function p(m){if(!d(m))return;const h=e*(m*-1);r.forEach(x=>x.add(h))}return{loop:p}}function sI(e){const{max:t,length:n}=e;function r(a){const s=a-t;return n?s/-n:0}return{get:r}}function iI(e,t,n,r,o){const{startEdge:a,endEdge:s}=e,{groupSlides:i}=o,l=f().map(t.measure),d=m(),p=h();function f(){return i(r).map(g=>on(g)[s]-g[0][a]).map(Ae)}function m(){return r.map(g=>n[a]-g[a]).map(g=>-Ae(g))}function h(){return i(d).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:d,snapsAligned:p}}function lI(e,t,n,r,o,a){const{groupSlides:s}=o,{min:i,max:l}=r,d=p();function p(){const m=s(a),h=!e||t==="keepSnaps";return n.length===1?[a]:h?m:m.slice(i,l).map((x,g,b)=>{const v=!g,y=Vp(b,g);if(v){const w=on(b[0])+1;return Lv(w)}if(y){const w=Fs(a)-on(b)[0]+1;return Lv(w,on(b)[0])}return x})}return{slideRegistry:d}}function cI(e,t,n,r,o){const{reachedAny:a,removeOffset:s,constrain:i}=r;function l(x){return x.concat().sort((g,b)=>Ae(g)-Ae(b))[0]}function d(x){const g=e?s(x):i(x),b=t.map((y,w)=>({diff:p(y-g,0),index:w})).sort((y,w)=>Ae(y.diff)-Ae(w.diff)),{index:v}=b[0];return{index:v,distance:g}}function p(x,g){const b=[x,x+n,x-n];if(!e)return x;if(!g)return l(b);const v=b.filter(y=>Bp(y)===g);return v.length?l(v):on(b)-n}function f(x,g){const b=t[x]-o.get(),v=p(b,g);return{index:x,distance:v}}function m(x,g){const b=o.get()+x,{index:v,distance:y}=d(b),w=!e&&a(b);if(!g||w)return{index:v,distance:x};const S=t[v]-y,C=x+p(S,0);return{index:v,distance:C}}return{byDistance:m,byIndex:f,shortcut:p}}function uI(e,t,n,r,o,a,s){function i(f){const m=f.distance,h=f.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(f.index),s.emit("select"))}function l(f,m){const h=o.byDistance(f,m);i(h)}function d(f,m){const h=t.clone().set(f),x=o.byIndex(h.get(),m);i(x)}return{distance:l,index:d}}function dI(e,t,n,r,o,a,s,i){const l={passive:!0,capture:!0};let d=0;function p(h){if(!i)return;function x(g){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const y=n.findIndex(w=>w.includes(g));Hp(y)&&(o.useDuration(0),r.index(y,0),s.emit("slideFocus"))}a.add(document,"keydown",f,!1),t.forEach((g,b)=>{a.add(g,"focus",v=>{(mc(i)||i(h,v))&&x(b)},l)})}function f(h){h.code==="Tab"&&(d=new Date().getTime())}return{init:p}}function Fa(e){let t=e;function n(){return t}function r(l){t=s(l)}function o(l){t+=s(l)}function a(l){t-=s(l)}function s(l){return Hp(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function P0(e,t){const n=e.scroll==="x"?s:i,r=t.style;let o=null,a=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function i(m){return`translate3d(0px,${m}px,0px)`}function l(m){if(a)return;const h=Gj(e.direction(m));h!==o&&(r.transform=n(h),o=h)}function d(m){a=!m}function p(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:l,toggleActive:d}}function fI(e,t,n,r,o,a,s,i,l){const p=Ss(o),f=Ss(o).reverse(),m=v().concat(y());function h(N,R){return N.reduce((P,O)=>P-o[O],R)}function x(N,R){return N.reduce((P,O)=>h(P,R)>0?P.concat([O]):P,[])}function g(N){return a.map((R,P)=>({start:R-r[P]+.5+N,end:R+t-.5+N}))}function b(N,R,P){const O=g(R);return N.map(k=>{const D=P?0:-n,V=P?n:0,$=P?"end":"start",U=O[k][$];return{index:k,loopPoint:U,slideLocation:Fa(-1),translate:P0(e,l[k]),target:()=>i.get()>U?D:V}})}function v(){const N=s[0],R=x(f,N);return b(R,n,!1)}function y(){const N=t-s[0]-1,R=x(p,N);return b(R,-n,!0)}function w(){return m.every(({index:N})=>{const R=p.filter(P=>P!==N);return h(R,t)<=.1})}function S(){m.forEach(N=>{const{target:R,translate:P,slideLocation:O}=N,k=R();k!==O.get()&&(P.to(k),O.set(k))})}function C(){m.forEach(N=>N.translate.clear())}return{canLoop:w,clear:C,loop:S,loopPoints:m}}function pI(e,t,n){let r,o=!1;function a(l){if(!n)return;function d(p){for(const f of p)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(p=>{o||(mc(n)||n(l,p))&&d(p)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),o=!0}return{init:a,destroy:s}}function mI(e,t,n,r){const o={};let a=null,s=null,i,l=!1;function d(){i=new IntersectionObserver(x=>{l||(x.forEach(g=>{const b=t.indexOf(g.target);o[b]=g}),a=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(x=>i.observe(x))}function p(){i&&i.disconnect(),l=!0}function f(x){return Cs(o).reduce((g,b)=>{const v=parseInt(b),{isIntersecting:y}=o[v];return(x&&y||!x&&!y)&&g.push(v),g},[])}function m(x=!0){if(x&&a)return a;if(!x&&s)return s;const g=f(x);return x&&(a=g),x||(s=g),g}return{init:d,destroy:p,get:m}}function hI(e,t,n,r,o,a){const{measureSize:s,startEdge:i,endEdge:l}=e,d=n[0]&&o,p=x(),f=g(),m=n.map(s),h=b();function x(){if(!d)return 0;const y=n[0];return Ae(t[i]-y[i])}function g(){if(!d)return 0;const y=a.getComputedStyle(on(r));return parseFloat(y.getPropertyValue(`margin-${l}`))}function b(){return n.map((y,w,S)=>{const C=!w,E=Vp(S,w);return C?m[w]+p:E?m[w]+f:S[w+1][i]-y[i]}).map(Ae)}return{slideSizes:m,slideSizesWithGaps:h,startGap:p,endGap:f}}function vI(e,t,n,r,o,a,s,i,l){const{startEdge:d,endEdge:p,direction:f}=e,m=Hp(n);function h(v,y){return Ss(v).filter(w=>w%y===0).map(w=>v.slice(w,w+y))}function x(v){return v.length?Ss(v).reduce((y,w,S)=>{const C=on(y)||0,E=C===0,N=w===Fs(v),R=o[d]-a[C][d],P=o[d]-a[w][p],O=!r&&E?f(s):0,k=!r&&N?f(i):0,D=Ae(P-k-(R+O));return S&&D>t+l&&y.push(w),N&&y.push(v.length),y},[]).map((y,w,S)=>{const C=Math.max(S[w-1]||0);return v.slice(C,y)}):[]}function g(v){return m?h(v,n):x(v)}return{groupSlides:g}}function gI(e,t,n,r,o,a,s){const{align:i,axis:l,direction:d,startIndex:p,loop:f,duration:m,dragFree:h,dragThreshold:x,inViewThreshold:g,slidesToScroll:b,skipSnaps:v,containScroll:y,watchResize:w,watchSlides:S,watchDrag:C,watchFocus:E}=a,N=2,R=Zj(),P=R.measure(t),O=n.map(R.measure),k=Xj(l,d),D=k.measureSize(P),V=Jj(D),$=Kj(i,D),U=!f&&!!y,B=f||!!y,{slideSizes:Z,slideSizesWithGaps:I,startGap:T,endGap:W}=hI(k,P,O,n,B,o),J=vI(k,D,b,f,P,O,T,W,N),{snaps:_,snapsAligned:A}=iI(k,$,P,O,J),z=-on(_)+on(I),{snapsContained:H,scrollContainLimit:G}=rI(D,z,A,y,N),j=U?H:A,{limit:Y}=oI(z,j,f),ee=R0(Fs(j),p,f),te=ee.clone(),ne=Ss(n),K=({dragHandler:Et,scrollBody:Ir,scrollBounds:Kn,options:{loop:et}})=>{et||Kn.constrain(Et.pointerDown()),Ir.seek()},oe=({scrollBody:Et,translate:Ir,location:Kn,offsetLocation:et,previousLocation:Ot,scrollLooper:fo,slideLooper:Yn,dragHandler:eu,animation:tu,eventHandler:ba,scrollBounds:ti,options:{loop:ni}},po)=>{const Gt=Et.settled(),nu=!ti.shouldConstrain(),ie=ni?Gt:Gt&&nu,ye=ie&&!eu.pointerDown();ye&&tu.stop();const Ce=Kn.get()*po+Ot.get()*(1-po);et.set(Ce),ni&&(fo.loop(Et.direction()),Yn.loop()),Ir.to(et.get()),ye&&ba.emit("settle"),ie||ba.emit("scroll")},q=Yj(r,o,()=>K(Gn),Et=>oe(Gn,Et)),re=.68,de=j[ee.get()],me=Fa(de),ce=Fa(de),le=Fa(de),Se=Fa(de),Le=tI(me,le,ce,Se,m,re),ze=cI(f,j,z,Y,Se),Fe=uI(q,ee,te,Le,ze,Se,s),ft=sI(Y),Ct=Es(),je=mI(t,n,s,g),{slideRegistry:Xe}=lI(U,y,j,G,J,ne),uo=dI(e,n,Xe,Fe,Le,Ct,s,E),Gn={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:P,slideRects:O,animation:q,axis:k,dragHandler:qj(k,e,r,o,Se,Qj(k,o),me,q,Fe,Le,ze,ee,s,V,h,x,v,re,C),eventStore:Ct,percentOfView:V,index:ee,indexPrevious:te,limit:Y,location:me,offsetLocation:le,previousLocation:ce,options:a,resizeHandler:eI(t,s,o,n,k,w,R),scrollBody:Le,scrollBounds:nI(Y,le,Se,Le,V),scrollLooper:aI(z,Y,le,[me,le,ce,Se]),scrollProgress:ft,scrollSnapList:j.map(ft.get),scrollSnaps:j,scrollTarget:ze,scrollTo:Fe,slideLooper:fI(k,D,z,Z,I,_,j,le,n),slideFocus:uo,slidesHandler:pI(t,s,S),slidesInView:je,slideIndexes:ne,slideRegistry:Xe,slidesToScroll:J,target:Se,translate:P0(k,t)};return Gn}function yI(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(p=>p(t,d)),l}function a(d,p){return e[d]=r(d).concat([p]),l}function s(d,p){return e[d]=r(d).filter(f=>f!==p),l}function i(){e={}}const l={init:n,emit:o,off:s,on:a,clear:i};return l}const xI={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function wI(e){function t(a,s){return N0(a,s||{})}function n(a){const s=a.breakpoints||{},i=Cs(s).filter(l=>e.matchMedia(l).matches).map(l=>s[l]).reduce((l,d)=>t(l,d),{});return t(a,i)}function r(a){return a.map(s=>Cs(s.breakpoints||{})).reduce((s,i)=>s.concat(i),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function bI(e){let t=[];function n(a,s){return t=s.filter(({options:i})=>e.optionsAtMedia(i).active!==!1),t.forEach(i=>i.init(a,e)),s.reduce((i,l)=>Object.assign(i,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Sl(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=wI(o),s=bI(a),i=Es(),l=yI(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:f}=a,{on:m,off:h,emit:x}=l,g=k;let b=!1,v,y=d(xI,Sl.globalOptions),w=d(y),S=[],C,E,N;function R(){const{container:ne,slides:K}=w;E=(Qd(ne)?e.querySelector(ne):ne)||e.children[0];const q=Qd(K)?E.querySelectorAll(K):K;N=[].slice.call(q||E.children)}function P(ne){const K=gI(e,E,N,r,o,ne,l);if(ne.loop&&!K.slideLooper.canLoop()){const oe=Object.assign({},ne,{loop:!1});return P(oe)}return K}function O(ne,K){b||(y=d(y,ne),w=p(y),S=K||S,R(),v=P(w),f([y,...S.map(({options:oe})=>oe)]).forEach(oe=>i.add(oe,"change",k)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(te),v.eventHandler.init(te),v.resizeHandler.init(te),v.slidesHandler.init(te),v.options.loop&&v.slideLooper.loop(),E.offsetParent&&N.length&&v.dragHandler.init(te),C=s.init(te,S)))}function k(ne,K){const oe=J();D(),O(d({startIndex:oe},ne),K),l.emit("reInit")}function D(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),s.destroy(),i.clear()}function V(){b||(b=!0,i.clear(),D(),l.emit("destroy"),l.clear())}function $(ne,K,oe){!w.active||b||(v.scrollBody.useBaseFriction().useDuration(K===!0?0:w.duration),v.scrollTo.index(ne,oe||0))}function U(ne){const K=v.index.add(1).get();$(K,ne,-1)}function B(ne){const K=v.index.add(-1).get();$(K,ne,1)}function Z(){return v.index.add(1).get()!==J()}function I(){return v.index.add(-1).get()!==J()}function T(){return v.scrollSnapList}function W(){return v.scrollProgress.get(v.offsetLocation.get())}function J(){return v.index.get()}function _(){return v.indexPrevious.get()}function A(){return v.slidesInView.get()}function z(){return v.slidesInView.get(!1)}function H(){return C}function G(){return v}function j(){return e}function Y(){return E}function ee(){return N}const te={canScrollNext:Z,canScrollPrev:I,containerNode:Y,internalEngine:G,destroy:V,off:h,on:m,emit:x,plugins:H,previousScrollSnap:_,reInit:g,rootNode:j,scrollNext:U,scrollPrev:B,scrollProgress:W,scrollSnapList:T,scrollTo:$,selectedScrollSnap:J,slideNodes:ee,slidesInView:A,slidesNotInView:z};return O(t,n),setTimeout(()=>l.emit("init"),0),te}Sl.globalOptions=void 0;function Up(e={},t=[]){const n=c.useRef(e),r=c.useRef(t),[o,a]=c.useState(),[s,i]=c.useState(),l=c.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return c.useEffect(()=>{Fp(n.current,e)||(n.current=e,l())},[e,l]),c.useEffect(()=>{Uj(r.current,t)||(r.current=t,l())},[t,l]),c.useEffect(()=>{if(Vj()&&s){Sl.globalOptions=Up.globalOptions;const d=Sl(s,n.current,r.current);return a(d),()=>d.destroy()}else a(void 0)},[s,a]),[i,o]}Up.globalOptions=void 0;const T0=c.createContext(null);function hc(){const e=c.useContext(T0);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const SI=c.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...s},i)=>{const[l,d]=Up({...t,axis:e==="horizontal"?"x":"y"},r),[p,f]=c.useState(!1),[m,h]=c.useState(!1),x=c.useCallback(y=>{y&&(f(y.canScrollPrev()),h(y.canScrollNext()))},[]),g=c.useCallback(()=>{d==null||d.scrollPrev()},[d]),b=c.useCallback(()=>{d==null||d.scrollNext()},[d]),v=c.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),g()):y.key==="ArrowRight"&&(y.preventDefault(),b())},[g,b]);return c.useEffect(()=>{!d||!n||n(d)},[d,n]),c.useEffect(()=>{if(d)return x(d),d.on("reInit",x),d.on("select",x),()=>{d==null||d.off("select",x)}},[d,x]),u.jsx(T0.Provider,{value:{carouselRef:l,api:d,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:p,canScrollNext:m},children:u.jsx("div",{ref:i,onKeyDownCapture:v,className:M("relative",o),role:"region","aria-roledescription":"carousel",...s,children:a})})});SI.displayName="Carousel";const CI=c.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=hc();return u.jsx("div",{ref:r,className:"overflow-hidden",children:u.jsx("div",{ref:n,className:M("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});CI.displayName="CarouselContent";const EI=c.forwardRef(({className:e,...t},n)=>{const{orientation:r}=hc();return u.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:M("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});EI.displayName="CarouselItem";const NI=c.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollPrev:s,canScrollPrev:i}=hc();return u.jsxs(ge,{ref:o,variant:t,size:n,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:s,...r,children:[u.jsx(Jk,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Previous slide"})]})});NI.displayName="CarouselPrevious";const RI=c.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollNext:s,canScrollNext:i}=hc();return u.jsxs(ge,{ref:o,variant:t,size:n,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:s,...r,children:[u.jsx(e_,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Next slide"})]})});RI.displayName="CarouselNext";const ln=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ln.displayName="Card";const Wp=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("flex flex-col space-y-1.5 p-6",e),...t}));Wp.displayName="CardHeader";const Gp=c.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:M("text-2xl font-semibold leading-none tracking-tight",e),...t}));Gp.displayName="CardTitle";const PI=c.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:M("text-sm text-muted-foreground",e),...t}));PI.displayName="CardDescription";const cn=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("p-6 pt-0",e),...t}));cn.displayName="CardContent";const TI=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("flex items-center p-6 pt-0",e),...t}));TI.displayName="CardFooter";var kI=Array.isArray,_I=kI,MI=typeof ri=="object"&&ri&&ri.Object===Object&&ri,jI=MI,II=jI,AI=typeof self=="object"&&self&&self.Object===Object&&self,OI=II||AI||Function("return this")(),vc=OI,DI=vc,LI=DI.Symbol,Kp=LI,$v=Kp,k0=Object.prototype,$I=k0.hasOwnProperty,zI=k0.toString,ja=$v?$v.toStringTag:void 0;function FI(e){var t=$I.call(e,ja),n=e[ja];try{e[ja]=void 0;var r=!0}catch{}var o=zI.call(e);return r&&(t?e[ja]=n:delete e[ja]),o}var HI=FI,BI=Object.prototype,VI=BI.toString;function UI(e){return VI.call(e)}var WI=UI,zv=Kp,GI=HI,KI=WI,YI="[object Null]",XI="[object Undefined]",Fv=zv?zv.toStringTag:void 0;function qI(e){return e==null?e===void 0?XI:YI:Fv&&Fv in Object(e)?GI(e):KI(e)}var Yp=qI;function QI(e){return e!=null&&typeof e=="object"}var _0=QI,ZI=Yp,JI=_0,e2="[object Symbol]";function t2(e){return typeof e=="symbol"||JI(e)&&ZI(e)==e2}var n2=t2;function r2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hs=r2,o2=Yp,a2=Hs,s2="[object AsyncFunction]",i2="[object Function]",l2="[object GeneratorFunction]",c2="[object Proxy]";function u2(e){if(!a2(e))return!1;var t=o2(e);return t==i2||t==l2||t==s2||t==c2}var d2=u2,f2=vc,p2=f2["__core-js_shared__"],m2=p2,$u=m2,Hv=function(){var e=/[^.]+$/.exec($u&&$u.keys&&$u.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function h2(e){return!!Hv&&Hv in e}var v2=h2,g2=Function.prototype,y2=g2.toString;function x2(e){if(e!=null){try{return y2.call(e)}catch{}try{return e+""}catch{}}return""}var w2=x2,b2=d2,S2=v2,C2=Hs,E2=w2,N2=/[\\^$.*+?()[\]{}|]/g,R2=/^\[object .+?Constructor\]$/,P2=Function.prototype,T2=Object.prototype,k2=P2.toString,_2=T2.hasOwnProperty,M2=RegExp("^"+k2.call(_2).replace(N2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function j2(e){if(!C2(e)||S2(e))return!1;var t=b2(e)?M2:R2;return t.test(E2(e))}var I2=j2;function A2(e,t){return e==null?void 0:e[t]}var O2=A2,D2=I2,L2=O2;function $2(e,t){var n=L2(e,t);return D2(n)?n:void 0}var M0=$2,z2=M0,F2=z2(Object,"create"),gc=F2,Bv=gc;function H2(){this.__data__=Bv?Bv(null):{},this.size=0}var B2=H2;function V2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var U2=V2,W2=gc,G2="__lodash_hash_undefined__",K2=Object.prototype,Y2=K2.hasOwnProperty;function X2(e){var t=this.__data__;if(W2){var n=t[e];return n===G2?void 0:n}return Y2.call(t,e)?t[e]:void 0}var q2=X2,Q2=gc,Z2=Object.prototype,J2=Z2.hasOwnProperty;function eA(e){var t=this.__data__;return Q2?t[e]!==void 0:J2.call(t,e)}var tA=eA,nA=gc,rA="__lodash_hash_undefined__";function oA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nA&&t===void 0?rA:t,this}var aA=oA,sA=B2,iA=U2,lA=q2,cA=tA,uA=aA;function fa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fa.prototype.clear=sA;fa.prototype.delete=iA;fa.prototype.get=lA;fa.prototype.has=cA;fa.prototype.set=uA;var dA=fa;function fA(){this.__data__=[],this.size=0}var pA=fA;function mA(e,t){return e===t||e!==e&&t!==t}var hA=mA,vA=hA;function gA(e,t){for(var n=e.length;n--;)if(vA(e[n][0],t))return n;return-1}var yc=gA,yA=yc,xA=Array.prototype,wA=xA.splice;function bA(e){var t=this.__data__,n=yA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():wA.call(t,n,1),--this.size,!0}var SA=bA,CA=yc;function EA(e){var t=this.__data__,n=CA(t,e);return n<0?void 0:t[n][1]}var NA=EA,RA=yc;function PA(e){return RA(this.__data__,e)>-1}var TA=PA,kA=yc;function _A(e,t){var n=this.__data__,r=kA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var MA=_A,jA=pA,IA=SA,AA=NA,OA=TA,DA=MA;function pa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pa.prototype.clear=jA;pa.prototype.delete=IA;pa.prototype.get=AA;pa.prototype.has=OA;pa.prototype.set=DA;var LA=pa,$A=M0,zA=vc,FA=$A(zA,"Map"),HA=FA,Vv=dA,BA=LA,VA=HA;function UA(){this.size=0,this.__data__={hash:new Vv,map:new(VA||BA),string:new Vv}}var WA=UA;function GA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KA=GA,YA=KA;function XA(e,t){var n=e.__data__;return YA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var xc=XA,qA=xc;function QA(e){var t=qA(this,e).delete(e);return this.size-=t?1:0,t}var ZA=QA,JA=xc;function eO(e){return JA(this,e).get(e)}var tO=eO,nO=xc;function rO(e){return nO(this,e).has(e)}var oO=rO,aO=xc;function sO(e,t){var n=aO(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var iO=sO,lO=WA,cO=ZA,uO=tO,dO=oO,fO=iO;function ma(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ma.prototype.clear=lO;ma.prototype.delete=cO;ma.prototype.get=uO;ma.prototype.has=dO;ma.prototype.set=fO;var pO=ma,j0=pO,mO="Expected a function";function Xp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mO);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,r);return n.cache=a.set(o,s)||a,s};return n.cache=new(Xp.Cache||j0),n}Xp.Cache=j0;var hO=Xp,vO=hO,gO=500;function yO(e){var t=vO(e,function(r){return n.size===gO&&n.clear(),r}),n=t.cache;return t}var xO=yO,wO=xO,bO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SO=/\\(\\)?/g;wO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(bO,function(n,r,o,a){t.push(o?a.replace(SO,"$1"):r||n)}),t});var Uv=Kp,Wv=Uv?Uv.prototype:void 0;Wv&&Wv.toString;var CO=Yp,EO=_I,NO=_0,RO="[object String]";function PO(e){return typeof e=="string"||!EO(e)&&NO(e)&&CO(e)==RO}var TO=PO;const kO=Fl(TO);var be={};/**
|
|
294
|
+
* @license React
|
|
295
|
+
* react-is.production.min.js
|
|
296
|
+
*
|
|
297
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the MIT license found in the
|
|
300
|
+
* LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/var qp=Symbol.for("react.element"),Qp=Symbol.for("react.portal"),wc=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),Ec=Symbol.for("react.context"),_O=Symbol.for("react.server_context"),Nc=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),Tc=Symbol.for("react.memo"),kc=Symbol.for("react.lazy"),MO=Symbol.for("react.offscreen"),I0;I0=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qp:switch(e=e.type,e){case wc:case Sc:case bc:case Rc:case Pc:return e;default:switch(e=e&&e.$$typeof,e){case _O:case Ec:case Nc:case kc:case Tc:case Cc:return e;default:return t}}case Qp:return t}}}be.ContextConsumer=Ec;be.ContextProvider=Cc;be.Element=qp;be.ForwardRef=Nc;be.Fragment=wc;be.Lazy=kc;be.Memo=Tc;be.Portal=Qp;be.Profiler=Sc;be.StrictMode=bc;be.Suspense=Rc;be.SuspenseList=Pc;be.isAsyncMode=function(){return!1};be.isConcurrentMode=function(){return!1};be.isContextConsumer=function(e){return Vt(e)===Ec};be.isContextProvider=function(e){return Vt(e)===Cc};be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qp};be.isForwardRef=function(e){return Vt(e)===Nc};be.isFragment=function(e){return Vt(e)===wc};be.isLazy=function(e){return Vt(e)===kc};be.isMemo=function(e){return Vt(e)===Tc};be.isPortal=function(e){return Vt(e)===Qp};be.isProfiler=function(e){return Vt(e)===Sc};be.isStrictMode=function(e){return Vt(e)===bc};be.isSuspense=function(e){return Vt(e)===Rc};be.isSuspenseList=function(e){return Vt(e)===Pc};be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wc||e===Sc||e===bc||e===Rc||e===Pc||e===MO||typeof e=="object"&&e!==null&&(e.$$typeof===kc||e.$$typeof===Tc||e.$$typeof===Cc||e.$$typeof===Ec||e.$$typeof===Nc||e.$$typeof===I0||e.getModuleId!==void 0)};be.typeOf=Vt;var Ri=function(t){return kO(t)&&t.indexOf("%")===t.length-1},jO=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zu=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a]},IO=vc,AO=function(){return IO.Date.now()},OO=AO,DO=/\s/;function LO(e){for(var t=e.length;t--&&DO.test(e.charAt(t)););return t}var $O=LO,zO=$O,FO=/^\s+/;function HO(e){return e&&e.slice(0,zO(e)+1).replace(FO,"")}var BO=HO,VO=BO,Gv=Hs,UO=n2,Kv=NaN,WO=/^[-+]0x[0-9a-f]+$/i,GO=/^0b[01]+$/i,KO=/^0o[0-7]+$/i,YO=parseInt;function XO(e){if(typeof e=="number")return e;if(UO(e))return Kv;if(Gv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Gv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=VO(e);var n=GO.test(e);return n||KO.test(e)?YO(e.slice(2),n?2:8):WO.test(e)?Kv:+e}var qO=XO,QO=Hs,Fu=OO,Yv=qO,ZO="Expected a function",JO=Math.max,eD=Math.min;function tD(e,t,n){var r,o,a,s,i,l,d=0,p=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(ZO);t=Yv(t)||0,QO(n)&&(p=!!n.leading,f="maxWait"in n,a=f?JO(Yv(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function h(E){var N=r,R=o;return r=o=void 0,d=E,s=e.apply(R,N),s}function x(E){return d=E,i=setTimeout(v,t),p?h(E):s}function g(E){var N=E-l,R=E-d,P=t-N;return f?eD(P,a-R):P}function b(E){var N=E-l,R=E-d;return l===void 0||N>=t||N<0||f&&R>=a}function v(){var E=Fu();if(b(E))return y(E);i=setTimeout(v,g(E))}function y(E){return i=void 0,m&&r?h(E):(r=o=void 0,s)}function w(){i!==void 0&&clearTimeout(i),d=0,r=l=o=i=void 0}function S(){return i===void 0?s:y(Fu())}function C(){var E=Fu(),N=b(E);if(r=arguments,o=this,l=E,N){if(i===void 0)return x(l);if(f)return clearTimeout(i),i=setTimeout(v,t),h(l)}return i===void 0&&(i=setTimeout(v,t)),s}return C.cancel=w,C.flush=S,C}var nD=tD,rD=nD,oD=Hs,aD="Expected a function";function sD(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(aD);return oD(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rD(e,t,{leading:r,maxWait:t,trailing:o})}var iD=sD;const lD=Fl(iD);function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function Xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xv(Object(n),!0).forEach(function(r){cD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cD(e,t,n){return t=uD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uD(e){var t=dD(e,"string");return Ns(t)=="symbol"?t:t+""}function dD(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fD(e,t){return vD(e)||hD(e,t)||mD(e,t)||pD()}function pD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
302
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mD(e,t){if(e){if(typeof e=="string")return qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qv(e,t)}}function qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,s,i=[],l=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(p){d=!0,o=p}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return i}}function vD(e){if(Array.isArray(e))return e}var gD=c.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,s=a===void 0?"100%":a,i=e.height,l=i===void 0?"100%":i,d=e.minWidth,p=d===void 0?0:d,f=e.minHeight,m=e.maxHeight,h=e.children,x=e.debounce,g=x===void 0?0:x,b=e.id,v=e.className,y=e.onResize,w=e.style,S=w===void 0?{}:w,C=c.useRef(null),E=c.useRef();E.current=y,c.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var N=c.useState({containerWidth:o.width,containerHeight:o.height}),R=fD(N,2),P=R[0],O=R[1],k=c.useCallback(function(V,$){O(function(U){var B=Math.round(V),Z=Math.round($);return U.containerWidth===B&&U.containerHeight===Z?U:{containerWidth:B,containerHeight:Z}})},[]);c.useEffect(function(){var V=function(T){var W,J=T[0].contentRect,_=J.width,A=J.height;k(_,A),(W=E.current)===null||W===void 0||W.call(E,_,A)};g>0&&(V=lD(V,g,{trailing:!0,leading:!1}));var $=new ResizeObserver(V),U=C.current.getBoundingClientRect(),B=U.width,Z=U.height;return k(B,Z),$.observe(C.current),function(){$.disconnect()}},[k,g]);var D=c.useMemo(function(){var V=P.containerWidth,$=P.containerHeight;if(V<0||$<0)return null;zu(Ri(s)||Ri(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
303
|
+
maybe you don't need to use a ResponsiveContainer.`,s,l),zu(!n||n>0,"The aspect(%s) must be greater than zero.",n);var U=Ri(s)?V:s,B=Ri(l)?$:l;n&&n>0&&(U?B=U/n:B&&(U=B*n),m&&B>m&&(B=m)),zu(U>0||B>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
304
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
305
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
306
|
+
height and width.`,U,B,s,l,p,f,n);var Z=!Array.isArray(h)&&jO(h.type).endsWith("Chart");return F.Children.map(h,function(I){return F.isValidElement(I)?c.cloneElement(I,Pi({width:U,height:B},Z?{style:Pi({height:"100%",width:"100%",maxHeight:B,maxWidth:U},I.props.style)}:{})):I})},[n,h,l,m,f,p,P,s]);return F.createElement("div",{id:b?"".concat(b):void 0,className:Np("recharts-responsive-container",v),style:Pi(Pi({},S),{},{width:s,height:l,minWidth:p,minHeight:f,maxHeight:m}),ref:C},D)});const yD={light:"",dark:".dark"},A0=c.createContext(null);function O0(){const e=c.useContext(A0);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const xD=c.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const s=c.useId(),i=`chart-${e||s.replace(/:/g,"")}`;return u.jsx(A0.Provider,{value:{config:r},children:u.jsxs("div",{"data-chart":i,ref:a,className:M("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[u.jsx(wD,{id:i,config:r}),u.jsx(gD,{children:n})]})})});xD.displayName="Chart";const wD=({id:e,config:t})=>{const n=Object.entries(t).filter(([r,o])=>o.theme||o.color);return n.length?u.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(yD).map(([r,o])=>`
|
|
307
|
+
${o} [data-chart=${e}] {
|
|
308
|
+
${n.map(([a,s])=>{var l;const i=((l=s.theme)==null?void 0:l[r])||s.color;return i?` --color-${a}: ${i};`:null}).join(`
|
|
309
|
+
`)}
|
|
310
|
+
}
|
|
311
|
+
`).join(`
|
|
312
|
+
`)}}):null},bD=c.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:s,labelFormatter:i,labelClassName:l,formatter:d,color:p,nameKey:f,labelKey:m},h)=>{const{config:x}=O0(),g=c.useMemo(()=>{var C;if(o||!(t!=null&&t.length))return null;const[v]=t,y=`${m||v.dataKey||v.name||"value"}`,w=Jd(x,v,y),S=!m&&typeof s=="string"?((C=x[s])==null?void 0:C.label)||s:w==null?void 0:w.label;return i?u.jsx("div",{className:M("font-medium",l),children:i(S,t)}):S?u.jsx("div",{className:M("font-medium",l),children:S}):null},[s,i,t,o,l,x,m]);if(!e||!(t!=null&&t.length))return null;const b=t.length===1&&r!=="dot";return u.jsxs("div",{ref:h,className:M("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[b?null:g,u.jsx("div",{className:"grid gap-1.5",children:t.map((v,y)=>{const w=`${f||v.name||v.dataKey||"value"}`,S=Jd(x,v,w),C=p||v.payload.fill||v.color;return u.jsx("div",{className:M("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:d&&(v==null?void 0:v.value)!==void 0&&v.name?d(v.value,v.name,v,y,v.payload):u.jsxs(u.Fragment,{children:[S!=null&&S.icon?u.jsx(S.icon,{}):!a&&u.jsx("div",{className:M("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":b&&r==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),u.jsxs("div",{className:M("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[u.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,u.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||v.name})]}),v.value&&u.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:v.value.toLocaleString()})]})]})},v.dataKey)})})]})});bD.displayName="ChartTooltip";const SD=c.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:s}=O0();return n!=null&&n.length?u.jsx("div",{ref:a,className:M("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(i=>{const l=`${o||i.dataKey||"value"}`,d=Jd(s,i,l);return u.jsxs("div",{className:M("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[d!=null&&d.icon&&!t?u.jsx(d.icon,{}):u.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),d==null?void 0:d.label]},i.value)})}):null});SD.displayName="ChartLegend";function Jd(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function ha(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Bs(e){const[t,n]=c.useState(void 0);return Te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _c="Checkbox",[CD]=ke(_c),[ED,Zp]=CD(_c);function ND(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:d,value:p="on",internal_do_not_use_render:f}=e,[m,h]=Ye({prop:n,defaultProp:o??!1,onChange:l,caller:_c}),[x,g]=c.useState(null),[b,v]=c.useState(null),y=c.useRef(!1),w=x?!!s||!!x.closest("form"):!0,S={checked:m,disabled:a,setChecked:h,control:x,setControl:g,name:i,form:s,value:p,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:hr(o)?!1:o,isFormControl:w,bubbleInput:b,setBubbleInput:v};return u.jsx(ED,{scope:t,...S,children:RD(f)?f(S):r})}var D0="CheckboxTrigger",L0=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:d,setControl:p,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:x}=Zp(D0,e),g=se(o,p),b=c.useRef(l);return c.useEffect(()=>{const v=a==null?void 0:a.form;if(v){const y=()=>f(b.current);return v.addEventListener("reset",y),()=>v.removeEventListener("reset",y)}},[a,f]),u.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":hr(l)?"mixed":l,"aria-required":d,"data-state":B0(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:g,onKeyDown:L(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:L(n,v=>{f(y=>hr(y)?!0:!y),x&&h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})})});L0.displayName=D0;var Jp=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:d,form:p,...f}=e;return u.jsx(ND,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:r,form:p,value:l,internal_do_not_use_render:({isFormControl:m})=>u.jsxs(u.Fragment,{children:[u.jsx(L0,{...f,ref:t,__scopeCheckbox:n}),m&&u.jsx(H0,{__scopeCheckbox:n})]})})});Jp.displayName=_c;var $0="CheckboxIndicator",z0=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Zp($0,n);return u.jsx(_e,{present:r||hr(a.checked)||a.checked===!0,children:u.jsx(Q.span,{"data-state":B0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});z0.displayName=$0;var F0="CheckboxBubbleInput",H0=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:d,value:p,form:f,bubbleInput:m,setBubbleInput:h}=Zp(F0,e),x=se(n,h),g=ha(a),b=Bs(r);c.useEffect(()=>{const y=m;if(!y)return;const w=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(w,"checked").set,E=!o.current;if(g!==a&&C){const N=new Event("click",{bubbles:E});y.indeterminate=hr(a),C.call(y,hr(a)?!1:a),y.dispatchEvent(N)}},[m,g,a,o]);const v=c.useRef(hr(a)?!1:a);return u.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??v.current,required:i,disabled:l,name:d,value:p,form:f,...t,tabIndex:-1,ref:x,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});H0.displayName=F0;function RD(e){return typeof e=="function"}function hr(e){return e==="indeterminate"}function B0(e){return hr(e)?"indeterminate":e?"checked":"unchecked"}const PD=c.forwardRef(({className:e,...t},n)=>u.jsx(Jp,{ref:n,className:M("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(z0,{className:M("flex items-center justify-center text-current"),children:u.jsx(Ds,{className:"h-4 w-4"})})}));PD.displayName=Jp.displayName;var Qv=1,TD=.9,kD=.8,_D=.17,Hu=.1,Bu=.999,MD=.9999,jD=.99,ID=/[\\\/_+.#"@\[\(\{&]/,AD=/[\\\/_+.#"@\[\(\{&]/g,OD=/[\s-]/,V0=/[\s-]/g;function ef(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?Qv:jD;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),d=n.indexOf(l,o),p=0,f,m,h,x;d>=0;)f=ef(e,t,n,r,d+1,a+1,s),f>p&&(d===o?f*=Qv:ID.test(e.charAt(d-1))?(f*=kD,h=e.slice(o,d-1).match(AD),h&&o>0&&(f*=Math.pow(Bu,h.length))):OD.test(e.charAt(d-1))?(f*=TD,x=e.slice(o,d-1).match(V0),x&&o>0&&(f*=Math.pow(Bu,x.length))):(f*=_D,o>0&&(f*=Math.pow(Bu,d-o))),e.charAt(d)!==t.charAt(a)&&(f*=MD)),(f<Hu&&n.charAt(d-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(d-1)!==r.charAt(a))&&(m=ef(e,t,n,r,d+1,a+2,s),m*Hu>f&&(f=m*Hu)),f>p&&(p=f),d=n.indexOf(l,d+1);return s[i]=p,p}function Zv(e){return e.toLowerCase().replace(V0," ")}function DD(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ef(e,t,Zv(e),Zv(t),0,0,{})}var Ia='[cmdk-group=""]',Vu='[cmdk-group-items=""]',LD='[cmdk-group-heading=""]',U0='[cmdk-item=""]',Jv=`${U0}:not([aria-disabled="true"])`,tf="cmdk-item-select",xo="data-value",$D=(e,t,n)=>DD(e,t,n),W0=c.createContext(void 0),Vs=()=>c.useContext(W0),G0=c.createContext(void 0),em=()=>c.useContext(G0),K0=c.createContext(void 0),Y0=c.forwardRef((e,t)=>{let n=wo(()=>{var _,A;return{search:"",value:(A=(_=e.value)!=null?_:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wo(()=>new Set),o=wo(()=>new Map),a=wo(()=>new Map),s=wo(()=>new Set),i=X0(e),{label:l,children:d,value:p,onValueChange:f,filter:m,shouldFilter:h,loop:x,disablePointerSelection:g=!1,vimBindings:b=!0,...v}=e,y=Ke(),w=Ke(),S=Ke(),C=c.useRef(null),E=XD();Zr(()=>{if(p!==void 0){let _=p.trim();n.current.value=_,N.emit()}},[p]),Zr(()=>{E(6,V)},[]);let N=c.useMemo(()=>({subscribe:_=>(s.current.add(_),()=>s.current.delete(_)),snapshot:()=>n.current,setState:(_,A,z)=>{var H,G,j,Y;if(!Object.is(n.current[_],A)){if(n.current[_]=A,_==="search")D(),O(),E(1,k);else if(_==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ee=document.getElementById(S);ee?ee.focus():(H=document.getElementById(y))==null||H.focus()}if(E(7,()=>{var ee;n.current.selectedItemId=(ee=$())==null?void 0:ee.id,N.emit()}),z||E(5,V),((G=i.current)==null?void 0:G.value)!==void 0){let ee=A??"";(Y=(j=i.current).onValueChange)==null||Y.call(j,ee);return}}N.emit()}},emit:()=>{s.current.forEach(_=>_())}}),[]),R=c.useMemo(()=>({value:(_,A,z)=>{var H;A!==((H=a.current.get(_))==null?void 0:H.value)&&(a.current.set(_,{value:A,keywords:z}),n.current.filtered.items.set(_,P(A,z)),E(2,()=>{O(),N.emit()}))},item:(_,A)=>(r.current.add(_),A&&(o.current.has(A)?o.current.get(A).add(_):o.current.set(A,new Set([_]))),E(3,()=>{D(),O(),n.current.value||k(),N.emit()}),()=>{a.current.delete(_),r.current.delete(_),n.current.filtered.items.delete(_);let z=$();E(4,()=>{D(),(z==null?void 0:z.getAttribute("id"))===_&&k(),N.emit()})}),group:_=>(o.current.has(_)||o.current.set(_,new Set),()=>{a.current.delete(_),o.current.delete(_)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:w,listInnerRef:C}),[]);function P(_,A){var z,H;let G=(H=(z=i.current)==null?void 0:z.filter)!=null?H:$D;return _?G(_,n.current.search,A):0}function O(){if(!n.current.search||i.current.shouldFilter===!1)return;let _=n.current.filtered.items,A=[];n.current.filtered.groups.forEach(H=>{let G=o.current.get(H),j=0;G.forEach(Y=>{let ee=_.get(Y);j=Math.max(ee,j)}),A.push([H,j])});let z=C.current;U().sort((H,G)=>{var j,Y;let ee=H.getAttribute("id"),te=G.getAttribute("id");return((j=_.get(te))!=null?j:0)-((Y=_.get(ee))!=null?Y:0)}).forEach(H=>{let G=H.closest(Vu);G?G.appendChild(H.parentElement===G?H:H.closest(`${Vu} > *`)):z.appendChild(H.parentElement===z?H:H.closest(`${Vu} > *`))}),A.sort((H,G)=>G[1]-H[1]).forEach(H=>{var G;let j=(G=C.current)==null?void 0:G.querySelector(`${Ia}[${xo}="${encodeURIComponent(H[0])}"]`);j==null||j.parentElement.appendChild(j)})}function k(){let _=U().find(z=>z.getAttribute("aria-disabled")!=="true"),A=_==null?void 0:_.getAttribute(xo);N.setState("value",A||void 0)}function D(){var _,A,z,H;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let G=0;for(let j of r.current){let Y=(A=(_=a.current.get(j))==null?void 0:_.value)!=null?A:"",ee=(H=(z=a.current.get(j))==null?void 0:z.keywords)!=null?H:[],te=P(Y,ee);n.current.filtered.items.set(j,te),te>0&&G++}for(let[j,Y]of o.current)for(let ee of Y)if(n.current.filtered.items.get(ee)>0){n.current.filtered.groups.add(j);break}n.current.filtered.count=G}function V(){var _,A,z;let H=$();H&&(((_=H.parentElement)==null?void 0:_.firstChild)===H&&((z=(A=H.closest(Ia))==null?void 0:A.querySelector(LD))==null||z.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function $(){var _;return(_=C.current)==null?void 0:_.querySelector(`${U0}[aria-selected="true"]`)}function U(){var _;return Array.from(((_=C.current)==null?void 0:_.querySelectorAll(Jv))||[])}function B(_){let A=U()[_];A&&N.setState("value",A.getAttribute(xo))}function Z(_){var A;let z=$(),H=U(),G=H.findIndex(Y=>Y===z),j=H[G+_];(A=i.current)!=null&&A.loop&&(j=G+_<0?H[H.length-1]:G+_===H.length?H[0]:H[G+_]),j&&N.setState("value",j.getAttribute(xo))}function I(_){let A=$(),z=A==null?void 0:A.closest(Ia),H;for(;z&&!H;)z=_>0?KD(z,Ia):YD(z,Ia),H=z==null?void 0:z.querySelector(Jv);H?N.setState("value",H.getAttribute(xo)):Z(_)}let T=()=>B(U().length-1),W=_=>{_.preventDefault(),_.metaKey?T():_.altKey?I(1):Z(1)},J=_=>{_.preventDefault(),_.metaKey?B(0):_.altKey?I(-1):Z(-1)};return c.createElement(dt.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:_=>{var A;(A=v.onKeyDown)==null||A.call(v,_);let z=_.nativeEvent.isComposing||_.keyCode===229;if(!(_.defaultPrevented||z))switch(_.key){case"n":case"j":{b&&_.ctrlKey&&W(_);break}case"ArrowDown":{W(_);break}case"p":case"k":{b&&_.ctrlKey&&J(_);break}case"ArrowUp":{J(_);break}case"Home":{_.preventDefault(),B(0);break}case"End":{_.preventDefault(),T();break}case"Enter":{_.preventDefault();let H=$();if(H){let G=new Event(tf);H.dispatchEvent(G)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:QD},l),Mc(e,_=>c.createElement(G0.Provider,{value:N},c.createElement(W0.Provider,{value:R},_))))}),zD=c.forwardRef((e,t)=>{var n,r;let o=Ke(),a=c.useRef(null),s=c.useContext(K0),i=Vs(),l=X0(e),d=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Zr(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let p=q0(o,a,[e.value,e.children,a],e.keywords),f=em(),m=wr(E=>E.value&&E.value===p.current),h=wr(E=>d||i.filter()===!1?!0:E.search?E.filtered.items.get(o)>0:!0);c.useEffect(()=>{let E=a.current;if(!(!E||e.disabled))return E.addEventListener(tf,x),()=>E.removeEventListener(tf,x)},[h,e.onSelect,e.disabled]);function x(){var E,N;g(),(N=(E=l.current).onSelect)==null||N.call(E,p.current)}function g(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:b,value:v,onSelect:y,forceMount:w,keywords:S,...C}=e;return c.createElement(dt.div,{ref:sn(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!m,"data-disabled":!!b,"data-selected":!!m,onPointerMove:b||i.getDisablePointerSelection()?void 0:g,onClick:b?void 0:x},e.children)}),FD=c.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=Ke(),i=c.useRef(null),l=c.useRef(null),d=Ke(),p=Vs(),f=wr(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Zr(()=>p.group(s),[]),q0(s,i,[e.value,e.heading,l]);let m=c.useMemo(()=>({id:s,forceMount:o}),[o]);return c.createElement(dt.div,{ref:sn(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&c.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),Mc(e,h=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},c.createElement(K0.Provider,{value:m},h))))}),HD=c.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=c.useRef(null),a=wr(s=>!s.search);return!n&&!a?null:c.createElement(dt.div,{ref:sn(o,t),...r,"cmdk-separator":"",role:"separator"})}),BD=c.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=em(),s=wr(d=>d.search),i=wr(d=>d.selectedItemId),l=Vs();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(dt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),n==null||n(d.target.value)}})}),VD=c.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=c.useRef(null),s=c.useRef(null),i=wr(d=>d.selectedItemId),l=Vs();return c.useEffect(()=>{if(s.current&&a.current){let d=s.current,p=a.current,f,m=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=d.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(d),()=>{cancelAnimationFrame(f),m.unobserve(d)}}},[]),c.createElement(dt.div,{ref:sn(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},Mc(e,d=>c.createElement("div",{ref:sn(s,l.listInnerRef),"cmdk-list-sizer":""},d)))}),UD=c.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return c.createElement(Kw,{open:n,onOpenChange:r},c.createElement(zs,{container:s},c.createElement(ao,{"cmdk-overlay":"",className:o}),c.createElement(so,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(Y0,{ref:t,...i}))))}),WD=c.forwardRef((e,t)=>wr(n=>n.filtered.count===0)?c.createElement(dt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),GD=c.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return c.createElement(dt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Mc(e,s=>c.createElement("div",{"aria-hidden":!0},s)))}),xt=Object.assign(Y0,{List:VD,Item:zD,Input:BD,Group:FD,Separator:HD,Dialog:UD,Empty:WD,Loading:GD});function KD(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function YD(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function X0(e){let t=c.useRef(e);return Zr(()=>{t.current=e}),t}var Zr=typeof window>"u"?c.useEffect:c.useLayoutEffect;function wo(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function wr(e){let t=em(),n=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,n,n)}function q0(e,t,n,r=[]){let o=c.useRef(),a=Vs();return Zr(()=>{var s;let i=(()=>{var d;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(d=p.current.textContent)==null?void 0:d.trim():o.current}})(),l=r.map(d=>d.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(xo,i),o.current=i}),o}var XD=()=>{let[e,t]=c.useState(),n=wo(()=>new Map);return Zr(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function qD(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Mc({asChild:e,children:t},n){return e&&c.isValidElement(t)?c.cloneElement(qD(t),{ref:t.ref},n(t.props.children)):n(t)}var QD={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ZD=zs,Q0=c.forwardRef(({className:e,...t},n)=>u.jsx(ao,{ref:n,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Q0.displayName=ao.displayName;const JD=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(ZD,{children:[u.jsx(Q0,{}),u.jsxs(so,{ref:r,className:M("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",e),...n,children:[t,u.jsxs(pc,{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:[u.jsx(Ap,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));JD.displayName=so.displayName;const eL=c.forwardRef(({className:e,...t},n)=>u.jsx(ua,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));eL.displayName=ua.displayName;const tL=c.forwardRef(({className:e,...t},n)=>u.jsx(da,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));tL.displayName=da.displayName;const nL=c.forwardRef(({className:e,...t},n)=>u.jsx(xt,{ref:n,className:M("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));nL.displayName=xt.displayName;const rL=c.forwardRef(({className:e,...t},n)=>u.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[u.jsx(h_,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),u.jsx(xt.Input,{ref:n,className:M("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));rL.displayName=xt.Input.displayName;const oL=c.forwardRef(({className:e,...t},n)=>u.jsx(xt.List,{ref:n,className:M("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));oL.displayName=xt.List.displayName;const aL=c.forwardRef((e,t)=>u.jsx(xt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));aL.displayName=xt.Empty.displayName;const sL=c.forwardRef(({className:e,...t},n)=>u.jsx(xt.Group,{ref:n,className:M("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));sL.displayName=xt.Group.displayName;const iL=c.forwardRef(({className:e,...t},n)=>u.jsx(xt.Separator,{ref:n,className:M("-mx-1 h-px bg-border",e),...t}));iL.displayName=xt.Separator.displayName;const lL=c.forwardRef(({className:e,...t},n)=>u.jsx(xt.Item,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));lL.displayName=xt.Item.displayName;const cL=["top","right","bottom","left"],br=Math.min,Pt=Math.max,Cl=Math.round,Ti=Math.floor,bn=e=>({x:e,y:e}),uL={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(e,t,n){return Pt(e,br(t,n))}function $n(e,t){return typeof e=="function"?e(t):e}function zn(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function tm(e){return e==="x"?"y":"x"}function nm(e){return e==="y"?"height":"width"}function yn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function rm(e){return tm(yn(e))}function dL(e,t,n){n===void 0&&(n=!1);const r=va(e),o=rm(e),a=nm(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=El(s)),[s,El(s)]}function fL(e){const t=El(e);return[rf(e),t,rf(t)]}function rf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const eg=["left","right"],tg=["right","left"],pL=["top","bottom"],mL=["bottom","top"];function hL(e,t,n){switch(e){case"top":case"bottom":return n?t?tg:eg:t?eg:tg;case"left":case"right":return t?pL:mL;default:return[]}}function vL(e,t,n,r){const o=va(e);let a=hL(zn(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(rf)))),a}function El(e){const t=zn(e);return uL[t]+e.slice(t.length)}function gL(e){return{top:0,right:0,bottom:0,left:0,...e}}function Z0(e){return typeof e!="number"?gL(e):{top:e,right:e,bottom:e,left:e}}function Nl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ng(e,t,n){let{reference:r,floating:o}=e;const a=yn(t),s=rm(t),i=nm(s),l=zn(t),d=a==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(va(t)){case"start":h[s]-=m*(n&&d?-1:1);break;case"end":h[s]+=m*(n&&d?-1:1);break}return h}async function yL(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=$n(t,e),x=Z0(h),b=i[m?f==="floating"?"reference":"floating":f],v=Nl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:p,strategy:l})),y=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Nl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:l}):y);return{top:(v.top-C.top+x.top)/S.y,bottom:(C.bottom-v.bottom+x.bottom)/S.y,left:(v.left-C.left+x.left)/S.x,right:(C.right-v.right+x.right)/S.x}}const xL=50,wL=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:yL},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=ng(d,r,l),m=r,h=0;const x={};for(let g=0;g<a.length;g++){const b=a[g];if(!b)continue;const{name:v,fn:y}=b,{x:w,y:S,data:C,reset:E}=await y({x:p,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:x,rects:d,platform:i,elements:{reference:e,floating:t}});p=w??p,f=S??f,x[v]={...x[v],...C},E&&h<xL&&(h++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:f}=ng(d,m,l)),g=-1)}return{x:p,y:f,placement:m,strategy:o,middlewareData:x}},bL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:p=0}=$n(e,t)||{};if(d==null)return{};const f=Z0(p),m={x:n,y:r},h=rm(o),x=nm(h),g=await s.getDimensions(d),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=a.reference[x]+a.reference[h]-m[h]-a.floating[x],C=m[h]-a.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let N=E?E[w]:0;(!N||!await(s.isElement==null?void 0:s.isElement(E)))&&(N=i.floating[w]||a.floating[x]);const R=S/2-C/2,P=N/2-g[x]/2-1,O=br(f[v],P),k=br(f[y],P),D=O,V=N-g[x]-k,$=N/2-g[x]/2+R,U=nf(D,$,V),B=!l.arrow&&va(o)!=null&&$!==U&&a.reference[x]/2-($<D?O:k)-g[x]/2<0,Z=B?$<D?$-D:$-V:0;return{[h]:m[h]+Z,data:{[h]:U,centerOffset:$-U-Z,...B&&{alignmentOffset:Z}},reset:B}}}),SL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...b}=$n(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=zn(o),y=yn(i),w=zn(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!g?[El(i)]:fL(i)),E=x!=="none";!m&&E&&C.push(...vL(i,g,x,S));const N=[i,...C],R=await l.detectOverflow(t,b),P=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&P.push(R[v]),f){const $=dL(o,s,S);P.push(R[$[0]],R[$[1]])}if(O=[...O,{placement:o,overflows:P}],!P.every($=>$<=0)){var k,D;const $=(((k=a.flip)==null?void 0:k.index)||0)+1,U=N[$];if(U&&(!(f==="alignment"?y!==yn(U):!1)||O.every(I=>yn(I.placement)===y?I.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:U}};let B=(D=O.filter(Z=>Z.overflows[0]<=0).sort((Z,I)=>Z.overflows[1]-I.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(h){case"bestFit":{var V;const Z=(V=O.filter(I=>{if(E){const T=yn(I.placement);return T===y||T==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(T=>T>0).reduce((T,W)=>T+W,0)]).sort((I,T)=>I[1]-T[1])[0])==null?void 0:V[0];Z&&(B=Z);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function rg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function og(e){return cL.some(t=>e[t]>=0)}const CL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=$n(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...a,elementContext:"reference"}),i=rg(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:og(i)}}}case"escaped":{const s=await r.detectOverflow(t,{...a,altBoundary:!0}),i=rg(s,n.floating);return{data:{escapedOffsets:i,escaped:og(i)}}}default:return{}}}}},J0=new Set(["left","top"]);async function EL(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=zn(n),i=va(n),l=yn(n)==="y",d=J0.has(s)?-1:1,p=a&&l?-1:1,f=$n(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(h=i==="end"?x*-1:x),l?{x:h*p,y:m*d}:{x:m*d,y:h*p}}const NL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await EL(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},RL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...d}=$n(e,t),p={x:n,y:r},f=await a.detectOverflow(t,d),m=yn(zn(o)),h=tm(m);let x=p[h],g=p[m];if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=x+f[v],S=x-f[y];x=nf(w,x,S)}if(i){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=g+f[v],S=g-f[y];g=nf(w,g,S)}const b=l.fn({...t,[h]:x,[m]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:s,[m]:i}}}}}},PL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=$n(e,t),p={x:n,y:r},f=yn(o),m=tm(f);let h=p[m],x=p[f];const g=$n(i,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+b.mainAxis,C=a.reference[m]+a.reference[w]-b.mainAxis;h<S?h=S:h>C&&(h=C)}if(d){var v,y;const w=m==="y"?"width":"height",S=J0.has(zn(o)),C=a.reference[f]-a.floating[w]+(S&&((v=s.offset)==null?void 0:v[f])||0)+(S?0:b.crossAxis),E=a.reference[f]+a.reference[w]+(S?0:((y=s.offset)==null?void 0:y[f])||0)-(S?b.crossAxis:0);x<C?x=C:x>E&&(x=E)}return{[m]:h,[f]:x}}}},TL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...d}=$n(e,t),p=await s.detectOverflow(t,d),f=zn(o),m=va(o),h=yn(o)==="y",{width:x,height:g}=a.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,b=m==="end"?"top":"bottom");const y=g-p.top-p.bottom,w=x-p.left-p.right,S=br(g-p[b],y),C=br(x-p[v],w),E=!t.middlewareData.shift;let N=S,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=y),E&&!m){const O=Pt(p.left,0),k=Pt(p.right,0),D=Pt(p.top,0),V=Pt(p.bottom,0);h?R=x-2*(O!==0||k!==0?O+k:Pt(p.left,p.right)):N=g-2*(D!==0||V!==0?D+V:Pt(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:N});const P=await s.getDimensions(i.floating);return x!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function jc(){return typeof window<"u"}function ga(e){return eb(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){var t;return(t=(eb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eb(e){return jc()?e instanceof Node||e instanceof Mt(e).Node:!1}function un(e){return jc()?e instanceof Element||e instanceof Mt(e).Element:!1}function Wn(e){return jc()?e instanceof HTMLElement||e instanceof Mt(e).HTMLElement:!1}function ag(e){return!jc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot}function Us(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function kL(e){return/^(table|td|th)$/.test(ga(e))}function Ic(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const _L=/transform|translate|scale|rotate|perspective|filter/,ML=/paint|layout|strict|content/,Or=e=>!!e&&e!=="none";let Uu;function om(e){const t=un(e)?dn(e):e;return Or(t.transform)||Or(t.translate)||Or(t.scale)||Or(t.rotate)||Or(t.perspective)||!am()&&(Or(t.backdropFilter)||Or(t.filter))||_L.test(t.willChange||"")||ML.test(t.contain||"")}function jL(e){let t=Sr(e);for(;Wn(t)&&!ea(t);){if(om(t))return t;if(Ic(t))return null;t=Sr(t)}return null}function am(){return Uu==null&&(Uu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Uu}function ea(e){return/^(html|body|#document)$/.test(ga(e))}function dn(e){return Mt(e).getComputedStyle(e)}function Ac(e){return un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sr(e){if(ga(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ag(e)&&e.host||Cn(e);return ag(t)?t.host:t}function tb(e){const t=Sr(e);return ea(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wn(t)&&Us(t)?t:tb(t)}function Rs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tb(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Mt(o);if(a){const i=of(s);return t.concat(s,s.visualViewport||[],Us(o)?o:[],i&&n?Rs(i):[])}else return t.concat(o,Rs(o,[],n))}function of(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nb(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Wn(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Cl(n)!==a||Cl(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function sm(e){return un(e)?e:e.contextElement}function Uo(e){const t=sm(e);if(!Wn(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=nb(t);let s=(a?Cl(n.width):n.width)/r,i=(a?Cl(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const IL=bn(0);function rb(e){const t=Mt(e);return!am()||!t.visualViewport?IL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function Jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=sm(e);let s=bn(1);t&&(r?un(r)&&(s=Uo(r)):s=Uo(e));const i=AL(a,n,r)?rb(a):bn(0);let l=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){const m=Mt(a),h=r&&un(r)?Mt(r):r;let x=m,g=of(x);for(;g&&r&&h!==x;){const b=Uo(g),v=g.getBoundingClientRect(),y=dn(g),w=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,S=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,d*=b.y,p*=b.x,f*=b.y,l+=w,d+=S,x=Mt(g),g=of(x)}}return Nl({width:p,height:f,x:l,y:d})}function Oc(e,t){const n=Ac(e).scrollLeft;return t?t.left+n:Jr(Cn(e)).left+n}function ob(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Oc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function OL(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Cn(r),i=t?Ic(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=bn(1);const p=bn(0),f=Wn(r);if((f||!f&&!a)&&((ga(r)!=="body"||Us(s))&&(l=Ac(r)),f)){const h=Jr(r);d=Uo(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const m=s&&!f&&!a?ob(s,l):bn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-l.scrollTop*d.y+p.y+m.y}}function DL(e){return Array.from(e.getClientRects())}function LL(e){const t=Cn(e),n=Ac(e),r=e.ownerDocument.body,o=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Oc(e);const i=-n.scrollTop;return dn(r).direction==="rtl"&&(s+=Pt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const sg=25;function $L(e,t){const n=Mt(e),r=Cn(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=am();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const d=Oc(r);if(d<=0){const p=r.ownerDocument,f=p.body,m=getComputedStyle(f),h=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-h);x<=sg&&(a-=x)}else d<=sg&&(a+=d);return{width:a,height:s,x:i,y:l}}function zL(e,t){const n=Jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Wn(e)?Uo(e):bn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function ig(e,t,n){let r;if(t==="viewport")r=$L(e,n);else if(t==="document")r=LL(Cn(e));else if(un(t))r=zL(t,n);else{const o=rb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nl(r)}function ab(e,t){const n=Sr(e);return n===t||!un(n)||ea(n)?!1:dn(n).position==="fixed"||ab(n,t)}function FL(e,t){const n=t.get(e);if(n)return n;let r=Rs(e,[],!1).filter(i=>un(i)&&ga(i)!=="body"),o=null;const a=dn(e).position==="fixed";let s=a?Sr(e):e;for(;un(s)&&!ea(s);){const i=dn(s),l=om(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Us(s)&&!l&&ab(e,s))?r=r.filter(p=>p!==s):o=i,s=Sr(s)}return t.set(e,r),r}function HL(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ic(t)?[]:FL(t,this._c):[].concat(n),r],i=ig(t,s[0],o);let l=i.top,d=i.right,p=i.bottom,f=i.left;for(let m=1;m<s.length;m++){const h=ig(t,s[m],o);l=Pt(h.top,l),d=br(h.right,d),p=br(h.bottom,p),f=Pt(h.left,f)}return{width:d-f,height:p-l,x:f,y:l}}function BL(e){const{width:t,height:n}=nb(e);return{width:t,height:n}}function VL(e,t,n){const r=Wn(t),o=Cn(t),a=n==="fixed",s=Jr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=bn(0);function d(){l.x=Oc(o)}if(r||!r&&!a)if((ga(t)!=="body"||Us(o))&&(i=Ac(t)),r){const h=Jr(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&d();a&&!r&&o&&d();const p=o&&!r&&!a?ob(o,i):bn(0),f=s.left+i.scrollLeft-l.x-p.x,m=s.top+i.scrollTop-l.y-p.y;return{x:f,y:m,width:s.width,height:s.height}}function Wu(e){return dn(e).position==="static"}function lg(e,t){if(!Wn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Cn(e)===n&&(n=n.ownerDocument.body),n}function sb(e,t){const n=Mt(e);if(Ic(e))return n;if(!Wn(e)){let o=Sr(e);for(;o&&!ea(o);){if(un(o)&&!Wu(o))return o;o=Sr(o)}return n}let r=lg(e,t);for(;r&&kL(r)&&Wu(r);)r=lg(r,t);return r&&ea(r)&&Wu(r)&&!om(r)?n:r||jL(e)||n}const UL=async function(e){const t=this.getOffsetParent||sb,n=this.getDimensions,r=await n(e.floating);return{reference:VL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WL(e){return dn(e).direction==="rtl"}const GL={convertOffsetParentRelativeRectToViewportRelativeRect:OL,getDocumentElement:Cn,getClippingRect:HL,getOffsetParent:sb,getElementRects:UL,getClientRects:DL,getDimensions:BL,getScale:Uo,isElement:un,isRTL:WL};function ib(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KL(e,t){let n=null,r;const o=Cn(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:p,top:f,width:m,height:h}=d;if(i||t(),!m||!h)return;const x=Ti(f),g=Ti(o.clientWidth-(p+m)),b=Ti(o.clientHeight-(f+h)),v=Ti(p),w={rootMargin:-x+"px "+-g+"px "+-b+"px "+-v+"px",threshold:Pt(0,br(1,l))||1};let S=!0;function C(E){const N=E[0].intersectionRatio;if(N!==l){if(!S)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!ib(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function YL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=sm(e),p=o||a?[...d?Rs(d):[],...t?Rs(t):[]]:[];p.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=d&&i?KL(d,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!l&&h.observe(d),t&&h.observe(t));let x,g=l?Jr(e):null;l&&b();function b(){const v=Jr(e);g&&!ib(g,v)&&n(),g=v,x=requestAnimationFrame(b)}return n(),()=>{var v;p.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(x)}}const XL=NL,qL=RL,QL=SL,ZL=TL,JL=CL,cg=bL,e$=PL,t$=(e,t,n)=>{const r=new Map,o={platform:GL,...n},a={...o.platform,_c:r};return wL(e,t,{...o,platform:a})};var n$=typeof document<"u",r$=function(){},Ki=n$?c.useLayoutEffect:r$;function Rl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Rl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function lb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ug(e,t){const n=lb(e);return Math.round(t*n)/n}function Gu(e){const t=c.useRef(e);return Ki(()=>{t.current=e}),t}function o$(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[p,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Rl(m,r)||h(r);const[x,g]=c.useState(null),[b,v]=c.useState(null),y=c.useCallback(I=>{I!==E.current&&(E.current=I,g(I))},[]),w=c.useCallback(I=>{I!==N.current&&(N.current=I,v(I))},[]),S=a||x,C=s||b,E=c.useRef(null),N=c.useRef(null),R=c.useRef(p),P=l!=null,O=Gu(l),k=Gu(o),D=Gu(d),V=c.useCallback(()=>{if(!E.current||!N.current)return;const I={placement:t,strategy:n,middleware:m};k.current&&(I.platform=k.current),t$(E.current,N.current,I).then(T=>{const W={...T,isPositioned:D.current!==!1};$.current&&!Rl(R.current,W)&&(R.current=W,oo.flushSync(()=>{f(W)}))})},[m,t,n,k,D]);Ki(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[d]);const $=c.useRef(!1);Ki(()=>($.current=!0,()=>{$.current=!1}),[]),Ki(()=>{if(S&&(E.current=S),C&&(N.current=C),S&&C){if(O.current)return O.current(S,C,V);V()}},[S,C,V,O,P]);const U=c.useMemo(()=>({reference:E,floating:N,setReference:y,setFloating:w}),[y,w]),B=c.useMemo(()=>({reference:S,floating:C}),[S,C]),Z=c.useMemo(()=>{const I={position:n,left:0,top:0};if(!B.floating)return I;const T=ug(B.floating,p.x),W=ug(B.floating,p.y);return i?{...I,transform:"translate("+T+"px, "+W+"px)",...lb(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:W}},[n,i,B.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:V,refs:U,elements:B,floatingStyles:Z}),[p,V,U,B,Z])}const a$=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?cg({element:r.current,padding:o}).fn(n):{}:r?cg({element:r,padding:o}).fn(n):{}}}},s$=(e,t)=>{const n=XL(e);return{name:n.name,fn:n.fn,options:[e,t]}},i$=(e,t)=>{const n=qL(e);return{name:n.name,fn:n.fn,options:[e,t]}},l$=(e,t)=>({fn:e$(e).fn,options:[e,t]}),c$=(e,t)=>{const n=QL(e);return{name:n.name,fn:n.fn,options:[e,t]}},u$=(e,t)=>{const n=ZL(e);return{name:n.name,fn:n.fn,options:[e,t]}},d$=(e,t)=>{const n=JL(e);return{name:n.name,fn:n.fn,options:[e,t]}},f$=(e,t)=>{const n=a$(e);return{name:n.name,fn:n.fn,options:[e,t]}};var p$="Arrow",cb=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return u.jsx(Q.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});cb.displayName=p$;var m$=cb,im="Popper",[ub,En]=ke(im),[h$,db]=ub(im),fb=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return u.jsx(h$,{scope:t,anchor:r,onAnchorChange:o,children:n})};fb.displayName=im;var pb="PopperAnchor",mb=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=db(pb,n),s=c.useRef(null),i=se(t,s),l=c.useRef(null);return c.useEffect(()=>{const d=l.current;l.current=(r==null?void 0:r.current)||s.current,d!==l.current&&a.onAnchorChange(l.current)}),r?null:u.jsx(Q.div,{...o,ref:i})});mb.displayName=pb;var lm="PopperContent",[v$,g$]=ub(lm),hb=c.forwardRef((e,t)=>{var j,Y,ee,te,ne,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:x,...g}=e,b=db(lm,n),[v,y]=c.useState(null),w=se(t,oe=>y(oe)),[S,C]=c.useState(null),E=Bs(S),N=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,P=r+(a!=="center"?"-"+a:""),O=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},k=Array.isArray(d)?d:[d],D=k.length>0,V={padding:O,boundary:k.filter(x$),altBoundary:D},{refs:$,floatingStyles:U,placement:B,isPositioned:Z,middlewareData:I}=o$({strategy:"fixed",placement:P,whileElementsMounted:(...oe)=>YL(...oe,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[s$({mainAxis:o+R,alignmentAxis:s}),l&&i$({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?l$():void 0,...V}),l&&c$({...V}),u$({...V,apply:({elements:oe,rects:q,availableWidth:re,availableHeight:de})=>{const{width:me,height:ce}=q.reference,le=oe.floating.style;le.setProperty("--radix-popper-available-width",`${re}px`),le.setProperty("--radix-popper-available-height",`${de}px`),le.setProperty("--radix-popper-anchor-width",`${me}px`),le.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),S&&f$({element:S,padding:i}),w$({arrowWidth:N,arrowHeight:R}),m&&d$({strategy:"referenceHidden",...V})]}),[T,W]=yb(B),J=we(x);Te(()=>{Z&&(J==null||J())},[Z,J]);const _=(j=I.arrow)==null?void 0:j.x,A=(Y=I.arrow)==null?void 0:Y.y,z=((ee=I.arrow)==null?void 0:ee.centerOffset)!==0,[H,G]=c.useState();return Te(()=>{v&&G(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Z?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[(te=I.transformOrigin)==null?void 0:te.x,(ne=I.transformOrigin)==null?void 0:ne.y].join(" "),...((K=I.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(v$,{scope:n,placedSide:T,onArrowChange:C,arrowX:_,arrowY:A,shouldHideArrow:z,children:u.jsx(Q.div,{"data-side":T,"data-align":W,...g,ref:w,style:{...g.style,animation:Z?void 0:"none"}})})})});hb.displayName=lm;var vb="PopperArrow",y$={top:"bottom",right:"left",bottom:"top",left:"right"},gb=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=g$(vb,r),s=y$[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(m$,{...o,ref:n,style:{...o.style,display:"block"}})})});gb.displayName=vb;function x$(e){return e!==null}var w$=e=>({name:"transformOrigin",options:e,fn(t){var b,v,y;const{placement:n,rects:r,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,p]=yb(n),f={start:"0%",center:"50%",end:"100%"}[p],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let x="",g="";return d==="bottom"?(x=s?f:`${m}px`,g=`${-l}px`):d==="top"?(x=s?f:`${m}px`,g=`${r.floating.height+l}px`):d==="right"?(x=`${-l}px`,g=s?f:`${h}px`):d==="left"&&(x=`${r.floating.width+l}px`,g=s?f:`${h}px`),{data:{x,y:g}}}});function yb(e){const[t,n="center"]=e.split("-");return[t,n]}var b$=fb,ya=mb,Ws=hb,Gs=gb,Ku="rovingFocusGroup.onEntryFocus",S$={bubbles:!1,cancelable:!0},Ks="RovingFocusGroup",[af,xb,C$]=Hn(Ks),[E$,Nn]=ke(Ks,[C$]),[N$,R$]=E$(Ks),wb=c.forwardRef((e,t)=>u.jsx(af.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(af.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(P$,{...e,ref:t})})}));wb.displayName=Ks;var P$=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,m=c.useRef(null),h=se(t,m),x=Bn(a),[g,b]=Ye({prop:s,defaultProp:i??null,onChange:l,caller:Ks}),[v,y]=c.useState(!1),w=we(d),S=xb(n),C=c.useRef(!1),[E,N]=c.useState(0);return c.useEffect(()=>{const R=m.current;if(R)return R.addEventListener(Ku,w),()=>R.removeEventListener(Ku,w)},[w]),u.jsx(N$,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:g,onItemFocus:c.useCallback(R=>b(R),[b]),onItemShiftTab:c.useCallback(()=>y(!0),[]),onFocusableItemAdd:c.useCallback(()=>N(R=>R+1),[]),onFocusableItemRemove:c.useCallback(()=>N(R=>R-1),[]),children:u.jsx(Q.div,{tabIndex:v||E===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{C.current=!0}),onFocus:L(e.onFocus,R=>{const P=!C.current;if(R.target===R.currentTarget&&P&&!v){const O=new CustomEvent(Ku,S$);if(R.currentTarget.dispatchEvent(O),!O.defaultPrevented){const k=S().filter(B=>B.focusable),D=k.find(B=>B.active),V=k.find(B=>B.id===g),U=[D,V,...k].filter(Boolean).map(B=>B.ref.current);Cb(U,p)}}C.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),bb="RovingFocusGroupItem",Sb=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Ke(),d=a||l,p=R$(bb,n),f=p.currentTabStopId===d,m=xb(n),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:g}=p;return c.useEffect(()=>{if(r)return h(),()=>x()},[r,h,x]),u.jsx(af.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:u.jsx(Q.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,b=>{r?p.onItemFocus(d):b.preventDefault()}),onFocus:L(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:L(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=_$(b,p.orientation,p.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const S=w.indexOf(b.currentTarget);w=p.loop?M$(w,S+1):w.slice(S+1)}setTimeout(()=>Cb(w))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});Sb.displayName=bb;var T$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _$(e,t,n){const r=k$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return T$[r]}function Cb(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function M$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ys=wb,Xs=Sb,sf=["Enter"," "],j$=["ArrowDown","PageUp","Home"],Eb=["ArrowUp","PageDown","End"],I$=[...j$,...Eb],A$={ltr:[...sf,"ArrowRight"],rtl:[...sf,"ArrowLeft"]},O$={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dc="Menu",[Ps,D$,L$]=Hn(Dc),[io,qs]=ke(Dc,[L$,En,Nn]),cm=En(),Nb=Nn(),[u8,lo]=io(Dc),[d8,Qs]=io(Dc),$$="MenuAnchor",um=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cm(n);return u.jsx(ya,{...o,...r,ref:t})});um.displayName=$$;var dm="MenuPortal",[z$,Rb]=io(dm,{forceMount:void 0}),Pb=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=lo(dm,t);return u.jsx(z$,{scope:t,forceMount:n,children:u.jsx(_e,{present:n||a.open,children:u.jsx(ca,{asChild:!0,container:o,children:r})})})};Pb.displayName=dm;var Ft="MenuContent",[F$,fm]=io(Ft),Tb=c.forwardRef((e,t)=>{const n=Rb(Ft,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=lo(Ft,e.__scopeMenu),s=Qs(Ft,e.__scopeMenu);return u.jsx(Ps.Provider,{scope:e.__scopeMenu,children:u.jsx(_e,{present:r||a.open,children:u.jsx(Ps.Slot,{scope:e.__scopeMenu,children:s.modal?u.jsx(H$,{...o,ref:t}):u.jsx(B$,{...o,ref:t})})})})}),H$=c.forwardRef((e,t)=>{const n=lo(Ft,e.__scopeMenu),r=c.useRef(null),o=se(t,r);return c.useEffect(()=>{const a=r.current;if(a)return dc(a)},[]),u.jsx(pm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),B$=c.forwardRef((e,t)=>{const n=lo(Ft,e.__scopeMenu);return u.jsx(pm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),V$=Xr("MenuContent.ScrollLock"),pm=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:x,...g}=e,b=lo(Ft,n),v=Qs(Ft,n),y=cm(n),w=Nb(n),S=D$(n),[C,E]=c.useState(null),N=c.useRef(null),R=se(t,N,b.onContentChange),P=c.useRef(0),O=c.useRef(""),k=c.useRef(0),D=c.useRef(null),V=c.useRef("right"),$=c.useRef(0),U=x?$s:c.Fragment,B=x?{as:V$,allowPinchZoom:!0}:void 0,Z=T=>{var j,Y;const W=O.current+T,J=S().filter(ee=>!ee.disabled),_=document.activeElement,A=(j=J.find(ee=>ee.ref.current===_))==null?void 0:j.textValue,z=J.map(ee=>ee.textValue),H=tz(z,W,A),G=(Y=J.find(ee=>ee.textValue===H))==null?void 0:Y.ref.current;(function ee(te){O.current=te,window.clearTimeout(P.current),te!==""&&(P.current=window.setTimeout(()=>ee(""),1e3))})(W),G&&setTimeout(()=>G.focus())};c.useEffect(()=>()=>window.clearTimeout(P.current),[]),cc();const I=c.useCallback(T=>{var J,_;return V.current===((J=D.current)==null?void 0:J.side)&&rz(T,(_=D.current)==null?void 0:_.area)},[]);return u.jsx(F$,{scope:n,searchRef:O,onItemEnter:c.useCallback(T=>{I(T)&&T.preventDefault()},[I]),onItemLeave:c.useCallback(T=>{var W;I(T)||((W=N.current)==null||W.focus(),E(null))},[I]),onTriggerLeave:c.useCallback(T=>{I(T)&&T.preventDefault()},[I]),pointerGraceTimerRef:k,onPointerGraceIntentChange:c.useCallback(T=>{D.current=T},[]),children:u.jsx(U,{...B,children:u.jsx(Ls,{asChild:!0,trapped:o,onMountAutoFocus:L(a,T=>{var W;T.preventDefault(),(W=N.current)==null||W.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:u.jsx(Un,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:u.jsx(Ys,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:E,onEntryFocus:L(l,T=>{v.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Ws,{role:"menu","aria-orientation":"vertical","data-state":Ub(b.open),"data-radix-menu-content":"",dir:v.dir,...y,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:L(g.onKeyDown,T=>{const J=T.target.closest("[data-radix-menu-content]")===T.currentTarget,_=T.ctrlKey||T.altKey||T.metaKey,A=T.key.length===1;J&&(T.key==="Tab"&&T.preventDefault(),!_&&A&&Z(T.key));const z=N.current;if(T.target!==z||!I$.includes(T.key))return;T.preventDefault();const G=S().filter(j=>!j.disabled).map(j=>j.ref.current);Eb.includes(T.key)&&G.reverse(),J$(G)}),onBlur:L(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(P.current),O.current="")}),onPointerMove:L(e.onPointerMove,Ts(T=>{const W=T.target,J=$.current!==T.clientX;if(T.currentTarget.contains(W)&&J){const _=T.clientX>$.current?"right":"left";V.current=_,$.current=T.clientX}}))})})})})})})});Tb.displayName=Ft;var U$="MenuGroup",mm=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Q.div,{role:"group",...r,ref:t})});mm.displayName=U$;var W$="MenuLabel",kb=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Q.div,{...r,ref:t})});kb.displayName=W$;var Pl="MenuItem",dg="menu.itemSelect",Lc=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),s=Qs(Pl,e.__scopeMenu),i=fm(Pl,e.__scopeMenu),l=se(t,a),d=c.useRef(!1),p=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(dg,{bubbles:!0,cancelable:!0});f.addEventListener(dg,h=>r==null?void 0:r(h),{once:!0}),bs(f,m),m.defaultPrevented?d.current=!1:s.onClose()}};return u.jsx(_b,{...o,ref:l,disabled:n,onClick:L(e.onClick,p),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),d.current=!0},onPointerUp:L(e.onPointerUp,f=>{var m;d.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||sf.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Lc.displayName=Pl;var _b=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=fm(Pl,n),i=Nb(n),l=c.useRef(null),d=se(t,l),[p,f]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const x=l.current;x&&h((x.textContent??"").trim())},[a.children]),u.jsx(Ps.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:u.jsx(Xs,{asChild:!0,...i,focusable:!r,children:u.jsx(Q.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:L(e.onPointerMove,Ts(x=>{r?s.onItemLeave(x):(s.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,Ts(x=>s.onItemLeave(x))),onFocus:L(e.onFocus,()=>f(!0)),onBlur:L(e.onBlur,()=>f(!1))})})})}),G$="MenuCheckboxItem",Mb=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.jsx(Db,{scope:e.__scopeMenu,checked:n,children:u.jsx(Lc,{role:"menuitemcheckbox","aria-checked":Tl(n)?"mixed":n,...o,ref:t,"data-state":vm(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(Tl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Mb.displayName=G$;var jb="MenuRadioGroup",[K$,Y$]=io(jb,{value:void 0,onValueChange:()=>{}}),Ib=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=we(r);return u.jsx(K$,{scope:e.__scopeMenu,value:n,onValueChange:a,children:u.jsx(mm,{...o,ref:t})})});Ib.displayName=jb;var Ab="MenuRadioItem",Ob=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=Y$(Ab,e.__scopeMenu),a=n===o.value;return u.jsx(Db,{scope:e.__scopeMenu,checked:a,children:u.jsx(Lc,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":vm(a),onSelect:L(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ob.displayName=Ab;var hm="MenuItemIndicator",[Db,X$]=io(hm,{checked:!1}),Lb=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=X$(hm,n);return u.jsx(_e,{present:r||Tl(a.checked)||a.checked===!0,children:u.jsx(Q.span,{...o,ref:t,"data-state":vm(a.checked)})})});Lb.displayName=hm;var q$="MenuSeparator",$b=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$b.displayName=q$;var Q$="MenuArrow",zb=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cm(n);return u.jsx(Gs,{...o,...r,ref:t})});zb.displayName=Q$;var Z$="MenuSub",[f8,Fb]=io(Z$),Ha="MenuSubTrigger",Hb=c.forwardRef((e,t)=>{const n=lo(Ha,e.__scopeMenu),r=Qs(Ha,e.__scopeMenu),o=Fb(Ha,e.__scopeMenu),a=fm(Ha,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},p=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>p,[p]),c.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),u.jsx(um,{asChild:!0,...d,children:u.jsx(_b,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ub(n.open),...e,ref:sn(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,Ts(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:L(e.onPointerLeave,Ts(f=>{var h,x;p();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(x=n.content)==null?void 0:x.dataset.side,b=g==="right",v=b?-5:5,y=m[b?"left":"right"],w=m[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:y,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x:y,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,f=>{var h;const m=a.searchRef.current!=="";e.disabled||m&&f.key===" "||A$[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Hb.displayName=Ha;var Bb="MenuSubContent",Vb=c.forwardRef((e,t)=>{const n=Rb(Ft,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=lo(Ft,e.__scopeMenu),s=Qs(Ft,e.__scopeMenu),i=Fb(Bb,e.__scopeMenu),l=c.useRef(null),d=se(t,l);return u.jsx(Ps.Provider,{scope:e.__scopeMenu,children:u.jsx(_e,{present:r||a.open,children:u.jsx(Ps.Slot,{scope:e.__scopeMenu,children:u.jsx(pm,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:L(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:L(e.onKeyDown,p=>{var h;const f=p.currentTarget.contains(p.target),m=O$[s.dir].includes(p.key);f&&m&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),p.preventDefault())})})})})})});Vb.displayName=Bb;function Ub(e){return e?"open":"closed"}function Tl(e){return e==="indeterminate"}function vm(e){return Tl(e)?"indeterminate":e?"checked":"unchecked"}function J$(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ez(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function tz(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=ez(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nz(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,p=i.y,f=l.x,m=l.y;p>r!=m>r&&n<(f-d)*(r-p)/(m-p)+d&&(o=!o)}return o}function rz(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return nz(n,t)}function Ts(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gm=um,ym=Pb,xm=Tb,wm=mm,bm=kb,Sm=Lc,Cm=Mb,Em=Ib,Nm=Ob,Rm=Lb,Pm=$b,Tm=zb,km=Hb,_m=Vb,Wb="ContextMenu",[oz]=ke(Wb,[qs]),wt=qs(),[p8,Gb]=oz(Wb),Kb="ContextMenuTrigger",az=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=Gb(Kb,n),s=wt(n),i=c.useRef({x:0,y:0}),l=c.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),d=c.useRef(0),p=c.useCallback(()=>window.clearTimeout(d.current),[]),f=m=>{i.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return c.useEffect(()=>p,[p]),c.useEffect(()=>void(r&&p()),[r,p]),u.jsxs(u.Fragment,{children:[u.jsx(gm,{...s,virtualRef:l}),u.jsx(Q.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:L(e.onContextMenu,m=>{p(),f(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:L(e.onPointerDown,ki(m=>{p(),d.current=window.setTimeout(()=>f(m),700)})),onPointerMove:r?e.onPointerMove:L(e.onPointerMove,ki(p)),onPointerCancel:r?e.onPointerCancel:L(e.onPointerCancel,ki(p)),onPointerUp:r?e.onPointerUp:L(e.onPointerUp,ki(p))})]})});az.displayName=Kb;var sz="ContextMenuPortal",Yb=e=>{const{__scopeContextMenu:t,...n}=e,r=wt(t);return u.jsx(ym,{...r,...n})};Yb.displayName=sz;var Xb="ContextMenuContent",qb=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Gb(Xb,n),a=wt(n),s=c.useRef(!1);return u.jsx(xm,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,i),!i.defaultPrevented&&s.current&&i.preventDefault(),s.current=!1},onInteractOutside:i=>{var l;(l=e.onInteractOutside)==null||l.call(e,i),!i.defaultPrevented&&!o.modal&&(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qb.displayName=Xb;var iz="ContextMenuGroup",lz=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(wm,{...o,...r,ref:t})});lz.displayName=iz;var cz="ContextMenuLabel",Qb=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(bm,{...o,...r,ref:t})});Qb.displayName=cz;var uz="ContextMenuItem",Zb=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Sm,{...o,...r,ref:t})});Zb.displayName=uz;var dz="ContextMenuCheckboxItem",Jb=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Cm,{...o,...r,ref:t})});Jb.displayName=dz;var fz="ContextMenuRadioGroup",pz=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Em,{...o,...r,ref:t})});pz.displayName=fz;var mz="ContextMenuRadioItem",eS=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Nm,{...o,...r,ref:t})});eS.displayName=mz;var hz="ContextMenuItemIndicator",tS=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Rm,{...o,...r,ref:t})});tS.displayName=hz;var vz="ContextMenuSeparator",nS=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Pm,{...o,...r,ref:t})});nS.displayName=vz;var gz="ContextMenuArrow",yz=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(Tm,{...o,...r,ref:t})});yz.displayName=gz;var xz="ContextMenuSubTrigger",rS=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(km,{...o,...r,ref:t})});rS.displayName=xz;var wz="ContextMenuSubContent",oS=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wt(n);return u.jsx(_m,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oS.displayName=wz;function ki(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var bz=Yb,aS=qb,sS=Qb,iS=Zb,lS=Jb,cS=eS,uS=tS,dS=nS,fS=rS,pS=oS;const Sz=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(fS,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,u.jsx(Ip,{className:"ml-auto h-4 w-4"})]}));Sz.displayName=fS.displayName;const Cz=c.forwardRef(({className:e,...t},n)=>u.jsx(pS,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...t}));Cz.displayName=pS.displayName;const Ez=c.forwardRef(({className:e,...t},n)=>u.jsx(bz,{children:u.jsx(aS,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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",e),...t})}));Ez.displayName=aS.displayName;const Nz=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(iS,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Nz.displayName=iS.displayName;const Rz=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(lS,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(uS,{children:u.jsx(Ds,{className:"h-4 w-4"})})}),t]}));Rz.displayName=lS.displayName;const Pz=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(cS,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(uS,{children:u.jsx(lc,{className:"h-2 w-2 fill-current"})})}),t]}));Pz.displayName=cS.displayName;const Tz=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(sS,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));Tz.displayName=sS.displayName;const kz=c.forwardRef(({className:e,...t},n)=>u.jsx(dS,{ref:n,className:M("-mx-1 my-1 h-px bg-border",e),...t}));kz.displayName=dS.displayName;var mS="DropdownMenu",[_z]=ke(mS,[qs]),bt=qs(),[m8,hS]=_z(mS),vS="DropdownMenuTrigger",Mz=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=hS(vS,n),s=bt(n);return u.jsx(gm,{asChild:!0,...s,children:u.jsx(Q.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:sn(t,a.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Mz.displayName=vS;var jz="DropdownMenuPortal",gS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=bt(t);return u.jsx(ym,{...r,...n})};gS.displayName=jz;var yS="DropdownMenuContent",xS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hS(yS,n),a=bt(n),s=c.useRef(!1);return u.jsx(xm,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,p=l.button===2||d;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});xS.displayName=yS;var Iz="DropdownMenuGroup",Az=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(wm,{...o,...r,ref:t})});Az.displayName=Iz;var Oz="DropdownMenuLabel",wS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(bm,{...o,...r,ref:t})});wS.displayName=Oz;var Dz="DropdownMenuItem",bS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Sm,{...o,...r,ref:t})});bS.displayName=Dz;var Lz="DropdownMenuCheckboxItem",SS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Cm,{...o,...r,ref:t})});SS.displayName=Lz;var $z="DropdownMenuRadioGroup",zz=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Em,{...o,...r,ref:t})});zz.displayName=$z;var Fz="DropdownMenuRadioItem",CS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Nm,{...o,...r,ref:t})});CS.displayName=Fz;var Hz="DropdownMenuItemIndicator",ES=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Rm,{...o,...r,ref:t})});ES.displayName=Hz;var Bz="DropdownMenuSeparator",NS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Pm,{...o,...r,ref:t})});NS.displayName=Bz;var Vz="DropdownMenuArrow",Uz=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(Tm,{...o,...r,ref:t})});Uz.displayName=Vz;var Wz="DropdownMenuSubTrigger",RS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(km,{...o,...r,ref:t})});RS.displayName=Wz;var Gz="DropdownMenuSubContent",PS=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bt(n);return u.jsx(_m,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});PS.displayName=Gz;var Kz=gS,TS=xS,kS=wS,_S=bS,MS=SS,jS=CS,IS=ES,AS=NS,OS=RS,DS=PS;const Yz=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(OS,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,u.jsx(Ip,{className:"ml-auto h-4 w-4"})]}));Yz.displayName=OS.displayName;const Xz=c.forwardRef(({className:e,...t},n)=>u.jsx(DS,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));Xz.displayName=DS.displayName;const qz=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(Kz,{children:u.jsx(TS,{ref:r,sideOffset:t,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...n})}));qz.displayName=TS.displayName;const Qz=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(_S,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Qz.displayName=_S.displayName;const Zz=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(MS,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(IS,{children:u.jsx(Ds,{className:"h-4 w-4"})})}),t]}));Zz.displayName=MS.displayName;const Jz=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(jS,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(IS,{children:u.jsx(lc,{className:"h-2 w-2 fill-current"})})}),t]}));Jz.displayName=jS.displayName;const e4=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(kS,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));e4.displayName=kS.displayName;const t4=c.forwardRef(({className:e,...t},n)=>u.jsx(AS,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));t4.displayName=AS.displayName;function n4(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const r4=F.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Zs=()=>{const e=F.useContext(r4);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};n4(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
313
|
+
[data-state=closed]
|
|
314
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);function o4(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function a4(...e){return t=>e.forEach(n=>o4(n,t))}function LS(...e){return c.useCallback(a4(...e),e)}const fg=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Yu(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function s4(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Xu={DURATION:.5,EASE:[.32,.72,0,1]},i4=8,l4=26,c4=()=>()=>{};function u4(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Zs(),a=F.useRef(null),s=c.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-l4)/window.innerWidth}F.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;s4(r&&!o?Yu(document.body,{background:"black"}):c4,Yu(l,{transformOrigin:fg(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Xu.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Xu.EASE.join(",")})`}));const d=Yu(l,{borderRadius:`${i4}px`,overflow:"hidden",...fg(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{d(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},Xu.DURATION*1e3)}}},[t,n,s])}const $S=F.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:s,modal:i}=Zs(),l=LS(t,n),d=r&&r.length>0;return i?F.createElement(ao,{onMouseUp:o,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":s&&d?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});$S.displayName="Drawer.Overlay";const zS=F.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:s,onRelease:i,onDrag:l,keyboardIsOpen:d,snapPointsOffset:p,modal:f,isOpen:m,direction:h,snapPoints:x,container:g,handleOnly:b,autoFocus:v}=Zs(),[y,w]=F.useState(!1),S=LS(o,a),C=F.useRef(null),E=F.useRef(null),N=F.useRef(!1),R=x&&x.length>0;u4();const P=(k,D,V=0)=>{if(N.current)return!0;const $=Math.abs(k.y),U=Math.abs(k.x),B=U>$,Z=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(k.x*Z<0)&&U>=0&&U<=V)return B}else if(!(k.y*Z<0)&&$>=0&&$<=V)return!B;return N.current=!0,!0};F.useEffect(()=>{R&&window.requestAnimationFrame(()=>{w(!0)})},[]);function O(k){C.current=null,N.current=!1,i(k)}return F.createElement(so,{"data-vaul-drawer-direction":h,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":m&&R?"true":"false","data-vaul-custom-container":g?"true":"false",...r,ref:S,style:p&&p.length>0?{"--snap-point-height":`${p[0]}px`,...t}:t,onPointerDown:k=>{b||(r.onPointerDown==null||r.onPointerDown.call(r,k),C.current={x:k.pageX,y:k.pageY},s(k))},onOpenAutoFocus:k=>{n==null||n(k),v||k.preventDefault()},onPointerDownOutside:k=>{if(e==null||e(k),!f||k.defaultPrevented){k.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:k=>{if(!f){k.preventDefault();return}},onPointerMove:k=>{if(E.current=k,b||(r.onPointerMove==null||r.onPointerMove.call(r,k),!C.current))return;const D=k.pageY-C.current.y,V=k.pageX-C.current.x,$=k.pointerType==="touch"?10:2;P({x:V,y:D},h,$)?l(k):(Math.abs(V)>$||Math.abs(D)>$)&&(C.current=null)},onPointerUp:k=>{r.onPointerUp==null||r.onPointerUp.call(r,k),C.current=null,N.current=!1,i(k)},onPointerOut:k=>{r.onPointerOut==null||r.onPointerOut.call(r,k),O(E.current)},onContextMenu:k=>{r.onContextMenu==null||r.onContextMenu.call(r,k),O(E.current)}})});zS.displayName="Drawer.Content";const d4=250,f4=120,p4=F.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:s,activeSnapPoint:i,setActiveSnapPoint:l,dismissible:d,handleOnly:p,isOpen:f,onPress:m,onDrag:h}=Zs(),x=F.useRef(null),g=F.useRef(!1);function b(){if(g.current){w();return}window.setTimeout(()=>{v()},f4)}function v(){if(a||e||g.current){w();return}if(w(),(!s||s.length===0)&&d){o();return}if(i===s[s.length-1]&&d){o();return}const C=s.findIndex(N=>N===i);if(C===-1)return;const E=s[C+1];l(E)}function y(){x.current=window.setTimeout(()=>{g.current=!0},d4)}function w(){window.clearTimeout(x.current),g.current=!1}return F.createElement("div",{onClick:b,onPointerCancel:w,onPointerDown:S=>{p&&m(S),y()},onPointerMove:S=>{p&&h(S)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},F.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});p4.displayName="Drawer.Handle";function m4(e){const t=Zs(),{container:n=t.container,...r}=e;return F.createElement(zs,{container:n,...r})}const Tr={Content:zS,Overlay:$S,Portal:m4,Title:ua,Description:da},h4=Tr.Portal,FS=c.forwardRef(({className:e,...t},n)=>u.jsx(Tr.Overlay,{ref:n,className:M("fixed inset-0 z-50 bg-black/80",e),...t}));FS.displayName=Tr.Overlay.displayName;const v4=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(h4,{children:[u.jsx(FS,{}),u.jsxs(Tr.Content,{ref:r,className:M("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[u.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));v4.displayName="DrawerContent";const g4=c.forwardRef(({className:e,...t},n)=>u.jsx(Tr.Title,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));g4.displayName=Tr.Title.displayName;const y4=c.forwardRef(({className:e,...t},n)=>u.jsx(Tr.Description,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));y4.displayName=Tr.Description.displayName;const x4=F.createContext(null);x4.displayName="HookFormControlContext";typeof window<"u"?F.useLayoutEffect:F.useEffect;const HS=F.createContext(null);HS.displayName="HookFormContext";const w4=()=>F.useContext(HS);var b4="Label",BS=c.forwardRef((e,t)=>u.jsx(dt.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));BS.displayName=b4;var VS=BS;const S4=Vn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),US=c.forwardRef(({className:e,...t},n)=>u.jsx(VS,{ref:n,className:M(S4(),e),...t}));US.displayName=VS.displayName;const C4=c.createContext({}),$c=()=>{const e=c.useContext(C4),t=c.useContext(WS),{getFieldState:n,formState:r}=w4(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},WS=c.createContext({}),E4=c.forwardRef(({className:e,...t},n)=>{const r=c.useId();return u.jsx(WS.Provider,{value:{id:r},children:u.jsx("div",{ref:n,className:M("space-y-2",e),...t})})});E4.displayName="FormItem";const N4=c.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=$c();return u.jsx(US,{ref:n,className:M(r&&"text-destructive",e),htmlFor:o,...t})});N4.displayName="FormLabel";const R4=c.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=$c();return u.jsx(Pr,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});R4.displayName="FormControl";const P4=c.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=$c();return u.jsx("p",{ref:n,id:r,className:M("text-sm text-muted-foreground",e),...t})});P4.displayName="FormDescription";const T4=c.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=$c(),s=o?String(o==null?void 0:o.message):t;return s?u.jsx("p",{ref:r,id:a,className:M("text-sm font-medium text-destructive",e),...n,children:s}):null});T4.displayName="FormMessage";var qu,GS="HoverCard",[KS]=ke(GS,[En]),Mm=En(),[h8,jm]=KS(GS),YS="HoverCardTrigger",k4=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=jm(YS,n),a=Mm(n);return u.jsx(ya,{asChild:!0,...a,children:u.jsx(Q.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:L(e.onPointerEnter,_l(o.onOpen)),onPointerLeave:L(e.onPointerLeave,_l(o.onClose)),onFocus:L(e.onFocus,o.onOpen),onBlur:L(e.onBlur,o.onClose),onTouchStart:L(e.onTouchStart,s=>s.preventDefault())})})});k4.displayName=YS;var _4="HoverCardPortal",[v8,M4]=KS(_4,{forceMount:void 0}),kl="HoverCardContent",XS=c.forwardRef((e,t)=>{const n=M4(kl,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=jm(kl,e.__scopeHoverCard);return u.jsx(_e,{present:r||a.open,children:u.jsx(j4,{"data-state":a.open?"open":"closed",...o,onPointerEnter:L(e.onPointerEnter,_l(a.onOpen)),onPointerLeave:L(e.onPointerLeave,_l(a.onClose)),ref:t})})});XS.displayName=kl;var j4=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...i}=e,l=jm(kl,n),d=Mm(n),p=c.useRef(null),f=se(t,p),[m,h]=c.useState(!1);return c.useEffect(()=>{if(m){const x=document.body;return qu=x.style.userSelect||x.style.webkitUserSelect,x.style.userSelect="none",x.style.webkitUserSelect="none",()=>{x.style.userSelect=qu,x.style.webkitUserSelect=qu}}},[m]),c.useEffect(()=>{if(p.current){const x=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var b;((b=document.getSelection())==null?void 0:b.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",x),()=>{document.removeEventListener("pointerup",x),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),c.useEffect(()=>{p.current&&O4(p.current).forEach(g=>g.setAttribute("tabindex","-1"))}),u.jsx(Un,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:L(a,x=>{x.preventDefault()}),onDismiss:l.onDismiss,children:u.jsx(Ws,{...d,...i,onPointerDown:L(i.onPointerDown,x=>{x.currentTarget.contains(x.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...i.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),I4="HoverCardArrow",A4=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Mm(n);return u.jsx(Gs,{...o,...r,ref:t})});A4.displayName=I4;function _l(e){return t=>t.pointerType==="touch"?void 0:e()}function O4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var qS=XS;const D4=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>u.jsx(qS,{ref:o,align:t,sideOffset:n,className:M("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...r}));D4.displayName=qS.displayName;const QS=c.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:M("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));QS.displayName="Input";var L4=Object.defineProperty,$4=Object.defineProperties,z4=Object.getOwnPropertyDescriptors,Ml=Object.getOwnPropertySymbols,ZS=Object.prototype.hasOwnProperty,JS=Object.prototype.propertyIsEnumerable,pg=(e,t,n)=>t in e?L4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F4=(e,t)=>{for(var n in t||(t={}))ZS.call(t,n)&&pg(e,n,t[n]);if(Ml)for(var n of Ml(t))JS.call(t,n)&&pg(e,n,t[n]);return e},H4=(e,t)=>$4(e,z4(t)),B4=(e,t)=>{var n={};for(var r in e)ZS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&JS.call(e,r)&&(n[r]=e[r]);return n};function V4(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function U4(e){let t=c.useRef();return c.useEffect(()=>{t.current=e}),t.current}var W4=18,e1=40,G4=`${e1}px`,K4=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Y4({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=c.useState(!1),[s,i]=c.useState(!1),[l,d]=c.useState(!1),p=c.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&s,[o,s,n]),f=c.useCallback(()=>{let m=e.current,h=t.current;if(!m||!h||l||n==="none")return;let x=m,g=x.getBoundingClientRect().left+x.offsetWidth,b=x.getBoundingClientRect().top+x.offsetHeight/2,v=g-W4,y=b;document.querySelectorAll(K4).length===0&&document.elementFromPoint(v,y)===m||(a(!0),d(!0))},[e,t,l,n]);return c.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function h(){let g=window.innerWidth-m.getBoundingClientRect().right;i(g>=e1)}h();let x=setInterval(h,1e3);return()=>{clearInterval(x)}},[e,n]),c.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let h=setTimeout(f,0),x=setTimeout(f,2e3),g=setTimeout(f,5e3),b=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(h),clearTimeout(x),clearTimeout(g),clearTimeout(b)}},[t,r,n,f]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:G4}}var t1=c.createContext({}),n1=c.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:s="left",pattern:i,placeholder:l,inputMode:d="numeric",onComplete:p,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:h,noScriptCSSFallback:x=X4,render:g,children:b}=n,v=B4(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),y,w,S,C,E;let[N,R]=c.useState(typeof v.defaultValue=="string"?v.defaultValue:""),P=r??N,O=U4(P),k=c.useCallback(q=>{o==null||o(q),R(q)},[o]),D=c.useMemo(()=>i?typeof i=="string"?new RegExp(i):i:null,[i]),V=c.useRef(null),$=c.useRef(null),U=c.useRef({value:P,onChange:k,isIOS:typeof window<"u"&&((w=(y=window==null?void 0:window.CSS)==null?void 0:y.supports)==null?void 0:w.call(y,"-webkit-touch-callout","none"))}),B=c.useRef({prev:[(S=V.current)==null?void 0:S.selectionStart,(C=V.current)==null?void 0:C.selectionEnd,(E=V.current)==null?void 0:E.selectionDirection]});c.useImperativeHandle(t,()=>V.current,[]),c.useEffect(()=>{let q=V.current,re=$.current;if(!q||!re)return;U.current.value!==q.value&&U.current.onChange(q.value),B.current.prev=[q.selectionStart,q.selectionEnd,q.selectionDirection];function de(){if(document.activeElement!==q){_(null),z(null);return}let le=q.selectionStart,Se=q.selectionEnd,Le=q.selectionDirection,ze=q.maxLength,Fe=q.value,ft=B.current.prev,Ct=-1,je=-1,Xe;if(Fe.length!==0&&le!==null&&Se!==null){let Ir=le===Se,Kn=le===Fe.length&&Fe.length<ze;if(Ir&&!Kn){let et=le;if(et===0)Ct=0,je=1,Xe="forward";else if(et===ze)Ct=et-1,je=et,Xe="backward";else if(ze>1&&Fe.length>1){let Ot=0;if(ft[0]!==null&&ft[1]!==null){Xe=et<ft[1]?"backward":"forward";let fo=ft[0]===ft[1]&&ft[0]<ze;Xe==="backward"&&!fo&&(Ot=-1)}Ct=Ot+et,je=Ot+et+1}}Ct!==-1&&je!==-1&&Ct!==je&&V.current.setSelectionRange(Ct,je,Xe)}let uo=Ct!==-1?Ct:le,Gn=je!==-1?je:Se,Et=Xe??Le;_(uo),z(Gn),B.current.prev=[uo,Gn,Et]}if(document.addEventListener("selectionchange",de,{capture:!0}),de(),document.activeElement===q&&W(!0),!document.getElementById("input-otp-style")){let le=document.createElement("style");if(le.id="input-otp-style",document.head.appendChild(le),le.sheet){let Se="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Aa(le.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Aa(le.sheet,`[data-input-otp]:autofill { ${Se} }`),Aa(le.sheet,`[data-input-otp]:-webkit-autofill { ${Se} }`),Aa(le.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Aa(le.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let me=()=>{re&&re.style.setProperty("--root-height",`${q.clientHeight}px`)};me();let ce=new ResizeObserver(me);return ce.observe(q),()=>{document.removeEventListener("selectionchange",de,{capture:!0}),ce.disconnect()}},[]);let[Z,I]=c.useState(!1),[T,W]=c.useState(!1),[J,_]=c.useState(null),[A,z]=c.useState(null);c.useEffect(()=>{V4(()=>{var q,re,de,me;(q=V.current)==null||q.dispatchEvent(new Event("input"));let ce=(re=V.current)==null?void 0:re.selectionStart,le=(de=V.current)==null?void 0:de.selectionEnd,Se=(me=V.current)==null?void 0:me.selectionDirection;ce!==null&&le!==null&&(_(ce),z(le),B.current.prev=[ce,le,Se])})},[P,T]),c.useEffect(()=>{O!==void 0&&P!==O&&O.length<a&&P.length===a&&(p==null||p(P))},[a,p,O,P]);let H=Y4({containerRef:$,inputRef:V,pushPasswordManagerStrategy:f,isFocused:T}),G=c.useCallback(q=>{let re=q.currentTarget.value.slice(0,a);if(re.length>0&&D&&!D.test(re)){q.preventDefault();return}typeof O=="string"&&re.length<O.length&&document.dispatchEvent(new Event("selectionchange")),k(re)},[a,k,O,D]),j=c.useCallback(()=>{var q;if(V.current){let re=Math.min(V.current.value.length,a-1),de=V.current.value.length;(q=V.current)==null||q.setSelectionRange(re,de),_(re),z(de)}W(!0)},[a]),Y=c.useCallback(q=>{var re,de;let me=V.current;if(!m&&(!U.current.isIOS||!q.clipboardData||!me))return;let ce=q.clipboardData.getData("text/plain"),le=m?m(ce):ce;q.preventDefault();let Se=(re=V.current)==null?void 0:re.selectionStart,Le=(de=V.current)==null?void 0:de.selectionEnd,ze=(Se!==Le?P.slice(0,Se)+le+P.slice(Le):P.slice(0,Se)+le+P.slice(Se)).slice(0,a);if(ze.length>0&&D&&!D.test(ze))return;me.value=ze,k(ze);let Fe=Math.min(ze.length,a-1),ft=ze.length;me.setSelectionRange(Fe,ft),_(Fe),z(ft)},[a,k,D,P]),ee=c.useMemo(()=>({position:"relative",cursor:v.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[v.disabled]),te=c.useMemo(()=>({position:"absolute",inset:0,width:H.willPushPWMBadge?`calc(100% + ${H.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:H.willPushPWMBadge?`inset(0 ${H.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[H.PWM_BADGE_SPACE_WIDTH,H.willPushPWMBadge,s]),ne=c.useMemo(()=>c.createElement("input",H4(F4({autoComplete:v.autoComplete||"one-time-code"},v),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":J,"data-input-otp-mse":A,inputMode:d,pattern:D==null?void 0:D.source,"aria-placeholder":l,style:te,maxLength:a,value:P,ref:V,onPaste:q=>{var re;Y(q),(re=v.onPaste)==null||re.call(v,q)},onChange:G,onMouseOver:q=>{var re;I(!0),(re=v.onMouseOver)==null||re.call(v,q)},onMouseLeave:q=>{var re;I(!1),(re=v.onMouseLeave)==null||re.call(v,q)},onFocus:q=>{var re;j(),(re=v.onFocus)==null||re.call(v,q)},onBlur:q=>{var re;W(!1),(re=v.onBlur)==null||re.call(v,q)}})),[G,j,Y,d,te,a,A,J,v,D==null?void 0:D.source,P]),K=c.useMemo(()=>({slots:Array.from({length:a}).map((q,re)=>{var de;let me=T&&J!==null&&A!==null&&(J===A&&re===J||re>=J&&re<A),ce=P[re]!==void 0?P[re]:null,le=P[0]!==void 0?null:(de=l==null?void 0:l[re])!=null?de:null;return{char:ce,placeholderChar:le,isActive:me,hasFakeCaret:me&&ce===null}}),isFocused:T,isHovering:!v.disabled&&Z}),[T,Z,a,A,J,v.disabled,P]),oe=c.useMemo(()=>g?g(K):c.createElement(t1.Provider,{value:K},b),[b,K,g]);return c.createElement(c.Fragment,null,x!==null&&c.createElement("noscript",null,c.createElement("style",null,x)),c.createElement("div",{ref:$,"data-input-otp-container":!0,style:ee,className:h},oe,c.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ne)))});n1.displayName="Input";function Aa(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var X4=`
|
|
315
|
+
[data-input-otp] {
|
|
316
|
+
--nojs-bg: white !important;
|
|
317
|
+
--nojs-fg: black !important;
|
|
318
|
+
|
|
319
|
+
background-color: var(--nojs-bg) !important;
|
|
320
|
+
color: var(--nojs-fg) !important;
|
|
321
|
+
caret-color: var(--nojs-fg) !important;
|
|
322
|
+
letter-spacing: .25em !important;
|
|
323
|
+
text-align: center !important;
|
|
324
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
325
|
+
border-radius: 4px !important;
|
|
326
|
+
width: 100% !important;
|
|
327
|
+
}
|
|
328
|
+
@media (prefers-color-scheme: dark) {
|
|
329
|
+
[data-input-otp] {
|
|
330
|
+
--nojs-bg: black !important;
|
|
331
|
+
--nojs-fg: white !important;
|
|
332
|
+
}
|
|
333
|
+
}`;const q4=c.forwardRef(({className:e,containerClassName:t,...n},r)=>u.jsx(n1,{ref:r,containerClassName:M("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:M("disabled:cursor-not-allowed",e),...n}));q4.displayName="InputOTP";const Q4=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:M("flex items-center",e),...t}));Q4.displayName="InputOTPGroup";const Z4=c.forwardRef(({index:e,className:t,...n},r)=>{const o=c.useContext(t1),{char:a,hasFakeCaret:s,isActive:i}=o.slots[e];return u.jsxs("div",{ref:r,className:M("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",i&&"z-10 ring-2 ring-ring ring-offset-background",t),...n,children:[a,s&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Z4.displayName="InputOTPSlot";const J4=c.forwardRef(({...e},t)=>u.jsx("div",{ref:t,role:"separator",...e,children:u.jsx(o_,{})}));J4.displayName="InputOTPSeparator";var Js="Menubar",[lf,eF,tF]=Hn(Js),[r1]=ke(Js,[tF,Nn]),St=qs(),o1=Nn(),[nF,a1]=r1(Js),s1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:s=!0,dir:i,...l}=e,d=Bn(i),p=o1(n),[f,m]=Ye({prop:r,onChange:o,defaultProp:a??"",caller:Js}),[h,x]=c.useState(null);return u.jsx(nF,{scope:n,value:f,onMenuOpen:c.useCallback(g=>{m(g),x(g)},[m]),onMenuClose:c.useCallback(()=>m(""),[m]),onMenuToggle:c.useCallback(g=>{m(b=>b?"":g),x(g)},[m]),dir:d,loop:s,children:u.jsx(lf.Provider,{scope:n,children:u.jsx(lf.Slot,{scope:n,children:u.jsx(Ys,{asChild:!0,...p,orientation:"horizontal",loop:s,dir:d,currentTabStopId:h,onCurrentTabStopIdChange:x,children:u.jsx(Q.div,{role:"menubar",...l,ref:t})})})})})});s1.displayName=Js;var rF="MenubarMenu",[g8,i1]=r1(rF),cf="MenubarTrigger",l1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=o1(n),s=St(n),i=a1(cf,n),l=i1(cf,n),d=c.useRef(null),p=se(t,d,l.triggerRef),[f,m]=c.useState(!1),h=i.value===l.value;return u.jsx(lf.ItemSlot,{scope:n,value:l.value,disabled:r,children:u.jsx(Xs,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:u.jsx(gm,{asChild:!0,...s,children:u.jsx(Q.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?l.contentId:void 0,"data-highlighted":f?"":void 0,"data-state":h?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:p,onPointerDown:L(e.onPointerDown,x=>{!r&&x.button===0&&x.ctrlKey===!1&&(i.onMenuOpen(l.value),h||x.preventDefault())}),onPointerEnter:L(e.onPointerEnter,()=>{var g;!!i.value&&!h&&(i.onMenuOpen(l.value),(g=d.current)==null||g.focus())}),onKeyDown:L(e.onKeyDown,x=>{r||(["Enter"," "].includes(x.key)&&i.onMenuToggle(l.value),x.key==="ArrowDown"&&i.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(x.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,x.preventDefault()))}),onFocus:L(e.onFocus,()=>m(!0)),onBlur:L(e.onBlur,()=>m(!1))})})})})});l1.displayName=cf;var oF="MenubarPortal",c1=e=>{const{__scopeMenubar:t,...n}=e,r=St(t);return u.jsx(ym,{...r,...n})};c1.displayName=oF;var uf="MenubarContent",u1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=St(n),s=a1(uf,n),i=i1(uf,n),l=eF(n),d=c.useRef(!1);return u.jsx(xm,{id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:L(e.onCloseAutoFocus,p=>{var m;!!!s.value&&!d.current&&((m=i.triggerRef.current)==null||m.focus()),d.current=!1,p.preventDefault()}),onFocusOutside:L(e.onFocusOutside,p=>{const f=p.target;l().some(h=>{var x;return(x=h.ref.current)==null?void 0:x.contains(f)})&&p.preventDefault()}),onInteractOutside:L(e.onInteractOutside,()=>{d.current=!0}),onEntryFocus:p=>{i.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:L(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const f=p.target,m=f.hasAttribute("data-radix-menubar-subtrigger"),h=f.closest("[data-radix-menubar-content]")!==p.currentTarget,g=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!g&&m||h&&g)return;let y=l().filter(C=>!C.disabled).map(C=>C.value);g&&y.reverse();const w=y.indexOf(i.value);y=s.loop?xF(y,w+1):y.slice(w+1);const[S]=y;S&&s.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});u1.displayName=uf;var aF="MenubarGroup",sF=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(wm,{...o,...r,ref:t})});sF.displayName=aF;var iF="MenubarLabel",d1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(bm,{...o,...r,ref:t})});d1.displayName=iF;var lF="MenubarItem",f1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Sm,{...o,...r,ref:t})});f1.displayName=lF;var cF="MenubarCheckboxItem",p1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Cm,{...o,...r,ref:t})});p1.displayName=cF;var uF="MenubarRadioGroup",dF=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Em,{...o,...r,ref:t})});dF.displayName=uF;var fF="MenubarRadioItem",m1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Nm,{...o,...r,ref:t})});m1.displayName=fF;var pF="MenubarItemIndicator",h1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Rm,{...o,...r,ref:t})});h1.displayName=pF;var mF="MenubarSeparator",v1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Pm,{...o,...r,ref:t})});v1.displayName=mF;var hF="MenubarArrow",vF=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(Tm,{...o,...r,ref:t})});vF.displayName=hF;var gF="MenubarSubTrigger",g1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(km,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});g1.displayName=gF;var yF="MenubarSubContent",y1=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=St(n);return u.jsx(_m,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});y1.displayName=yF;function xF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var x1=s1,w1=l1,wF=c1,b1=u1,S1=d1,C1=f1,E1=p1,N1=m1,R1=h1,P1=v1,T1=g1,k1=y1;const bF=c.forwardRef(({className:e,...t},n)=>u.jsx(x1,{ref:n,className:M("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));bF.displayName=x1.displayName;const SF=c.forwardRef(({className:e,...t},n)=>u.jsx(w1,{ref:n,className:M("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));SF.displayName=w1.displayName;const CF=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(T1,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,u.jsx(Ip,{className:"ml-auto h-4 w-4"})]}));CF.displayName=T1.displayName;const EF=c.forwardRef(({className:e,...t},n)=>u.jsx(k1,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...t}));EF.displayName=k1.displayName;const NF=c.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>u.jsx(wF,{children:u.jsx(b1,{ref:a,align:t,alignOffset:n,sideOffset:r,className:M("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",e),...o})}));NF.displayName=b1.displayName;const RF=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(C1,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));RF.displayName=C1.displayName;const PF=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(E1,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(R1,{children:u.jsx(Ds,{className:"h-4 w-4"})})}),t]}));PF.displayName=E1.displayName;const TF=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(N1,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(R1,{children:u.jsx(lc,{className:"h-2 w-2 fill-current"})})}),t]}));TF.displayName=N1.displayName;const kF=c.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(S1,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));kF.displayName=S1.displayName;const _F=c.forwardRef(({className:e,...t},n)=>u.jsx(P1,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));_F.displayName=P1.displayName;var _1=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"}),MF="VisuallyHidden",zc=c.forwardRef((e,t)=>u.jsx(Q.span,{...e,ref:t,style:{..._1,...e.style}}));zc.displayName=MF;var M1=zc,co="NavigationMenu",[Im,j1,jF]=Hn(co),[df,IF,AF]=Hn(co),[Am]=ke(co,[jF,AF]),[OF,Ut]=Am(co),[DF,LF]=Am(co),I1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:i=300,orientation:l="horizontal",dir:d,...p}=e,[f,m]=c.useState(null),h=se(t,P=>m(P)),x=Bn(d),g=c.useRef(0),b=c.useRef(0),v=c.useRef(0),[y,w]=c.useState(!0),[S,C]=Ye({prop:r,onChange:P=>{const O=P!=="",k=i>0;O?(window.clearTimeout(v.current),k&&w(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>w(!0),i)),o==null||o(P)},defaultProp:a??"",caller:co}),E=c.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>C(""),150)},[C]),N=c.useCallback(P=>{window.clearTimeout(b.current),C(P)},[C]),R=c.useCallback(P=>{S===P?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),C(P)},s)},[S,C,s]);return c.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(v.current)},[]),u.jsx(A1,{scope:n,isRootMenu:!0,value:S,dir:x,orientation:l,rootNavigationMenu:f,onTriggerEnter:P=>{window.clearTimeout(g.current),y?R(P):N(P)},onTriggerLeave:()=>{window.clearTimeout(g.current),E()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:E,onItemSelect:P=>{C(O=>O===P?"":P)},onItemDismiss:()=>C(""),children:u.jsx(Q.nav,{"aria-label":"Main","data-orientation":l,dir:x,...p,ref:h})})});I1.displayName=co;var ff="NavigationMenuSub",$F=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",...i}=e,l=Ut(ff,n),[d,p]=Ye({prop:r,onChange:o,defaultProp:a??"",caller:ff});return u.jsx(A1,{scope:n,isRootMenu:!1,value:d,dir:l.dir,orientation:s,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:f=>p(f),onItemSelect:f=>p(f),onItemDismiss:()=>p(""),children:u.jsx(Q.div,{"data-orientation":s,...i,ref:t})})});$F.displayName=ff;var A1=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:s,value:i,onItemSelect:l,onItemDismiss:d,onTriggerEnter:p,onTriggerLeave:f,onContentEnter:m,onContentLeave:h}=e,[x,g]=c.useState(null),[b,v]=c.useState(new Map),[y,w]=c.useState(null);return u.jsx(OF,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:i,previousValue:ha(i),baseId:Ke(),dir:o,orientation:a,viewport:x,onViewportChange:g,indicatorTrack:y,onIndicatorTrackChange:w,onTriggerEnter:we(p),onTriggerLeave:we(f),onContentEnter:we(m),onContentLeave:we(h),onItemSelect:we(l),onItemDismiss:we(d),onViewportContentChange:c.useCallback((S,C)=>{v(E=>(E.set(S,C),new Map(E)))},[]),onViewportContentRemove:c.useCallback(S=>{v(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:u.jsx(Im.Provider,{scope:t,children:u.jsx(DF,{scope:t,items:b,children:s})})})},O1="NavigationMenuList",D1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ut(O1,n),a=u.jsx(Q.ul,{"data-orientation":o.orientation,...r,ref:t});return u.jsx(Q.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(Im.Slot,{scope:n,children:o.isRootMenu?u.jsx(U1,{asChild:!0,children:a}):a})})});D1.displayName=O1;var L1="NavigationMenuItem",[zF,$1]=Am(L1),FF=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=Ke(),s=r||a||"LEGACY_REACT_AUTO_VALUE",i=c.useRef(null),l=c.useRef(null),d=c.useRef(null),p=c.useRef(()=>{}),f=c.useRef(!1),m=c.useCallback((x="start")=>{if(i.current){p.current();const g=mf(i.current);g.length&&Lm(x==="start"?g:g.reverse())}},[]),h=c.useCallback(()=>{if(i.current){const x=mf(i.current);x.length&&(p.current=YF(x))}},[]);return u.jsx(zF,{scope:n,value:s,triggerRef:l,contentRef:i,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:u.jsx(Q.li,{...o,ref:t})})});FF.displayName=L1;var pf="NavigationMenuTrigger",z1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Ut(pf,e.__scopeNavigationMenu),s=$1(pf,e.__scopeNavigationMenu),i=c.useRef(null),l=se(i,s.triggerRef,t),d=G1(a.baseId,s.value),p=K1(a.baseId,s.value),f=c.useRef(!1),m=c.useRef(!1),h=s.value===a.value;return u.jsxs(u.Fragment,{children:[u.jsx(Im.ItemSlot,{scope:n,value:s.value,children:u.jsx(W1,{asChild:!0,children:u.jsx(Q.button,{id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":$m(h),"aria-expanded":h,"aria-controls":p,...o,ref:l,onPointerEnter:L(e.onPointerEnter,()=>{m.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:L(e.onPointerMove,jl(()=>{r||m.current||s.wasEscapeCloseRef.current||f.current||(a.onTriggerEnter(s.value),f.current=!0)})),onPointerLeave:L(e.onPointerLeave,jl(()=>{r||(a.onTriggerLeave(),f.current=!1)})),onClick:L(e.onClick,()=>{a.onItemSelect(s.value),m.current=h}),onKeyDown:L(e.onKeyDown,x=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];h&&x.key===b&&(s.onEntryKeyDown(),x.preventDefault())})})})}),h&&u.jsxs(u.Fragment,{children:[u.jsx(M1,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:x=>{const g=s.contentRef.current,b=x.relatedTarget,v=b===i.current,y=g==null?void 0:g.contains(b);(v||!y)&&s.onFocusProxyEnter(v?"start":"end")}}),a.viewport&&u.jsx("span",{"aria-owns":p})]})]})});z1.displayName=pf;var HF="NavigationMenuLink",mg="navigationMenu.linkSelect",BF=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return u.jsx(W1,{asChild:!0,children:u.jsx(Q.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:L(e.onClick,s=>{const i=s.target,l=new CustomEvent(mg,{bubbles:!0,cancelable:!0});if(i.addEventListener(mg,d=>o==null?void 0:o(d),{once:!0}),bs(i,l),!l.defaultPrevented&&!s.metaKey){const d=new CustomEvent(Yi,{bubbles:!0,cancelable:!0});bs(i,d)}},{checkForDefaultPrevented:!1})})})});BF.displayName=HF;var Om="NavigationMenuIndicator",F1=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ut(Om,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Ep.createPortal(u.jsx(_e,{present:n||a,children:u.jsx(VF,{...r,ref:t})}),o.indicatorTrack):null});F1.displayName=Om;var VF=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ut(Om,n),a=j1(n),[s,i]=c.useState(null),[l,d]=c.useState(null),p=o.orientation==="horizontal",f=!!o.value;c.useEffect(()=>{var g;const x=(g=a().find(b=>b.value===o.value))==null?void 0:g.ref.current;x&&i(x)},[a,o.value]);const m=()=>{s&&d({size:p?s.offsetWidth:s.offsetHeight,offset:p?s.offsetLeft:s.offsetTop})};return hf(s,m),hf(o.indicatorTrack,m),l?u.jsx(Q.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...p?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),ta="NavigationMenuContent",H1=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ut(ta,e.__scopeNavigationMenu),a=$1(ta,e.__scopeNavigationMenu),s=se(a.contentRef,t),i=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?u.jsx(UF,{forceMount:n,...l,ref:s}):u.jsx(_e,{present:n||i,children:u.jsx(B1,{"data-state":$m(i),...l,ref:s,onPointerEnter:L(e.onPointerEnter,o.onContentEnter),onPointerLeave:L(e.onPointerLeave,jl(o.onContentLeave)),style:{pointerEvents:!i&&o.isRootMenu?"none":void 0,...l.style}})})});H1.displayName=ta;var UF=c.forwardRef((e,t)=>{const n=Ut(ta,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Te(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Te(()=>()=>o(e.value),[e.value,o]),null}),Yi="navigationMenu.rootContentDismiss",B1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:i,onContentFocusOutside:l,...d}=e,p=Ut(ta,n),f=c.useRef(null),m=se(f,t),h=G1(p.baseId,r),x=K1(p.baseId,r),g=j1(n),b=c.useRef(null),{onItemDismiss:v}=p;c.useEffect(()=>{const w=f.current;if(p.isRootMenu&&w){const S=()=>{var C;v(),i(),w.contains(document.activeElement)&&((C=o.current)==null||C.focus())};return w.addEventListener(Yi,S),()=>w.removeEventListener(Yi,S)}},[p.isRootMenu,e.value,o,v,i]);const y=c.useMemo(()=>{const S=g().map(O=>O.value);p.dir==="rtl"&&S.reverse();const C=S.indexOf(p.value),E=S.indexOf(p.previousValue),N=r===p.value,R=E===S.indexOf(r);if(!N&&!R)return b.current;const P=(()=>{if(C!==E){if(N&&E!==-1)return C>E?"from-end":"from-start";if(R&&C!==-1)return C>E?"to-start":"to-end"}return null})();return b.current=P,P},[p.previousValue,p.value,p.dir,g,r]);return u.jsx(U1,{asChild:!0,children:u.jsx(Un,{id:x,"aria-labelledby":h,"data-motion":y,"data-orientation":p.orientation,...d,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const w=new Event(Yi,{bubbles:!0,cancelable:!0});(S=f.current)==null||S.dispatchEvent(w)},onFocusOutside:L(e.onFocusOutside,w=>{var C;l();const S=w.target;(C=p.rootNavigationMenu)!=null&&C.contains(S)&&w.preventDefault()}),onPointerDownOutside:L(e.onPointerDownOutside,w=>{var N;const S=w.target,C=g().some(R=>{var P;return(P=R.ref.current)==null?void 0:P.contains(S)}),E=p.isRootMenu&&((N=p.viewport)==null?void 0:N.contains(S));(C||E||!p.isRootMenu)&&w.preventDefault()}),onKeyDown:L(e.onKeyDown,w=>{var E;const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const N=mf(w.currentTarget),R=document.activeElement,P=N.findIndex(D=>D===R),k=w.shiftKey?N.slice(0,P).reverse():N.slice(P+1,N.length);Lm(k)?w.preventDefault():(E=a.current)==null||E.focus()}}),onEscapeKeyDown:L(e.onEscapeKeyDown,w=>{s.current=!0})})})}),Dm="NavigationMenuViewport",V1=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Ut(Dm,e.__scopeNavigationMenu).value;return u.jsx(_e,{present:n||a,children:u.jsx(WF,{...r,ref:t})})});V1.displayName=Dm;var WF=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Ut(Dm,n),s=se(t,a.onViewportChange),i=LF(ta,e.__scopeNavigationMenu),[l,d]=c.useState(null),[p,f]=c.useState(null),m=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,x=!!a.value,g=x?a.value:a.previousValue;return hf(p,()=>{p&&d({width:p.offsetWidth,height:p.offsetHeight})}),u.jsx(Q.div,{"data-state":$m(x),"data-orientation":a.orientation,...o,ref:s,style:{pointerEvents:!x&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:L(e.onPointerEnter,a.onContentEnter),onPointerLeave:L(e.onPointerLeave,jl(a.onContentLeave)),children:Array.from(i.items).map(([v,{ref:y,forceMount:w,...S}])=>{const C=g===v;return u.jsx(_e,{present:w||C,children:u.jsx(B1,{...S,ref:sn(y,E=>{C&&E&&f(E)})})},v)})})}),GF="FocusGroup",U1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ut(GF,n);return u.jsx(df.Provider,{scope:n,children:u.jsx(df.Slot,{scope:n,children:u.jsx(Q.div,{dir:o.dir,...r,ref:t})})})}),hg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],KF="FocusGroupItem",W1=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=IF(n),a=Ut(KF,n);return u.jsx(df.ItemSlot,{scope:n,children:u.jsx(Q.button,{...r,ref:t,onKeyDown:L(e.onKeyDown,s=>{if(["Home","End",...hg].includes(s.key)){let l=o().map(f=>f.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&l.reverse(),hg.includes(s.key)){const f=l.indexOf(s.currentTarget);l=l.slice(f+1)}setTimeout(()=>Lm(l)),s.preventDefault()}})})})});function mf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function YF(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function hf(e,t){const n=we(t);Te(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function $m(e){return e?"open":"closed"}function G1(e,t){return`${e}-trigger-${t}`}function K1(e,t){return`${e}-content-${t}`}function jl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Y1=I1,X1=D1,q1=z1,Q1=F1,Z1=H1,J1=V1;const XF=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Y1,{ref:r,className:M("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,u.jsx(eC,{})]}));XF.displayName=Y1.displayName;const qF=c.forwardRef(({className:e,...t},n)=>u.jsx(X1,{ref:n,className:M("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));qF.displayName=X1.displayName;const QF=Vn("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),ZF=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(q1,{ref:r,className:M(QF(),"group",e),...n,children:[t," ",u.jsx(ic,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ZF.displayName=q1.displayName;const JF=c.forwardRef(({className:e,...t},n)=>u.jsx(Z1,{ref:n,className:M("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));JF.displayName=Z1.displayName;const eC=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{className:M("absolute left-0 top-full flex justify-center"),children:u.jsx(J1,{className:M("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));eC.displayName=J1.displayName;const e5=c.forwardRef(({className:e,...t},n)=>u.jsx(Q1,{ref:n,className:M("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:u.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));e5.displayName=Q1.displayName;const t5=c.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:M("flex flex-row items-center gap-1",e),...t}));t5.displayName="PaginationContent";const n5=c.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:M("",e),...t}));n5.displayName="PaginationItem";var tC="Popover",[nC]=ke(tC,[En]),Fc=En(),[y8,kr]=nC(tC),rC="PopoverAnchor",r5=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=kr(rC,n),a=Fc(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return c.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(ya,{...a,...r,ref:t})});r5.displayName=rC;var oC="PopoverTrigger",o5=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=kr(oC,n),a=Fc(n),s=se(t,o.triggerRef),i=u.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cC(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(ya,{asChild:!0,...a,children:i})});o5.displayName=oC;var zm="PopoverPortal",[a5,s5]=nC(zm,{forceMount:void 0}),aC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=kr(zm,t);return u.jsx(a5,{scope:t,forceMount:n,children:u.jsx(_e,{present:n||a.open,children:u.jsx(ca,{asChild:!0,container:o,children:r})})})};aC.displayName=zm;var na="PopoverContent",sC=c.forwardRef((e,t)=>{const n=s5(na,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=kr(na,e.__scopePopover);return u.jsx(_e,{present:r||a.open,children:a.modal?u.jsx(l5,{...o,ref:t}):u.jsx(c5,{...o,ref:t})})});sC.displayName=na;var i5=Xr("PopoverContent.RemoveScroll"),l5=c.forwardRef((e,t)=>{const n=kr(na,e.__scopePopover),r=c.useRef(null),o=se(t,r),a=c.useRef(!1);return c.useEffect(()=>{const s=r.current;if(s)return dc(s)},[]),u.jsx($s,{as:i5,allowPinchZoom:!0,children:u.jsx(iC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),c5=c.forwardRef((e,t)=>{const n=kr(na,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return u.jsx(iC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),iC=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:p,...f}=e,m=kr(na,n),h=Fc(n);return cc(),u.jsx(Ls,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(Un,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:u.jsx(Ws,{"data-state":cC(m.open),role:"dialog",id:m.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),lC="PopoverClose",u5=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=kr(lC,n);return u.jsx(Q.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});u5.displayName=lC;var d5="PopoverArrow",f5=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fc(n);return u.jsx(Gs,{...o,...r,ref:t})});f5.displayName=d5;function cC(e){return e?"open":"closed"}var p5=aC,uC=sC;const m5=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>u.jsx(p5,{children:u.jsx(uC,{ref:o,align:t,sideOffset:n,className:M("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...r})}));m5.displayName=uC.displayName;var Fm="Progress",Hm=100,[h5]=p0(Fm),[v5,g5]=h5(Fm),dC=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=y5,...s}=e;(o||o===0)&&!vg(o)&&console.error(x5(`${o}`,"Progress"));const i=vg(o)?o:Hm;r!==null&&!gg(r,i)&&console.error(w5(`${r}`,"Progress"));const l=gg(r,i)?r:null,d=Il(l)?a(l,i):void 0;return u.jsx(v5,{scope:n,value:l,max:i,children:u.jsx(dt.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":Il(l)?l:void 0,"aria-valuetext":d,role:"progressbar","data-state":mC(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});dC.displayName=Fm;var fC="ProgressIndicator",pC=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=g5(fC,n);return u.jsx(dt.div,{"data-state":mC(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});pC.displayName=fC;function y5(e,t){return`${Math.round(e/t*100)}%`}function mC(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Il(e){return typeof e=="number"}function vg(e){return Il(e)&&!isNaN(e)&&e>0}function gg(e,t){return Il(e)&&!isNaN(e)&&e<=t&&e>=0}function x5(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hm}\`.`}function w5(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
334
|
+
- a positive number
|
|
335
|
+
- less than the value passed to \`max\` (or ${Hm} if no \`max\` prop is set)
|
|
336
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
337
|
+
|
|
338
|
+
Defaulting to \`null\`.`}var hC=dC,b5=pC;const S5=c.forwardRef(({className:e,value:t,...n},r)=>u.jsx(hC,{ref:r,className:M("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:u.jsx(b5,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S5.displayName=hC.displayName;var Bm="Radio",[C5,vC]=ke(Bm),[E5,N5]=C5(Bm),gC=c.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:d,...p}=e,[f,m]=c.useState(null),h=se(t,b=>m(b)),x=c.useRef(!1),g=f?d||!!f.closest("form"):!0;return u.jsxs(E5,{scope:n,checked:o,disabled:s,children:[u.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":bC(o),"data-disabled":s?"":void 0,disabled:s,value:i,...p,ref:h,onClick:L(e.onClick,b=>{o||l==null||l(),g&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),g&&u.jsx(wC,{control:f,bubbles:!x.current,name:r,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});gC.displayName=Bm;var yC="RadioIndicator",xC=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=N5(yC,n);return u.jsx(_e,{present:r||a.checked,children:u.jsx(Q.span,{"data-state":bC(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});xC.displayName=yC;var R5="RadioBubbleInput",wC=c.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=c.useRef(null),i=se(s,a),l=ha(n),d=Bs(t);return c.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&h){const x=new Event("click",{bubbles:r});h.call(p,n),p.dispatchEvent(x)}},[l,n,r]),u.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wC.displayName=R5;function bC(e){return e?"checked":"unchecked"}var P5=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Hc="RadioGroup",[T5]=ke(Hc,[Nn,vC]),SC=Nn(),CC=vC(),[k5,_5]=T5(Hc),EC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:d,loop:p=!0,onValueChange:f,...m}=e,h=SC(n),x=Bn(d),[g,b]=Ye({prop:a,defaultProp:o??null,onChange:f,caller:Hc});return u.jsx(k5,{scope:n,name:r,required:s,disabled:i,value:g,onValueChange:b,children:u.jsx(Ys,{asChild:!0,...h,orientation:l,dir:x,loop:p,children:u.jsx(Q.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:x,...m,ref:t})})})});EC.displayName=Hc;var NC="RadioGroupItem",RC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=_5(NC,n),s=a.disabled||r,i=SC(n),l=CC(n),d=c.useRef(null),p=se(t,d),f=a.value===o.value,m=c.useRef(!1);return c.useEffect(()=>{const h=g=>{P5.includes(g.key)&&(m.current=!0)},x=()=>m.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",x)}},[]),u.jsx(Xs,{asChild:!0,...i,focusable:!s,active:f,children:u.jsx(gC,{disabled:s,required:a.required,checked:f,...l,...o,name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:L(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:L(o.onFocus,()=>{var h;m.current&&((h=d.current)==null||h.click())})})})});RC.displayName=NC;var M5="RadioGroupIndicator",PC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=CC(n);return u.jsx(xC,{...o,...r,ref:t})});PC.displayName=M5;var TC=EC,kC=RC,j5=PC;const I5=c.forwardRef(({className:e,...t},n)=>u.jsx(TC,{className:M("grid gap-2",e),...t,ref:n}));I5.displayName=TC.displayName;const A5=c.forwardRef(({className:e,...t},n)=>u.jsx(kC,{ref:n,className:M("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:u.jsx(j5,{className:"flex items-center justify-center",children:u.jsx(lc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));A5.displayName=kC.displayName;const Vm=c.createContext(null);Vm.displayName="PanelGroupContext";const Tt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandleId:"data-panel-resize-handle-id"},Um=10,Wo=c.useLayoutEffect,yg=Bl.useId,O5=typeof yg=="function"?yg:()=>null;let D5=0;function _C(e=null){const t=O5(),n=c.useRef(e||t||null);return n.current===null&&(n.current=""+D5++),e??n.current}function MC({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:s,maxSize:i,minSize:l,onCollapse:d,onExpand:p,onResize:f,order:m,style:h,tagName:x="div",...g}){const b=c.useContext(Vm);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:w,getPanelStyle:S,groupId:C,isPanelCollapsed:E,reevaluatePanelConstraints:N,registerPanel:R,resizePanel:P,unregisterPanel:O}=b,k=_C(s),D=c.useRef({callbacks:{onCollapse:d,onExpand:p,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:i,minSize:l},id:k,idIsFromProps:s!==void 0,order:m});c.useRef({didLogMissingDefaultSizeWarning:!1}),Wo(()=>{const{callbacks:$,constraints:U}=D.current,B={...U};D.current.id=k,D.current.idIsFromProps=s!==void 0,D.current.order=m,$.onCollapse=d,$.onExpand=p,$.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=o,U.maxSize=i,U.minSize=l,(B.collapsedSize!==U.collapsedSize||B.collapsible!==U.collapsible||B.maxSize!==U.maxSize||B.minSize!==U.minSize)&&N(D.current,B)}),Wo(()=>{const $=D.current;return R($),()=>{O($)}},[m,k,R,O]),c.useImperativeHandle(a,()=>({collapse:()=>{v(D.current)},expand:$=>{y(D.current,$)},getId(){return k},getSize(){return w(D.current)},isCollapsed(){return E(D.current)},isExpanded(){return!E(D.current)},resize:$=>{P(D.current,$)}}),[v,y,w,E,k,P]);const V=S(D.current,o);return c.createElement(x,{...g,children:e,className:t,id:k,style:{...V,...h},[Tt.groupId]:C,[Tt.panel]:"",[Tt.panelCollapsible]:r||void 0,[Tt.panelId]:k,[Tt.panelSize]:parseFloat(""+V.flexGrow).toFixed(1)})}const L5=c.forwardRef((e,t)=>c.createElement(MC,{...e,forwardedRef:t}));MC.displayName="Panel";L5.displayName="forwardRef(Panel)";function jC(e){return e.type==="keydown"}function IC(e){return e.type.startsWith("pointer")}function AC(e){return e.type.startsWith("mouse")}function $5(e){if(IC(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(AC(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function z5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const F5=1,H5=2,B5=4,V5=8;z5();let U5=new Map;function Qu(e,t){U5.set(e,t)}new AbortController;function W5(){const[e,t]=c.useState(0);return c.useCallback(()=>t(n=>n+1),[])}function he(e,t){if(!e)throw console.error(t),Error(t)}function eo(e,t,n=Um){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function _n(e,t,n=Um){return eo(e,t,n)===0}function Rt(e,t,n){return eo(e,t,n)===0}function G5(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!Rt(o,a,n))return!1}return!0}function Ao({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];he(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:s=100,minSize:i=0}=r;if(eo(n,i)<0)if(a){const l=(o+i)/2;eo(n,l)<0?n=o:n=i}else n=i;return n=Math.min(s,n),n=parseFloat(n.toFixed(Um)),n}function Ba({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(Rt(e,0))return t;const s=[...t],[i,l]=r;he(i!=null,"Invalid first pivot index"),he(l!=null,"Invalid second pivot index");let d=0;if(a==="keyboard"){{const f=e<0?l:i,m=n[f];he(m,`Panel constraints not found for index ${f}`);const{collapsedSize:h=0,collapsible:x,minSize:g=0}=m;if(x){const b=t[f];if(he(b!=null,`Previous layout not found for panel index ${f}`),Rt(b,h)){const v=g-b;eo(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?i:l,m=n[f];he(m,`No panel constraints found for index ${f}`);const{collapsedSize:h=0,collapsible:x,minSize:g=0}=m;if(x){const b=t[f];if(he(b!=null,`Previous layout not found for panel index ${f}`),Rt(b,g)){const v=b-h;eo(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}}{const f=e<0?1:-1;let m=e<0?l:i,h=0;for(;;){const g=t[m];he(g!=null,`Previous layout not found for panel index ${m}`);const v=Ao({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=v,m+=f,m<0||m>=n.length)break}const x=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-x:x}{let m=e<0?i:l;for(;m>=0&&m<n.length;){const h=Math.abs(e)-Math.abs(d),x=t[m];he(x!=null,`Previous layout not found for panel index ${m}`);const g=x-h,b=Ao({panelConstraints:n,panelIndex:m,size:g});if(!Rt(x,b)&&(d+=x-b,s[m]=b,d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(G5(o,s))return o;{const f=e<0?l:i,m=t[f];he(m!=null,`Previous layout not found for panel index ${f}`);const h=m+d,x=Ao({panelConstraints:n,panelIndex:f,size:h});if(s[f]=x,!Rt(x,h)){let g=h-x,v=e<0?l:i;for(;v>=0&&v<n.length;){const y=s[v];he(y!=null,`Previous layout not found for panel index ${v}`);const w=y+g,S=Ao({panelConstraints:n,panelIndex:v,size:w});if(Rt(y,S)||(g-=S-y,s[v]=S),Rt(g,0))break;e>0?v--:v++}}}const p=s.reduce((f,m)=>m+f,0);return Rt(p,100)?s:o}function K5({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,s=0;const i=n[0];he(i!=null,"No pivot index found"),t.forEach((f,m)=>{const{constraints:h}=f,{maxSize:x=100,minSize:g=0}=h;m===i?(r=g,o=x):(a+=g,s+=x)});const l=Math.min(o,100-a),d=Math.max(r,100-s),p=e[i];return{valueMax:l,valueMin:d,valueNow:p}}function Al(e,t=document){return Array.from(t.querySelectorAll(`[${Tt.resizeHandleId}][data-panel-group-id="${e}"]`))}function Y5(e,t,n=document){const o=Al(e,n).findIndex(a=>a.getAttribute(Tt.resizeHandleId)===t);return o??null}function OC(e,t,n){const r=Y5(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function DC(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Wm(e,t=document){const n=t.querySelector(`[${Tt.resizeHandleId}="${e}"]`);return n||null}function X5(e,t,n,r=document){var o,a,s,i;const l=Wm(t,r),d=Al(e,r),p=l?d.indexOf(l):-1,f=(o=(a=n[p])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(s=(i=n[p+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[f,m]}function q5({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:s}){c.useRef({didWarnAboutMissingResizeHandle:!1}),Wo(()=>{if(!a)return;const i=Al(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:d,valueMin:p,valueNow:f}=K5({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=i[l];if(m!=null){const h=o[l];he(h,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(d)),m.setAttribute("aria-valuemin",""+Math.round(p)),m.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{i.forEach((l,d)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),c.useEffect(()=>{if(!a)return;const i=t.current;he(i,"Eager values not found");const{panelDataArray:l}=i,d=DC(n,a);he(d!=null,`No group found for id "${n}"`);const p=Al(n,a);he(p,`No resize handles found for group id "${n}"`);const f=p.map(m=>{const h=m.getAttribute(Tt.resizeHandleId);he(h,"Resize handle element has no handle id attribute");const[x,g]=X5(n,h,l,a);if(x==null||g==null)return()=>{};const b=v=>{if(!v.defaultPrevented)switch(v.key){case"Enter":{v.preventDefault();const y=l.findIndex(w=>w.id===x);if(y>=0){const w=l[y];he(w,`No panel data found for index ${y}`);const S=r[y],{collapsedSize:C=0,collapsible:E,minSize:N=0}=w.constraints;if(S!=null&&E){const R=Ba({delta:Rt(S,C)?N-C:C-S,initialLayout:r,panelConstraints:l.map(P=>P.constraints),pivotIndices:OC(n,h,a),prevLayout:r,trigger:"keyboard"});r!==R&&s(R)}}break}}};return m.addEventListener("keydown",b),()=>{m.removeEventListener("keydown",b)}});return()=>{f.forEach(m=>m())}},[a,e,t,n,r,o,s])}function xg(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function LC(e,t){const n=e==="horizontal",{x:r,y:o}=$5(t);return n?r:o}function Q5(e,t,n,r,o){const a=n==="horizontal",s=Wm(t,o);he(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(Tt.groupId);he(i,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const d=LC(n,e),p=DC(i,o);he(p,`No group element found for id "${i}"`);const f=p.getBoundingClientRect(),m=a?f.width:f.height;return(d-l)/m*100}function Z5(e,t,n,r,o,a){if(jC(e)){const s=n==="horizontal";let i=0;e.shiftKey?i=100:o!=null?i=o:i=10;let l=0;switch(e.key){case"ArrowDown":l=s?0:i;break;case"ArrowLeft":l=s?-i:0;break;case"ArrowRight":l=s?i:0;break;case"ArrowUp":l=s?0:-i;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:Q5(e,t,n,r,a)}function J5({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const s=n[a];he(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;i!=null&&(r++,t[a]=i,o-=i)}for(let a=0;a<e.length;a++){const s=n[a];he(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;if(i!=null)continue;const l=e.length-r,d=o/l;r++,t[a]=d,o-=d}return t}function yo(e,t,n){t.forEach((r,o)=>{const a=e[o];he(a,`Panel data not found for index ${o}`);const{callbacks:s,constraints:i,id:l}=a,{collapsedSize:d=0,collapsible:p}=i,f=n[l];if(f==null||r!==f){n[l]=r;const{onCollapse:m,onExpand:h,onResize:x}=s;x&&x(r,f),p&&(m||h)&&(h&&(f==null||_n(f,d))&&!_n(r,d)&&h(),m&&(f==null||!_n(f,d))&&_n(r,d)&&m())}})}function _i(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function e3({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const s=n[o];let i;return s==null?i=e!=null?e.toPrecision(a):"1":r.length===1?i="1":i=s.toPrecision(a),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function t3(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function wg(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function $C(e){return`react-resizable-panels:${e}`}function zC(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function FC(e,t){try{const n=$C(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function n3(e,t,n){var r,o;const a=(r=FC(e,n))!==null&&r!==void 0?r:{},s=zC(t);return(o=a[s])!==null&&o!==void 0?o:null}function r3(e,t,n,r,o){var a;const s=$C(e),i=zC(t),l=(a=FC(e,o))!==null&&a!==void 0?a:{};l[i]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(s,JSON.stringify(l))}catch(d){console.error(d)}}function bg({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,s)=>a+s,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!Rt(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const s=n[a];he(s!=null,`No layout data found for index ${a}`);const i=100/r*s;n[a]=i}let o=0;for(let a=0;a<t.length;a++){const s=n[a];he(s!=null,`No layout data found for index ${a}`);const i=Ao({panelConstraints:t,panelIndex:a,size:s});s!=i&&(o+=s-i,n[a]=i)}if(!Rt(o,0))for(let a=0;a<t.length;a++){const s=n[a];he(s!=null,`No layout data found for index ${a}`);const i=s+o,l=Ao({panelConstraints:t,panelIndex:a,size:i});if(s!==l&&(o-=l-s,n[a]=l,Rt(o,0)))break}return n}const o3=100,Va={getItem:e=>(wg(Va),Va.getItem(e)),setItem:(e,t)=>{wg(Va),Va.setItem(e,t)}},Sg={};function HC({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:i=null,storage:l=Va,style:d,tagName:p="div",...f}){const m=_C(a),h=c.useRef(null),[x,g]=c.useState(null),[b,v]=c.useState([]),y=W5(),w=c.useRef({}),S=c.useRef(new Map),C=c.useRef(0),E=c.useRef({autoSaveId:e,direction:r,dragState:x,id:m,keyboardResizeBy:i,onLayout:s,storage:l}),N=c.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});c.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),c.useImperativeHandle(o,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:A}=N.current;return A},setLayout:A=>{const{onLayout:z}=E.current,{layout:H,panelDataArray:G}=N.current,j=bg({layout:A,panelConstraints:G.map(Y=>Y.constraints)});xg(H,j)||(v(j),N.current.layout=j,z&&z(j),yo(G,j,w.current))}}),[]),Wo(()=>{E.current.autoSaveId=e,E.current.direction=r,E.current.dragState=x,E.current.id=m,E.current.onLayout=s,E.current.storage=l}),q5({committedValuesRef:E,eagerValuesRef:N,groupId:m,layout:b,panelDataArray:N.current.panelDataArray,setLayout:v,panelGroupElement:h.current}),c.useEffect(()=>{const{panelDataArray:A}=N.current;if(e){if(b.length===0||b.length!==A.length)return;let z=Sg[e];z==null&&(z=t3(r3,o3),Sg[e]=z);const H=[...A],G=new Map(S.current);z(e,H,G,b,l)}},[e,b,l]),c.useEffect(()=>{});const R=c.useCallback(A=>{const{onLayout:z}=E.current,{layout:H,panelDataArray:G}=N.current;if(A.constraints.collapsible){const j=G.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:ee,pivotIndices:te}=Dr(G,A,H);if(he(ee!=null,`Panel size not found for panel "${A.id}"`),!_n(ee,Y)){S.current.set(A.id,ee);const K=bo(G,A)===G.length-1?ee-Y:Y-ee,oe=Ba({delta:K,initialLayout:H,panelConstraints:j,pivotIndices:te,prevLayout:H,trigger:"imperative-api"});_i(H,oe)||(v(oe),N.current.layout=oe,z&&z(oe),yo(G,oe,w.current))}}},[]),P=c.useCallback((A,z)=>{const{onLayout:H}=E.current,{layout:G,panelDataArray:j}=N.current;if(A.constraints.collapsible){const Y=j.map(q=>q.constraints),{collapsedSize:ee=0,panelSize:te=0,minSize:ne=0,pivotIndices:K}=Dr(j,A,G),oe=z??ne;if(_n(te,ee)){const q=S.current.get(A.id),re=q!=null&&q>=oe?q:oe,me=bo(j,A)===j.length-1?te-re:re-te,ce=Ba({delta:me,initialLayout:G,panelConstraints:Y,pivotIndices:K,prevLayout:G,trigger:"imperative-api"});_i(G,ce)||(v(ce),N.current.layout=ce,H&&H(ce),yo(j,ce,w.current))}}},[]),O=c.useCallback(A=>{const{layout:z,panelDataArray:H}=N.current,{panelSize:G}=Dr(H,A,z);return he(G!=null,`Panel size not found for panel "${A.id}"`),G},[]),k=c.useCallback((A,z)=>{const{panelDataArray:H}=N.current,G=bo(H,A);return e3({defaultSize:z,dragState:x,layout:b,panelData:H,panelIndex:G})},[x,b]),D=c.useCallback(A=>{const{layout:z,panelDataArray:H}=N.current,{collapsedSize:G=0,collapsible:j,panelSize:Y}=Dr(H,A,z);return he(Y!=null,`Panel size not found for panel "${A.id}"`),j===!0&&_n(Y,G)},[]),V=c.useCallback(A=>{const{layout:z,panelDataArray:H}=N.current,{collapsedSize:G=0,collapsible:j,panelSize:Y}=Dr(H,A,z);return he(Y!=null,`Panel size not found for panel "${A.id}"`),!j||eo(Y,G)>0},[]),$=c.useCallback(A=>{const{panelDataArray:z}=N.current;z.push(A),z.sort((H,G)=>{const j=H.order,Y=G.order;return j==null&&Y==null?0:j==null?-1:Y==null?1:j-Y}),N.current.panelDataArrayChanged=!0,y()},[y]);Wo(()=>{if(N.current.panelDataArrayChanged){N.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:z,storage:H}=E.current,{layout:G,panelDataArray:j}=N.current;let Y=null;if(A){const te=n3(A,j,H);te&&(S.current=new Map(Object.entries(te.expandToSizes)),Y=te.layout)}Y==null&&(Y=J5({panelDataArray:j}));const ee=bg({layout:Y,panelConstraints:j.map(te=>te.constraints)});xg(G,ee)||(v(ee),N.current.layout=ee,z&&z(ee),yo(j,ee,w.current))}}),Wo(()=>{const A=N.current;return()=>{A.layout=[]}},[]);const U=c.useCallback(A=>{let z=!1;const H=h.current;return H&&window.getComputedStyle(H,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(j){j.preventDefault();const Y=h.current;if(!Y)return()=>null;const{direction:ee,dragState:te,id:ne,keyboardResizeBy:K,onLayout:oe}=E.current,{layout:q,panelDataArray:re}=N.current,{initialLayout:de}=te??{},me=OC(ne,A,Y);let ce=Z5(j,A,ee,te,K,Y);const le=ee==="horizontal";le&&z&&(ce=-ce);const Se=re.map(Fe=>Fe.constraints),Le=Ba({delta:ce,initialLayout:de??q,panelConstraints:Se,pivotIndices:me,prevLayout:q,trigger:jC(j)?"keyboard":"mouse-or-touch"}),ze=!_i(q,Le);(IC(j)||AC(j))&&C.current!=ce&&(C.current=ce,!ze&&ce!==0?le?Qu(A,ce<0?F5:H5):Qu(A,ce<0?B5:V5):Qu(A,0)),ze&&(v(Le),N.current.layout=Le,oe&&oe(Le),yo(re,Le,w.current))}},[]),B=c.useCallback((A,z)=>{const{onLayout:H}=E.current,{layout:G,panelDataArray:j}=N.current,Y=j.map(q=>q.constraints),{panelSize:ee,pivotIndices:te}=Dr(j,A,G);he(ee!=null,`Panel size not found for panel "${A.id}"`);const K=bo(j,A)===j.length-1?ee-z:z-ee,oe=Ba({delta:K,initialLayout:G,panelConstraints:Y,pivotIndices:te,prevLayout:G,trigger:"imperative-api"});_i(G,oe)||(v(oe),N.current.layout=oe,H&&H(oe),yo(j,oe,w.current))},[]),Z=c.useCallback((A,z)=>{const{layout:H,panelDataArray:G}=N.current,{collapsedSize:j=0,collapsible:Y}=z,{collapsedSize:ee=0,collapsible:te,maxSize:ne=100,minSize:K=0}=A.constraints,{panelSize:oe}=Dr(G,A,H);oe!=null&&(Y&&te&&_n(oe,j)?_n(j,ee)||B(A,ee):oe<K?B(A,K):oe>ne&&B(A,ne))},[B]),I=c.useCallback((A,z)=>{const{direction:H}=E.current,{layout:G}=N.current;if(!h.current)return;const j=Wm(A,h.current);he(j,`Drag handle element not found for id "${A}"`);const Y=LC(H,z);g({dragHandleId:A,dragHandleRect:j.getBoundingClientRect(),initialCursorPosition:Y,initialLayout:G})},[]),T=c.useCallback(()=>{g(null)},[]),W=c.useCallback(A=>{const{panelDataArray:z}=N.current,H=bo(z,A);H>=0&&(z.splice(H,1),delete w.current[A.id],N.current.panelDataArrayChanged=!0,y())},[y]),J=c.useMemo(()=>({collapsePanel:R,direction:r,dragState:x,expandPanel:P,getPanelSize:O,getPanelStyle:k,groupId:m,isPanelCollapsed:D,isPanelExpanded:V,reevaluatePanelConstraints:Z,registerPanel:$,registerResizeHandle:U,resizePanel:B,startDragging:I,stopDragging:T,unregisterPanel:W,panelGroupElement:h.current}),[R,x,r,P,O,k,m,D,V,Z,$,U,B,I,T,W]),_={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return c.createElement(Vm.Provider,{value:J},c.createElement(p,{...f,children:t,className:n,id:a,ref:h,style:{..._,...d},[Tt.group]:"",[Tt.groupDirection]:r,[Tt.groupId]:m}))}const a3=c.forwardRef((e,t)=>c.createElement(HC,{...e,forwardedRef:t}));HC.displayName="PanelGroup";a3.displayName="forwardRef(PanelGroup)";function bo(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Dr(e,t,n){const r=bo(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],s=n[r];return{...t.constraints,panelSize:s,pivotIndices:a}}function ks(e,[t,n]){return Math.min(n,Math.max(t,e))}function s3(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Gm="ScrollArea",[BC]=ke(Gm),[i3,Wt]=BC(Gm),VC=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,l]=c.useState(null),[d,p]=c.useState(null),[f,m]=c.useState(null),[h,x]=c.useState(null),[g,b]=c.useState(null),[v,y]=c.useState(0),[w,S]=c.useState(0),[C,E]=c.useState(!1),[N,R]=c.useState(!1),P=se(t,k=>l(k)),O=Bn(o);return u.jsx(i3,{scope:n,type:r,dir:O,scrollHideDelay:a,scrollArea:i,viewport:d,onViewportChange:p,content:f,onContentChange:m,scrollbarX:h,onScrollbarXChange:x,scrollbarXEnabled:C,onScrollbarXEnabledChange:E,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:N,onScrollbarYEnabledChange:R,onCornerWidthChange:y,onCornerHeightChange:S,children:u.jsx(Q.div,{dir:O,...s,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});VC.displayName=Gm;var UC="ScrollAreaViewport",WC=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,s=Wt(UC,n),i=c.useRef(null),l=se(t,i,s.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(Q.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});WC.displayName=UC;var Rn="ScrollAreaScrollbar",Km=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wt(Rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return c.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?u.jsx(l3,{...r,ref:t,forceMount:n}):o.type==="scroll"?u.jsx(c3,{...r,ref:t,forceMount:n}):o.type==="auto"?u.jsx(GC,{...r,ref:t,forceMount:n}):o.type==="always"?u.jsx(Ym,{...r,ref:t}):null});Km.displayName=Rn;var l3=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wt(Rn,e.__scopeScrollArea),[a,s]=c.useState(!1);return c.useEffect(()=>{const i=o.scrollArea;let l=0;if(i){const d=()=>{window.clearTimeout(l),s(!0)},p=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",p),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(_e,{present:n||a,children:u.jsx(GC,{"data-state":a?"visible":"hidden",...r,ref:t})})}),c3=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wt(Rn,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Vc(()=>l("SCROLL_END"),100),[i,l]=s3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,l]),c.useEffect(()=>{const d=o.viewport,p=a?"scrollLeft":"scrollTop";if(d){let f=d[p];const m=()=>{const h=d[p];f!==h&&(l("SCROLL"),s()),f=h};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,a,l,s]),u.jsx(_e,{present:n||i!=="hidden",children:u.jsx(Ym,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:L(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:L(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),GC=c.forwardRef((e,t)=>{const n=Wt(Rn,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=c.useState(!1),i=e.orientation==="horizontal",l=Vc(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;s(i?d:p)}},10);return ra(n.viewport,l),ra(n.content,l),u.jsx(_e,{present:r||a,children:u.jsx(Ym,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Ym=c.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Wt(Rn,e.__scopeScrollArea),a=c.useRef(null),s=c.useRef(0),[i,l]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=QC(i.viewport,i.content),p={...r,sizes:i,onSizesChange:l,hasThumb:d>0&&d<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:m=>s.current=m};function f(m,h){return h3(m,s.current,i,h)}return n==="horizontal"?u.jsx(u3,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,h=Cg(m,i,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=f(m,o.dir))}}):n==="vertical"?u.jsx(d3,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,h=Cg(m,i);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=f(m))}}):null}),u3=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Wt(Rn,e.__scopeScrollArea),[s,i]=c.useState(),l=c.useRef(null),d=se(t,l,a.onScrollbarXChange);return c.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),u.jsx(YC,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Bc(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(a.viewport){const m=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),JC(m,f)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Dl(s.paddingLeft),paddingEnd:Dl(s.paddingRight)}})}})}),d3=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Wt(Rn,e.__scopeScrollArea),[s,i]=c.useState(),l=c.useRef(null),d=se(t,l,a.onScrollbarYChange);return c.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),u.jsx(YC,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Bc(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(a.viewport){const m=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),JC(m,f)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Dl(s.paddingTop),paddingEnd:Dl(s.paddingBottom)}})}})}),[f3,KC]=BC(Rn),YC=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:d,onWheelScroll:p,onResize:f,...m}=e,h=Wt(Rn,n),[x,g]=c.useState(null),b=se(t,P=>g(P)),v=c.useRef(null),y=c.useRef(""),w=h.viewport,S=r.content-r.viewport,C=we(p),E=we(l),N=Vc(f,10);function R(P){if(v.current){const O=P.clientX-v.current.left,k=P.clientY-v.current.top;d({x:O,y:k})}}return c.useEffect(()=>{const P=O=>{const k=O.target;(x==null?void 0:x.contains(k))&&C(O,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[w,x,S,C]),c.useEffect(E,[r,E]),ra(x,N),ra(h.content,N),u.jsx(f3,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:we(a),onThumbPointerUp:we(s),onThumbPositionChange:E,onThumbPointerDown:we(i),children:u.jsx(Q.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:L(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),v.current=x.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),R(P))}),onPointerMove:L(e.onPointerMove,R),onPointerUp:L(e.onPointerUp,P=>{const O=P.target;O.hasPointerCapture(P.pointerId)&&O.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),Ol="ScrollAreaThumb",XC=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=KC(Ol,e.__scopeScrollArea);return u.jsx(_e,{present:n||o.hasThumb,children:u.jsx(p3,{ref:t,...r})})}),p3=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=Wt(Ol,n),s=KC(Ol,n),{onThumbPositionChange:i}=s,l=se(t,f=>s.onThumbChange(f)),d=c.useRef(void 0),p=Vc(()=>{d.current&&(d.current(),d.current=void 0)},100);return c.useEffect(()=>{const f=a.viewport;if(f){const m=()=>{if(p(),!d.current){const h=v3(f,i);d.current=h,i()}};return i(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[a.viewport,p,i]),u.jsx(Q.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:L(e.onPointerDownCapture,f=>{const h=f.target.getBoundingClientRect(),x=f.clientX-h.left,g=f.clientY-h.top;s.onThumbPointerDown({x,y:g})}),onPointerUp:L(e.onPointerUp,s.onThumbPointerUp)})});XC.displayName=Ol;var Xm="ScrollAreaCorner",qC=c.forwardRef((e,t)=>{const n=Wt(Xm,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?u.jsx(m3,{...e,ref:t}):null});qC.displayName=Xm;var m3=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Wt(Xm,n),[a,s]=c.useState(0),[i,l]=c.useState(0),d=!!(a&&i);return ra(o.scrollbarX,()=>{var f;const p=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(p),l(p)}),ra(o.scrollbarY,()=>{var f;const p=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(p),s(p)}),d?u.jsx(Q.div,{...r,ref:t,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Dl(e){return e?parseInt(e,10):0}function QC(e,t){const n=e/t;return isNaN(n)?0:n}function Bc(e){const t=QC(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function h3(e,t,n,r="ltr"){const o=Bc(n),a=o/2,s=t||a,i=o-s,l=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,p=n.content-n.viewport,f=r==="ltr"?[0,p]:[p*-1,0];return ZC([l,d],f)(e)}function Cg(e,t,n="ltr"){const r=Bc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,i=a-r,l=n==="ltr"?[0,s]:[s*-1,0],d=ks(e,l);return ZC([0,s],[0,i])(d)}function ZC(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function JC(e,t){return e>0&&e<t}var v3=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,i=n.top!==a.top;(s||i)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Vc(e,t){const n=we(e),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ra(e,t){const n=we(t);Te(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var eE=VC,g3=WC,y3=qC;const x3=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(eE,{ref:r,className:M("relative overflow-hidden",e),...n,children:[u.jsx(g3,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(tE,{}),u.jsx(y3,{})]}));x3.displayName=eE.displayName;const tE=c.forwardRef(({className:e,orientation:t="vertical",...n},r)=>u.jsx(Km,{ref:r,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:u.jsx(XC,{className:"relative flex-1 rounded-full bg-border"})}));tE.displayName=Km.displayName;var w3=[" ","Enter","ArrowUp","ArrowDown"],b3=[" ","Enter"],Uc="Select",[qm,Wc,S3]=Hn(Uc),[xa]=ke(Uc,[S3,En]),Qm=En(),[x8,_r]=xa(Uc),[w8,C3]=xa(Uc),nE="SelectTrigger",rE=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Qm(n),s=_r(nE,n),i=s.disabled||r,l=se(t,s.onTriggerChange),d=Wc(n),p=c.useRef("touch"),[f,m,h]=NE(g=>{const b=d().filter(w=>!w.disabled),v=b.find(w=>w.value===s.value),y=RE(b,g,v);y!==void 0&&s.onValueChange(y.value)}),x=g=>{i||(s.onOpenChange(!0),h()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(ya,{asChild:!0,...a,children:u.jsx(Q.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":EE(s.value)?"":void 0,...o,ref:l,onClick:L(o.onClick,g=>{g.currentTarget.focus(),p.current!=="mouse"&&x(g)}),onPointerDown:L(o.onPointerDown,g=>{p.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(x(g),g.preventDefault())}),onKeyDown:L(o.onKeyDown,g=>{const b=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(b&&g.key===" ")&&w3.includes(g.key)&&(x(),g.preventDefault())})})})});rE.displayName=nE;var oE="SelectValue",E3=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=_r(oE,n),{onValueNodeHasChildrenChange:d}=l,p=a!==void 0,f=se(t,l.onValueNodeChange);return Te(()=>{d(p)},[d,p]),u.jsx(Q.span,{...i,ref:f,style:{pointerEvents:"none"},children:EE(l.value)?u.jsx(u.Fragment,{children:s}):a})});E3.displayName=oE;var N3="SelectIcon",aE=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});aE.displayName=N3;var R3="SelectPortal",sE=e=>u.jsx(ca,{asChild:!0,...e});sE.displayName=R3;var to="SelectContent",iE=c.forwardRef((e,t)=>{const n=_r(to,e.__scopeSelect),[r,o]=c.useState();if(Te(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?oo.createPortal(u.jsx(lE,{scope:e.__scopeSelect,children:u.jsx(qm.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(cE,{...e,ref:t})});iE.displayName=to;var Zt=10,[lE,Mr]=xa(to),P3="SelectContentImpl",T3=Xr("SelectContent.RemoveScroll"),cE=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:x,hideWhenDetached:g,avoidCollisions:b,...v}=e,y=_r(to,n),[w,S]=c.useState(null),[C,E]=c.useState(null),N=se(t,j=>S(j)),[R,P]=c.useState(null),[O,k]=c.useState(null),D=Wc(n),[V,$]=c.useState(!1),U=c.useRef(!1);c.useEffect(()=>{if(w)return dc(w)},[w]),cc();const B=c.useCallback(j=>{const[Y,...ee]=D().map(K=>K.ref.current),[te]=ee.slice(-1),ne=document.activeElement;for(const K of j)if(K===ne||(K==null||K.scrollIntoView({block:"nearest"}),K===Y&&C&&(C.scrollTop=0),K===te&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==ne))return},[D,C]),Z=c.useCallback(()=>B([R,w]),[B,R,w]);c.useEffect(()=>{V&&Z()},[V,Z]);const{onOpenChange:I,triggerPointerDownPosRef:T}=y;c.useEffect(()=>{if(w){let j={x:0,y:0};const Y=te=>{var ne,K;j={x:Math.abs(Math.round(te.pageX)-(((ne=T.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(te.pageY)-(((K=T.current)==null?void 0:K.y)??0))}},ee=te=>{j.x<=10&&j.y<=10?te.preventDefault():w.contains(te.target)||I(!1),document.removeEventListener("pointermove",Y),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",ee,{capture:!0})}}},[w,I,T]),c.useEffect(()=>{const j=()=>I(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[I]);const[W,J]=NE(j=>{const Y=D().filter(ne=>!ne.disabled),ee=Y.find(ne=>ne.ref.current===document.activeElement),te=RE(Y,j,ee);te&&setTimeout(()=>te.ref.current.focus())}),_=c.useCallback((j,Y,ee)=>{const te=!U.current&&!ee;(y.value!==void 0&&y.value===Y||te)&&(P(j),te&&(U.current=!0))},[y.value]),A=c.useCallback(()=>w==null?void 0:w.focus(),[w]),z=c.useCallback((j,Y,ee)=>{const te=!U.current&&!ee;(y.value!==void 0&&y.value===Y||te)&&k(j)},[y.value]),H=r==="popper"?vf:uE,G=H===vf?{side:i,sideOffset:l,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:x,hideWhenDetached:g,avoidCollisions:b}:{};return u.jsx(lE,{scope:n,content:w,viewport:C,onViewportChange:E,itemRefCallback:_,selectedItem:R,onItemLeave:A,itemTextRefCallback:z,focusSelectedItem:Z,selectedItemText:O,position:r,isPositioned:V,searchRef:W,children:u.jsx($s,{as:T3,allowPinchZoom:!0,children:u.jsx(Ls,{asChild:!0,trapped:y.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:L(o,j=>{var Y;(Y=y.trigger)==null||Y.focus({preventScroll:!0}),j.preventDefault()}),children:u.jsx(Un,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:u.jsx(H,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:j=>j.preventDefault(),...v,...G,onPlaced:()=>$(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:L(v.onKeyDown,j=>{const Y=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!Y&&j.key.length===1&&J(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let te=D().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(j.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const ne=j.target,K=te.indexOf(ne);te=te.slice(K+1)}setTimeout(()=>B(te)),j.preventDefault()}})})})})})})});cE.displayName=P3;var k3="SelectItemAlignedPosition",uE=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=_r(to,n),s=Mr(to,n),[i,l]=c.useState(null),[d,p]=c.useState(null),f=se(t,N=>p(N)),m=Wc(n),h=c.useRef(!1),x=c.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:v,focusSelectedItem:y}=s,w=c.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&g&&b&&v){const N=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),O=v.getBoundingClientRect();if(a.dir!=="rtl"){const ne=O.left-R.left,K=P.left-ne,oe=N.left-K,q=N.width+oe,re=Math.max(q,R.width),de=window.innerWidth-Zt,me=ks(K,[Zt,Math.max(Zt,de-re)]);i.style.minWidth=q+"px",i.style.left=me+"px"}else{const ne=R.right-O.right,K=window.innerWidth-P.right-ne,oe=window.innerWidth-N.right-K,q=N.width+oe,re=Math.max(q,R.width),de=window.innerWidth-Zt,me=ks(K,[Zt,Math.max(Zt,de-re)]);i.style.minWidth=q+"px",i.style.right=me+"px"}const k=m(),D=window.innerHeight-Zt*2,V=g.scrollHeight,$=window.getComputedStyle(d),U=parseInt($.borderTopWidth,10),B=parseInt($.paddingTop,10),Z=parseInt($.borderBottomWidth,10),I=parseInt($.paddingBottom,10),T=U+B+V+I+Z,W=Math.min(b.offsetHeight*5,T),J=window.getComputedStyle(g),_=parseInt(J.paddingTop,10),A=parseInt(J.paddingBottom,10),z=N.top+N.height/2-Zt,H=D-z,G=b.offsetHeight/2,j=b.offsetTop+G,Y=U+B+j,ee=T-Y;if(Y<=z){const ne=k.length>0&&b===k[k.length-1].ref.current;i.style.bottom="0px";const K=d.clientHeight-g.offsetTop-g.offsetHeight,oe=Math.max(H,G+(ne?A:0)+K+Z),q=Y+oe;i.style.height=q+"px"}else{const ne=k.length>0&&b===k[0].ref.current;i.style.top="0px";const oe=Math.max(z,U+g.offsetTop+(ne?_:0)+G)+ee;i.style.height=oe+"px",g.scrollTop=Y-z+g.offsetTop}i.style.margin=`${Zt}px 0`,i.style.minHeight=W+"px",i.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,i,d,g,b,v,a.dir,r]);Te(()=>w(),[w]);const[S,C]=c.useState();Te(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const E=c.useCallback(N=>{N&&x.current===!0&&(w(),y==null||y(),x.current=!1)},[w,y]);return u.jsx(M3,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(Q.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});uE.displayName=k3;var _3="SelectPopperPosition",vf=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Zt,...a}=e,s=Qm(n);return u.jsx(Ws,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});vf.displayName=_3;var[M3,Zm]=xa(to,{}),gf="SelectViewport",dE=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Mr(gf,n),s=Zm(gf,n),i=se(t,a.onViewportChange),l=c.useRef(0);return u.jsxs(u.Fragment,{children:[u.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:r}),u.jsx(qm.Slot,{scope:n,children:u.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,d=>{const p=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=s;if(m!=null&&m.current&&f){const h=Math.abs(l.current-p.scrollTop);if(h>0){const x=window.innerHeight-Zt*2,g=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(g,b);if(v<x){const y=v+h,w=Math.min(x,y),S=y-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});dE.displayName=gf;var fE="SelectGroup",[j3,I3]=xa(fE),A3=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ke();return u.jsx(j3,{scope:n,id:o,children:u.jsx(Q.div,{role:"group","aria-labelledby":o,...r,ref:t})})});A3.displayName=fE;var pE="SelectLabel",mE=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=I3(pE,n);return u.jsx(Q.div,{id:o.id,...r,ref:t})});mE.displayName=pE;var Ll="SelectItem",[O3,hE]=xa(Ll),vE=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=_r(Ll,n),l=Mr(Ll,n),d=i.value===r,[p,f]=c.useState(a??""),[m,h]=c.useState(!1),x=se(t,y=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,y,r,o)}),g=Ke(),b=c.useRef("touch"),v=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")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 u.jsx(O3,{scope:n,value:r,disabled:o,textId:g,isSelected:d,onItemTextChange:c.useCallback(y=>{f(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:u.jsx(qm.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:u.jsx(Q.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:L(s.onFocus,()=>h(!0)),onBlur:L(s.onBlur,()=>h(!1)),onClick:L(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:L(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:L(s.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:L(s.onPointerMove,y=>{var w;b.current=y.pointerType,o?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:L(s.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(b3.includes(y.key)&&v(),y.key===" "&&y.preventDefault())})})})})});vE.displayName=Ll;var Ua="SelectItemText",gE=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=_r(Ua,n),i=Mr(Ua,n),l=hE(Ua,n),d=C3(Ua,n),[p,f]=c.useState(null),m=se(t,v=>f(v),l.onItemTextChange,v=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,v,l.value,l.disabled)}),h=p==null?void 0:p.textContent,x=c.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=d;return Te(()=>(g(x),()=>b(x)),[g,b,x]),u.jsxs(u.Fragment,{children:[u.jsx(Q.span,{id:l.textId,...a,ref:m}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?oo.createPortal(a.children,s.valueNode):null]})});gE.displayName=Ua;var yE="SelectItemIndicator",xE=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return hE(yE,n).isSelected?u.jsx(Q.span,{"aria-hidden":!0,...r,ref:t}):null});xE.displayName=yE;var yf="SelectScrollUpButton",wE=c.forwardRef((e,t)=>{const n=Mr(yf,e.__scopeSelect),r=Zm(yf,e.__scopeSelect),[o,a]=c.useState(!1),s=se(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollTop>0;a(d)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?u.jsx(SE,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});wE.displayName=yf;var xf="SelectScrollDownButton",bE=c.forwardRef((e,t)=>{const n=Mr(xf,e.__scopeSelect),r=Zm(xf,e.__scopeSelect),[o,a]=c.useState(!1),s=se(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<d;a(p)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?u.jsx(SE,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});bE.displayName=xf;var SE=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Mr("SelectScrollButton",n),s=c.useRef(null),i=Wc(n),l=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),Te(()=>{var p;const d=i().find(f=>f.ref.current===document.activeElement);(p=d==null?void 0:d.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),u.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{l()})})}),D3="SelectSeparator",CE=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(Q.div,{"aria-hidden":!0,...r,ref:t})});CE.displayName=D3;var wf="SelectArrow",L3=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qm(n),a=_r(wf,n),s=Mr(wf,n);return a.open&&s.position==="popper"?u.jsx(Gs,{...o,...r,ref:t}):null});L3.displayName=wf;var $3="SelectBubbleInput",z3=c.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=c.useRef(null),a=se(r,o),s=ha(t);return c.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&p){const f=new Event("change",{bubbles:!0});p.call(i,t),i.dispatchEvent(f)}},[s,t]),u.jsx(Q.select,{...n,style:{..._1,...n.style},ref:a,defaultValue:t})});z3.displayName=$3;function EE(e){return e===""||e===void 0}function NE(e){const t=we(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(s=>{const i=n.current+s;t(i),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function RE(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=F3(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function F3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var PE=rE,H3=aE,B3=sE,TE=iE,V3=dE,kE=mE,_E=vE,U3=gE,W3=xE,ME=wE,jE=bE,IE=CE;const G3=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(PE,{ref:r,className:M("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(H3,{asChild:!0,children:u.jsx(ic,{className:"h-4 w-4 opacity-50"})})]}));G3.displayName=PE.displayName;const AE=c.forwardRef(({className:e,...t},n)=>u.jsx(ME,{ref:n,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(n_,{className:"h-4 w-4"})}));AE.displayName=ME.displayName;const OE=c.forwardRef(({className:e,...t},n)=>u.jsx(jE,{ref:n,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(ic,{className:"h-4 w-4"})}));OE.displayName=jE.displayName;const K3=c.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>u.jsx(B3,{children:u.jsxs(TE,{ref:o,className:M("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",n==="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",e),position:n,...r,children:[u.jsx(AE,{}),u.jsx(V3,{className:M("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(OE,{})]})}));K3.displayName=TE.displayName;const Y3=c.forwardRef(({className:e,...t},n)=>u.jsx(kE,{ref:n,className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Y3.displayName=kE.displayName;const X3=c.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(_E,{ref:r,className:M("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(W3,{children:u.jsx(Ds,{className:"h-4 w-4"})})}),u.jsx(U3,{children:t})]}));X3.displayName=_E.displayName;const q3=c.forwardRef(({className:e,...t},n)=>u.jsx(IE,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));q3.displayName=IE.displayName;var Q3="Separator",Eg="horizontal",Z3=["horizontal","vertical"],DE=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=Eg,...o}=e,a=J3(r)?r:Eg,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(dt.div,{"data-orientation":a,...i,...o,ref:t})});DE.displayName=Q3;function J3(e){return Z3.includes(e)}var LE=DE;const $l=c.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>u.jsx(LE,{ref:o,decorative:n,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));$l.displayName=LE.displayName;const eH=Kw,tH=zs,$E=c.forwardRef(({className:e,...t},n)=>u.jsx(ao,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));$E.displayName=ao.displayName;const nH=Vn("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zE=c.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs(tH,{children:[u.jsx($E,{}),u.jsxs(so,{ref:o,className:M(nH({side:e}),t),...r,children:[n,u.jsxs(pc,{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-secondary",children:[u.jsx(Ap,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zE.displayName=so.displayName;const rH=c.forwardRef(({className:e,...t},n)=>u.jsx(ua,{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));rH.displayName=ua.displayName;const oH=c.forwardRef(({className:e,...t},n)=>u.jsx(da,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));oH.displayName=da.displayName;const Zu=768;function aH(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Zu-1}px)`),r=()=>{t(window.innerWidth<Zu)};return n.addEventListener("change",r),t(window.innerWidth<Zu),()=>n.removeEventListener("change",r)},[]),!!e}function Ng({className:e,...t}){return u.jsx("div",{className:M("animate-pulse rounded-md bg-muted",e),...t})}var[Gc]=ke("Tooltip",[En]),Kc=En(),FE="TooltipProvider",sH=700,bf="tooltip.open",[iH,Jm]=Gc(FE),HE=e=>{const{__scopeTooltip:t,delayDuration:n=sH,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=c.useRef(!0),i=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),u.jsx(iH,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:c.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};HE.displayName=FE;var _s="Tooltip",[lH,Yc]=Gc(_s),BE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Jm(_s,e.__scopeTooltip),d=Kc(t),[p,f]=c.useState(null),m=Ke(),h=c.useRef(0),x=s??l.disableHoverableContent,g=i??l.delayDuration,b=c.useRef(!1),[v,y]=Ye({prop:r,defaultProp:o??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(bf))):l.onClose(),a==null||a(N)},caller:_s}),w=c.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),S=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,y(!0)},[y]),C=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,y(!0),h.current=0},g)},[g,y]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(b$,{...d,children:u.jsx(lH,{scope:t,contentId:m,open:v,stateAttribute:w,trigger:p,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?E():S()},[l.isOpenDelayedRef,E,S]),onTriggerLeave:c.useCallback(()=>{x?C():(window.clearTimeout(h.current),h.current=0)},[C,x]),onOpen:S,onClose:C,disableHoverableContent:x,children:n})})};BE.displayName=_s;var Sf="TooltipTrigger",VE=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Yc(Sf,n),a=Jm(Sf,n),s=Kc(n),i=c.useRef(null),l=se(t,i,o.onTriggerChange),d=c.useRef(!1),p=c.useRef(!1),f=c.useCallback(()=>d.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(ya,{asChild:!0,...s,children:u.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:L(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});VE.displayName=Sf;var cH="TooltipPortal",[b8,uH]=Gc(cH,{forceMount:void 0}),oa="TooltipContent",UE=c.forwardRef((e,t)=>{const n=uH(oa,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Yc(oa,e.__scopeTooltip);return u.jsx(_e,{present:r||s.open,children:s.disableHoverableContent?u.jsx(WE,{side:o,...a,ref:t}):u.jsx(dH,{side:o,...a,ref:t})})}),dH=c.forwardRef((e,t)=>{const n=Yc(oa,e.__scopeTooltip),r=Jm(oa,e.__scopeTooltip),o=c.useRef(null),a=se(t,o),[s,i]=c.useState(null),{trigger:l,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=r,m=c.useCallback(()=>{i(null),f(!1)},[f]),h=c.useCallback((x,g)=>{const b=x.currentTarget,v={x:x.clientX,y:x.clientY},y=vH(v,b.getBoundingClientRect()),w=gH(v,y),S=yH(g.getBoundingClientRect()),C=wH([...w,...S]);i(C),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(l&&p){const x=b=>h(b,p),g=b=>h(b,l);return l.addEventListener("pointerleave",x),p.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",g)}}},[l,p,h,m]),c.useEffect(()=>{if(s){const x=g=>{const b=g.target,v={x:g.clientX,y:g.clientY},y=(l==null?void 0:l.contains(b))||(p==null?void 0:p.contains(b)),w=!xH(v,s);y?m():w&&(m(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,p,s,d,m]),u.jsx(WE,{...e,ref:a})}),[fH,pH]=Gc(_s,{isInside:!1}),mH=Zx("TooltipContent"),WE=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Yc(oa,n),d=Kc(n),{onClose:p}=l;return c.useEffect(()=>(document.addEventListener(bf,p),()=>document.removeEventListener(bf,p)),[p]),c.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,p]),u.jsx(Un,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:u.jsxs(Ws,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(mH,{children:r}),u.jsx(fH,{scope:n,isInside:!0,children:u.jsx(M1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});UE.displayName=oa;var GE="TooltipArrow",hH=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Kc(n);return pH(GE,n).isInside?null:u.jsx(Gs,{...o,...r,ref:t})});hH.displayName=GE;function vH(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gH(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function yH(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function xH(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,p=i.y,f=l.x,m=l.y;p>r!=m>r&&n<(f-d)*(r-p)/(m-p)+d&&(o=!o)}return o}function wH(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),bH(t)}function bH(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var SH=HE,CH=BE,EH=VE,KE=UE;const NH=SH,RH=CH,PH=EH,YE=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(KE,{ref:r,sideOffset:t,className:M("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n}));YE.displayName=KE.displayName;const TH="sidebar:state",kH=60*60*24*7,_H="16rem",MH="18rem",jH="3rem",IH="b",XE=c.createContext(null);function Xc(){const e=c.useContext(XE);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const AH=c.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s},i)=>{const l=aH(),[d,p]=c.useState(!1),[f,m]=c.useState(e),h=t??f,x=c.useCallback(y=>{const w=typeof y=="function"?y(h):y;n?n(w):m(w),document.cookie=`${TH}=${w}; path=/; max-age=${kH}`},[n,h]),g=c.useCallback(()=>l?p(y=>!y):x(y=>!y),[l,x,p]);c.useEffect(()=>{const y=w=>{w.key===IH&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),g())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[g]);const b=h?"expanded":"collapsed",v=c.useMemo(()=>({state:b,open:h,setOpen:x,isMobile:l,openMobile:d,setOpenMobile:p,toggleSidebar:g}),[b,h,x,l,d,p,g]);return u.jsx(XE.Provider,{value:v,children:u.jsx(NH,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":_H,"--sidebar-width-icon":jH,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...s,children:a})})})});AH.displayName="SidebarProvider";const OH=c.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},s)=>{const{isMobile:i,state:l,openMobile:d,setOpenMobile:p}=Xc();return n==="none"?u.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:o}):i?u.jsx(eH,{open:d,onOpenChange:p,...a,children:u.jsx(zE,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":MH},side:e,children:u.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):u.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:M("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),u.jsx("div",{className:M("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:u.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});OH.displayName="Sidebar";const DH=c.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Xc();return u.jsxs(ge,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[u.jsx(p_,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});DH.displayName="SidebarTrigger";const LH=c.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Xc();return u.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:M("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});LH.displayName="SidebarRail";const $H=c.forwardRef(({className:e,...t},n)=>u.jsx("main",{ref:n,className:M("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));$H.displayName="SidebarInset";const zH=c.forwardRef(({className:e,...t},n)=>u.jsx(QS,{ref:n,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));zH.displayName="SidebarInput";const FH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));FH.displayName="SidebarHeader";const HH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));HH.displayName="SidebarFooter";const BH=c.forwardRef(({className:e,...t},n)=>u.jsx($l,{ref:n,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));BH.displayName="SidebarSeparator";const VH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));VH.displayName="SidebarContent";const UH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));UH.displayName="SidebarGroup";const WH=c.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Pr:"div";return u.jsx(o,{ref:r,"data-sidebar":"group-label",className:M("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});WH.displayName="SidebarGroupLabel";const GH=c.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Pr:"button";return u.jsx(o,{ref:r,"data-sidebar":"group-action",className:M("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});GH.displayName="SidebarGroupAction";const KH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));KH.displayName="SidebarGroupContent";const YH=c.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));YH.displayName="SidebarMenu";const XH=c.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));XH.displayName="SidebarMenuItem";const qH=Vn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),QH=c.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s},i)=>{const l=e?Pr:"button",{isMobile:d,state:p}=Xc(),f=u.jsx(l,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:M(qH({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(RH,{children:[u.jsx(PH,{asChild:!0,children:f}),u.jsx(YE,{side:"right",align:"center",hidden:p!=="collapsed"||d,...o})]})):f});QH.displayName="SidebarMenuButton";const ZH=c.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?Pr:"button";return u.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});ZH.displayName="SidebarMenuAction";const JH=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:M("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));JH.displayName="SidebarMenuBadge";const eB=c.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=c.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:M("rounded-md h-8 flex gap-2 px-2 items-center",e),...n,children:[t&&u.jsx(Ng,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(Ng,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});eB.displayName="SidebarMenuSkeleton";const tB=c.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:M("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));tB.displayName="SidebarMenuSub";const nB=c.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));nB.displayName="SidebarMenuSubItem";const rB=c.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const s=e?Pr:"a";return u.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:M("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});rB.displayName="SidebarMenuSubButton";var qE=["PageUp","PageDown"],QE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ZE={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},wa="Slider",[Cf,oB,aB]=Hn(wa),[JE]=ke(wa,[aB]),[sB,qc]=JE(wa),eN=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:s="horizontal",disabled:i=!1,minStepsBetweenThumbs:l=0,defaultValue:d=[r],value:p,onValueChange:f=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:x,...g}=e,b=c.useRef(new Set),v=c.useRef(0),w=s==="horizontal"?iB:lB,[S=[],C]=Ye({prop:p,defaultProp:d,onChange:k=>{var V;(V=[...b.current][v.current])==null||V.focus(),f(k)}}),E=c.useRef(S);function N(k){const D=pB(S,k);O(k,D)}function R(k){O(k,v.current)}function P(){const k=E.current[v.current];S[v.current]!==k&&m(S)}function O(k,D,{commit:V}={commit:!1}){const $=gB(a),U=yB(Math.round((k-r)/a)*a+r,$),B=ks(U,[r,o]);C((Z=[])=>{const I=dB(Z,B,D);if(vB(I,l*a)){v.current=I.indexOf(B);const T=String(I)!==String(Z);return T&&V&&m(I),T?I:Z}else return Z})}return u.jsx(sB,{scope:e.__scopeSlider,name:n,disabled:i,min:r,max:o,valueIndexToChangeRef:v,thumbs:b.current,values:S,orientation:s,form:x,children:u.jsx(Cf.Provider,{scope:e.__scopeSlider,children:u.jsx(Cf.Slot,{scope:e.__scopeSlider,children:u.jsx(w,{"aria-disabled":i,"data-disabled":i?"":void 0,...g,ref:t,onPointerDown:L(g.onPointerDown,()=>{i||(E.current=S)}),min:r,max:o,inverted:h,onSlideStart:i?void 0:N,onSlideMove:i?void 0:R,onSlideEnd:i?void 0:P,onHomeKeyDown:()=>!i&&O(r,0,{commit:!0}),onEndKeyDown:()=>!i&&O(o,S.length-1,{commit:!0}),onStepKeyDown:({event:k,direction:D})=>{if(!i){const U=qE.includes(k.key)||k.shiftKey&&QE.includes(k.key)?10:1,B=v.current,Z=S[B],I=a*U*D;O(Z+I,B,{commit:!0})}}})})})})});eN.displayName=wa;var[tN,nN]=JE(wa,{startEdge:"left",endEdge:"right",size:"width",direction:1}),iB=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:d,...p}=e,[f,m]=c.useState(null),h=se(t,w=>m(w)),x=c.useRef(void 0),g=Bn(o),b=g==="ltr",v=b&&!a||!b&&a;function y(w){const S=x.current||f.getBoundingClientRect(),C=[0,S.width],N=eh(C,v?[n,r]:[r,n]);return x.current=S,N(w-S.left)}return u.jsx(tN,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:u.jsx(rN,{dir:g,"data-orientation":"horizontal",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=y(w.clientX);s==null||s(S)},onSlideMove:w=>{const S=y(w.clientX);i==null||i(S)},onSlideEnd:()=>{x.current=void 0,l==null||l()},onStepKeyDown:w=>{const C=ZE[v?"from-left":"from-right"].includes(w.key);d==null||d({event:w,direction:C?-1:1})}})})}),lB=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:i,onStepKeyDown:l,...d}=e,p=c.useRef(null),f=se(t,p),m=c.useRef(void 0),h=!o;function x(g){const b=m.current||p.current.getBoundingClientRect(),v=[0,b.height],w=eh(v,h?[r,n]:[n,r]);return m.current=b,w(g-b.top)}return u.jsx(tN,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:u.jsx(rN,{"data-orientation":"vertical",...d,ref:f,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=x(g.clientY);a==null||a(b)},onSlideMove:g=>{const b=x(g.clientY);s==null||s(b)},onSlideEnd:()=>{m.current=void 0,i==null||i()},onStepKeyDown:g=>{const v=ZE[h?"from-bottom":"from-top"].includes(g.key);l==null||l({event:g,direction:v?-1:1})}})})}),rN=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:i,onStepKeyDown:l,...d}=e,p=qc(wa,n);return u.jsx(Q.span,{...d,ref:t,onKeyDown:L(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(i(f),f.preventDefault()):qE.concat(QE).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:L(e.onPointerDown,f=>{const m=f.target;m.setPointerCapture(f.pointerId),f.preventDefault(),p.thumbs.has(m)?m.focus():r(f)}),onPointerMove:L(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:L(e.onPointerUp,f=>{const m=f.target;m.hasPointerCapture(f.pointerId)&&(m.releasePointerCapture(f.pointerId),a(f))})})}),oN="SliderTrack",aN=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qc(oN,n);return u.jsx(Q.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});aN.displayName=oN;var Ef="SliderRange",sN=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qc(Ef,n),a=nN(Ef,n),s=c.useRef(null),i=se(t,s),l=o.values.length,d=o.values.map(m=>cN(m,o.min,o.max)),p=l>1?Math.min(...d):0,f=100-Math.max(...d);return u.jsx(Q.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:i,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:f+"%"}})});sN.displayName=Ef;var Nf="SliderThumb",iN=c.forwardRef((e,t)=>{const n=oB(e.__scopeSlider),[r,o]=c.useState(null),a=se(t,i=>o(i)),s=c.useMemo(()=>r?n().findIndex(i=>i.ref.current===r):-1,[n,r]);return u.jsx(cB,{...e,ref:a,index:s})}),cB=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,s=qc(Nf,n),i=nN(Nf,n),[l,d]=c.useState(null),p=se(t,y=>d(y)),f=l?s.form||!!l.closest("form"):!0,m=Bs(l),h=s.values[r],x=h===void 0?0:cN(h,s.min,s.max),g=fB(r,s.values.length),b=m==null?void 0:m[i.size],v=b?mB(b,x,i.direction):0;return c.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${x}% + ${v}px)`},children:[u.jsx(Cf.ItemSlot,{scope:e.__scopeSlider,children:u.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":h,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:p,style:h===void 0?{display:"none"}:e.style,onFocus:L(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&u.jsx(lN,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:h},r)]})});iN.displayName=Nf;var uB="RadioBubbleInput",lN=c.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=c.useRef(null),a=se(o,r),s=ha(t);return c.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&p){const f=new Event("input",{bubbles:!0});p.call(i,t),i.dispatchEvent(f)}},[s,t]),u.jsx(Q.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});lN.displayName=uB;function dB(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function cN(e,t,n){const a=100/(n-t)*(e-t);return ks(a,[0,100])}function fB(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function pB(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function mB(e,t,n){const r=e/2,a=eh([0,50],[0,r]);return(r-a(t)*n)*n}function hB(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function vB(e,t){if(t>0){const n=hB(e);return Math.min(...n)>=t}return!0}function eh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function gB(e){return(String(e).split(".")[1]||"").length}function yB(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var uN=eN,xB=aN,wB=sN,bB=iN;const SB=c.forwardRef(({className:e,...t},n)=>u.jsxs(uN,{ref:n,className:M("relative flex w-full touch-none select-none items-center",e),...t,children:[u.jsx(xB,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:u.jsx(wB,{className:"absolute h-full bg-primary"})}),u.jsx(bB,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));SB.displayName=uN.displayName;var Qc="Switch",[CB]=ke(Qc),[EB,NB]=CB(Qc),dN=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:d,form:p,...f}=e,[m,h]=c.useState(null),x=se(t,w=>h(w)),g=c.useRef(!1),b=m?p||!!m.closest("form"):!0,[v,y]=Ye({prop:o,defaultProp:a??!1,onChange:d,caller:Qc});return u.jsxs(EB,{scope:n,checked:v,disabled:i,children:[u.jsx(Q.button,{type:"button",role:"switch","aria-checked":v,"aria-required":s,"data-state":hN(v),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:x,onClick:L(e.onClick,w=>{y(S=>!S),b&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})}),b&&u.jsx(mN,{control:m,bubbles:!g.current,name:r,value:l,checked:v,required:s,disabled:i,form:p,style:{transform:"translateX(-100%)"}})]})});dN.displayName=Qc;var fN="SwitchThumb",pN=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=NB(fN,n);return u.jsx(Q.span,{"data-state":hN(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});pN.displayName=fN;var RB="SwitchBubbleInput",mN=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=c.useRef(null),i=se(s,a),l=ha(n),d=Bs(t);return c.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&h){const x=new Event("click",{bubbles:r});h.call(p,n),p.dispatchEvent(x)}},[l,n,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});mN.displayName=RB;function hN(e){return e?"checked":"unchecked"}var vN=dN,PB=pN;const TB=c.forwardRef(({className:e,...t},n)=>u.jsx(vN,{className:M("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:u.jsx(PB,{className:M("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));TB.displayName=vN.displayName;var Rg=["light","dark"],kB="(prefers-color-scheme: dark)";c.createContext(void 0);c.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:s,attrs:i,nonce:l})=>{let d=a==="system",p=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${i.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Rg.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(x,g=!1,b=!0)=>{let v=s?s[x]:x,y=g?x+"|| ''":`'${v}'`,w="";return o&&b&&!g&&Rg.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),n==="class"?g||v?w+=`c.add(${y})`:w+="null":v&&(w+=`d[s](n,${y})`),w},h=e?`!function(){${p}${m(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${kB}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${d?"":"else{"+m(a,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(a,!1,!1)};}${f}}catch(t){}}();`;return c.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var _B=e=>{switch(e){case"success":return IB;case"info":return OB;case"warning":return AB;case"error":return DB;default:return null}},MB=Array(12).fill(0),jB=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},MB.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),IB=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),AB=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.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"})),OB=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),DB=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),LB=F.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"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$B=()=>{let[e,t]=F.useState(document.hidden);return F.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Rf=1,zB=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Rf++,a=this.toasts.find(i=>i.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(i=>i.id===o?(this.publish({...i,...e,id:o,title:n}),{...i,...e,id:o,dismissible:s,title:n}):i):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,a,s=r.then(async l=>{if(a=["resolve",l],F.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(HB(l)&&!l.ok){o=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,p=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:d,description:p})}else if(t.success!==void 0){o=!1;let d=typeof t.success=="function"?await t.success(l):t.success,p=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:d,description:p})}}).catch(async l=>{if(a=["reject",l],t.error!==void 0){o=!1;let d=typeof t.error=="function"?await t.error(l):t.error,p=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:d,description:p})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),i=()=>new Promise((l,d)=>s.then(()=>a[0]==="reject"?d(a[1]):l(a[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:i}:Object.assign(n,{unwrap:i})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Rf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},pt=new zB,FB=(e,t)=>{let n=(t==null?void 0:t.id)||Rf++;return pt.addToast({title:e,...t,id:n}),n},HB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",BB=FB,VB=()=>pt.toasts,UB=()=>pt.getActiveToasts();Object.assign(BB,{success:pt.success,info:pt.info,warning:pt.warning,error:pt.error,custom:pt.custom,message:pt.message,promise:pt.promise,dismiss:pt.dismiss,loading:pt.loading},{getHistory:VB,getToasts:UB});function WB(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}WB(`: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%)}
|
|
339
|
+
`);function Mi(e){return e.label!==void 0}var GB=3,KB="32px",YB="16px",Pg=4e3,XB=356,qB=14,QB=20,ZB=200;function Qt(...e){return e.filter(Boolean).join(" ")}function JB(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var e6=e=>{var t,n,r,o,a,s,i,l,d,p,f;let{invert:m,toast:h,unstyled:x,interacting:g,setHeights:b,visibleToasts:v,heights:y,index:w,toasts:S,expanded:C,removeToast:E,defaultRichColors:N,closeButton:R,style:P,cancelButtonStyle:O,actionButtonStyle:k,className:D="",descriptionClassName:V="",duration:$,position:U,gap:B,loadingIcon:Z,expandByDefault:I,classNames:T,icons:W,closeButtonAriaLabel:J="Close toast",pauseWhenPageIsHidden:_}=e,[A,z]=F.useState(null),[H,G]=F.useState(null),[j,Y]=F.useState(!1),[ee,te]=F.useState(!1),[ne,K]=F.useState(!1),[oe,q]=F.useState(!1),[re,de]=F.useState(!1),[me,ce]=F.useState(0),[le,Se]=F.useState(0),Le=F.useRef(h.duration||$||Pg),ze=F.useRef(null),Fe=F.useRef(null),ft=w===0,Ct=w+1<=v,je=h.type,Xe=h.dismissible!==!1,uo=h.className||"",Gn=h.descriptionClassName||"",Et=F.useMemo(()=>y.findIndex(ie=>ie.toastId===h.id)||0,[y,h.id]),Ir=F.useMemo(()=>{var ie;return(ie=h.closeButton)!=null?ie:R},[h.closeButton,R]),Kn=F.useMemo(()=>h.duration||$||Pg,[h.duration,$]),et=F.useRef(0),Ot=F.useRef(0),fo=F.useRef(0),Yn=F.useRef(null),[eu,tu]=U.split("-"),ba=F.useMemo(()=>y.reduce((ie,ye,Ce)=>Ce>=Et?ie:ie+ye.height,0),[y,Et]),ti=$B(),ni=h.invert||m,po=je==="loading";Ot.current=F.useMemo(()=>Et*B+ba,[Et,ba]),F.useEffect(()=>{Le.current=Kn},[Kn]),F.useEffect(()=>{Y(!0)},[]),F.useEffect(()=>{let ie=Fe.current;if(ie){let ye=ie.getBoundingClientRect().height;return Se(ye),b(Ce=>[{toastId:h.id,height:ye,position:h.position},...Ce]),()=>b(Ce=>Ce.filter(Kt=>Kt.toastId!==h.id))}},[b,h.id]),F.useLayoutEffect(()=>{if(!j)return;let ie=Fe.current,ye=ie.style.height;ie.style.height="auto";let Ce=ie.getBoundingClientRect().height;ie.style.height=ye,Se(Ce),b(Kt=>Kt.find(Yt=>Yt.toastId===h.id)?Kt.map(Yt=>Yt.toastId===h.id?{...Yt,height:Ce}:Yt):[{toastId:h.id,height:Ce,position:h.position},...Kt])},[j,h.title,h.description,b,h.id]);let Gt=F.useCallback(()=>{te(!0),ce(Ot.current),b(ie=>ie.filter(ye=>ye.toastId!==h.id)),setTimeout(()=>{E(h)},ZB)},[h,E,b,Ot]);F.useEffect(()=>{if(h.promise&&je==="loading"||h.duration===1/0||h.type==="loading")return;let ie;return C||g||_&&ti?(()=>{if(fo.current<et.current){let ye=new Date().getTime()-et.current;Le.current=Le.current-ye}fo.current=new Date().getTime()})():Le.current!==1/0&&(et.current=new Date().getTime(),ie=setTimeout(()=>{var ye;(ye=h.onAutoClose)==null||ye.call(h,h),Gt()},Le.current)),()=>clearTimeout(ie)},[C,g,h,je,_,ti,Gt]),F.useEffect(()=>{h.delete&&Gt()},[Gt,h.delete]);function nu(){var ie,ye,Ce;return W!=null&&W.loading?F.createElement("div",{className:Qt(T==null?void 0:T.loader,(ie=h==null?void 0:h.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":je==="loading"},W.loading):Z?F.createElement("div",{className:Qt(T==null?void 0:T.loader,(ye=h==null?void 0:h.classNames)==null?void 0:ye.loader,"sonner-loader"),"data-visible":je==="loading"},Z):F.createElement(jB,{className:Qt(T==null?void 0:T.loader,(Ce=h==null?void 0:h.classNames)==null?void 0:Ce.loader),visible:je==="loading"})}return F.createElement("li",{tabIndex:0,ref:Fe,className:Qt(D,uo,T==null?void 0:T.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[je],(n=h==null?void 0:h.classNames)==null?void 0:n[je]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:N,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":j,"data-promise":!!h.promise,"data-swiped":re,"data-removed":ee,"data-visible":Ct,"data-y-position":eu,"data-x-position":tu,"data-index":w,"data-front":ft,"data-swiping":ne,"data-dismissible":Xe,"data-type":je,"data-invert":ni,"data-swipe-out":oe,"data-swipe-direction":H,"data-expanded":!!(C||I&&j),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${ee?me:Ot.current}px`,"--initial-height":I?"auto":`${le}px`,...P,...h.style},onDragEnd:()=>{K(!1),z(null),Yn.current=null},onPointerDown:ie=>{po||!Xe||(ze.current=new Date,ce(Ot.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(K(!0),Yn.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,ye,Ce,Kt;if(oe||!Xe)return;Yn.current=null;let Yt=Number(((ie=Fe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Xn=Number(((ye=Fe.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ar=new Date().getTime()-((Ce=ze.current)==null?void 0:Ce.getTime()),Xt=A==="x"?Yt:Xn,qn=Math.abs(Xt)/Ar;if(Math.abs(Xt)>=QB||qn>.11){ce(Ot.current),(Kt=h.onDismiss)==null||Kt.call(h,h),G(A==="x"?Yt>0?"right":"left":Xn>0?"down":"up"),Gt(),q(!0),de(!1);return}K(!1),z(null)},onPointerMove:ie=>{var ye,Ce,Kt,Yt;if(!Yn.current||!Xe||((ye=window.getSelection())==null?void 0:ye.toString().length)>0)return;let Xn=ie.clientY-Yn.current.y,Ar=ie.clientX-Yn.current.x,Xt=(Ce=e.swipeDirections)!=null?Ce:JB(U);!A&&(Math.abs(Ar)>1||Math.abs(Xn)>1)&&z(Math.abs(Ar)>Math.abs(Xn)?"x":"y");let qn={x:0,y:0};A==="y"?(Xt.includes("top")||Xt.includes("bottom"))&&(Xt.includes("top")&&Xn<0||Xt.includes("bottom")&&Xn>0)&&(qn.y=Xn):A==="x"&&(Xt.includes("left")||Xt.includes("right"))&&(Xt.includes("left")&&Ar<0||Xt.includes("right")&&Ar>0)&&(qn.x=Ar),(Math.abs(qn.x)>0||Math.abs(qn.y)>0)&&de(!0),(Kt=Fe.current)==null||Kt.style.setProperty("--swipe-amount-x",`${qn.x}px`),(Yt=Fe.current)==null||Yt.style.setProperty("--swipe-amount-y",`${qn.y}px`)}},Ir&&!h.jsx?F.createElement("button",{"aria-label":J,"data-disabled":po,"data-close-button":!0,onClick:po||!Xe?()=>{}:()=>{var ie;Gt(),(ie=h.onDismiss)==null||ie.call(h,h)},className:Qt(T==null?void 0:T.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(a=W==null?void 0:W.close)!=null?a:LB):null,h.jsx||c.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:F.createElement(F.Fragment,null,je||h.icon||h.promise?F.createElement("div",{"data-icon":"",className:Qt(T==null?void 0:T.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||nu():null,h.type!=="loading"?h.icon||(W==null?void 0:W[je])||_B(je):null):null,F.createElement("div",{"data-content":"",className:Qt(T==null?void 0:T.content,(i=h==null?void 0:h.classNames)==null?void 0:i.content)},F.createElement("div",{"data-title":"",className:Qt(T==null?void 0:T.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?F.createElement("div",{"data-description":"",className:Qt(V,Gn,T==null?void 0:T.description,(d=h==null?void 0:h.classNames)==null?void 0:d.description)},typeof h.description=="function"?h.description():h.description):null),c.isValidElement(h.cancel)?h.cancel:h.cancel&&Mi(h.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||O,onClick:ie=>{var ye,Ce;Mi(h.cancel)&&Xe&&((Ce=(ye=h.cancel).onClick)==null||Ce.call(ye,ie),Gt())},className:Qt(T==null?void 0:T.cancelButton,(p=h==null?void 0:h.classNames)==null?void 0:p.cancelButton)},h.cancel.label):null,c.isValidElement(h.action)?h.action:h.action&&Mi(h.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||k,onClick:ie=>{var ye,Ce;Mi(h.action)&&((Ce=(ye=h.action).onClick)==null||Ce.call(ye,ie),!ie.defaultPrevented&&Gt())},className:Qt(T==null?void 0:T.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function Tg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function t6(e,t){let n={};return[e,t].forEach((r,o)=>{let a=o===1,s=a?"--mobile-offset":"--offset",i=a?YB:KB;function l(d){["top","right","bottom","left"].forEach(p=>{n[`${s}-${p}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=i:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(i)}),n}c.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:i,offset:l,mobileOffset:d,theme:p="light",richColors:f,duration:m,style:h,visibleToasts:x=GB,toastOptions:g,dir:b=Tg(),gap:v=qB,loadingIcon:y,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[E,N]=F.useState([]),R=F.useMemo(()=>Array.from(new Set([r].concat(E.filter(_=>_.position).map(_=>_.position)))),[E,r]),[P,O]=F.useState([]),[k,D]=F.useState(!1),[V,$]=F.useState(!1),[U,B]=F.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=F.useRef(null),I=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=F.useRef(null),W=F.useRef(!1),J=F.useCallback(_=>{N(A=>{var z;return(z=A.find(H=>H.id===_.id))!=null&&z.delete||pt.dismiss(_.id),A.filter(({id:H})=>H!==_.id)})},[]);return F.useEffect(()=>pt.subscribe(_=>{if(_.dismiss){N(A=>A.map(z=>z.id===_.id?{...z,delete:!0}:z));return}setTimeout(()=>{Ep.flushSync(()=>{N(A=>{let z=A.findIndex(H=>H.id===_.id);return z!==-1?[...A.slice(0,z),{...A[z],..._},...A.slice(z+1)]:[_,...A]})})})}),[]),F.useEffect(()=>{if(p!=="system"){B(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:A})=>{B(A?"dark":"light")})}catch{_.addListener(({matches:z})=>{try{B(z?"dark":"light")}catch(H){console.error(H)}})}},[p]),F.useEffect(()=>{E.length<=1&&D(!1)},[E]),F.useEffect(()=>{let _=A=>{var z,H;o.every(G=>A[G]||A.code===G)&&(D(!0),(z=Z.current)==null||z.focus()),A.code==="Escape"&&(document.activeElement===Z.current||(H=Z.current)!=null&&H.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[o]),F.useEffect(()=>{if(Z.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,W.current=!1)}},[Z.current]),F.createElement("section",{ref:t,"aria-label":`${S} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((_,A)=>{var z;let[H,G]=_.split("-");return E.length?F.createElement("ol",{key:_,dir:b==="auto"?Tg():b,tabIndex:-1,ref:Z,className:i,"data-sonner-toaster":!0,"data-theme":U,"data-y-position":H,"data-lifted":k&&E.length>1&&!a,"data-x-position":G,style:{"--front-toast-height":`${((z=P[0])==null?void 0:z.height)||0}px`,"--width":`${XB}px`,"--gap":`${v}px`,...h,...t6(l,d)},onBlur:j=>{W.current&&!j.currentTarget.contains(j.relatedTarget)&&(W.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||W.current||(W.current=!0,T.current=j.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{V||D(!1)},onDragEnd:()=>D(!1),onPointerDown:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},E.filter(j=>!j.position&&A===0||j.position===_).map((j,Y)=>{var ee,te;return F.createElement(e6,{key:j.id,icons:w,index:Y,toast:j,defaultRichColors:f,duration:(ee=g==null?void 0:g.duration)!=null?ee:m,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:x,closeButton:(te=g==null?void 0:g.closeButton)!=null?te:s,interacting:V,position:_,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:J,toasts:E.filter(ne=>ne.position==j.position),heights:P.filter(ne=>ne.position==j.position),setHeights:O,expandByDefault:a,gap:v,loadingIcon:y,expanded:k,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const n6=c.forwardRef(({className:e,...t},n)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:n,className:M("w-full caption-bottom text-sm",e),...t})}));n6.displayName="Table";const r6=c.forwardRef(({className:e,...t},n)=>u.jsx("thead",{ref:n,className:M("[&_tr]:border-b",e),...t}));r6.displayName="TableHeader";const o6=c.forwardRef(({className:e,...t},n)=>u.jsx("tbody",{ref:n,className:M("[&_tr:last-child]:border-0",e),...t}));o6.displayName="TableBody";const a6=c.forwardRef(({className:e,...t},n)=>u.jsx("tfoot",{ref:n,className:M("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));a6.displayName="TableFooter";const s6=c.forwardRef(({className:e,...t},n)=>u.jsx("tr",{ref:n,className:M("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));s6.displayName="TableRow";const i6=c.forwardRef(({className:e,...t},n)=>u.jsx("th",{ref:n,className:M("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));i6.displayName="TableHead";const l6=c.forwardRef(({className:e,...t},n)=>u.jsx("td",{ref:n,className:M("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));l6.displayName="TableCell";const c6=c.forwardRef(({className:e,...t},n)=>u.jsx("caption",{ref:n,className:M("mt-4 text-sm text-muted-foreground",e),...t}));c6.displayName="TableCaption";var Zc="Tabs",[u6]=ke(Zc,[Nn]),gN=Nn(),[d6,th]=u6(Zc),yN=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...d}=e,p=Bn(i),[f,m]=Ye({prop:r,onChange:o,defaultProp:a??"",caller:Zc});return u.jsx(d6,{scope:n,baseId:Ke(),value:f,onValueChange:m,orientation:s,dir:p,activationMode:l,children:u.jsx(Q.div,{dir:p,"data-orientation":s,...d,ref:t})})});yN.displayName=Zc;var xN="TabsList",wN=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=th(xN,n),s=gN(n);return u.jsx(Ys,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:u.jsx(Q.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});wN.displayName=xN;var bN="TabsTrigger",SN=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=th(bN,n),i=gN(n),l=NN(s.baseId,r),d=RN(s.baseId,r),p=r===s.value;return u.jsx(Xs,{asChild:!0,...i,focusable:!o,active:p,children:u.jsx(Q.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":d,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:L(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?s.onValueChange(r):f.preventDefault()}),onKeyDown:L(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(r)}),onFocus:L(e.onFocus,()=>{const f=s.activationMode!=="manual";!p&&!o&&f&&s.onValueChange(r)})})})});SN.displayName=bN;var CN="TabsContent",EN=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=th(CN,n),l=NN(i.baseId,r),d=RN(i.baseId,r),p=r===i.value,f=c.useRef(p);return c.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),u.jsx(_e,{present:o||p,children:({present:m})=>u.jsx(Q.div,{"data-state":p?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&a})})});EN.displayName=CN;function NN(e,t){return`${e}-trigger-${t}`}function RN(e,t){return`${e}-content-${t}`}var f6=yN,PN=wN,TN=SN,kN=EN;const _N=f6,nh=c.forwardRef(({className:e,...t},n)=>u.jsx(PN,{ref:n,className:M("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));nh.displayName=PN.displayName;const ns=c.forwardRef(({className:e,...t},n)=>u.jsx(TN,{ref:n,className:M("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ns.displayName=TN.displayName;const rs=c.forwardRef(({className:e,...t},n)=>u.jsx(kN,{ref:n,className:M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));rs.displayName=kN.displayName;const ot=c.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:M("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));ot.displayName="Textarea";var MN="Toggle",rh=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=Ye({prop:n,onChange:o,defaultProp:r??!1,caller:MN});return u.jsx(Q.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:L(e.onClick,()=>{e.disabled||i(!s)})})});rh.displayName=MN;var jN=rh;const IN=Vn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),p6=c.forwardRef(({className:e,variant:t,size:n,...r},o)=>u.jsx(jN,{ref:o,className:M(IN({variant:t,size:n,className:e})),...r}));p6.displayName=jN.displayName;var jr="ToggleGroup",[AN]=ke(jr,[Nn]),ON=Nn(),oh=F.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.jsx(m6,{...o,ref:t})}if(n==="multiple"){const o=r;return u.jsx(h6,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${jr}\``)});oh.displayName=jr;var[DN,LN]=AN(jr),m6=F.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ye({prop:n,defaultProp:r??"",onChange:o,caller:jr});return u.jsx(DN,{scope:e.__scopeToggleGroup,type:"single",value:F.useMemo(()=>s?[s]:[],[s]),onItemActivate:i,onItemDeactivate:F.useCallback(()=>i(""),[i]),children:u.jsx($N,{...a,ref:t})})}),h6=F.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=Ye({prop:n,defaultProp:r??[],onChange:o,caller:jr}),l=F.useCallback(p=>i((f=[])=>[...f,p]),[i]),d=F.useCallback(p=>i((f=[])=>f.filter(m=>m!==p)),[i]);return u.jsx(DN,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:l,onItemDeactivate:d,children:u.jsx($N,{...a,ref:t})})});oh.displayName=jr;var[v6,g6]=AN(jr),$N=F.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...l}=e,d=ON(n),p=Bn(s),f={role:"group",dir:p,...l};return u.jsx(v6,{scope:n,rovingFocus:o,disabled:r,children:o?u.jsx(Ys,{asChild:!0,...d,orientation:a,dir:p,loop:i,children:u.jsx(Q.div,{...f,ref:t})}):u.jsx(Q.div,{...f,ref:t})})}),zl="ToggleGroupItem",zN=F.forwardRef((e,t)=>{const n=LN(zl,e.__scopeToggleGroup),r=g6(zl,e.__scopeToggleGroup),o=ON(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,i={...e,pressed:a,disabled:s},l=F.useRef(null);return r.rovingFocus?u.jsx(Xs,{asChild:!0,...o,focusable:!s,active:a,ref:l,children:u.jsx(kg,{...i,ref:t})}):u.jsx(kg,{...i,ref:t})});zN.displayName=zl;var kg=F.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=LN(zl,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=a.type==="single"?s:void 0;return u.jsx(rh,{...i,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),FN=oh,HN=zN;const BN=c.createContext({size:"default",variant:"default"}),y6=c.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>u.jsx(FN,{ref:a,className:M("flex items-center justify-center gap-1",e),...o,children:u.jsx(BN.Provider,{value:{variant:t,size:n},children:r})}));y6.displayName=FN.displayName;const x6=c.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const s=c.useContext(BN);return u.jsx(HN,{ref:a,className:M(IN({variant:s.variant||n,size:s.size||r}),e),...o,children:t})});x6.displayName=HN.displayName;var w6="ToastProvider",[VN,b6,S6]=Hn("Toast"),[UN]=ke("Toast",[S6]),[S8,Jc]=UN(w6),WN="ToastViewport",C6=["F8"],Pf="toast.viewportPause",Tf="toast.viewportResume",GN=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=C6,label:o="Notifications ({hotkey})",...a}=e,s=Jc(WN,n),i=b6(n),l=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(null),m=se(t,f,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;c.useEffect(()=>{const b=v=>{var w;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),c.useEffect(()=>{const b=l.current,v=f.current;if(x&&b&&v){const y=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent(Pf);v.dispatchEvent(E),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Tf);v.dispatchEvent(E),s.isClosePausedRef.current=!1}},S=E=>{!b.contains(E.relatedTarget)&&w()},C=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",y),b.addEventListener("focusout",S),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[x,s.isClosePausedRef]);const g=c.useCallback(({tabbingDirection:b})=>{const y=i().map(w=>{const S=w.ref.current,C=[S,...D6(S)];return b==="forwards"?C:C.reverse()});return(b==="forwards"?y.reverse():y).flat()},[i]);return c.useEffect(()=>{const b=f.current;if(b){const v=y=>{var C,E,N;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const R=document.activeElement,P=y.shiftKey;if(y.target===b&&P){(C=d.current)==null||C.focus();return}const D=g({tabbingDirection:P?"backwards":"forwards"}),V=D.findIndex($=>$===R);Ju(D.slice(V+1))?y.preventDefault():P?(E=d.current)==null||E.focus():(N=p.current)==null||N.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[i,g]),u.jsxs($_,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(kf,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Ju(b)}}),u.jsx(VN.Slot,{scope:n,children:u.jsx(Q.ol,{tabIndex:-1,...a,ref:m})}),x&&u.jsx(kf,{ref:p,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Ju(b)}})]})});GN.displayName=WN;var KN="ToastFocusProxy",kf=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Jc(KN,n);return u.jsx(zc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var d;const i=s.relatedTarget;!((d=a.viewport)!=null&&d.contains(i))&&r()}})});kf.displayName=KN;var ei="Toast",E6="toast.swipeStart",N6="toast.swipeMove",R6="toast.swipeCancel",P6="toast.swipeEnd",YN=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[i,l]=Ye({prop:r,defaultProp:o??!0,onChange:a,caller:ei});return u.jsx(_e,{present:n||i,children:u.jsx(_6,{open:i,...s,ref:t,onClose:()=>l(!1),onPause:we(e.onPause),onResume:we(e.onResume),onSwipeStart:L(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:L(e.onSwipeMove,d=>{const{x:p,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:L(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:L(e.onSwipeEnd,d=>{const{x:p,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});YN.displayName=ei;var[T6,k6]=UN(ei,{onClose(){}}),_6=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:i,onPause:l,onResume:d,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:h,...x}=e,g=Jc(ei,n),[b,v]=c.useState(null),y=se(t,$=>v($)),w=c.useRef(null),S=c.useRef(null),C=o||g.duration,E=c.useRef(0),N=c.useRef(C),R=c.useRef(0),{onToastAdd:P,onToastRemove:O}=g,k=we(()=>{var U;(b==null?void 0:b.contains(document.activeElement))&&((U=g.viewport)==null||U.focus()),s()}),D=c.useCallback($=>{!$||$===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(k,$))},[k]);c.useEffect(()=>{const $=g.viewport;if($){const U=()=>{D(N.current),d==null||d()},B=()=>{const Z=new Date().getTime()-E.current;N.current=N.current-Z,window.clearTimeout(R.current),l==null||l()};return $.addEventListener(Pf,B),$.addEventListener(Tf,U),()=>{$.removeEventListener(Pf,B),$.removeEventListener(Tf,U)}}},[g.viewport,C,l,d,D]),c.useEffect(()=>{a&&!g.isClosePausedRef.current&&D(C)},[a,C,g.isClosePausedRef,D]),c.useEffect(()=>(P(),()=>O()),[P,O]);const V=c.useMemo(()=>b?tR(b):null,[b]);return g.viewport?u.jsxs(u.Fragment,{children:[V&&u.jsx(M6,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:V}),u.jsx(T6,{scope:n,onClose:k,children:oo.createPortal(u.jsx(VN.ItemSlot,{scope:n,children:u.jsx(L_,{asChild:!0,onEscapeKeyDown:L(i,()=>{g.isFocusedToastEscapeKeyDownRef.current||k(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Q.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:L(e.onKeyDown,$=>{$.key==="Escape"&&(i==null||i($.nativeEvent),$.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,k()))}),onPointerDown:L(e.onPointerDown,$=>{$.button===0&&(w.current={x:$.clientX,y:$.clientY})}),onPointerMove:L(e.onPointerMove,$=>{if(!w.current)return;const U=$.clientX-w.current.x,B=$.clientY-w.current.y,Z=!!S.current,I=["left","right"].includes(g.swipeDirection),T=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,W=I?T(0,U):0,J=I?0:T(0,B),_=$.pointerType==="touch"?10:2,A={x:W,y:J},z={originalEvent:$,delta:A};Z?(S.current=A,ji(N6,f,z,{discrete:!1})):_g(A,g.swipeDirection,_)?(S.current=A,ji(E6,p,z,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(U)>_||Math.abs(B)>_)&&(w.current=null)}),onPointerUp:L(e.onPointerUp,$=>{const U=S.current,B=$.target;if(B.hasPointerCapture($.pointerId)&&B.releasePointerCapture($.pointerId),S.current=null,w.current=null,U){const Z=$.currentTarget,I={originalEvent:$,delta:U};_g(U,g.swipeDirection,g.swipeThreshold)?ji(P6,h,I,{discrete:!0}):ji(R6,m,I,{discrete:!0}),Z.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),M6=e=>{const{__scopeToast:t,children:n,...r}=e,o=Jc(ei,t),[a,s]=c.useState(!1),[i,l]=c.useState(!1);return A6(()=>s(!0)),c.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),i?null:u.jsx(ca,{asChild:!0,children:u.jsx(zc,{...r,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},j6="ToastTitle",XN=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Q.div,{...r,ref:t})});XN.displayName=j6;var I6="ToastDescription",qN=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Q.div,{...r,ref:t})});qN.displayName=I6;var QN="ToastAction",ZN=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(eR,{altText:n,asChild:!0,children:u.jsx(ah,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${QN}\`. Expected non-empty \`string\`.`),null)});ZN.displayName=QN;var JN="ToastClose",ah=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=k6(JN,n);return u.jsx(eR,{asChild:!0,children:u.jsx(Q.button,{type:"button",...r,ref:t,onClick:L(e.onClick,o.onClose)})})});ah.displayName=JN;var eR=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function tR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),O6(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...tR(r))}}),t}function ji(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bs(o,a):o.dispatchEvent(a)}var _g=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function A6(e=()=>{}){const t=we(e);Te(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function O6(e){return e.nodeType===e.ELEMENT_NODE}function D6(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ju(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var nR=GN,rR=YN,oR=XN,aR=qN,sR=ZN,iR=ah;const L6=c.forwardRef(({className:e,...t},n)=>u.jsx(nR,{ref:n,className:M("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));L6.displayName=nR.displayName;const $6=Vn("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),z6=c.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(rR,{ref:r,className:M($6({variant:t}),e),...n}));z6.displayName=rR.displayName;const F6=c.forwardRef(({className:e,...t},n)=>u.jsx(sR,{ref:n,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));F6.displayName=sR.displayName;const H6=c.forwardRef(({className:e,...t},n)=>u.jsx(iR,{ref:n,className:M("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Ap,{className:"h-4 w-4"})}));H6.displayName=iR.displayName;const B6=c.forwardRef(({className:e,...t},n)=>u.jsx(oR,{ref:n,className:M("text-sm font-semibold",e),...t}));B6.displayName=oR.displayName;const V6=c.forwardRef(({className:e,...t},n)=>u.jsx(aR,{ref:n,className:M("text-sm opacity-90",e),...t}));V6.displayName=aR.displayName;function Ze(e){var t,n;(n=(t=window.__codeexpander)==null?void 0:t.showToast)==null||n.call(t,e)}function lt(e,t){Ze(t?`${e}: ${t}`:e)}const U6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),[o,a]=c.useState({original:0,minified:0,saved:0}),s=()=>{if(!e.trim()){lt("Error","Please enter HTML to minify");return}const d=e.length;let p=e.replace(/<!--[\s\S]*?-->/g,"").replace(/>\s+</g,"><").replace(/^\s+|\s+$/gm,"").replace(/\s{2,}/g," ").replace(/\s*=\s*/g,"=").replace(/=["']([a-zA-Z0-9_-]+)["']/g,"=$1").trim();const f=p.length,m=d-f,h=d>0?(m/d*100).toFixed(1):0;r(p),a({original:d,minified:f,saved:Number(h)}),Ze(`HTML Minified: Reduced size by ${h}% (${m} bytes saved)`)},i=async()=>{var d;if(n)try{typeof((d=window.__codeexpander)==null?void 0:d.writeClipboard)=="function"?window.__codeexpander.writeClipboard(n):await navigator.clipboard.writeText(n),Ze("Minified HTML copied to clipboard")}catch{lt("Error","Failed to copy to clipboard")}},l=()=>{if(!n)return;const d=new Blob([n],{type:"text/html"}),p=URL.createObjectURL(d),f=document.createElement("a");f.href=p,f.download="minified.html",document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(p)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your HTML code here...",value:e,onChange:d=>t(d.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsxs(ge,{onClick:s,disabled:!e.trim(),className:"w-full",children:[u.jsx(S_,{className:"w-4 h-4 mr-2"}),"Minify HTML"]})]}),n&&u.jsxs(u.Fragment,{children:[u.jsxs(ln,{children:[u.jsx(Wp,{className:"pb-4",children:u.jsxs(Gp,{className:"text-lg flex items-center justify-between",children:["Statistics",u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Iv,{variant:"outline",children:[o.original," bytes → ",o.minified," bytes"]}),u.jsxs(Iv,{variant:"secondary",className:"bg-green-100 text-green-800",children:[o.saved,"% smaller"]})]})]})}),u.jsx(cn,{children:u.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold text-slate-600",children:o.original}),u.jsx("div",{className:"text-sm text-slate-500",children:"Original Size"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold text-green-600",children:o.minified}),u.jsx("div",{className:"text-sm text-slate-500",children:"Minified Size"})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"text-2xl font-bold text-blue-600",children:[o.saved,"%"]}),u.jsx("div",{className:"text-sm text-slate-500",children:"Size Reduction"})]})]})})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Minified HTML"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:i,children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:l,children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-48 font-mono text-sm bg-slate-50"})]})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Features:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Removes HTML comments"}),u.jsx("li",{children:"Eliminates unnecessary whitespace"}),u.jsx("li",{children:"Optimizes attribute formatting"}),u.jsx("li",{children:"Preserves functionality while reducing size"})]})]})})})]})},W6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),o=()=>{if(!e.trim()){lt("Error","Please enter HTML to beautify");return}let i=e.replace(/\s+/g," ").replace(/>\s+</g,"><").trim(),l=0;const d=2;let p="",f=!1,m="";const h=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],x=["a","abbr","b","bdi","bdo","br","button","cite","code","dfn","em","i","kbd","mark","q","s","samp","small","span","strong","sub","sup","time","u","var"];for(let b=0;b<i.length;b++){const v=i[b];if(v==="<")m.trim()&&!f&&(p+=m.trim()),m="",f=!0,i[b+1]==="/"&&(l=Math.max(0,l-1)),p+=`
|
|
340
|
+
`+" ".repeat(l*d),p+=v;else if(v===">"){p+=v;const y=m.match(/^\/?\s*([a-zA-Z][a-zA-Z0-9]*)/),w=y?y[1].toLowerCase():"";!m.startsWith("/")&&!m.endsWith("/")&&!h.includes(w)&&(x.includes(w)||l++),f=!1,m=""}else m+=v,p+=v}const g=p.split(`
|
|
341
|
+
`).map(b=>b.trimEnd()).filter((b,v,y)=>{if(b.trim()===""){const w=y[v+1],S=y[v-1];return!(w&&S&&w.trim().startsWith("<")&&S.trim().endsWith(">"))}return!0}).join(`
|
|
342
|
+
`).trim();r(g),Ze("HTML Beautified: Your HTML has been formatted and made readable")},a=async()=>{var i;if(n)try{typeof((i=window.__codeexpander)==null?void 0:i.writeClipboard)=="function"?window.__codeexpander.writeClipboard(n):await navigator.clipboard.writeText(n),Ze("Beautified HTML copied to clipboard")}catch{lt("Error","Failed to copy to clipboard")}},s=()=>{if(!n)return;const i=new Blob([n],{type:"text/html"}),l=URL.createObjectURL(i),d=document.createElement("a");d.href=l,d.download="beautified.html",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(l)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your minified or messy HTML here...",value:e,onChange:i=>t(i.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsxs(ge,{onClick:o,disabled:!e.trim(),className:"w-full",children:[u.jsx(g_,{className:"w-4 h-4 mr-2"}),"Beautify HTML"]})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Beautified HTML"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:a,children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:s,children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-96 font-mono text-sm bg-slate-50"})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Features:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Proper indentation and formatting"}),u.jsx("li",{children:"Line breaks for better readability"}),u.jsx("li",{children:"Preserves HTML structure and content"}),u.jsx("li",{children:"Makes minified code human-readable"})]})]})})})]})},G6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),o=l=>{var m,h;if(l.nodeType===Node.TEXT_NODE)return((m=l.textContent)==null?void 0:m.replace(/\s+/g," "))||"";if(l.nodeType!==Node.ELEMENT_NODE)return"";const d=l,p=d.tagName.toLowerCase(),f=Array.from(d.childNodes).map(o).join("");switch(p){case"h1":return`# ${f}
|
|
343
|
+
|
|
344
|
+
`;case"h2":return`## ${f}
|
|
345
|
+
|
|
346
|
+
`;case"h3":return`### ${f}
|
|
347
|
+
|
|
348
|
+
`;case"h4":return`#### ${f}
|
|
349
|
+
|
|
350
|
+
`;case"h5":return`##### ${f}
|
|
351
|
+
|
|
352
|
+
`;case"h6":return`###### ${f}
|
|
353
|
+
|
|
354
|
+
`;case"p":return`${f}
|
|
355
|
+
|
|
356
|
+
`;case"br":return`
|
|
357
|
+
`;case"strong":case"b":return`**${f}**`;case"em":case"i":return`*${f}*`;case"code":return`\`${f}\``;case"pre":return`\`\`\`
|
|
358
|
+
${f}
|
|
359
|
+
\`\`\`
|
|
360
|
+
|
|
361
|
+
`;case"blockquote":return`> ${f}
|
|
362
|
+
|
|
363
|
+
`;case"a":{const x=d.getAttribute("href")||"#";return`[${f}](${x})`}case"img":{const x=d.getAttribute("src")||"";return``}case"ul":return`${f}
|
|
364
|
+
`;case"ol":return`${f}
|
|
365
|
+
`;case"li":return`${((h=d.parentElement)==null?void 0:h.tagName.toLowerCase())==="ol"?"1.":"-"} ${f}
|
|
366
|
+
`;case"hr":return`---
|
|
367
|
+
|
|
368
|
+
`;case"table":return`${f}
|
|
369
|
+
`;case"thead":case"tbody":return f;case"tr":return`${f}
|
|
370
|
+
`;case"th":case"td":return`| ${f} `;default:return f}},a=()=>{if(!e.trim()){lt("Error","Please enter HTML to convert");return}const l=document.createElement("div");l.innerHTML=e;const d=Array.from(l.childNodes).map(o).join("").replace(/\n{3,}/g,`
|
|
371
|
+
|
|
372
|
+
`).trim();r(d),Ze("Converted to Markdown: HTML has been successfully converted")},s=async()=>{var l;if(n)try{typeof((l=window.__codeexpander)==null?void 0:l.writeClipboard)=="function"?window.__codeexpander.writeClipboard(n):await navigator.clipboard.writeText(n),Ze("Markdown copied to clipboard")}catch{lt("Error","Failed to copy to clipboard")}},i=()=>{if(!n)return;const l=new Blob([n],{type:"text/markdown"}),d=URL.createObjectURL(l),p=document.createElement("a");p.href=d,p.download="converted.md",document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(d)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your HTML code here...",value:e,onChange:l=>t(l.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsxs(ge,{onClick:a,disabled:!e.trim(),className:"w-full",children:[u.jsx(gw,{className:"w-4 h-4 mr-2"}),"Convert to Markdown"]})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Markdown Output"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:s,children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:i,children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download .md"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-96 font-mono text-sm bg-slate-50"})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Supported conversions:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Headers (h1-h6) → # ## ### #### ##### ######"}),u.jsx("li",{children:"Paragraphs, line breaks, and formatting"}),u.jsx("li",{children:"Bold, italic, and code text"}),u.jsx("li",{children:"Links and images"}),u.jsx("li",{children:"Lists (ordered and unordered)"}),u.jsx("li",{children:"Blockquotes and horizontal rules"}),u.jsx("li",{children:"Tables (basic support)"})]})]})})})]})},K6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),o=()=>{if(!e.trim()){lt("Error","Please enter HTML to convert");return}let i=e.replace(new RegExp("<(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)([^>]*?)(?<!\\/)\\s*>","gi"),"<$1$2 />").replace(/class=/g,"className=").replace(/for=/g,"htmlFor=").replace(/contenteditable=/g,"contentEditable=").replace(/tabindex=/g,"tabIndex=").replace(/readonly=/g,"readOnly=").replace(/maxlength=/g,"maxLength=").replace(/minlength=/g,"minLength=").replace(/autocomplete=/g,"autoComplete=").replace(/autofocus=/g,"autoFocus=").replace(/autoplay=/g,"autoPlay=").replace(/crossorigin=/g,"crossOrigin=").replace(/datetime=/g,"dateTime=").replace(/formaction=/g,"formAction=").replace(/formenctype=/g,"formEncType=").replace(/formmethod=/g,"formMethod=").replace(/formnovalidate=/g,"formNoValidate=").replace(/formtarget=/g,"formTarget=").replace(/frameborder=/g,"frameBorder=").replace(/marginheight=/g,"marginHeight=").replace(/marginwidth=/g,"marginWidth=").replace(/novalidate=/g,"noValidate=").replace(/radiogroup=/g,"radioGroup=").replace(/spellcheck=/g,"spellCheck=").replace(/srcdoc=/g,"srcDoc=").replace(/srclang=/g,"srcLang=").replace(/srcset=/g,"srcSet=").replace(/usemap=/g,"useMap=").replace(/data-([a-z]+(?:-[a-z]+)*)/g,(l,d)=>"data-"+d.replace(/-([a-z])/g,(p,f)=>f.toUpperCase())).replace(/aria-([a-z]+(?:-[a-z]+)*)/g,(l,d)=>"aria-"+d.replace(/-([a-z])/g,(p,f)=>f.toUpperCase())).replace(/style="([^"]*)"/g,(l,d)=>d.trim()?`style={{${d.split(";").filter(f=>f.trim()).map(f=>{const[m,h]=f.split(":").map(b=>b.trim());if(!m||!h)return"";const x=m.replace(/-([a-z])/g,(b,v)=>v.toUpperCase()),g=/^\d+$/.test(h)?h:`'${h}'`;return`${x}: ${g}`}).filter(f=>f).join(", ")}}}`:"style={{}}").replace(/on([a-z]+)=/g,(l,d)=>"on"+d.charAt(0).toUpperCase()+d.slice(1)+"=").replace(/\s(checked|selected|disabled|readonly|multiple|autofocus|autoplay|controls|default|defer|hidden|loop|muted|open|required|reversed)\s*=\s*["']?\1["']?/gi," $1").replace(/\s(checked|selected|disabled|readonly|multiple|autofocus|autoplay|controls|default|defer|hidden|loop|muted|open|required|reversed)(?=\s|>)/gi," $1={true}").replace(/<!--(.*?)-->/g,"{/* $1 */}").replace(/ /g,"{'\\u00A0'}").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'");r(i),Ze("Converted to JSX: HTML has been successfully converted")},a=async()=>{var i;if(n)try{typeof((i=window.__codeexpander)==null?void 0:i.writeClipboard)=="function"?window.__codeexpander.writeClipboard(n):await navigator.clipboard.writeText(n),Ze("JSX code copied to clipboard")}catch{lt("Error","Failed to copy to clipboard")}},s=()=>{if(!n)return;const i=new Blob([n],{type:"text/javascript"}),l=URL.createObjectURL(i),d=document.createElement("a");d.href=l,d.download="converted.jsx",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(l)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your HTML code here...",value:e,onChange:i=>t(i.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsxs(ge,{onClick:o,disabled:!e.trim(),className:"w-full",children:[u.jsx(r_,{className:"w-4 h-4 mr-2"}),"Convert to JSX"]})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"JSX Output"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:a,children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:s,children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download .jsx"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-96 font-mono text-sm bg-slate-50"})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Automatic conversions:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"class → className"}),u.jsx("li",{children:"for → htmlFor"}),u.jsx("li",{children:"Self-closing tags (br, img, input, etc.)"}),u.jsx("li",{children:"Style attributes → style objects"}),u.jsx("li",{children:"Event handlers → camelCase"}),u.jsx("li",{children:"HTML comments → JSX comments"}),u.jsx("li",{children:"Boolean attributes"}),u.jsx("li",{children:"Data and aria attributes"})]})]})})})]})},Y6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(!1),o=()=>{if(!e.trim()){lt("Error","Please enter HTML to preview");return}r(!n),n||Ze("Preview Generated: HTML is now being rendered in the preview area")};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your HTML code here...",value:e,onChange:a=>t(a.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsx(ge,{onClick:o,disabled:!e.trim(),className:"w-full",children:n?u.jsxs(u.Fragment,{children:[u.jsx(a_,{className:"w-4 h-4 mr-2"}),"Hide Preview"]}):u.jsxs(u.Fragment,{children:[u.jsx(s_,{className:"w-4 h-4 mr-2"}),"Show Preview"]})})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(x_,{className:"w-4 h-4 text-amber-500"}),u.jsx("span",{className:"text-sm text-amber-600 dark:text-amber-400",children:"Be cautious with untrusted HTML content"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"Live Preview"}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsx("div",{className:"prose prose-sm max-w-none dark:prose-invert",dangerouslySetInnerHTML:{__html:e}})})})]})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"HTML Previewer Features:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Real-time HTML rendering"}),u.jsx("li",{children:"Safe preview environment"}),u.jsx("li",{children:"Support for all HTML elements"}),u.jsx("li",{children:"CSS styling preserved"}),u.jsx("li",{children:"Interactive elements functional"})]}),u.jsx("div",{className:"mt-4 p-3 bg-amber-50 dark:bg-amber-900/20 rounded border border-amber-200 dark:border-amber-800",children:u.jsxs("p",{className:"text-amber-800 dark:text-amber-200",children:[u.jsx("strong",{children:"Security Note:"})," Only preview HTML from trusted sources. This tool renders HTML directly in your browser."]})})]})})})]})},X6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),o=()=>{if(!e.trim()){lt("Error","Please enter HTML to convert");return}const i=document.createElement("div");i.innerHTML=e;let l="";const d=f=>{var m;if(f.nodeType===Node.TEXT_NODE){const h=(m=f.textContent)==null?void 0:m.trim();h&&(l+=h+" ")}else if(f.nodeType===Node.ELEMENT_NODE){const h=f,x=h.tagName.toLowerCase();if(["p","div","br","h1","h2","h3","h4","h5","h6","li"].includes(x))if(x==="br")l+=`
|
|
373
|
+
`;else{Array.from(h.childNodes).forEach(d),l+=`
|
|
374
|
+
`;return}Array.from(h.childNodes).forEach(d)}};Array.from(i.childNodes).forEach(d);const p=l.replace(/\s+/g," ").replace(/\n\s+/g,`
|
|
375
|
+
`).replace(/\n{3,}/g,`
|
|
376
|
+
|
|
377
|
+
`).trim();r(p),Ze("Converted to Plain Text: HTML has been successfully converted")},a=async()=>{var i;if(n)try{typeof((i=window.__codeexpander)==null?void 0:i.writeClipboard)=="function"?window.__codeexpander.writeClipboard(n):await navigator.clipboard.writeText(n),Ze("Plain text copied to clipboard")}catch{lt("Error","Failed to copy to clipboard")}},s=()=>{if(!n)return;const i=new Blob([n],{type:"text/plain"}),l=URL.createObjectURL(i),d=document.createElement("a");d.href=l,d.download="converted.txt",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(l)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"HTML Input"}),u.jsx(ot,{placeholder:"Paste your HTML code here...",value:e,onChange:i=>t(i.target.value),className:"min-h-48 font-mono text-sm"})]}),u.jsxs(ge,{onClick:o,disabled:!e.trim(),className:"w-full",children:[u.jsx(gw,{className:"w-4 h-4 mr-2"}),"Convert to Plain Text"]})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Plain Text Output"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:a,children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:s,children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download .txt"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-96 text-sm bg-slate-50"})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Conversion Features:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Removes all HTML tags and attributes"}),u.jsx("li",{children:"Preserves text content and basic structure"}),u.jsx("li",{children:"Handles line breaks and paragraphs"}),u.jsx("li",{children:"Cleans up extra whitespace"}),u.jsx("li",{children:"Perfect for text extraction and indexing"})]})]})})})]})},q6=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(""),[o,a]=c.useState(""),s={"&":"&","<":"<",">":">",'"':""","'":"'","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©",ª:"ª","«":"«","¬":"¬","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´",µ:"µ","¶":"¶","·":"·","¸":"¸","¹":"¹",º:"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿"," ":" "},i=()=>{if(!e.trim()){lt("Error","Please enter text to encode");return}let f=e;Object.entries(s).forEach(([m,h])=>{f=f.replace(new RegExp(m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),h)}),f=f.replace(/[\u0080-\uFFFF]/g,m=>"&#"+m.charCodeAt(0)+";"),r(f),Ze("HTML Entities Encoded: Text has been encoded with HTML entities")},l=()=>{if(!e.trim()){lt("Error","Please enter HTML entities to decode");return}const f=document.createElement("div");f.innerHTML=e;const m=f.textContent||f.innerText||"";a(m),Ze("HTML Entities Decoded: HTML entities have been decoded to text")},d=async(f,m)=>{var h;if(f)try{typeof((h=window.__codeexpander)==null?void 0:h.writeClipboard)=="function"?window.__codeexpander.writeClipboard(f):await navigator.clipboard.writeText(f),Ze(`${m} copied to clipboard`)}catch{lt("Error","Failed to copy to clipboard")}},p=(f,m)=>{if(!f)return;const h=new Blob([f],{type:"text/plain"}),x=URL.createObjectURL(h),g=document.createElement("a");g.href=x,g.download=m,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(x)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-2",children:"Text Input"}),u.jsx(ot,{placeholder:"Enter text to encode/decode HTML entities...",value:e,onChange:f=>t(f.target.value),className:"min-h-32 text-sm"})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{onClick:i,disabled:!e.trim(),className:"flex-1",children:[u.jsx(v_,{className:"w-4 h-4 mr-2"}),"Encode Entities"]}),u.jsxs(ge,{onClick:l,disabled:!e.trim(),variant:"outline",className:"flex-1",children:[u.jsx(f_,{className:"w-4 h-4 mr-2"}),"Decode Entities"]})]})]}),n&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Encoded Output"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>d(n,"Encoded text"),children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>p(n,"encoded.txt"),children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download"]})]})]}),u.jsx(ot,{value:n,readOnly:!0,className:"min-h-32 font-mono text-sm bg-slate-50"})]}),o&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-sm font-medium",children:"Decoded Output"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>d(o,"Decoded text"),children:[u.jsx(yr,{className:"w-4 h-4 mr-1"}),"Copy"]}),u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>p(o,"decoded.txt"),children:[u.jsx(xr,{className:"w-4 h-4 mr-1"}),"Download"]})]})]}),u.jsx(ot,{value:o,readOnly:!0,className:"min-h-32 text-sm bg-slate-50"})]}),u.jsx(ln,{children:u.jsx(cn,{className:"p-6",children:u.jsxs("div",{className:"text-sm text-slate-600",children:[u.jsx("p",{children:u.jsx("strong",{children:"Common HTML Entities:"})}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 mt-2 text-xs font-mono",children:[u.jsx("div",{children:"& → &"}),u.jsx("div",{children:"< → <"}),u.jsx("div",{children:"> → >"}),u.jsx("div",{children:'" → "'}),u.jsx("div",{children:"' → '"}),u.jsx("div",{children:"© → ©"}),u.jsx("div",{children:"® → ®"}),u.jsx("div",{children:" → "})]}),u.jsx("p",{className:"mt-4",children:u.jsx("strong",{children:"Use cases:"})}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"XSS prevention in web applications"}),u.jsx("li",{children:"Safe rendering of user content"}),u.jsx("li",{children:"Email template preparation"}),u.jsx("li",{children:"XML/HTML content escaping"})]})]})})})]})},Q6=()=>{const[e,t]=c.useState(`<h1>Welcome to HTML WYSIWYG Editor</h1>
|
|
378
|
+
<p>This is a <strong>rich text editor</strong> that generates HTML code instantly.</p>
|
|
379
|
+
<ul>
|
|
380
|
+
<li>Use the formatting toolbar above</li>
|
|
381
|
+
<li>Switch between visual and code editing</li>
|
|
382
|
+
<li>See real-time preview of your content</li>
|
|
383
|
+
</ul>
|
|
384
|
+
<p><em>Start editing to see the magic happen!</em></p>`),n=c.useRef(null);c.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e)},[e]);const r=(f,m)=>{document.execCommand(f,!1,m),o()},o=()=>{n.current&&t(n.current.innerHTML)},a=()=>{const f=prompt("Enter URL:");f&&r("createLink",f)},s=()=>{const f=prompt("Enter image URL:");f&&r("insertImage",f)},i=async()=>{var f;try{typeof((f=window.__codeexpander)==null?void 0:f.writeClipboard)=="function"?window.__codeexpander.writeClipboard(e):await navigator.clipboard.writeText(e),Ze("HTML code copied to clipboard")}catch{lt("Failed to copy","Please try again")}},l=()=>{const f=`<!DOCTYPE html>
|
|
385
|
+
<html lang="en">
|
|
386
|
+
<head>
|
|
387
|
+
<meta charset="UTF-8">
|
|
388
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
389
|
+
<title>WYSIWYG Editor Output</title>
|
|
390
|
+
<style>
|
|
391
|
+
body { font-family: Arial, sans-serif; line-height: 1.6; max-width: 800px; margin: 0 auto; padding: 20px; }
|
|
392
|
+
</style>
|
|
393
|
+
</head>
|
|
394
|
+
<body>
|
|
395
|
+
${e}
|
|
396
|
+
</body>
|
|
397
|
+
</html>`,m=new Blob([f],{type:"text/html"}),h=URL.createObjectURL(m),x=document.createElement("a");x.href=h,x.download="wysiwyg-editor-output.html",document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(h),Ze("Download Started: Complete HTML file downloaded")},d=()=>{confirm("Are you sure you want to clear all content?")&&(t(""),n.current&&(n.current.innerHTML=""))},p=[{command:"bold",icon:t_,title:"Bold (Ctrl+B)"},{command:"italic",icon:l_,title:"Italic (Ctrl+I)"},{command:"underline",icon:w_,title:"Underline (Ctrl+U)"},{command:"justifyLeft",icon:Qk,title:"Align Left"},{command:"justifyCenter",icon:qk,title:"Align Center"},{command:"justifyRight",icon:Zk,title:"Align Right"},{command:"insertUnorderedList",icon:d_,title:"Bullet List"},{command:"insertOrderedList",icon:u_,title:"Numbered List"},{command:"undo",icon:b_,title:"Undo (Ctrl+Z)"},{command:"redo",icon:m_,title:"Redo (Ctrl+Y)"}];return u.jsx("div",{className:"w-full max-w-6xl mx-auto p-6",children:u.jsxs(ln,{children:[u.jsxs(Wp,{children:[u.jsx(Gp,{className:"flex items-center gap-2",children:"HTML WYSIWYG Editor"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Create rich HTML content with visual editing, live preview, and instant code generation"})]}),u.jsxs(cn,{className:"space-y-4",children:[u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsxs(ge,{onClick:i,variant:"outline",size:"sm",children:[u.jsx(yr,{className:"h-4 w-4 mr-2"}),"Copy HTML"]}),u.jsxs(ge,{onClick:l,variant:"outline",size:"sm",children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Download"]}),u.jsxs(ge,{onClick:d,variant:"outline",size:"sm",children:[u.jsx(y_,{className:"h-4 w-4 mr-2"}),"Clear"]})]}),u.jsxs(_N,{defaultValue:"editor",className:"w-full",children:[u.jsxs(nh,{className:"grid w-full grid-cols-3",children:[u.jsx(ns,{value:"editor",children:"Visual Editor"}),u.jsx(ns,{value:"code",children:"HTML Code"}),u.jsx(ns,{value:"preview",children:"Preview"})]}),u.jsxs(rs,{value:"editor",className:"space-y-4",children:[u.jsxs("div",{className:"flex flex-wrap gap-1 p-2 border border-gray-200 rounded-md bg-gray-50",children:[p.map(f=>u.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>r(f.command),title:f.title,className:"h-8 w-8 p-0",children:u.jsx(f.icon,{className:"h-4 w-4"})},f.command)),u.jsx($l,{orientation:"vertical",className:"h-6 mx-1"}),u.jsx(ge,{variant:"ghost",size:"sm",onClick:a,title:"Insert Link",className:"h-8 w-8 p-0",children:u.jsx(c_,{className:"h-4 w-4"})}),u.jsx(ge,{variant:"ghost",size:"sm",onClick:s,title:"Insert Image",className:"h-8 w-8 p-0",children:u.jsx(i_,{className:"h-4 w-4"})}),u.jsx($l,{orientation:"vertical",className:"h-6 mx-1"}),u.jsxs("select",{onChange:f=>r("formatBlock",f.target.value),className:"text-sm border border-gray-300 rounded px-2 py-1",defaultValue:"",children:[u.jsx("option",{value:"",children:"Format"}),u.jsx("option",{value:"h1",children:"Heading 1"}),u.jsx("option",{value:"h2",children:"Heading 2"}),u.jsx("option",{value:"h3",children:"Heading 3"}),u.jsx("option",{value:"p",children:"Paragraph"}),u.jsx("option",{value:"blockquote",children:"Quote"})]})]}),u.jsx("div",{ref:n,contentEditable:!0,className:"min-h-[400px] p-4 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:e},onInput:o,onKeyDown:f=>{if(f.ctrlKey||f.metaKey)switch(f.key.toLowerCase()){case"b":f.preventDefault(),r("bold");break;case"i":f.preventDefault(),r("italic");break;case"u":f.preventDefault(),r("underline");break;case"z":f.shiftKey?(f.preventDefault(),r("redo")):(f.preventDefault(),r("undo"));break;case"y":f.preventDefault(),r("redo");break}},style:{fontFamily:"system-ui, -apple-system, sans-serif",lineHeight:"1.6"}}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Use the toolbar above for formatting, or keyboard shortcuts: Ctrl+B (bold), Ctrl+I (italic), Ctrl+U (underline), Ctrl+Z (undo), Ctrl+Y (redo)"})]}),u.jsxs(rs,{value:"code",className:"space-y-4",children:[u.jsx(ot,{value:e,onChange:f=>t(f.target.value),className:"min-h-[500px] font-mono text-sm",placeholder:"HTML code will appear here..."}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Edit the HTML code directly. Changes will be reflected in the visual editor and preview."})]}),u.jsxs(rs,{value:"preview",className:"space-y-4",children:[u.jsx("div",{className:"min-h-[400px] p-4 border border-gray-300 rounded-md bg-white prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:e},style:{fontFamily:"system-ui, -apple-system, sans-serif",lineHeight:"1.6"}}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"This is how your content will appear when rendered as HTML on a webpage."})]})]})]})]})})},Oa=[{id:"html-minifier",name:"HTML Minifier",component:U6},{id:"html-beautifier",name:"HTML Beautifier",component:W6},{id:"html-to-markdown",name:"HTML to Markdown",component:G6},{id:"html-to-jsx",name:"HTML to JSX",component:K6},{id:"html-previewer",name:"HTML Previewer",component:Y6},{id:"html-to-plain-text",name:"HTML to Plain Text",component:X6},{id:"html-entity-coder",name:"HTML Entity Encoder/Decoder",component:q6},{id:"html-wysiwyg-editor",name:"HTML WYSIWYG Editor",component:Q6}],lR="en",Z6="en";function J6(e){if(e!=null&&e.locale)return e.locale;if(typeof navigator<"u"&&navigator.language){const t=navigator.language.slice(0,2);return t==="zh"?navigator.language.startsWith("zh-CN")?"zh-CN":"zh-TW":t}return lR}function e8(e,t,n=lR){let r;if(typeof e=="object"&&e!==null&&"en"in e&&typeof e.en=="object"){const a=e;r=a[n]??a[Z6]??a.en??{}}else r=e??{};const o=t.split(".").reduce((a,s)=>a==null?void 0:a[s],r);return typeof o=="string"?o:t}const t8={"html-minifier":"HTML Minifier","html-beautifier":"HTML Beautifier","html-to-markdown":"HTML to Markdown","html-to-jsx":"HTML to JSX","html-previewer":"HTML Previewer","html-to-plain-text":"HTML to Plain Text","html-entity-coder":"HTML Entity Encoder/Decoder","html-wysiwyg-editor":"HTML WYSIWYG Editor"},n8={tools:t8},r8={"html-minifier":"HTML 压缩","html-beautifier":"HTML 格式化","html-to-markdown":"HTML 转 Markdown","html-to-jsx":"HTML 转 JSX","html-previewer":"HTML 预览","html-to-plain-text":"HTML 转纯文本","html-entity-coder":"HTML 实体编码/解码","html-wysiwyg-editor":"HTML 所见即所得编辑器"},Mg={tools:r8},o8={en:n8,"zh-CN":Mg,zh:Mg};function a8(e){return J6(e)}function s8(e){return t=>e8(o8,t,e)}const i8=c.createContext(null);function l8({locale:e,t,children:n}){return u.jsx(i8.Provider,{value:{locale:e,t},children:n})}function c8(){const e=window.__codeexpander_initial_payload??{},t=a8(e),n=s8(t),[r,o]=c.useState(()=>{var i;return((i=Oa[0])==null?void 0:i.id)??""}),a=c.useMemo(()=>Oa.find(i=>i.id===r),[r]),s=a==null?void 0:a.component;return u.jsx(l8,{locale:t,t:n,children:u.jsx("div",{className:"p-4 min-h-[400px]",children:Oa.length>1?u.jsxs(_N,{value:r,onValueChange:o,className:"w-full",children:[u.jsx(nh,{className:"mb-4",children:Oa.map(i=>u.jsx(ns,{value:i.id,children:n(`tools.${i.id}`)},i.id))}),Oa.map(i=>u.jsx(rs,{value:i.id,children:r===i.id&&i.component&&u.jsx(i.component,{})},i.id))]}):s&&u.jsx(s,{})})})}const jg=document.getElementById("root");jg&&ed.createRoot(jg).render(u.jsx(F.StrictMode,{children:u.jsx(c8,{})}));
|