@sashabogi/foundation 0.1.8 → 0.1.10
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.
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
function Gv(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 l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{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 l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf={exports:{}},us={},uf={exports:{}},Y={};/**
|
|
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 Ao=Symbol.for("react.element"),Yv=Symbol.for("react.portal"),Kv=Symbol.for("react.fragment"),Xv=Symbol.for("react.strict_mode"),Qv=Symbol.for("react.profiler"),Zv=Symbol.for("react.provider"),qv=Symbol.for("react.context"),Jv=Symbol.for("react.forward_ref"),ey=Symbol.for("react.suspense"),ty=Symbol.for("react.memo"),ny=Symbol.for("react.lazy"),pu=Symbol.iterator;function ry(e){return e===null||typeof e!="object"?null:(e=pu&&e[pu]||e["@@iterator"],typeof e=="function"?e:null)}var df={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff=Object.assign,pf={};function Nr(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||df}Nr.prototype.isReactComponent={};Nr.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")};Nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mf(){}mf.prototype=Nr.prototype;function Wa(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||df}var Ha=Wa.prototype=new mf;Ha.constructor=Wa;ff(Ha,Nr.prototype);Ha.isPureReactComponent=!0;var mu=Array.isArray,hf=Object.prototype.hasOwnProperty,Ua={current:null},gf={key:!0,ref:!0,__self:!0,__source:!0};function vf(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)hf.call(t,r)&&!gf.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Ao,type:e,key:l,ref:s,props:o,_owner:Ua.current}}function oy(e,t){return{$$typeof:Ao,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ga(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ao}function ly(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hu=/\/+/g;function Us(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ly(""+e.key):t.toString(36)}function pl(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ao:case Yv:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Us(s,0):r,mu(o)?(n="",e!=null&&(n=e.replace(hu,"$&/")+"/"),pl(o,t,n,"",function(c){return c})):o!=null&&(Ga(o)&&(o=oy(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(hu,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",mu(e))for(var i=0;i<e.length;i++){l=e[i];var a=r+Us(l,i);s+=pl(l,t,n,a,o)}else if(a=ry(e),typeof a=="function")for(e=a.call(e),i=0;!(l=e.next()).done;)l=l.value,a=r+Us(l,i++),s+=pl(l,t,n,a,o);else if(l==="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 Vo(e,t,n){if(e==null)return e;var r=[],o=0;return pl(e,r,"","",function(l){return t.call(n,l,o++)}),r}function sy(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 Ie={current:null},ml={transition:null},iy={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ml,ReactCurrentOwner:Ua};function yf(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Vo,forEach:function(e,t,n){Vo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vo(e,function(){t++}),t},toArray:function(e){return Vo(e,function(t){return t})||[]},only:function(e){if(!Ga(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Nr;Y.Fragment=Kv;Y.Profiler=Qv;Y.PureComponent=Wa;Y.StrictMode=Xv;Y.Suspense=ey;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iy;Y.act=yf;Y.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=ff({},e.props),o=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Ua.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in t)hf.call(t,a)&&!gf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&i!==void 0?i[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){i=Array(a);for(var c=0;c<a;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:Ao,type:e.type,key:o,ref:l,props:r,_owner:s}};Y.createContext=function(e){return e={$$typeof:qv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zv,_context:e},e.Consumer=e};Y.createElement=vf;Y.createFactory=function(e){var t=vf.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:Jv,render:e}};Y.isValidElement=Ga;Y.lazy=function(e){return{$$typeof:ny,_payload:{_status:-1,_result:e},_init:sy}};Y.memo=function(e,t){return{$$typeof:ty,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=ml.transition;ml.transition={};try{e()}finally{ml.transition=t}};Y.unstable_act=yf;Y.useCallback=function(e,t){return Ie.current.useCallback(e,t)};Y.useContext=function(e){return Ie.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ie.current.useEffect(e,t)};Y.useId=function(){return Ie.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ie.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};Y.useRef=function(e){return Ie.current.useRef(e)};Y.useState=function(e){return Ie.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ie.current.useTransition()};Y.version="18.3.1";uf.exports=Y;var d=uf.exports;const _t=af(d),Ya=Gv({__proto__:null,default:_t},[d]);/**
|
|
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 ay=d,cy=Symbol.for("react.element"),uy=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,fy=ay.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,py={key:!0,ref:!0,__self:!0,__source:!0};function xf(e,t,n){var r,o={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)dy.call(t,r)&&!py.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:cy,type:e,key:l,ref:s,props:o,_owner:fy.current}}us.Fragment=uy;us.jsx=xf;us.jsxs=xf;cf.exports=us;var u=cf.exports,Ti={},wf={exports:{}},Qe={},Sf={exports:{}},Cf={};/**
|
|
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(k,A){var F=k.length;k.push(A);e:for(;0<F;){var X=F-1>>>1,re=k[X];if(0<o(re,A))k[X]=A,k[F]=re,F=X;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var A=k[0],F=k.pop();if(F!==A){k[0]=F;e:for(var X=0,re=k.length,le=re>>>1;X<le;){var te=2*(X+1)-1,Ae=k[te],Se=te+1,O=k[Se];if(0>o(Ae,F))Se<re&&0>o(O,Ae)?(k[X]=O,k[Se]=F,X=Se):(k[X]=Ae,k[te]=F,X=te);else if(Se<re&&0>o(O,F))k[X]=O,k[Se]=F,X=Se;else break e}}return A}function o(k,A){var F=k.sortIndex-A.sortIndex;return F!==0?F:k.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var a=[],c=[],f=1,p=null,m=3,y=!1,w=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=k)r(c),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(c)}}function C(k){if(g=!1,x(k),!w)if(n(a)!==null)w=!0,$(b);else{var A=n(c);A!==null&&W(C,A.startTime-k)}}function b(k,A){w=!1,g&&(g=!1,v(N),N=-1),y=!0;var F=m;try{for(x(A),p=n(a);p!==null&&(!(p.expirationTime>A)||k&&!T());){var X=p.callback;if(typeof X=="function"){p.callback=null,m=p.priorityLevel;var re=X(p.expirationTime<=A);A=e.unstable_now(),typeof re=="function"?p.callback=re:p===n(a)&&r(a),x(A)}else r(a);p=n(a)}if(p!==null)var le=!0;else{var te=n(c);te!==null&&W(C,te.startTime-A),le=!1}return le}finally{p=null,m=F,y=!1}}var P=!1,E=null,N=-1,_=5,R=-1;function T(){return!(e.unstable_now()-R<_)}function z(){if(E!==null){var k=e.unstable_now();R=k;var A=!0;try{A=E(!0,k)}finally{A?B():(P=!1,E=null)}}else P=!1}var B;if(typeof h=="function")B=function(){h(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,G=V.port2;V.port1.onmessage=z,B=function(){G.postMessage(null)}}else B=function(){S(z,0)};function $(k){E=k,P||(P=!0,B())}function W(k,A){N=S(function(){k(e.unstable_now())},A)}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(k){k.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,$(b))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(k){switch(m){case 1:case 2:case 3:var A=3;break;default:A=m}var F=m;m=A;try{return k()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,A){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=m;m=k;try{return A()}finally{m=F}},e.unstable_scheduleCallback=function(k,A,F){var X=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?X+F:X):F=X,k){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=F+re,k={id:f++,callback:A,priorityLevel:k,startTime:F,expirationTime:re,sortIndex:-1},F>X?(k.sortIndex=F,t(c,k),n(a)===null&&k===n(c)&&(g?(v(N),N=-1):g=!0,W(C,F-X))):(k.sortIndex=re,t(a,k),w||y||(w=!0,$(b))),k},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(k){var A=m;return function(){var F=m;m=A;try{return k.apply(this,arguments)}finally{m=F}}}})(Cf);Sf.exports=Cf;var my=Sf.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 hy=d,Xe=my;function j(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 bf=new Set,uo={};function Vn(e,t){hr(e,t),hr(e+"Capture",t)}function hr(e,t){for(uo[e]=t,e=0;e<t.length;e++)bf.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ai=Object.prototype.hasOwnProperty,gy=/^[: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]*$/,gu={},vu={};function vy(e){return Ai.call(vu,e)?!0:Ai.call(gu,e)?!1:gy.test(e)?vu[e]=!0:(gu[e]=!0,!1)}function yy(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 xy(e,t,n,r){if(t===null||typeof t>"u"||yy(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 Le(e,t,n,r,o,l,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=l,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Le(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){Ne[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ka=/[\-:]([a-z])/g;function Xa(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(Ka,Xa);Ne[t]=new Le(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(Ka,Xa);Ne[t]=new Le(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(Ka,Xa);Ne[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qa(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xy(t,n,o,r)&&(n=null),r||o===null?vy(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 Bt=hy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bo=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),Za=Symbol.for("react.strict_mode"),Oi=Symbol.for("react.profiler"),kf=Symbol.for("react.provider"),Ef=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Mi=Symbol.for("react.suspense"),Ii=Symbol.for("react.suspense_list"),Ja=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Nf=Symbol.for("react.offscreen"),yu=Symbol.iterator;function $r(e){return e===null||typeof e!="object"?null:(e=yu&&e[yu]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Object.assign,Gs;function Xr(e){if(Gs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gs=t&&t[1]||""}return`
|
|
34
|
+
`+Gs+e}var Ys=!1;function Ks(e,t){if(!e||Ys)return"";Ys=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),s=o.length-1,i=l.length-1;1<=s&&0<=i&&o[s]!==l[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==l[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==l[i]){var a=`
|
|
37
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{Ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xr(e):""}function wy(e){switch(e.tag){case 5:return Xr(e.type);case 16:return Xr("Lazy");case 13:return Xr("Suspense");case 19:return Xr("SuspenseList");case 0:case 2:case 15:return e=Ks(e.type,!1),e;case 11:return e=Ks(e.type.render,!1),e;case 1:return e=Ks(e.type,!0),e;default:return""}}function Li(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 Qn:return"Fragment";case Xn:return"Portal";case Oi:return"Profiler";case Za:return"StrictMode";case Mi:return"Suspense";case Ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ef:return(e.displayName||"Context")+".Consumer";case kf:return(e._context.displayName||"Context")+".Provider";case qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ja:return t=e.displayName||null,t!==null?t:Li(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return Li(e(t))}catch{}}return null}function Sy(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 Li(t);case 8:return t===Za?"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 an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cy(e){var t=Pf(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.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 Wo(e){e._valueTracker||(e._valueTracker=Cy(e))}function Rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rl(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 Di(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=an(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 jf(e,t){t=t.checked,t!=null&&Qa(e,"checked",t,!1)}function zi(e,t){jf(e,t);var n=an(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")?Fi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fi(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wu(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 Fi(e,t,n){(t!=="number"||Rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function ir(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=""+an(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 $i(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Su(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Qr(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function _f(e,t){var n=an(t.value),r=an(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 Cu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tf(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 Vi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ho,Af=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(Ho=Ho||document.createElement("div"),Ho.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eo={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},by=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(e){by.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eo[t]=eo[e]})});function Of(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eo.hasOwnProperty(e)&&eo[e]?(""+t).trim():t+"px"}function Mf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Of(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ky=fe({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 Bi(e,t){if(t){if(ky[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Wi(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 Hi=null;function ec(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ui=null,ar=null,cr=null;function bu(e){if(e=Io(e)){if(typeof Ui!="function")throw Error(j(280));var t=e.stateNode;t&&(t=hs(t),Ui(e.stateNode,e.type,t))}}function If(e){ar?cr?cr.push(e):cr=[e]:ar=e}function Lf(){if(ar){var e=ar,t=cr;if(cr=ar=null,bu(e),t)for(e=0;e<t.length;e++)bu(t[e])}}function Df(e,t){return e(t)}function zf(){}var Xs=!1;function Ff(e,t,n){if(Xs)return e(t,n);Xs=!0;try{return Df(e,t,n)}finally{Xs=!1,(ar!==null||cr!==null)&&(zf(),Lf())}}function po(e,t){var n=e.stateNode;if(n===null)return null;var r=hs(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(j(231,t,typeof n));return n}var Gi=!1;if(Lt)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Gi=!1}function Ey(e,t,n,r,o,l,s,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var to=!1,jl=null,_l=!1,Yi=null,Ny={onError:function(e){to=!0,jl=e}};function Py(e,t,n,r,o,l,s,i,a){to=!1,jl=null,Ey.apply(Ny,arguments)}function Ry(e,t,n,r,o,l,s,i,a){if(Py.apply(this,arguments),to){if(to){var c=jl;to=!1,jl=null}else throw Error(j(198));_l||(_l=!0,Yi=c)}}function Bn(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 $f(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 ku(e){if(Bn(e)!==e)throw Error(j(188))}function jy(e){var t=e.alternate;if(!t){if(t=Bn(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return ku(o),e;if(l===r)return ku(o),t;l=l.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s){for(i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function Vf(e){return e=jy(e),e!==null?Bf(e):null}function Bf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bf(e);if(t!==null)return t;e=e.sibling}return null}var Wf=Xe.unstable_scheduleCallback,Eu=Xe.unstable_cancelCallback,_y=Xe.unstable_shouldYield,Ty=Xe.unstable_requestPaint,ge=Xe.unstable_now,Ay=Xe.unstable_getCurrentPriorityLevel,tc=Xe.unstable_ImmediatePriority,Hf=Xe.unstable_UserBlockingPriority,Tl=Xe.unstable_NormalPriority,Oy=Xe.unstable_LowPriority,Uf=Xe.unstable_IdlePriority,ds=null,bt=null;function My(e){if(bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(ds,e,void 0,(e.current.flags&128)===128)}catch{}}var ut=Math.clz32?Math.clz32:Dy,Iy=Math.log,Ly=Math.LN2;function Dy(e){return e>>>=0,e===0?32:31-(Iy(e)/Ly|0)|0}var Uo=64,Go=4194304;function Zr(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 Al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=Zr(i):(l&=s,l!==0&&(r=Zr(l)))}else s=n&~o,s!==0?r=Zr(s):l!==0&&(r=Zr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-ut(t),o=1<<n,r|=e[n],t&=~o;return r}function zy(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 Fy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-ut(l),i=1<<s,a=o[s];a===-1?(!(i&n)||i&r)&&(o[s]=zy(i,t)):a<=t&&(e.expiredLanes|=i),l&=~i}}function Ki(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gf(){var e=Uo;return Uo<<=1,!(Uo&4194240)&&(Uo=64),e}function Qs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ut(t),e[t]=n}function $y(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-ut(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function nc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ne=0;function Yf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Kf,rc,Xf,Qf,Zf,Xi=!1,Yo=[],qt=null,Jt=null,en=null,mo=new Map,ho=new Map,Kt=[],Vy="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 Nu(e,t){switch(e){case"focusin":case"focusout":qt=null;break;case"dragenter":case"dragleave":Jt=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":mo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(t.pointerId)}}function Br(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=Io(t),t!==null&&rc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function By(e,t,n,r,o){switch(t){case"focusin":return qt=Br(qt,e,t,n,r,o),!0;case"dragenter":return Jt=Br(Jt,e,t,n,r,o),!0;case"mouseover":return en=Br(en,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return mo.set(l,Br(mo.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ho.set(l,Br(ho.get(l)||null,e,t,n,r,o)),!0}return!1}function qf(e){var t=bn(e.target);if(t!==null){var n=Bn(t);if(n!==null){if(t=n.tag,t===13){if(t=$f(n),t!==null){e.blockedOn=t,Zf(e.priority,function(){Xf(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 hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hi=r,n.target.dispatchEvent(r),Hi=null}else return t=Io(n),t!==null&&rc(t),e.blockedOn=n,!1;t.shift()}return!0}function Pu(e,t,n){hl(e)&&n.delete(t)}function Wy(){Xi=!1,qt!==null&&hl(qt)&&(qt=null),Jt!==null&&hl(Jt)&&(Jt=null),en!==null&&hl(en)&&(en=null),mo.forEach(Pu),ho.forEach(Pu)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Xi||(Xi=!0,Xe.unstable_scheduleCallback(Xe.unstable_NormalPriority,Wy)))}function go(e){function t(o){return Wr(o,e)}if(0<Yo.length){Wr(Yo[0],e);for(var n=1;n<Yo.length;n++){var r=Yo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qt!==null&&Wr(qt,e),Jt!==null&&Wr(Jt,e),en!==null&&Wr(en,e),mo.forEach(t),ho.forEach(t),n=0;n<Kt.length;n++)r=Kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kt.length&&(n=Kt[0],n.blockedOn===null);)qf(n),n.blockedOn===null&&Kt.shift()}var ur=Bt.ReactCurrentBatchConfig,Ol=!0;function Hy(e,t,n,r){var o=ne,l=ur.transition;ur.transition=null;try{ne=1,oc(e,t,n,r)}finally{ne=o,ur.transition=l}}function Uy(e,t,n,r){var o=ne,l=ur.transition;ur.transition=null;try{ne=4,oc(e,t,n,r)}finally{ne=o,ur.transition=l}}function oc(e,t,n,r){if(Ol){var o=Qi(e,t,n,r);if(o===null)si(e,t,r,Ml,n),Nu(e,r);else if(By(o,e,t,n,r))r.stopPropagation();else if(Nu(e,r),t&4&&-1<Vy.indexOf(e)){for(;o!==null;){var l=Io(o);if(l!==null&&Kf(l),l=Qi(e,t,n,r),l===null&&si(e,t,r,Ml,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else si(e,t,r,null,n)}}var Ml=null;function Qi(e,t,n,r){if(Ml=null,e=ec(r),e=bn(e),e!==null)if(t=Bn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$f(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 Ml=e,null}function Jf(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(Ay()){case tc:return 1;case Hf:return 4;case Tl:case Oy:return 16;case Uf:return 536870912;default:return 16}default:return 16}}var Qt=null,lc=null,gl=null;function ep(){if(gl)return gl;var e,t=lc,n=t.length,r,o="value"in Qt?Qt.value:Qt.textContent,l=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[l-r];r++);return gl=o.slice(e,1<r?1-r:void 0)}function vl(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 Ko(){return!0}function Ru(){return!1}function Ze(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ko:Ru,this.isPropagationStopped=Ru,this}return fe(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=Ko)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ko)},persist:function(){},isPersistent:Ko}),t}var Pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sc=Ze(Pr),Mo=fe({},Pr,{view:0,detail:0}),Gy=Ze(Mo),Zs,qs,Hr,fs=fe({},Mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ic,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!==Hr&&(Hr&&e.type==="mousemove"?(Zs=e.screenX-Hr.screenX,qs=e.screenY-Hr.screenY):qs=Zs=0,Hr=e),Zs)},movementY:function(e){return"movementY"in e?e.movementY:qs}}),ju=Ze(fs),Yy=fe({},fs,{dataTransfer:0}),Ky=Ze(Yy),Xy=fe({},Mo,{relatedTarget:0}),Js=Ze(Xy),Qy=fe({},Pr,{animationName:0,elapsedTime:0,pseudoElement:0}),Zy=Ze(Qy),qy=fe({},Pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jy=Ze(qy),ex=fe({},Pr,{data:0}),_u=Ze(ex),tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ox(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rx[e])?!!t[e]:!1}function ic(){return ox}var lx=fe({},Mo,{key:function(e){if(e.key){var t=tx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ic,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sx=Ze(lx),ix=fe({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tu=Ze(ix),ax=fe({},Mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ic}),cx=Ze(ax),ux=fe({},Pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=Ze(ux),fx=fe({},fs,{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}),px=Ze(fx),mx=[9,13,27,32],ac=Lt&&"CompositionEvent"in window,no=null;Lt&&"documentMode"in document&&(no=document.documentMode);var hx=Lt&&"TextEvent"in window&&!no,tp=Lt&&(!ac||no&&8<no&&11>=no),Au=" ",Ou=!1;function np(e,t){switch(e){case"keyup":return mx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function gx(e,t){switch(e){case"compositionend":return rp(t);case"keypress":return t.which!==32?null:(Ou=!0,Au);case"textInput":return e=t.data,e===Au&&Ou?null:e;default:return null}}function vx(e,t){if(Zn)return e==="compositionend"||!ac&&np(e,t)?(e=ep(),gl=lc=Qt=null,Zn=!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 tp&&t.locale!=="ko"?null:t.data;default:return null}}var yx={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 Mu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yx[e.type]:t==="textarea"}function op(e,t,n,r){If(r),t=Il(t,"onChange"),0<t.length&&(n=new sc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ro=null,vo=null;function xx(e){hp(e,0)}function ps(e){var t=er(e);if(Rf(t))return e}function wx(e,t){if(e==="change")return t}var lp=!1;if(Lt){var ei;if(Lt){var ti="oninput"in document;if(!ti){var Iu=document.createElement("div");Iu.setAttribute("oninput","return;"),ti=typeof Iu.oninput=="function"}ei=ti}else ei=!1;lp=ei&&(!document.documentMode||9<document.documentMode)}function Lu(){ro&&(ro.detachEvent("onpropertychange",sp),vo=ro=null)}function sp(e){if(e.propertyName==="value"&&ps(vo)){var t=[];op(t,vo,e,ec(e)),Ff(xx,t)}}function Sx(e,t,n){e==="focusin"?(Lu(),ro=t,vo=n,ro.attachEvent("onpropertychange",sp)):e==="focusout"&&Lu()}function Cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(vo)}function bx(e,t){if(e==="click")return ps(t)}function kx(e,t){if(e==="input"||e==="change")return ps(t)}function Ex(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:Ex;function yo(e,t){if(ft(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(!Ai.call(t,o)||!ft(e[o],t[o]))return!1}return!0}function Du(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zu(e,t){var n=Du(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=Du(n)}}function ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ap(){for(var e=window,t=Rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rl(e.document)}return t}function cc(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 Nx(e){var t=ap(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ip(n.ownerDocument.documentElement,n)){if(r!==null&&cc(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=zu(n,l);var s=zu(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(),l>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 Px=Lt&&"documentMode"in document&&11>=document.documentMode,qn=null,Zi=null,oo=null,qi=!1;function Fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qi||qn==null||qn!==Rl(r)||(r=qn,"selectionStart"in r&&cc(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}),oo&&yo(oo,r)||(oo=r,r=Il(Zi,"onSelect"),0<r.length&&(t=new sc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qn)))}function Xo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jn={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},ni={},cp={};Lt&&(cp=document.createElement("div").style,"AnimationEvent"in window||(delete Jn.animationend.animation,delete Jn.animationiteration.animation,delete Jn.animationstart.animation),"TransitionEvent"in window||delete Jn.transitionend.transition);function ms(e){if(ni[e])return ni[e];if(!Jn[e])return e;var t=Jn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cp)return ni[e]=t[n];return e}var up=ms("animationend"),dp=ms("animationiteration"),fp=ms("animationstart"),pp=ms("transitionend"),mp=new Map,$u="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 mn(e,t){mp.set(e,t),Vn(t,[e])}for(var ri=0;ri<$u.length;ri++){var oi=$u[ri],Rx=oi.toLowerCase(),jx=oi[0].toUpperCase()+oi.slice(1);mn(Rx,"on"+jx)}mn(up,"onAnimationEnd");mn(dp,"onAnimationIteration");mn(fp,"onAnimationStart");mn("dblclick","onDoubleClick");mn("focusin","onFocus");mn("focusout","onBlur");mn(pp,"onTransitionEnd");hr("onMouseEnter",["mouseout","mouseover"]);hr("onMouseLeave",["mouseout","mouseover"]);hr("onPointerEnter",["pointerout","pointerover"]);hr("onPointerLeave",["pointerout","pointerover"]);Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="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(" "),_x=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function Vu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ry(r,t,void 0,e),e.currentTarget=null}function hp(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 l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==l&&o.isPropagationStopped())break e;Vu(o,i,c),l=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,c=i.currentTarget,i=i.listener,a!==l&&o.isPropagationStopped())break e;Vu(o,i,c),l=a}}}if(_l)throw e=Yi,_l=!1,Yi=null,e}function ie(e,t){var n=t[ra];n===void 0&&(n=t[ra]=new Set);var r=e+"__bubble";n.has(r)||(gp(t,e,2,!1),n.add(r))}function li(e,t,n){var r=0;t&&(r|=4),gp(n,e,r,t)}var Qo="_reactListening"+Math.random().toString(36).slice(2);function xo(e){if(!e[Qo]){e[Qo]=!0,bf.forEach(function(n){n!=="selectionchange"&&(_x.has(n)||li(n,!1,e),li(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qo]||(t[Qo]=!0,li("selectionchange",!1,t))}}function gp(e,t,n,r){switch(Jf(t)){case 1:var o=Hy;break;case 4:o=Uy;break;default:o=oc}n=o.bind(null,t,n,e),o=void 0,!Gi||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 si(e,t,n,r,o){var l=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 a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;i!==null;){if(s=bn(i),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}i=i.parentNode}}r=r.return}Ff(function(){var c=l,f=ec(n),p=[];e:{var m=mp.get(e);if(m!==void 0){var y=sc,w=e;switch(e){case"keypress":if(vl(n)===0)break e;case"keydown":case"keyup":y=sx;break;case"focusin":w="focus",y=Js;break;case"focusout":w="blur",y=Js;break;case"beforeblur":case"afterblur":y=Js;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":y=ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Ky;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=cx;break;case up:case dp:case fp:y=Zy;break;case pp:y=dx;break;case"scroll":y=Gy;break;case"wheel":y=px;break;case"copy":case"cut":case"paste":y=Jy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Tu}var g=(t&4)!==0,S=!g&&e==="scroll",v=g?m!==null?m+"Capture":null:m;g=[];for(var h=c,x;h!==null;){x=h;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,v!==null&&(C=po(h,v),C!=null&&g.push(wo(h,C,x)))),S)break;h=h.return}0<g.length&&(m=new y(m,w,null,n,f),p.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Hi&&(w=n.relatedTarget||n.fromElement)&&(bn(w)||w[Dt]))break e;if((y||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=c,w=w?bn(w):null,w!==null&&(S=Bn(w),w!==S||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=c),y!==w)){if(g=ju,C="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(g=Tu,C="onPointerLeave",v="onPointerEnter",h="pointer"),S=y==null?m:er(y),x=w==null?m:er(w),m=new g(C,h+"leave",y,n,f),m.target=S,m.relatedTarget=x,C=null,bn(f)===c&&(g=new g(v,h+"enter",w,n,f),g.target=x,g.relatedTarget=S,C=g),S=C,y&&w)t:{for(g=y,v=w,h=0,x=g;x;x=Hn(x))h++;for(x=0,C=v;C;C=Hn(C))x++;for(;0<h-x;)g=Hn(g),h--;for(;0<x-h;)v=Hn(v),x--;for(;h--;){if(g===v||v!==null&&g===v.alternate)break t;g=Hn(g),v=Hn(v)}g=null}else g=null;y!==null&&Bu(p,m,y,g,!1),w!==null&&S!==null&&Bu(p,S,w,g,!0)}}e:{if(m=c?er(c):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var b=wx;else if(Mu(m))if(lp)b=kx;else{b=Cx;var P=Sx}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(b=bx);if(b&&(b=b(e,c))){op(p,b,n,f);break e}P&&P(e,m,c),e==="focusout"&&(P=m._wrapperState)&&P.controlled&&m.type==="number"&&Fi(m,"number",m.value)}switch(P=c?er(c):window,e){case"focusin":(Mu(P)||P.contentEditable==="true")&&(qn=P,Zi=c,oo=null);break;case"focusout":oo=Zi=qn=null;break;case"mousedown":qi=!0;break;case"contextmenu":case"mouseup":case"dragend":qi=!1,Fu(p,n,f);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":Fu(p,n,f)}var E;if(ac)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Zn?np(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(tp&&n.locale!=="ko"&&(Zn||N!=="onCompositionStart"?N==="onCompositionEnd"&&Zn&&(E=ep()):(Qt=f,lc="value"in Qt?Qt.value:Qt.textContent,Zn=!0)),P=Il(c,N),0<P.length&&(N=new _u(N,e,null,n,f),p.push({event:N,listeners:P}),E?N.data=E:(E=rp(n),E!==null&&(N.data=E)))),(E=hx?gx(e,n):vx(e,n))&&(c=Il(c,"onBeforeInput"),0<c.length&&(f=new _u("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=E))}hp(p,t)})}function wo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Il(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=po(e,n),l!=null&&r.unshift(wo(e,l,o)),l=po(e,t),l!=null&&r.push(wo(e,l,o))),e=e.return}return r}function Hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bu(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,o?(a=po(n,l),a!=null&&s.unshift(wo(n,a,i))):o||(a=po(n,l),a!=null&&s.push(wo(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Tx=/\r\n?/g,Ax=/\u0000|\uFFFD/g;function Wu(e){return(typeof e=="string"?e:""+e).replace(Tx,`
|
|
38
|
+
`).replace(Ax,"")}function Zo(e,t,n){if(t=Wu(t),Wu(e)!==t&&n)throw Error(j(425))}function Ll(){}var Ji=null,ea=null;function ta(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 na=typeof setTimeout=="function"?setTimeout:void 0,Ox=typeof clearTimeout=="function"?clearTimeout:void 0,Hu=typeof Promise=="function"?Promise:void 0,Mx=typeof queueMicrotask=="function"?queueMicrotask:typeof Hu<"u"?function(e){return Hu.resolve(null).then(e).catch(Ix)}:na;function Ix(e){setTimeout(function(){throw e})}function ii(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),go(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);go(t)}function tn(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 Uu(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 Rr=Math.random().toString(36).slice(2),wt="__reactFiber$"+Rr,So="__reactProps$"+Rr,Dt="__reactContainer$"+Rr,ra="__reactEvents$"+Rr,Lx="__reactListeners$"+Rr,Dx="__reactHandles$"+Rr;function bn(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[wt])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function Io(e){return e=e[wt]||e[Dt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function er(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function hs(e){return e[So]||null}var oa=[],tr=-1;function hn(e){return{current:e}}function ae(e){0>tr||(e.current=oa[tr],oa[tr]=null,tr--)}function se(e,t){tr++,oa[tr]=e.current,e.current=t}var cn={},Te=hn(cn),$e=hn(!1),jn=cn;function gr(e,t){var n=e.type.contextTypes;if(!n)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function Dl(){ae($e),ae(Te)}function Gu(e,t,n){if(Te.current!==cn)throw Error(j(168));se(Te,t),se($e,n)}function vp(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(j(108,Sy(e)||"Unknown",o));return fe({},n,r)}function zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,jn=Te.current,se(Te,e),se($e,$e.current),!0}function Yu(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=vp(e,t,jn),r.__reactInternalMemoizedMergedChildContext=e,ae($e),ae(Te),se(Te,e)):ae($e),se($e,n)}var At=null,gs=!1,ai=!1;function yp(e){At===null?At=[e]:At.push(e)}function zx(e){gs=!0,yp(e)}function gn(){if(!ai&&At!==null){ai=!0;var e=0,t=ne;try{var n=At;for(ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}At=null,gs=!1}catch(o){throw At!==null&&(At=At.slice(e+1)),Wf(tc,gn),o}finally{ne=t,ai=!1}}return null}var nr=[],rr=0,Fl=null,$l=0,qe=[],Je=0,_n=null,Ot=1,Mt="";function Sn(e,t){nr[rr++]=$l,nr[rr++]=Fl,Fl=e,$l=t}function xp(e,t,n){qe[Je++]=Ot,qe[Je++]=Mt,qe[Je++]=_n,_n=e;var r=Ot;e=Mt;var o=32-ut(r)-1;r&=~(1<<o),n+=1;var l=32-ut(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ot=1<<32-ut(t)+o|n<<o|r,Mt=l+e}else Ot=1<<l|n<<o|r,Mt=e}function uc(e){e.return!==null&&(Sn(e,1),xp(e,1,0))}function dc(e){for(;e===Fl;)Fl=nr[--rr],nr[rr]=null,$l=nr[--rr],nr[rr]=null;for(;e===_n;)_n=qe[--Je],qe[Je]=null,Mt=qe[--Je],qe[Je]=null,Ot=qe[--Je],qe[Je]=null}var Ye=null,Ge=null,ce=!1,ct=null;function wp(e,t){var n=et(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 Ku(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,Ye=e,Ge=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ge=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:Ot,overflow:Mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=et(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ge=null,!0):!1;default:return!1}}function la(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sa(e){if(ce){var t=Ge;if(t){var n=t;if(!Ku(e,t)){if(la(e))throw Error(j(418));t=tn(n.nextSibling);var r=Ye;t&&Ku(e,t)?wp(r,n):(e.flags=e.flags&-4097|2,ce=!1,Ye=e)}}else{if(la(e))throw Error(j(418));e.flags=e.flags&-4097|2,ce=!1,Ye=e}}}function Xu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function qo(e){if(e!==Ye)return!1;if(!ce)return Xu(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ta(e.type,e.memoizedProps)),t&&(t=Ge)){if(la(e))throw Sp(),Error(j(418));for(;t;)wp(e,t),t=tn(t.nextSibling)}if(Xu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ge=tn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ge=null}}else Ge=Ye?tn(e.stateNode.nextSibling):null;return!0}function Sp(){for(var e=Ge;e;)e=tn(e.nextSibling)}function vr(){Ge=Ye=null,ce=!1}function fc(e){ct===null?ct=[e]:ct.push(e)}var Fx=Bt.ReactCurrentBatchConfig;function Ur(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var i=o.refs;s===null?delete i[l]:i[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Jo(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qu(e){var t=e._init;return t(e._payload)}function Cp(e){function t(v,h){if(e){var x=v.deletions;x===null?(v.deletions=[h],v.flags|=16):x.push(h)}}function n(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function r(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function o(v,h){return v=ln(v,h),v.index=0,v.sibling=null,v}function l(v,h,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<h?(v.flags|=2,h):x):(v.flags|=2,h)):(v.flags|=1048576,h)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function i(v,h,x,C){return h===null||h.tag!==6?(h=hi(x,v.mode,C),h.return=v,h):(h=o(h,x),h.return=v,h)}function a(v,h,x,C){var b=x.type;return b===Qn?f(v,h,x.props.children,C,x.key):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gt&&Qu(b)===h.type)?(C=o(h,x.props),C.ref=Ur(v,h,x),C.return=v,C):(C=kl(x.type,x.key,x.props,null,v.mode,C),C.ref=Ur(v,h,x),C.return=v,C)}function c(v,h,x,C){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=gi(x,v.mode,C),h.return=v,h):(h=o(h,x.children||[]),h.return=v,h)}function f(v,h,x,C,b){return h===null||h.tag!==7?(h=Pn(x,v.mode,C,b),h.return=v,h):(h=o(h,x),h.return=v,h)}function p(v,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=hi(""+h,v.mode,x),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Bo:return x=kl(h.type,h.key,h.props,null,v.mode,x),x.ref=Ur(v,null,h),x.return=v,x;case Xn:return h=gi(h,v.mode,x),h.return=v,h;case Gt:var C=h._init;return p(v,C(h._payload),x)}if(Qr(h)||$r(h))return h=Pn(h,v.mode,x,null),h.return=v,h;Jo(v,h)}return null}function m(v,h,x,C){var b=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:i(v,h,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Bo:return x.key===b?a(v,h,x,C):null;case Xn:return x.key===b?c(v,h,x,C):null;case Gt:return b=x._init,m(v,h,b(x._payload),C)}if(Qr(x)||$r(x))return b!==null?null:f(v,h,x,C,null);Jo(v,x)}return null}function y(v,h,x,C,b){if(typeof C=="string"&&C!==""||typeof C=="number")return v=v.get(x)||null,i(h,v,""+C,b);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Bo:return v=v.get(C.key===null?x:C.key)||null,a(h,v,C,b);case Xn:return v=v.get(C.key===null?x:C.key)||null,c(h,v,C,b);case Gt:var P=C._init;return y(v,h,x,P(C._payload),b)}if(Qr(C)||$r(C))return v=v.get(x)||null,f(h,v,C,b,null);Jo(h,C)}return null}function w(v,h,x,C){for(var b=null,P=null,E=h,N=h=0,_=null;E!==null&&N<x.length;N++){E.index>N?(_=E,E=null):_=E.sibling;var R=m(v,E,x[N],C);if(R===null){E===null&&(E=_);break}e&&E&&R.alternate===null&&t(v,E),h=l(R,h,N),P===null?b=R:P.sibling=R,P=R,E=_}if(N===x.length)return n(v,E),ce&&Sn(v,N),b;if(E===null){for(;N<x.length;N++)E=p(v,x[N],C),E!==null&&(h=l(E,h,N),P===null?b=E:P.sibling=E,P=E);return ce&&Sn(v,N),b}for(E=r(v,E);N<x.length;N++)_=y(E,v,N,x[N],C),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?N:_.key),h=l(_,h,N),P===null?b=_:P.sibling=_,P=_);return e&&E.forEach(function(T){return t(v,T)}),ce&&Sn(v,N),b}function g(v,h,x,C){var b=$r(x);if(typeof b!="function")throw Error(j(150));if(x=b.call(x),x==null)throw Error(j(151));for(var P=b=null,E=h,N=h=0,_=null,R=x.next();E!==null&&!R.done;N++,R=x.next()){E.index>N?(_=E,E=null):_=E.sibling;var T=m(v,E,R.value,C);if(T===null){E===null&&(E=_);break}e&&E&&T.alternate===null&&t(v,E),h=l(T,h,N),P===null?b=T:P.sibling=T,P=T,E=_}if(R.done)return n(v,E),ce&&Sn(v,N),b;if(E===null){for(;!R.done;N++,R=x.next())R=p(v,R.value,C),R!==null&&(h=l(R,h,N),P===null?b=R:P.sibling=R,P=R);return ce&&Sn(v,N),b}for(E=r(v,E);!R.done;N++,R=x.next())R=y(E,v,N,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?N:R.key),h=l(R,h,N),P===null?b=R:P.sibling=R,P=R);return e&&E.forEach(function(z){return t(v,z)}),ce&&Sn(v,N),b}function S(v,h,x,C){if(typeof x=="object"&&x!==null&&x.type===Qn&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Bo:e:{for(var b=x.key,P=h;P!==null;){if(P.key===b){if(b=x.type,b===Qn){if(P.tag===7){n(v,P.sibling),h=o(P,x.props.children),h.return=v,v=h;break e}}else if(P.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gt&&Qu(b)===P.type){n(v,P.sibling),h=o(P,x.props),h.ref=Ur(v,P,x),h.return=v,v=h;break e}n(v,P);break}else t(v,P);P=P.sibling}x.type===Qn?(h=Pn(x.props.children,v.mode,C,x.key),h.return=v,v=h):(C=kl(x.type,x.key,x.props,null,v.mode,C),C.ref=Ur(v,h,x),C.return=v,v=C)}return s(v);case Xn:e:{for(P=x.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){n(v,h.sibling),h=o(h,x.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=gi(x,v.mode,C),h.return=v,v=h}return s(v);case Gt:return P=x._init,S(v,h,P(x._payload),C)}if(Qr(x))return w(v,h,x,C);if($r(x))return g(v,h,x,C);Jo(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,x),h.return=v,v=h):(n(v,h),h=hi(x,v.mode,C),h.return=v,v=h),s(v)):n(v,h)}return S}var yr=Cp(!0),bp=Cp(!1),Vl=hn(null),Bl=null,or=null,pc=null;function mc(){pc=or=Bl=null}function hc(e){var t=Vl.current;ae(Vl),e._currentValue=t}function ia(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 dr(e,t){Bl=e,pc=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(pc!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Bl===null)throw Error(j(308));or=e,Bl.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var kn=null;function gc(e){kn===null?kn=[e]:kn.push(e)}function kp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gc(t)):(n.next=o.next,o.next=n),t.interleaved=n,zt(e,r)}function zt(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 Yt=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ep(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 It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zt(e,n)}return o=r.interleaved,o===null?(t.next=t,gc(r)):(t.next=o.next,o.next=t),r.interleaved=t,zt(e,n)}function yl(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,nc(e,n)}}function Zu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 Wl(e,t,n,r){var o=e.updateQueue;Yt=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var a=i,c=a.next;a.next=null,s===null?l=c:s.next=c,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==s&&(i===null?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=a))}if(l!==null){var p=o.baseState;s=0,f=c=a=null,i=l;do{var m=i.lane,y=i.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,g=i;switch(m=t,y=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){p=w.call(y,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,m=typeof w=="function"?w.call(y,p,m):w,m==null)break e;p=fe({},p,m);break e;case 2:Yt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[i]:m.push(i))}else y={eventTime:y,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(c=f=y,a=p):f=f.next=y,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(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);An|=s,e.lanes=s,e.memoizedState=p}}function qu(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(j(191,o));o.call(r)}}}var Lo={},kt=hn(Lo),Co=hn(Lo),bo=hn(Lo);function En(e){if(e===Lo)throw Error(j(174));return e}function yc(e,t){switch(se(bo,t),se(Co,e),se(kt,Lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vi(t,e)}ae(kt),se(kt,t)}function xr(){ae(kt),ae(Co),ae(bo)}function Np(e){En(bo.current);var t=En(kt.current),n=Vi(t,e.type);t!==n&&(se(Co,e),se(kt,n))}function xc(e){Co.current===e&&(ae(kt),ae(Co))}var ue=hn(0);function Hl(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 ci=[];function wc(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var xl=Bt.ReactCurrentDispatcher,ui=Bt.ReactCurrentBatchConfig,Tn=0,de=null,xe=null,Ce=null,Ul=!1,lo=!1,ko=0,$x=0;function Re(){throw Error(j(321))}function Sc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return!1;return!0}function Cc(e,t,n,r,o,l){if(Tn=l,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xl.current=e===null||e.memoizedState===null?Hx:Ux,e=n(r,o),lo){l=0;do{if(lo=!1,ko=0,25<=l)throw Error(j(301));l+=1,Ce=xe=null,t.updateQueue=null,xl.current=Gx,e=n(r,o)}while(lo)}if(xl.current=Gl,t=xe!==null&&xe.next!==null,Tn=0,Ce=xe=de=null,Ul=!1,t)throw Error(j(300));return e}function bc(){var e=ko!==0;return ko=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ce===null?de.memoizedState=Ce=e:Ce=Ce.next=e,Ce}function rt(){if(xe===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Ce===null?de.memoizedState:Ce.next;if(t!==null)Ce=t,xe=e;else{if(e===null)throw Error(j(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Ce===null?de.memoizedState=Ce=e:Ce=Ce.next=e}return Ce}function Eo(e,t){return typeof t=="function"?t(e):t}function di(e){var t=rt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=xe,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var i=s=null,a=null,c=l;do{var f=c.lane;if((Tn&f)===f)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=p,s=r):a=a.next=p,de.lanes|=f,An|=f}c=c.next}while(c!==null&&c!==l);a===null?s=r:a.next=i,ft(r,t.memoizedState)||(Fe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,de.lanes|=l,An|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fi(e){var t=rt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);ft(l,t.memoizedState)||(Fe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Pp(){}function Rp(e,t){var n=de,r=rt(),o=t(),l=!ft(r.memoizedState,o);if(l&&(r.memoizedState=o,Fe=!0),r=r.queue,kc(Tp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Ce!==null&&Ce.memoizedState.tag&1){if(n.flags|=2048,No(9,_p.bind(null,n,r,o,t),void 0,null),be===null)throw Error(j(349));Tn&30||jp(n,t,o)}return o}function jp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _p(e,t,n,r){t.value=n,t.getSnapshot=r,Ap(t)&&Op(e)}function Tp(e,t,n){return n(function(){Ap(t)&&Op(e)})}function Ap(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch{return!0}}function Op(e){var t=zt(e,1);t!==null&&dt(t,e,1,-1)}function Ju(e){var t=xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t.queue=e,e=e.dispatch=Wx.bind(null,de,e),[t.memoizedState,e]}function No(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.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 Mp(){return rt().memoizedState}function wl(e,t,n,r){var o=xt();de.flags|=e,o.memoizedState=No(1|t,n,void 0,r===void 0?null:r)}function vs(e,t,n,r){var o=rt();r=r===void 0?null:r;var l=void 0;if(xe!==null){var s=xe.memoizedState;if(l=s.destroy,r!==null&&Sc(r,s.deps)){o.memoizedState=No(t,n,l,r);return}}de.flags|=e,o.memoizedState=No(1|t,n,l,r)}function ed(e,t){return wl(8390656,8,e,t)}function kc(e,t){return vs(2048,8,e,t)}function Ip(e,t){return vs(4,2,e,t)}function Lp(e,t){return vs(4,4,e,t)}function Dp(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 zp(e,t,n){return n=n!=null?n.concat([e]):null,vs(4,4,Dp.bind(null,t,e),n)}function Ec(){}function Fp(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $p(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vp(e,t,n){return Tn&21?(ft(n,t)||(n=Gf(),de.lanes|=n,An|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fe=!0),e.memoizedState=n)}function Vx(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{ne=n,ui.transition=r}}function Bp(){return rt().memoizedState}function Bx(e,t,n){var r=on(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wp(e))Hp(t,n);else if(n=kp(e,t,n,r),n!==null){var o=Me();dt(n,e,r,o),Up(n,t,r)}}function Wx(e,t,n){var r=on(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wp(e))Hp(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,i=l(s,n);if(o.hasEagerState=!0,o.eagerState=i,ft(i,s)){var a=t.interleaved;a===null?(o.next=o,gc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=kp(e,t,o,r),n!==null&&(o=Me(),dt(n,e,r,o),Up(n,t,r))}}function Wp(e){var t=e.alternate;return e===de||t!==null&&t===de}function Hp(e,t){lo=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Up(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nc(e,n)}}var Gl={readContext:nt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Hx={readContext:nt,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wl(4194308,4,Dp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();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=Bx.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:Ju,useDebugValue:Ec,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=Ju(!1),t=e[0];return e=Vx.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=xt();if(ce){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),be===null)throw Error(j(349));Tn&30||jp(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,ed(Tp.bind(null,r,l,e),[e]),r.flags|=2048,No(9,_p.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=xt(),t=be.identifierPrefix;if(ce){var n=Mt,r=Ot;n=(r&~(1<<32-ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$x++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ux={readContext:nt,useCallback:Fp,useContext:nt,useEffect:kc,useImperativeHandle:zp,useInsertionEffect:Ip,useLayoutEffect:Lp,useMemo:$p,useReducer:di,useRef:Mp,useState:function(){return di(Eo)},useDebugValue:Ec,useDeferredValue:function(e){var t=rt();return Vp(t,xe.memoizedState,e)},useTransition:function(){var e=di(Eo)[0],t=rt().memoizedState;return[e,t]},useMutableSource:Pp,useSyncExternalStore:Rp,useId:Bp,unstable_isNewReconciler:!1},Gx={readContext:nt,useCallback:Fp,useContext:nt,useEffect:kc,useImperativeHandle:zp,useInsertionEffect:Ip,useLayoutEffect:Lp,useMemo:$p,useReducer:fi,useRef:Mp,useState:function(){return fi(Eo)},useDebugValue:Ec,useDeferredValue:function(e){var t=rt();return xe===null?t.memoizedState=e:Vp(t,xe.memoizedState,e)},useTransition:function(){var e=fi(Eo)[0],t=rt().memoizedState;return[e,t]},useMutableSource:Pp,useSyncExternalStore:Rp,useId:Bp,unstable_isNewReconciler:!1};function it(e,t){if(e&&e.defaultProps){t=fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function aa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return(e=e._reactInternals)?Bn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),o=on(e),l=It(r,o);l.payload=t,n!=null&&(l.callback=n),t=nn(e,l,o),t!==null&&(dt(t,e,o,r),yl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),o=on(e),l=It(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=nn(e,l,o),t!==null&&(dt(t,e,o,r),yl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=on(e),o=It(n,r);o.tag=2,t!=null&&(o.callback=t),t=nn(e,o,r),t!==null&&(dt(t,e,r,n),yl(t,e,r))}};function td(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!yo(n,r)||!yo(o,l):!0}function Gp(e,t,n){var r=!1,o=cn,l=t.contextType;return typeof l=="object"&&l!==null?l=nt(l):(o=Ve(t)?jn:Te.current,r=t.contextTypes,l=(r=r!=null)?gr(e,o):cn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function nd(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&&ys.enqueueReplaceState(t,t.state,null)}function ca(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},vc(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=nt(l):(l=Ve(t)?jn:Te.current,o.context=gr(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(aa(e,t,l,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&&ys.enqueueReplaceState(o,o.state,null),Wl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function wr(e,t){try{var n="",r=t;do n+=wy(r),r=r.return;while(r);var o=n}catch(l){o=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function pi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ua(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Yx=typeof WeakMap=="function"?WeakMap:Map;function Yp(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,wa=r),ua(e,t)},n}function Kp(e,t,n){n=It(-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(){ua(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ua(e,t),typeof r!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yx;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=iw.bind(null,e,t,n),t.then(e,e))}function od(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 ld(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=It(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e)}var Kx=Bt.ReactCurrentOwner,Fe=!1;function Oe(e,t,n,r){t.child=e===null?bp(t,null,n,r):yr(t,e.child,n,r)}function sd(e,t,n,r,o){n=n.render;var l=t.ref;return dr(t,o),r=Cc(e,t,n,r,l,o),n=bc(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(ce&&n&&uc(t),t.flags|=1,Oe(e,t,r,o),t.child)}function id(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Oc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Xp(e,t,l,r,o)):(e=kl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:yo,n(s,r)&&e.ref===t.ref)return Ft(e,t,o)}return t.flags|=1,e=ln(l,r),e.ref=t.ref,e.return=t,t.child=e}function Xp(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(yo(l,r)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Fe=!0);else return t.lanes=e.lanes,Ft(e,t,o)}return da(e,t,n,r,o)}function Qp(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},se(sr,He),He|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,se(sr,He),He|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,se(sr,He),He|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,se(sr,He),He|=r;return Oe(e,t,o,n),t.child}function Zp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function da(e,t,n,r,o){var l=Ve(n)?jn:Te.current;return l=gr(t,l),dr(t,o),n=Cc(e,t,n,r,l,o),r=bc(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(ce&&r&&uc(t),t.flags|=1,Oe(e,t,n,o),t.child)}function ad(e,t,n,r,o){if(Ve(n)){var l=!0;zl(t)}else l=!1;if(dr(t,o),t.stateNode===null)Sl(e,t),Gp(t,n,r),ca(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=nt(c):(c=Ve(n)?jn:Te.current,c=gr(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==c)&&nd(t,s,r,c),Yt=!1;var m=t.memoizedState;s.state=m,Wl(t,r,s,o),a=t.memoizedState,i!==r||m!==a||$e.current||Yt?(typeof f=="function"&&(aa(t,n,f,r),a=t.memoizedState),(i=Yt||td(t,n,i,r,m,a,c))?(p||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=a),s.props=r,s.state=a,s.context=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ep(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:it(t.type,i),s.props=c,p=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=nt(a):(a=Ve(n)?jn:Te.current,a=gr(t,a));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||m!==a)&&nd(t,s,r,a),Yt=!1,m=t.memoizedState,s.state=m,Wl(t,r,s,o);var w=t.memoizedState;i!==p||m!==w||$e.current||Yt?(typeof y=="function"&&(aa(t,n,y,r),w=t.memoizedState),(c=Yt||td(t,n,c,r,m,w,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),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=w),s.props=r,s.state=w,s.context=a,r=c):(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 fa(e,t,n,r,l,o)}function fa(e,t,n,r,o,l){Zp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Yu(t,n,!1),Ft(e,t,l);r=t.stateNode,Kx.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=yr(t,e.child,null,l),t.child=yr(t,null,i,l)):Oe(e,t,i,l),t.memoizedState=r.state,o&&Yu(t,n,!0),t.child}function qp(e){var t=e.stateNode;t.pendingContext?Gu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gu(e,t.context,!1),yc(e,t.containerInfo)}function cd(e,t,n,r,o){return vr(),fc(o),t.flags|=256,Oe(e,t,n,r),t.child}var pa={dehydrated:null,treeContext:null,retryLane:0};function ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jp(e,t,n){var r=t.pendingProps,o=ue.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),se(ue,o&1),e===null)return sa(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,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Ss(s,r,0,null),e=Pn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ma(n),t.memoizedState=pa,e):Nc(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Xx(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=ln(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=ln(i,l):(l=Pn(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?ma(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=pa,r}return l=e.child,e=l.sibling,r=ln(l,{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 Nc(e,t){return t=Ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function el(e,t,n,r){return r!==null&&fc(r),yr(t,e.child,null,n),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xx(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=pi(Error(j(422))),el(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Ss({mode:"visible",children:r.children},o,0,null),l=Pn(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&yr(t,e.child,null,s),t.child.memoizedState=ma(s),t.memoizedState=pa,l);if(!(t.mode&1))return el(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(j(419)),r=pi(l,r,void 0),el(e,t,s,r)}if(i=(s&e.childLanes)!==0,Fe||i){if(r=be,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!==l.retryLane&&(l.retryLane=o,zt(e,o),dt(r,e,o,-1))}return Ac(),r=pi(Error(j(421))),el(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=aw.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Ge=tn(o.nextSibling),Ye=t,ce=!0,ct=null,e!==null&&(qe[Je++]=Ot,qe[Je++]=Mt,qe[Je++]=_n,Ot=e.id,Mt=e.overflow,_n=t),t=Nc(t,r.children),t.flags|=4096,t)}function ud(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ia(e.return,t,n)}function mi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function em(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Oe(e,t,r.children,n),r=ue.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&&ud(e,n,t);else if(e.tag===19)ud(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(se(ue,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&&Hl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),mi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Hl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}mi(t,!0,n,null,l);break;case"together":mi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=ln(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ln(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qx(e,t,n){switch(t.tag){case 3:qp(t),vr();break;case 5:Np(t);break;case 1:Ve(t.type)&&zl(t);break;case 4:yc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;se(Vl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(ue,ue.current&1),t.flags|=128,null):n&t.child.childLanes?Jp(e,t,n):(se(ue,ue.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);se(ue,ue.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return em(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),se(ue,ue.current),r)break;return null;case 22:case 23:return t.lanes=0,Qp(e,t,n)}return Ft(e,t,n)}var tm,ha,nm,rm;tm=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}};ha=function(){};nm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,En(kt.current);var l=null;switch(n){case"input":o=Di(e,o),r=Di(e,r),l=[];break;case"select":o=fe({},o,{value:void 0}),r=fe({},r,{value:void 0}),l=[];break;case"textarea":o=$i(e,o),r=$i(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ll)}Bi(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var i=o[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(uo.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var a=r[c];if(i=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(uo.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&ie("scroll",e),l||i===a||(l=[])):(l=l||[]).push(c,a))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};rm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gr(e,t){if(!ce)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 je(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 Zx(e,t,n){var r=t.pendingProps;switch(dc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Ve(t.type)&&Dl(),je(t),null;case 3:return r=t.stateNode,xr(),ae($e),ae(Te),wc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ct!==null&&(ba(ct),ct=null))),ha(e,t),je(t),null;case 5:xc(t);var o=En(bo.current);if(n=t.type,e!==null&&t.stateNode!=null)nm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return je(t),null}if(e=En(kt.current),qo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[wt]=t,r[So]=l,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(o=0;o<qr.length;o++)ie(qr[o],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":xu(r,l),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ie("invalid",r);break;case"textarea":Su(r,l),ie("invalid",r)}Bi(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&Zo(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&Zo(r.textContent,i,e),o=["children",""+i]):uo.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ie("scroll",r)}switch(n){case"input":Wo(r),wu(r,l,!0);break;case"textarea":Wo(r),Cu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Ll)}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=Tf(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[wt]=t,e[So]=r,tm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Wi(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;o<qr.length;o++)ie(qr[o],e);o=r;break;case"source":ie("error",e),o=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),o=r;break;case"details":ie("toggle",e),o=r;break;case"input":xu(e,r),o=Di(e,r),ie("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=fe({},r,{value:void 0}),ie("invalid",e);break;case"textarea":Su(e,r),o=$i(e,r),ie("invalid",e);break;default:o=r}Bi(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?Mf(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Af(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&fo(e,a):typeof a=="number"&&fo(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(uo.hasOwnProperty(l)?a!=null&&l==="onScroll"&&ie("scroll",e):a!=null&&Qa(e,l,a,s))}switch(n){case"input":Wo(e),wu(e,r,!1);break;case"textarea":Wo(e),Cu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+an(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?ir(e,!!r.multiple,l,!1):r.defaultValue!=null&&ir(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ll)}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 je(t),null;case 6:if(e&&t.stateNode!=null)rm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=En(bo.current),En(kt.current),qo(t)){if(r=t.stateNode,n=t.memoizedProps,r[wt]=t,(l=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Zo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wt]=t,t.stateNode=r}return je(t),null;case 13:if(ae(ue),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Ge!==null&&t.mode&1&&!(t.flags&128))Sp(),vr(),t.flags|=98560,l=!1;else if(l=qo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(j(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(j(317));l[wt]=t}else vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),l=!1}else ct!==null&&(ba(ct),ct=null),l=!0;if(!l)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||ue.current&1?we===0&&(we=3):Ac())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return xr(),ha(e,t),e===null&&xo(t.stateNode.containerInfo),je(t),null;case 10:return hc(t.type._context),je(t),null;case 17:return Ve(t.type)&&Dl(),je(t),null;case 19:if(ae(ue),l=t.memoizedState,l===null)return je(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Gr(l,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Hl(e),s!==null){for(t.flags|=128,Gr(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(ue,ue.current&1|2),t.child}e=e.sibling}l.tail!==null&&ge()>Sr&&(t.flags|=128,r=!0,Gr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Hl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ce)return je(t),null}else 2*ge()-l.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Gr(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ge(),t.sibling=null,n=ue.current,se(ue,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function qx(e,t){switch(dc(t),t.tag){case 1:return Ve(t.type)&&Dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xr(),ae($e),ae(Te),wc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xc(t),null;case 13:if(ae(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ue),null;case 4:return xr(),null;case 10:return hc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var tl=!1,_e=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,M=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function ga(e,t,n){try{n()}catch(r){me(e,t,r)}}var dd=!1;function ew(e,t){if(Ji=Ol,e=ap(),cc(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,c=0,f=0,p=e,m=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(i=s+o),p!==l||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++c===o&&(i=s),m===l&&++f===r&&(a=s),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ea={focusedElem:e,selectionRange:n},Ol=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,S=w.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:it(t.type,g),S);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(C){me(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=dd,dd=!1,w}function so(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 l=o.destroy;o.destroy=void 0,l!==void 0&&ga(t,n,l)}o=o.next}while(o!==r)}}function xs(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 va(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 om(e){var t=e.alternate;t!==null&&(e.alternate=null,om(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[So],delete t[ra],delete t[Lx],delete t[Dx])),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 lm(e){return e.tag===5||e.tag===3||e.tag===4}function fd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lm(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 ya(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=Ll));else if(r!==4&&(e=e.child,e!==null))for(ya(e,t,n),e=e.sibling;e!==null;)ya(e,t,n),e=e.sibling}function xa(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(xa(e,t,n),e=e.sibling;e!==null;)xa(e,t,n),e=e.sibling}var ke=null,at=!1;function Wt(e,t,n){for(n=n.child;n!==null;)sm(e,t,n),n=n.sibling}function sm(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:_e||lr(n,t);case 6:var r=ke,o=at;ke=null,Wt(e,t,n),ke=r,at=o,ke!==null&&(at?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(at?(e=ke,n=n.stateNode,e.nodeType===8?ii(e.parentNode,n):e.nodeType===1&&ii(e,n),go(e)):ii(ke,n.stateNode));break;case 4:r=ke,o=at,ke=n.stateNode.containerInfo,at=!0,Wt(e,t,n),ke=r,at=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&ga(n,t,s),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!_e&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){me(n,t,i)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,Wt(e,t,n),_e=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jx),t.forEach(function(r){var o=cw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:ke=i.stateNode,at=!1;break e;case 3:ke=i.stateNode.containerInfo,at=!0;break e;case 4:ke=i.stateNode.containerInfo,at=!0;break e}i=i.return}if(ke===null)throw Error(j(160));sm(l,s,o),ke=null,at=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){me(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)im(t,e),t=t.sibling}function im(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lt(t,e),yt(e),r&4){try{so(3,e,e.return),xs(3,e)}catch(g){me(e,e.return,g)}try{so(5,e,e.return)}catch(g){me(e,e.return,g)}}break;case 1:lt(t,e),yt(e),r&512&&n!==null&&lr(n,n.return);break;case 5:if(lt(t,e),yt(e),r&512&&n!==null&&lr(n,n.return),e.flags&32){var o=e.stateNode;try{fo(o,"")}catch(g){me(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&jf(o,l),Wi(i,s);var c=Wi(i,l);for(s=0;s<a.length;s+=2){var f=a[s],p=a[s+1];f==="style"?Mf(o,p):f==="dangerouslySetInnerHTML"?Af(o,p):f==="children"?fo(o,p):Qa(o,f,p,c)}switch(i){case"input":zi(o,l);break;case"textarea":_f(o,l);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?ir(o,!!l.multiple,y,!1):m!==!!l.multiple&&(l.defaultValue!=null?ir(o,!!l.multiple,l.defaultValue,!0):ir(o,!!l.multiple,l.multiple?[]:"",!1))}o[So]=l}catch(g){me(e,e.return,g)}}break;case 6:if(lt(t,e),yt(e),r&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(g){me(e,e.return,g)}}break;case 3:if(lt(t,e),yt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{go(t.containerInfo)}catch(g){me(e,e.return,g)}break;case 4:lt(t,e),yt(e);break;case 13:lt(t,e),yt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(jc=ge())),r&4&&pd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(_e=(c=_e)||f,lt(t,e),_e=c):lt(t,e),yt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(p=M=f;M!==null;){switch(m=M,y=m.child,m.tag){case 0:case 11:case 14:case 15:so(4,m,m.return);break;case 1:lr(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){me(r,n,g)}}break;case 5:lr(m,m.return);break;case 22:if(m.memoizedState!==null){hd(p);continue}}y!==null?(y.return=m,M=y):hd(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,c?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=p.stateNode,a=p.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Of("display",s))}catch(g){me(e,e.return,g)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(g){me(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:lt(t,e),yt(e),r&4&&pd(e);break;case 21:break;default:lt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(lm(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(fo(o,""),r.flags&=-33);var l=fd(e);xa(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=fd(e);ya(e,i,s);break;default:throw Error(j(161))}}catch(a){me(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tw(e,t,n){M=e,am(e)}function am(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var o=M,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||tl;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||_e;i=tl;var c=_e;if(tl=s,(_e=a)&&!c)for(M=o;M!==null;)s=M,a=s.child,s.tag===22&&s.memoizedState!==null?gd(o):a!==null?(a.return=s,M=a):gd(o);for(;l!==null;)M=l,am(l),l=l.sibling;M=o,tl=i,_e=c}md(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,M=l):md(e)}}function md(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_e||xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_e)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:it(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&qu(t,l,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}qu(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&go(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}_e||t.flags&512&&va(t)}catch(m){me(t,t.return,m)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function hd(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function gd(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xs(4,t)}catch(a){me(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){me(t,o,a)}}var l=t.return;try{va(t)}catch(a){me(t,l,a)}break;case 5:var s=t.return;try{va(t)}catch(a){me(t,s,a)}}}catch(a){me(t,t.return,a)}if(t===e){M=null;break}var i=t.sibling;if(i!==null){i.return=t.return,M=i;break}M=t.return}}var nw=Math.ceil,Yl=Bt.ReactCurrentDispatcher,Pc=Bt.ReactCurrentOwner,tt=Bt.ReactCurrentBatchConfig,Z=0,be=null,ve=null,Ee=0,He=0,sr=hn(0),we=0,Po=null,An=0,ws=0,Rc=0,io=null,De=null,jc=0,Sr=1/0,Tt=null,Kl=!1,wa=null,rn=null,nl=!1,Zt=null,Xl=0,ao=0,Sa=null,Cl=-1,bl=0;function Me(){return Z&6?ge():Cl!==-1?Cl:Cl=ge()}function on(e){return e.mode&1?Z&2&&Ee!==0?Ee&-Ee:Fx.transition!==null?(bl===0&&(bl=Gf()),bl):(e=ne,e!==0||(e=window.event,e=e===void 0?16:Jf(e.type)),e):1}function dt(e,t,n,r){if(50<ao)throw ao=0,Sa=null,Error(j(185));Oo(e,n,r),(!(Z&2)||e!==be)&&(e===be&&(!(Z&2)&&(ws|=n),we===4&&Xt(e,Ee)),Be(e,r),n===1&&Z===0&&!(t.mode&1)&&(Sr=ge()+500,gs&&gn()))}function Be(e,t){var n=e.callbackNode;Fy(e,t);var r=Al(e,e===be?Ee:0);if(r===0)n!==null&&Eu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Eu(n),t===1)e.tag===0?zx(vd.bind(null,e)):yp(vd.bind(null,e)),Mx(function(){!(Z&6)&&gn()}),n=null;else{switch(Yf(r)){case 1:n=tc;break;case 4:n=Hf;break;case 16:n=Tl;break;case 536870912:n=Uf;break;default:n=Tl}n=gm(n,cm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cm(e,t){if(Cl=-1,bl=0,Z&6)throw Error(j(327));var n=e.callbackNode;if(fr()&&e.callbackNode!==n)return null;var r=Al(e,e===be?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ql(e,r);else{t=r;var o=Z;Z|=2;var l=dm();(be!==e||Ee!==t)&&(Tt=null,Sr=ge()+500,Nn(e,t));do try{lw();break}catch(i){um(e,i)}while(!0);mc(),Yl.current=l,Z=o,ve!==null?t=0:(be=null,Ee=0,t=we)}if(t!==0){if(t===2&&(o=Ki(e),o!==0&&(r=o,t=Ca(e,o))),t===1)throw n=Po,Nn(e,0),Xt(e,r),Be(e,ge()),n;if(t===6)Xt(e,r);else{if(o=e.current.alternate,!(r&30)&&!rw(o)&&(t=Ql(e,r),t===2&&(l=Ki(e),l!==0&&(r=l,t=Ca(e,l))),t===1))throw n=Po,Nn(e,0),Xt(e,r),Be(e,ge()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Cn(e,De,Tt);break;case 3:if(Xt(e,r),(r&130023424)===r&&(t=jc+500-ge(),10<t)){if(Al(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=na(Cn.bind(null,e,De,Tt),t);break}Cn(e,De,Tt);break;case 4:if(Xt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ut(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nw(r/1960))-r,10<r){e.timeoutHandle=na(Cn.bind(null,e,De,Tt),r);break}Cn(e,De,Tt);break;case 5:Cn(e,De,Tt);break;default:throw Error(j(329))}}}return Be(e,ge()),e.callbackNode===n?cm.bind(null,e):null}function Ca(e,t){var n=io;return e.current.memoizedState.isDehydrated&&(Nn(e,t).flags|=256),e=Ql(e,t),e!==2&&(t=De,De=n,t!==null&&ba(t)),e}function ba(e){De===null?De=e:De.push.apply(De,e)}function rw(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],l=o.getSnapshot;o=o.value;try{if(!ft(l(),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 Xt(e,t){for(t&=~Rc,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ut(t),r=1<<n;e[n]=-1,t&=~r}}function vd(e){if(Z&6)throw Error(j(327));fr();var t=Al(e,0);if(!(t&1))return Be(e,ge()),null;var n=Ql(e,t);if(e.tag!==0&&n===2){var r=Ki(e);r!==0&&(t=r,n=Ca(e,r))}if(n===1)throw n=Po,Nn(e,0),Xt(e,t),Be(e,ge()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cn(e,De,Tt),Be(e,ge()),null}function _c(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&(Sr=ge()+500,gs&&gn())}}function On(e){Zt!==null&&Zt.tag===0&&!(Z&6)&&fr();var t=Z;Z|=1;var n=tt.transition,r=ne;try{if(tt.transition=null,ne=1,e)return e()}finally{ne=r,tt.transition=n,Z=t,!(Z&6)&&gn()}}function Tc(){He=sr.current,ae(sr)}function Nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ox(n)),ve!==null)for(n=ve.return;n!==null;){var r=n;switch(dc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Dl();break;case 3:xr(),ae($e),ae(Te),wc();break;case 5:xc(r);break;case 4:xr();break;case 13:ae(ue);break;case 19:ae(ue);break;case 10:hc(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(be=e,ve=e=ln(e.current,null),Ee=He=t,we=0,Po=null,Rc=ws=An=0,De=io=null,kn!==null){for(t=0;t<kn.length;t++)if(n=kn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}kn=null}return e}function um(e,t){do{var n=ve;try{if(mc(),xl.current=Gl,Ul){for(var r=de.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ul=!1}if(Tn=0,Ce=xe=de=null,lo=!1,ko=0,Pc.current=null,n===null||n.return===null){we=1,Po=t,ve=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=Ee,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,f=i,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=od(s);if(y!==null){y.flags&=-257,ld(y,s,i,l,t),y.mode&1&&rd(l,c,t),t=y,a=c;var w=t.updateQueue;if(w===null){var g=new Set;g.add(a),t.updateQueue=g}else w.add(a);break e}else{if(!(t&1)){rd(l,c,t),Ac();break e}a=Error(j(426))}}else if(ce&&i.mode&1){var S=od(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),ld(S,s,i,l,t),fc(wr(a,i));break e}}l=a=wr(a,i),we!==4&&(we=2),io===null?io=[l]:io.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var v=Yp(l,a,t);Zu(l,v);break e;case 1:i=a;var h=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(rn===null||!rn.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=Kp(l,i,t);Zu(l,C);break e}}l=l.return}while(l!==null)}pm(n)}catch(b){t=b,ve===n&&n!==null&&(ve=n=n.return);continue}break}while(!0)}function dm(){var e=Yl.current;return Yl.current=Gl,e===null?Gl:e}function Ac(){(we===0||we===3||we===2)&&(we=4),be===null||!(An&268435455)&&!(ws&268435455)||Xt(be,Ee)}function Ql(e,t){var n=Z;Z|=2;var r=dm();(be!==e||Ee!==t)&&(Tt=null,Nn(e,t));do try{ow();break}catch(o){um(e,o)}while(!0);if(mc(),Z=n,Yl.current=r,ve!==null)throw Error(j(261));return be=null,Ee=0,we}function ow(){for(;ve!==null;)fm(ve)}function lw(){for(;ve!==null&&!_y();)fm(ve)}function fm(e){var t=hm(e.alternate,e,He);e.memoizedProps=e.pendingProps,t===null?pm(e):ve=t,Pc.current=null}function pm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qx(n,t),n!==null){n.flags&=32767,ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,ve=null;return}}else if(n=Zx(n,t,He),n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);we===0&&(we=5)}function Cn(e,t,n){var r=ne,o=tt.transition;try{tt.transition=null,ne=1,sw(e,t,n,r)}finally{tt.transition=o,ne=r}return null}function sw(e,t,n,r){do fr();while(Zt!==null);if(Z&6)throw Error(j(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(j(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if($y(e,l),e===be&&(ve=be=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nl||(nl=!0,gm(Tl,function(){return fr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=tt.transition,tt.transition=null;var s=ne;ne=1;var i=Z;Z|=4,Pc.current=null,ew(e,n),im(n,e),Nx(ea),Ol=!!Ji,ea=Ji=null,e.current=n,tw(n),Ty(),Z=i,ne=s,tt.transition=l}else e.current=n;if(nl&&(nl=!1,Zt=e,Xl=o),l=e.pendingLanes,l===0&&(rn=null),My(n.stateNode),Be(e,ge()),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(Kl)throw Kl=!1,e=wa,wa=null,e;return Xl&1&&e.tag!==0&&fr(),l=e.pendingLanes,l&1?e===Sa?ao++:(ao=0,Sa=e):ao=0,gn(),null}function fr(){if(Zt!==null){var e=Yf(Xl),t=tt.transition,n=ne;try{if(tt.transition=null,ne=16>e?16:e,Zt===null)var r=!1;else{if(e=Zt,Zt=null,Xl=0,Z&6)throw Error(j(331));var o=Z;for(Z|=4,M=e.current;M!==null;){var l=M,s=l.child;if(M.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(M=c;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:so(8,f,l)}var p=f.child;if(p!==null)p.return=f,M=p;else for(;M!==null;){f=M;var m=f.sibling,y=f.return;if(om(f),f===c){M=null;break}if(m!==null){m.return=y,M=m;break}M=y}}}var w=l.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}M=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,M=s;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:so(9,l,l.return)}var v=l.sibling;if(v!==null){v.return=l.return,M=v;break e}M=l.return}}var h=e.current;for(M=h;M!==null;){s=M;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,M=x;else e:for(s=h;M!==null;){if(i=M,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:xs(9,i)}}catch(b){me(i,i.return,b)}if(i===s){M=null;break e}var C=i.sibling;if(C!==null){C.return=i.return,M=C;break e}M=i.return}}if(Z=o,gn(),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(ds,e)}catch{}r=!0}return r}finally{ne=n,tt.transition=t}}return!1}function yd(e,t,n){t=wr(n,t),t=Yp(e,t,1),e=nn(e,t,1),t=Me(),e!==null&&(Oo(e,1,t),Be(e,t))}function me(e,t,n){if(e.tag===3)yd(e,e,n);else for(;t!==null;){if(t.tag===3){yd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(rn===null||!rn.has(r))){e=wr(n,e),e=Kp(t,e,1),t=nn(t,e,1),e=Me(),t!==null&&(Oo(t,1,e),Be(t,e));break}}t=t.return}}function iw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(Ee&n)===n&&(we===4||we===3&&(Ee&130023424)===Ee&&500>ge()-jc?Nn(e,0):Rc|=n),Be(e,t)}function mm(e,t){t===0&&(e.mode&1?(t=Go,Go<<=1,!(Go&130023424)&&(Go=4194304)):t=1);var n=Me();e=zt(e,t),e!==null&&(Oo(e,t,n),Be(e,n))}function aw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mm(e,n)}function cw(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(j(314))}r!==null&&r.delete(t),mm(e,n)}var hm;hm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,Qx(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,ce&&t.flags&1048576&&xp(t,$l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sl(e,t),e=t.pendingProps;var o=gr(t,Te.current);dr(t,n),o=Cc(null,t,r,e,o,n);var l=bc();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,Ve(r)?(l=!0,zl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vc(t),o.updater=ys,t.stateNode=o,o._reactInternals=t,ca(t,r,e,n),t=fa(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&uc(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dw(r),e=it(r,e),o){case 0:t=da(null,t,r,e,n);break e;case 1:t=ad(null,t,r,e,n);break e;case 11:t=sd(null,t,r,e,n);break e;case 14:t=id(null,t,r,it(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),da(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),ad(e,t,r,o,n);case 3:e:{if(qp(t),e===null)throw Error(j(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ep(e,t),Wl(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=wr(Error(j(423)),t),t=cd(e,t,r,n,o);break e}else if(r!==o){o=wr(Error(j(424)),t),t=cd(e,t,r,n,o);break e}else for(Ge=tn(t.stateNode.containerInfo.firstChild),Ye=t,ce=!0,ct=null,n=bp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),r===o){t=Ft(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Np(t),e===null&&sa(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,ta(r,o)?s=null:l!==null&&ta(r,l)&&(t.flags|=32),Zp(e,t),Oe(e,t,s,n),t.child;case 6:return e===null&&sa(t),null;case 13:return Jp(e,t,n);case 4:return yc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),sd(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,se(Vl,r._currentValue),r._currentValue=s,l!==null)if(ft(l.value,s)){if(l.children===o.children&&!$e.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=It(-1,n&-n),a.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ia(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(j(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),ia(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,dr(t,n),o=nt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=it(r,t.pendingProps),o=it(r.type,o),id(e,t,r,o,n);case 15:return Xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),Sl(e,t),t.tag=1,Ve(r)?(e=!0,zl(t)):e=!1,dr(t,n),Gp(t,r,o),ca(t,r,o,n),fa(null,t,r,!0,e,n);case 19:return em(e,t,n);case 22:return Qp(e,t,n)}throw Error(j(156,t.tag))};function gm(e,t){return Wf(e,t)}function uw(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 et(e,t,n,r){return new uw(e,t,n,r)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dw(e){if(typeof e=="function")return Oc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qa)return 11;if(e===Ja)return 14}return 2}function ln(e,t){var n=e.alternate;return n===null?(n=et(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 kl(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Oc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qn:return Pn(n.children,o,l,t);case Za:s=8,o|=8;break;case Oi:return e=et(12,n,t,o|2),e.elementType=Oi,e.lanes=l,e;case Mi:return e=et(13,n,t,o),e.elementType=Mi,e.lanes=l,e;case Ii:return e=et(19,n,t,o),e.elementType=Ii,e.lanes=l,e;case Nf:return Ss(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kf:s=10;break e;case Ef:s=9;break e;case qa:s=11;break e;case Ja:s=14;break e;case Gt:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Pn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function Ss(e,t,n,r){return e=et(22,e,r,t),e.elementType=Nf,e.lanes=n,e.stateNode={isHidden:!1},e}function hi(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function gi(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fw(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=Qs(0),this.expirationTimes=Qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mc(e,t,n,r,o,l,s,i,a){return e=new fw(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=et(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vc(l),e}function pw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vm(e){if(!e)return cn;e=e._reactInternals;e:{if(Bn(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(Ve(n))return vp(e,n,t)}return t}function ym(e,t,n,r,o,l,s,i,a){return e=Mc(n,r,!0,e,o,l,s,i,a),e.context=vm(null),n=e.current,r=Me(),o=on(n),l=It(r,o),l.callback=t??null,nn(n,l,o),e.current.lanes=o,Oo(e,o,r),Be(e,r),e}function Cs(e,t,n,r){var o=t.current,l=Me(),s=on(o);return n=vm(n),t.context===null?t.context=n:t.pendingContext=n,t=It(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=nn(o,t,s),e!==null&&(dt(e,o,s,l),yl(e,o,s)),s}function Zl(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 xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ic(e,t){xd(e,t),(e=e.alternate)&&xd(e,t)}function mw(){return null}var xm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lc(e){this._internalRoot=e}bs.prototype.render=Lc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Cs(e,t,null,null)};bs.prototype.unmount=Lc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;On(function(){Cs(null,e,null,null)}),t[Dt]=null}};function bs(e){this._internalRoot=e}bs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kt.length&&t!==0&&t<Kt[n].priority;n++);Kt.splice(n,0,e),n===0&&qf(e)}};function Dc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wd(){}function hw(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var c=Zl(s);l.call(c)}}var s=ym(t,r,e,0,null,!1,!1,"",wd);return e._reactRootContainer=s,e[Dt]=s.current,xo(e.nodeType===8?e.parentNode:e),On(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var c=Zl(a);i.call(c)}}var a=Mc(e,0,!1,null,null,!1,!1,"",wd);return e._reactRootContainer=a,e[Dt]=a.current,xo(e.nodeType===8?e.parentNode:e),On(function(){Cs(t,a,n,r)}),a}function Es(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=Zl(s);i.call(a)}}Cs(t,s,e,o)}else s=hw(n,t,e,o,r);return Zl(s)}Kf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zr(t.pendingLanes);n!==0&&(nc(t,n|1),Be(t,ge()),!(Z&6)&&(Sr=ge()+500,gn()))}break;case 13:On(function(){var r=zt(e,1);if(r!==null){var o=Me();dt(r,e,1,o)}}),Ic(e,1)}};rc=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Me();dt(t,e,134217728,n)}Ic(e,134217728)}};Xf=function(e){if(e.tag===13){var t=on(e),n=zt(e,t);if(n!==null){var r=Me();dt(n,e,t,r)}Ic(e,t)}};Qf=function(){return ne};Zf=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};Ui=function(e,t,n){switch(t){case"input":if(zi(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=hs(r);if(!o)throw Error(j(90));Rf(r),zi(r,o)}}}break;case"textarea":_f(e,n);break;case"select":t=n.value,t!=null&&ir(e,!!n.multiple,t,!1)}};Df=_c;zf=On;var gw={usingClientEntryPoint:!1,Events:[Io,er,hs,If,Lf,_c]},Yr={findFiberByHostInstance:bn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vw={bundleType:Yr.bundleType,version:Yr.version,rendererPackageName:Yr.rendererPackageName,rendererConfig:Yr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vf(e),e===null?null:e.stateNode},findFiberByHostInstance:Yr.findFiberByHostInstance||mw,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 rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rl.isDisabled&&rl.supportsFiber)try{ds=rl.inject(vw),bt=rl}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gw;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dc(t))throw Error(j(200));return pw(e,t,null,n)};Qe.createRoot=function(e,t){if(!Dc(e))throw Error(j(299));var n=!1,r="",o=xm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Mc(e,1,!1,null,null,n,!1,r,o),e[Dt]=t.current,xo(e.nodeType===8?e.parentNode:e),new Lc(t)};Qe.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(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=Vf(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return On(e)};Qe.hydrate=function(e,t,n){if(!ks(t))throw Error(j(200));return Es(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Dc(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=xm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ym(t,null,e,1,n??null,o,!1,l,s),e[Dt]=t.current,xo(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 bs(t)};Qe.render=function(e,t,n){if(!ks(t))throw Error(j(200));return Es(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!ks(e))throw Error(j(40));return e._reactRootContainer?(On(function(){Es(null,null,e,!1,function(){e._reactRootContainer=null,e[Dt]=null})}),!0):!1};Qe.unstable_batchedUpdates=_c;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ks(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Es(e,t,n,!1,r)};Qe.version="18.3.1-next-f1338f8080-20240426";function wm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wm)}catch(e){console.error(e)}}wm(),wf.exports=Qe;var jr=wf.exports;const yw=af(jr);var Sd=jr;Ti.createRoot=Sd.createRoot,Ti.hydrateRoot=Sd.hydrateRoot;/**
|
|
41
|
+
* @license lucide-react v0.563.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 Sm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v0.563.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
|
+
*/const xw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
51
|
+
* @license lucide-react v0.563.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 ww=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
56
|
+
* @license lucide-react v0.563.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 Cd=e=>{const t=ww(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
61
|
+
* @license lucide-react v0.563.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
|
+
*/var Sw={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"};/**
|
|
66
|
+
* @license lucide-react v0.563.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 Cw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
71
|
+
* @license lucide-react v0.563.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 bw=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:s,...i},a)=>d.createElement("svg",{ref:a,...Sw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sm("lucide",o),...!l&&!Cw(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,f])=>d.createElement(c,f)),...Array.isArray(l)?l:[l]]));/**
|
|
76
|
+
* @license lucide-react v0.563.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 pe=(e,t)=>{const n=d.forwardRef(({className:r,...o},l)=>d.createElement(bw,{ref:l,iconNode:t,className:Sm(`lucide-${xw(Cd(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Cd(e),n};/**
|
|
81
|
+
* @license lucide-react v0.563.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 kw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ew=pe("arrow-down",kw);/**
|
|
86
|
+
* @license lucide-react v0.563.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 Nw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Pw=pe("arrow-up",Nw);/**
|
|
91
|
+
* @license lucide-react v0.563.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 Rw=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],jw=pe("chart-column",Rw);/**
|
|
96
|
+
* @license lucide-react v0.563.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 _w=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cm=pe("check",_w);/**
|
|
101
|
+
* @license lucide-react v0.563.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 Tw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zc=pe("chevron-down",Tw);/**
|
|
106
|
+
* @license lucide-react v0.563.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 Aw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ow=pe("chevron-right",Aw);/**
|
|
111
|
+
* @license lucide-react v0.563.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 Mw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Iw=pe("chevron-up",Mw);/**
|
|
116
|
+
* @license lucide-react v0.563.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 Lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dw=pe("circle-check",Lw);/**
|
|
121
|
+
* @license lucide-react v0.563.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 zw=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Fw=pe("code-xml",zw);/**
|
|
126
|
+
* @license lucide-react v0.563.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 $w=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Fc=pe("file-code",$w);/**
|
|
131
|
+
* @license lucide-react v0.563.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 Vw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Bw=pe("file",Vw);/**
|
|
136
|
+
* @license lucide-react v0.563.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 Ww=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ql=pe("folder-open",Ww);/**
|
|
141
|
+
* @license lucide-react v0.563.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 Hw=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],Uw=pe("folder-tree",Hw);/**
|
|
146
|
+
* @license lucide-react v0.563.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=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Yw=pe("folder",Gw);/**
|
|
151
|
+
* @license lucide-react v0.563.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 Kw=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Xw=pe("git-branch",Kw);/**
|
|
156
|
+
* @license lucide-react v0.563.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 Qw=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Zw=pe("maximize-2",Qw);/**
|
|
161
|
+
* @license lucide-react v0.563.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 qw=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Jw=pe("minimize-2",qw);/**
|
|
166
|
+
* @license lucide-react v0.563.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 e0=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],t0=pe("package",e0);/**
|
|
171
|
+
* @license lucide-react v0.563.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 n0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],r0=pe("panel-left",n0);/**
|
|
176
|
+
* @license lucide-react v0.563.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 o0=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bm=pe("search",o0);/**
|
|
181
|
+
* @license lucide-react v0.563.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 l0=[["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"}]],s0=pe("triangle-alert",l0);/**
|
|
186
|
+
* @license lucide-react v0.563.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 i0=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ka=pe("upload",i0);/**
|
|
191
|
+
* @license lucide-react v0.563.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 a0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],km=pe("x",a0);function Em(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=Em(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Em(e))&&(r&&(r+=" "),r+=t);return r}const c0=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},u0=(e,t)=>({classGroupId:e,validator:t}),Pm=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Jl="-",bd=[],d0="arbitrary..",f0=e=>{const t=m0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return p0(s);const i=s.split(Jl),a=i[0]===""&&i.length>1?1:0;return Rm(i,a,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const a=r[s],c=n[s];return a?c?c0(c,a):a:c||bd}return n[s]||bd}}},Rm=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],l=n.nextPart.get(o);if(l){const c=Rm(e,t+1,l);if(c)return c}const s=n.validators;if(s===null)return;const i=t===0?e.join(Jl):e.slice(t).join(Jl),a=s.length;for(let c=0;c<a;c++){const f=s[c];if(f.validator(i))return f.classGroupId}},p0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?d0+r:void 0})(),m0=e=>{const{theme:t,classGroups:n}=e;return h0(n,t)},h0=(e,t)=>{const n=Pm();for(const r in e){const o=e[r];$c(o,n,r,t)}return n},$c=(e,t,n,r)=>{const o=e.length;for(let l=0;l<o;l++){const s=e[l];g0(s,t,n,r)}},g0=(e,t,n,r)=>{if(typeof e=="string"){v0(e,t,n);return}if(typeof e=="function"){y0(e,t,n,r);return}x0(e,t,n,r)},v0=(e,t,n)=>{const r=e===""?t:jm(t,e);r.classGroupId=n},y0=(e,t,n,r)=>{if(w0(e)){$c(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(u0(n,e))},x0=(e,t,n,r)=>{const o=Object.entries(e),l=o.length;for(let s=0;s<l;s++){const[i,a]=o[s];$c(a,jm(t,i),n,r)}},jm=(e,t)=>{let n=e;const r=t.split(Jl),o=r.length;for(let l=0;l<o;l++){const s=r[l];let i=n.nextPart.get(s);i||(i=Pm(),n.nextPart.set(s,i)),n=i}return n},w0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,S0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(l,s)=>{n[l]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(l){let s=n[l];if(s!==void 0)return s;if((s=r[l])!==void 0)return o(l,s),s},set(l,s){l in n?n[l]=s:o(l,s)}}},Ea="!",kd=":",C0=[],Ed=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),b0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const l=[];let s=0,i=0,a=0,c;const f=o.length;for(let g=0;g<f;g++){const S=o[g];if(s===0&&i===0){if(S===kd){l.push(o.slice(a,g)),a=g+1;continue}if(S==="/"){c=g;continue}}S==="["?s++:S==="]"?s--:S==="("?i++:S===")"&&i--}const p=l.length===0?o:o.slice(a);let m=p,y=!1;p.endsWith(Ea)?(m=p.slice(0,-1),y=!0):p.startsWith(Ea)&&(m=p.slice(1),y=!0);const w=c&&c>a?c-a:void 0;return Ed(l,y,m,w)};if(t){const o=t+kd,l=r;r=s=>s.startsWith(o)?l(s.slice(o.length)):Ed(C0,!1,s,void 0,!0)}if(n){const o=r;r=l=>n({className:l,parseClassName:o})}return r},k0=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let l=0;l<n.length;l++){const s=n[l],i=s[0]==="[",a=t.has(s);i||a?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},E0=e=>({cache:S0(e.cacheSize),parseClassName:b0(e),sortModifiers:k0(e),...f0(e)}),N0=/\s+/,P0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:l}=t,s=[],i=e.trim().split(N0);let a="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{isExternal:p,modifiers:m,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:g}=n(f);if(p){a=f+(a.length>0?" "+a:a);continue}let S=!!g,v=r(S?w.substring(0,g):w);if(!v){if(!S){a=f+(a.length>0?" "+a:a);continue}if(v=r(w),!v){a=f+(a.length>0?" "+a:a);continue}S=!1}const h=m.length===0?"":m.length===1?m[0]:l(m).join(":"),x=y?h+Ea:h,C=x+v;if(s.indexOf(C)>-1)continue;s.push(C);const b=o(v,S);for(let P=0;P<b.length;++P){const E=b[P];s.push(x+E)}a=f+(a.length>0?" "+a:a)}return a},R0=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=_m(n))&&(o&&(o+=" "),o+=r);return o},_m=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_m(e[r]))&&(n&&(n+=" "),n+=t);return n},j0=(e,...t)=>{let n,r,o,l;const s=a=>{const c=t.reduce((f,p)=>p(f),e());return n=E0(c),r=n.cache.get,o=n.cache.set,l=i,i(a)},i=a=>{const c=r(a);if(c)return c;const f=P0(a,n);return o(a,f),f};return l=s,(...a)=>l(R0(...a))},_0=[],ye=e=>{const t=n=>n[e]||_0;return t.isThemeGetter=!0,t},Tm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Am=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T0=/^\d+\/\d+$/,A0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O0=/\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$/,M0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>T0.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Ht=e=>!!e&&Number.isInteger(Number(e)),vi=e=>e.endsWith("%")&&U(e.slice(0,-1)),jt=e=>A0.test(e),D0=()=>!0,z0=e=>O0.test(e)&&!M0.test(e),Om=()=>!1,F0=e=>I0.test(e),$0=e=>L0.test(e),V0=e=>!I(e)&&!L(e),B0=e=>_r(e,Lm,Om),I=e=>Tm.test(e),wn=e=>_r(e,Dm,z0),yi=e=>_r(e,Y0,U),Nd=e=>_r(e,Mm,Om),W0=e=>_r(e,Im,$0),ol=e=>_r(e,zm,F0),L=e=>Am.test(e),Kr=e=>Tr(e,Dm),H0=e=>Tr(e,K0),Pd=e=>Tr(e,Mm),U0=e=>Tr(e,Lm),G0=e=>Tr(e,Im),ll=e=>Tr(e,zm,!0),_r=(e,t,n)=>{const r=Tm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tr=(e,t,n=!1)=>{const r=Am.exec(e);return r?r[1]?t(r[1]):n:!1},Mm=e=>e==="position"||e==="percentage",Im=e=>e==="image"||e==="url",Lm=e=>e==="length"||e==="size"||e==="bg-size",Dm=e=>e==="length",Y0=e=>e==="number",K0=e=>e==="family-name",zm=e=>e==="shadow",X0=()=>{const e=ye("color"),t=ye("font"),n=ye("text"),r=ye("font-weight"),o=ye("tracking"),l=ye("leading"),s=ye("breakpoint"),i=ye("container"),a=ye("spacing"),c=ye("radius"),f=ye("shadow"),p=ye("inset-shadow"),m=ye("text-shadow"),y=ye("drop-shadow"),w=ye("blur"),g=ye("perspective"),S=ye("aspect"),v=ye("ease"),h=ye("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...C(),L,I],P=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],N=()=>[L,I,a],_=()=>[Un,"full","auto",...N()],R=()=>[Ht,"none","subgrid",L,I],T=()=>["auto",{span:["full",Ht,L,I]},Ht,L,I],z=()=>[Ht,"auto",L,I],B=()=>["auto","min","max","fr",L,I],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...N()],W=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],k=()=>[e,L,I],A=()=>[...C(),Pd,Nd,{position:[L,I]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",U0,B0,{size:[L,I]}],re=()=>[vi,Kr,wn],le=()=>["","none","full",c,L,I],te=()=>["",U,Kr,wn],Ae=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[U,vi,Pd,Nd],oe=()=>["","none",w,L,I],he=()=>["none",U,L,I],J=()=>["none",U,L,I],q=()=>[U,L,I],Q=()=>[Un,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jt],breakpoint:[jt],color:[D0],container:[jt],"drop-shadow":[jt],ease:["in","out","in-out"],font:[V0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jt],shadow:[jt],spacing:["px",U],text:[jt],"text-shadow":[jt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,I,L,S]}],container:["container"],columns:[{columns:[U,I,L,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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"],sr:["sr-only","not-sr-only"],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:b()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[Ht,"auto",L,I]}],basis:[{basis:[Un,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,Un,"auto","initial","none",I]}],grow:[{grow:["",U,L,I]}],shrink:[{shrink:["",U,L,I]}],order:[{order:[Ht,"first","last","none",L,I]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[i,"screen",...W()]}],"min-w":[{"min-w":[i,"screen","none",...W()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Kr,wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,yi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vi,I]}],"font-family":[{font:[H0,I,t]}],"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:[o,L,I]}],"line-clamp":[{"line-clamp":[U,"none",L,yi]}],leading:[{leading:[l,...N()]}],"list-image":[{"list-image":["none",L,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",L,wn]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[U,"auto",L,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ht,L,I],radial:["",L,I],conic:[Ht,L,I]},G0,W0]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,L,I]}],"outline-w":[{outline:["",U,Kr,wn]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,ll,ol]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,ll,ol]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[U,wn]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,ll,ol]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[U,L,I]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,I]}],filter:[{filter:["","none",L,I]}],blur:[{blur:oe()}],brightness:[{brightness:[U,L,I]}],contrast:[{contrast:[U,L,I]}],"drop-shadow":[{"drop-shadow":["","none",y,ll,ol]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",U,L,I]}],"hue-rotate":[{"hue-rotate":[U,L,I]}],invert:[{invert:["",U,L,I]}],saturate:[{saturate:[U,L,I]}],sepia:[{sepia:["",U,L,I]}],"backdrop-filter":[{"backdrop-filter":["","none",L,I]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[U,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[U,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,L,I]}],"backdrop-invert":[{"backdrop-invert":["",U,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[U,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[U,L,I]}],"backdrop-sepia":[{"backdrop-sepia":["",U,L,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",L,I]}],ease:[{ease:["linear","initial",v,L,I]}],delay:[{delay:[U,L,I]}],animate:[{animate:["none",h,L,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,I]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[L,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",L,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",L,I]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[U,Kr,wn,yi]}],stroke:[{stroke:["none",...k()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Q0=j0(X0);function D(...e){return Q0(Nm(e))}const un=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("rounded-xl border bg-card text-card-foreground shadow",e),...t}));un.displayName="Card";const Mn=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("flex flex-col space-y-1.5 p-6",e),...t}));Mn.displayName="CardHeader";const In=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("font-semibold leading-none tracking-tight",e),...t}));In.displayName="CardTitle";const Cr=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("text-sm text-muted-foreground",e),...t}));Cr.displayName="CardDescription";const dn=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("p-6 pt-0",e),...t}));dn.displayName="CardContent";const Z0=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:D("flex items-center p-6 pt-0",e),...t}));Z0.displayName="CardFooter";const Rd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jd=Nm,Do=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],p=l==null?void 0:l[c];if(f===null)return null;const m=Rd(f)||Rd(p);return o[c][m]}),i=n&&Object.entries(n).reduce((c,f)=>{let[p,m]=f;return m===void 0||(c[p]=m),c},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:p,className:m,...y}=f;return Object.entries(y).every(w=>{let[g,S]=w;return Array.isArray(S)?S.includes({...l,...i}[g]):{...l,...i}[g]===S})?[...c,p,m]:c},[]);return jd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},q0=Do("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ln({className:e,variant:t,...n}){return u.jsx("div",{className:D(q0({variant:t}),e),...n})}function _d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ar(...e){return t=>{let n=!1;const r=e.map(o=>{const l=_d(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<r.length;o++){const l=r[o];typeof l=="function"?l():_d(e[o],null)}}}}function ee(...e){return d.useCallback(Ar(...e),e)}function J0(e){const t=eS(e),n=d.forwardRef((r,o)=>{const{children:l,...s}=r,i=d.Children.toArray(l),a=i.find(nS);if(a){const c=a.props.children,f=i.map(p=>p===a?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function eS(e){const t=d.forwardRef((n,r)=>{const{children:o,...l}=n;if(d.isValidElement(o)){const s=oS(o),i=rS(l,o.props);return o.type!==d.Fragment&&(i.ref=r?Ar(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tS=Symbol("radix.slottable");function nS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tS}function rS(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...i)=>{const a=l(...i);return o(...i),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function oS(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 lS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=lS.reduce((e,t)=>{const n=J0(`Primitive.${t}`),r=d.forwardRef((o,l)=>{const{asChild:s,...i}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...i,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sS(e,t){e&&jr.flushSync(()=>e.dispatchEvent(t))}var Pe=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function iS(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var ht=e=>{const{present:t,children:n}=e,r=aS(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),l=ee(r.ref,cS(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:l}):null};ht.displayName="Presence";function aS(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),l=d.useRef("none"),s=e?"mounted":"unmounted",[i,a]=iS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=sl(r.current);l.current=i==="mounted"?c:"none"},[i]),Pe(()=>{const c=r.current,f=o.current;if(f!==e){const m=l.current,y=sl(c);e?a("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?a("UNMOUNT"):a(f&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Pe(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,p=y=>{const g=sl(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&g&&(a("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},m=y=>{y.target===t&&(l.current=sl(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function sl(e){return(e==null?void 0:e.animationName)||"none"}function cS(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 uS(e,t){const n=d.createContext(t),r=l=>{const{children:s,...i}=l,a=d.useMemo(()=>i,Object.values(i));return u.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(l){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,o]}function Wn(e,t=[]){let n=[];function r(l,s){const i=d.createContext(s),a=n.length;n=[...n,s];const c=p=>{var v;const{scope:m,children:y,...w}=p,g=((v=m==null?void 0:m[e])==null?void 0:v[a])||i,S=d.useMemo(()=>w,Object.values(w));return u.jsx(g.Provider,{value:S,children:y})};c.displayName=l+"Provider";function f(p,m){var g;const y=((g=m==null?void 0:m[e])==null?void 0:g[a])||i,w=d.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[c,f]}const o=()=>{const l=n.map(s=>d.createContext(s));return function(i){const a=(i==null?void 0:i[e])||l;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:a}}),[i,a])}};return o.scopeName=e,[r,dS(o,...t)]}function dS(...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(l){const s=r.reduce((i,{useScope:a,scopeName:c})=>{const p=a(l)[`__scope${c}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ze(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var fS=d.createContext(void 0);function Fm(e){const t=d.useContext(fS);return e||t||"ltr"}function Na(e,[t,n]){return Math.min(n,Math.max(t,e))}function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function pS(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Vc="ScrollArea",[$m]=Wn(Vc),[mS,ot]=$m(Vc),Vm=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:l=600,...s}=e,[i,a]=d.useState(null),[c,f]=d.useState(null),[p,m]=d.useState(null),[y,w]=d.useState(null),[g,S]=d.useState(null),[v,h]=d.useState(0),[x,C]=d.useState(0),[b,P]=d.useState(!1),[E,N]=d.useState(!1),_=ee(t,T=>a(T)),R=Fm(o);return u.jsx(mS,{scope:n,type:r,dir:R,scrollHideDelay:l,scrollArea:i,viewport:c,onViewportChange:f,content:p,onContentChange:m,scrollbarX:y,onScrollbarXChange:w,scrollbarXEnabled:b,onScrollbarXEnabledChange:P,scrollbarY:g,onScrollbarYChange:S,scrollbarYEnabled:E,onScrollbarYEnabledChange:N,onCornerWidthChange:h,onCornerHeightChange:C,children:u.jsx(K.div,{dir:R,...s,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});Vm.displayName=Vc;var Bm="ScrollAreaViewport",Wm=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...l}=e,s=ot(Bm,n),i=d.useRef(null),a=ee(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(K.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,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})})]})});Wm.displayName=Bm;var Pt="ScrollAreaScrollbar",Bc=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ot(Pt,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return d.useEffect(()=>(i?l(!0):s(!0),()=>{i?l(!1):s(!1)}),[i,l,s]),o.type==="hover"?u.jsx(hS,{...r,ref:t,forceMount:n}):o.type==="scroll"?u.jsx(gS,{...r,ref:t,forceMount:n}):o.type==="auto"?u.jsx(Hm,{...r,ref:t,forceMount:n}):o.type==="always"?u.jsx(Wc,{...r,ref:t}):null});Bc.displayName=Pt;var hS=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ot(Pt,e.__scopeScrollArea),[l,s]=d.useState(!1);return d.useEffect(()=>{const i=o.scrollArea;let a=0;if(i){const c=()=>{window.clearTimeout(a),s(!0)},f=()=>{a=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(ht,{present:n||l,children:u.jsx(Hm,{"data-state":l?"visible":"hidden",...r,ref:t})})}),gS=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ot(Pt,e.__scopeScrollArea),l=e.orientation==="horizontal",s=Ps(()=>a("SCROLL_END"),100),[i,a]=pS("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 d.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay,a]),d.useEffect(()=>{const c=o.viewport,f=l?"scrollLeft":"scrollTop";if(c){let p=c[f];const m=()=>{const y=c[f];p!==y&&(a("SCROLL"),s()),p=y};return c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[o.viewport,l,a,s]),u.jsx(ht,{present:n||i!=="hidden",children:u.jsx(Wc,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:H(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:H(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),Hm=d.forwardRef((e,t)=>{const n=ot(Pt,e.__scopeScrollArea),{forceMount:r,...o}=e,[l,s]=d.useState(!1),i=e.orientation==="horizontal",a=Ps(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;s(i?c:f)}},10);return br(n.viewport,a),br(n.content,a),u.jsx(ht,{present:r||l,children:u.jsx(Wc,{"data-state":l?"visible":"hidden",...o,ref:t})})}),Wc=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=ot(Pt,e.__scopeScrollArea),l=d.useRef(null),s=d.useRef(0),[i,a]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Xm(i.viewport,i.content),f={...r,sizes:i,onSizesChange:a,hasThumb:c>0&&c<1,onThumbChange:m=>l.current=m,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:m=>s.current=m};function p(m,y){return CS(m,s.current,i,y)}return n==="horizontal"?u.jsx(vS,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollLeft,y=Td(m,i,o.dir);l.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?u.jsx(yS,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollTop,y=Td(m,i);l.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),vS=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=ot(Pt,e.__scopeScrollArea),[s,i]=d.useState(),a=d.useRef(null),c=ee(t,a,l.onScrollbarXChange);return d.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),u.jsx(Gm,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ns(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(l.viewport){const m=l.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),Zm(m,p)&&f.preventDefault()}},onResize:()=>{a.current&&l.viewport&&s&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:ts(s.paddingLeft),paddingEnd:ts(s.paddingRight)}})}})}),yS=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=ot(Pt,e.__scopeScrollArea),[s,i]=d.useState(),a=d.useRef(null),c=ee(t,a,l.onScrollbarYChange);return d.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),u.jsx(Gm,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ns(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(l.viewport){const m=l.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),Zm(m,p)&&f.preventDefault()}},onResize:()=>{a.current&&l.viewport&&s&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:ts(s.paddingTop),paddingEnd:ts(s.paddingBottom)}})}})}),[xS,Um]=$m(Pt),Gm=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:l,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:c,onWheelScroll:f,onResize:p,...m}=e,y=ot(Pt,n),[w,g]=d.useState(null),S=ee(t,_=>g(_)),v=d.useRef(null),h=d.useRef(""),x=y.viewport,C=r.content-r.viewport,b=ze(f),P=ze(a),E=Ps(p,10);function N(_){if(v.current){const R=_.clientX-v.current.left,T=_.clientY-v.current.top;c({x:R,y:T})}}return d.useEffect(()=>{const _=R=>{const T=R.target;(w==null?void 0:w.contains(T))&&b(R,C)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[x,w,C,b]),d.useEffect(P,[r,P]),br(w,E),br(y.content,E),u.jsx(xS,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:ze(l),onThumbPointerUp:ze(s),onThumbPositionChange:P,onThumbPointerDown:ze(i),children:u.jsx(K.div,{...m,ref:S,style:{position:"absolute",...m.style},onPointerDown:H(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),v.current=w.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),N(_))}),onPointerMove:H(e.onPointerMove,N),onPointerUp:H(e.onPointerUp,_=>{const R=_.target;R.hasPointerCapture(_.pointerId)&&R.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=h.current,y.viewport&&(y.viewport.style.scrollBehavior=""),v.current=null})})})}),es="ScrollAreaThumb",Ym=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Um(es,e.__scopeScrollArea);return u.jsx(ht,{present:n||o.hasThumb,children:u.jsx(wS,{ref:t,...r})})}),wS=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,l=ot(es,n),s=Um(es,n),{onThumbPositionChange:i}=s,a=ee(t,p=>s.onThumbChange(p)),c=d.useRef(void 0),f=Ps(()=>{c.current&&(c.current(),c.current=void 0)},100);return d.useEffect(()=>{const p=l.viewport;if(p){const m=()=>{if(f(),!c.current){const y=bS(p,i);c.current=y,i()}};return i(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[l.viewport,f,i]),u.jsx(K.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:H(e.onPointerDownCapture,p=>{const y=p.target.getBoundingClientRect(),w=p.clientX-y.left,g=p.clientY-y.top;s.onThumbPointerDown({x:w,y:g})}),onPointerUp:H(e.onPointerUp,s.onThumbPointerUp)})});Ym.displayName=es;var Hc="ScrollAreaCorner",Km=d.forwardRef((e,t)=>{const n=ot(Hc,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?u.jsx(SS,{...e,ref:t}):null});Km.displayName=Hc;var SS=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=ot(Hc,n),[l,s]=d.useState(0),[i,a]=d.useState(0),c=!!(l&&i);return br(o.scrollbarX,()=>{var p;const f=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(f),a(f)}),br(o.scrollbarY,()=>{var p;const f=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(f),s(f)}),c?u.jsx(K.div,{...r,ref:t,style:{width:l,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ts(e){return e?parseInt(e,10):0}function Xm(e,t){const n=e/t;return isNaN(n)?0:n}function Ns(e){const t=Xm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function CS(e,t,n,r="ltr"){const o=Ns(n),l=o/2,s=t||l,i=o-s,a=n.scrollbar.paddingStart+s,c=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return Qm([a,c],p)(e)}function Td(e,t,n="ltr"){const r=Ns(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,s=t.content-t.viewport,i=l-r,a=n==="ltr"?[0,s]:[s*-1,0],c=Na(e,a);return Qm([0,s],[0,i])(c)}function Qm(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 Zm(e,t){return e>0&&e<t}var bS=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const l={left:e.scrollLeft,top:e.scrollTop},s=n.left!==l.left,i=n.top!==l.top;(s||i)&&t(),n=l,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ps(e,t){const n=ze(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function br(e,t){const n=ze(t);Pe(()=>{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 qm=Vm,kS=Wm,ES=Km;const vn=d.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(qm,{ref:r,className:D("relative overflow-hidden",e),...n,children:[u.jsx(kS,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(Jm,{}),u.jsx(ES,{})]}));vn.displayName=qm.displayName;const Jm=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>u.jsx(Bc,{ref:r,orientation:t,className:D("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(Ym,{className:"relative flex-1 rounded-full bg-border"})}));Jm.displayName=Bc.displayName;function Pa(e){const t=e.split("/");return t[t.length-1]}function xi({title:e,description:t,rows:n,onFileSelect:r,selectedFile:o,countLabel:l,emptyMessage:s}){const[i,a]=d.useState("count"),[c,f]=d.useState("desc"),p=d.useMemo(()=>[...n].sort((g,S)=>{const v=c==="asc"?1:-1;return i==="count"?(g.count-S.count)*v:g.path.localeCompare(S.path)*v}),[n,i,c]),m=g=>{i===g?f(c==="asc"?"desc":"asc"):(a(g),f(g==="count"?"desc":"asc"))},y=Math.max(...n.map(g=>g.count),1),w=({field:g})=>i!==g?null:c==="asc"?u.jsx(Pw,{className:"ml-1 h-3 w-3 inline"}):u.jsx(Ew,{className:"ml-1 h-3 w-3 inline"});return u.jsxs(un,{children:[u.jsxs(Mn,{className:"pb-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(In,{className:"text-base",children:e}),u.jsxs(Ln,{variant:"secondary",className:"text-xs",children:[n.length," items"]})]}),u.jsx(Cr,{className:"text-xs",children:t})]}),u.jsx(dn,{className:"pt-0",children:n.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:s}):u.jsx(vn,{className:"h-64",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{className:"sticky top-0 bg-card",children:u.jsxs("tr",{className:"border-b",children:[u.jsxs("th",{className:"text-left py-2 pr-4 text-muted-foreground font-medium cursor-pointer hover:text-foreground transition-colors",onClick:()=>m("path"),children:["File",u.jsx(w,{field:"path"})]}),u.jsxs("th",{className:"text-right py-2 text-muted-foreground font-medium cursor-pointer hover:text-foreground transition-colors w-32",onClick:()=>m("count"),children:[l,u.jsx(w,{field:"count"})]})]})}),u.jsx("tbody",{children:p.map(g=>u.jsxs("tr",{className:D("border-b border-border/50 cursor-pointer transition-colors",o===g.path?"bg-accent":"hover:bg-muted/50"),onClick:()=>r==null?void 0:r(g.path),children:[u.jsx("td",{className:"py-2 pr-4",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-mono text-foreground truncate",title:g.path,children:Pa(g.path)}),u.jsx("span",{className:"text-muted-foreground text-xs truncate hidden sm:inline",children:g.path.replace(Pa(g.path),"")})]})}),u.jsx("td",{className:"py-2",children:u.jsxs("div",{className:"flex items-center justify-end gap-2",children:[u.jsx("div",{className:"w-16 h-1.5 bg-muted rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${g.count/y*100}%`}})}),u.jsx("span",{className:"font-mono text-primary w-8 text-right",children:g.count})]})})]},g.path))})]})})})]})}function NS({cycles:e,onFileSelect:t}){const n=e.length===0;return u.jsxs(un,{className:n?"border-chart-2/30":"border-destructive/30",children:[u.jsxs(Mn,{className:"pb-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[n?u.jsx(Dw,{className:"h-4 w-4 text-chart-2"}):u.jsx(s0,{className:"h-4 w-4 text-destructive"}),u.jsx(In,{className:"text-base",children:"Circular Dependencies"})]}),u.jsx(Ln,{variant:n?"secondary":"destructive",className:"text-xs",children:n?"None detected":`${e.length} cycle${e.length!==1?"s":""}`})]}),u.jsx(Cr,{className:"text-xs",children:"Import cycles that may cause issues"})]}),u.jsx(dn,{className:"pt-0",children:n?u.jsx("p",{className:"text-sm text-chart-2",children:"No circular dependencies found. Your import graph is acyclic."}):u.jsx(vn,{className:"h-64",children:u.jsx("div",{className:"space-y-3",children:e.map((r,o)=>u.jsx("div",{className:"bg-destructive/5 border border-destructive/20 rounded-md p-3",children:u.jsxs("div",{className:"flex flex-wrap items-center gap-1 text-sm font-mono",children:[r.cycle.map((l,s)=>u.jsxs("span",{className:"flex items-center",children:[u.jsx("button",{className:"text-foreground hover:text-primary transition-colors",onClick:()=>t==null?void 0:t(l),title:l,children:Pa(l)}),s<r.cycle.length-1&&u.jsx("span",{className:"text-destructive mx-1",children:"→"})]},s)),u.jsx("span",{className:"text-destructive mx-1",children:"↺"})]})},o))})})})]})}function PS({files:e,imports:t,onFileSelect:n,selectedFile:r}){const o=d.useMemo(()=>new Set(e.map(p=>p.path)),[e]),{importers:l,dependencies:s}=d.useMemo(()=>{var y,w;const p=new Map,m=new Map;for(const g of e)p.set(g.path,new Set),m.set(g.path,new Set);for(const g of t)o.has(g.source)&&o.has(g.target)&&((y=p.get(g.target))==null||y.add(g.source),(w=m.get(g.source))==null||w.add(g.target));return{importers:p,dependencies:m}},[e,t,o]),i=d.useMemo(()=>{var m,y;const p=[];for(const w of e)(((m=l.get(w.path))==null?void 0:m.size)||0)===0&&p.push({path:w.path,count:((y=s.get(w.path))==null?void 0:y.size)||0,lines:w.lines});return p.sort((w,g)=>g.count-w.count)},[e,l,s]),a=d.useMemo(()=>{var m;const p=[];for(const y of e){const w=((m=l.get(y.path))==null?void 0:m.size)||0;w>0&&p.push({path:y.path,count:w,lines:y.lines})}return p.sort((y,w)=>w.count-y.count).slice(0,50)},[e,l]),c=d.useMemo(()=>{var m;const p=[];for(const y of e){const w=((m=s.get(y.path))==null?void 0:m.size)||0;w>0&&p.push({path:y.path,count:w,lines:y.lines})}return p.sort((y,w)=>w.count-y.count).slice(0,50)},[e,s]),f=d.useMemo(()=>{const p=[],m=new Set,y=new Set,w=[];function g(S){m.add(S),y.add(S),w.push(S);const v=s.get(S)||new Set;for(const h of v)if(!m.has(h))g(h);else if(y.has(h)){const x=w.indexOf(h);if(x!==-1){const C=w.slice(x),b=[...C].sort().join("|");p.find(E=>[...E.cycle].sort().join("|")===b)||p.push({cycle:C})}}w.pop(),y.delete(S)}for(const S of e)m.has(S.path)||g(S.path);return p},[e,s]);return e.length===0?u.jsx("div",{className:"p-6 text-muted-foreground text-sm",children:"No file data available. Load a snapshot with enhanced metadata."}):t.length===0?u.jsx("div",{className:"p-6 text-muted-foreground text-sm",children:"No import data available. This snapshot may not include dependency information."}):u.jsx(vn,{className:"h-full",children:u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsx(xi,{title:"Entry Points",description:"Files not imported by anything else - where execution starts",rows:i,onFileSelect:n,selectedFile:r,countLabel:"Deps",emptyMessage:"All files are imported by at least one other file"}),u.jsx(xi,{title:"Most Imported",description:"Critical files - changes here affect many dependents",rows:a,onFileSelect:n,selectedFile:r,countLabel:"Importers",emptyMessage:"No files are imported by other files"}),u.jsx(xi,{title:"Highest Coupling",description:"Files with many dependencies - potential refactoring candidates",rows:c,onFileSelect:n,selectedFile:r,countLabel:"Imports",emptyMessage:"No files have dependencies"}),u.jsx(NS,{cycles:f,onFileSelect:n})]})})}var RS=Symbol.for("react.lazy"),ns=Ya[" use ".trim().toString()];function jS(e){return typeof e=="object"&&e!==null&&"then"in e}function eh(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===RS&&"_payload"in e&&jS(e._payload)}function Rs(e){const t=_S(e),n=d.forwardRef((r,o)=>{let{children:l,...s}=r;eh(l)&&typeof ns=="function"&&(l=ns(l._payload));const i=d.Children.toArray(l),a=i.find(AS);if(a){const c=a.props.children,f=i.map(p=>p===a?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var Or=Rs("Slot");function _S(e){const t=d.forwardRef((n,r)=>{let{children:o,...l}=n;if(eh(o)&&typeof ns=="function"&&(o=ns(o._payload)),d.isValidElement(o)){const s=MS(o),i=OS(l,o.props);return o.type!==d.Fragment&&(i.ref=r?Ar(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var TS=Symbol("radix.slottable");function AS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TS}function OS(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...i)=>{const a=l(...i);return o(...i),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function MS(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 IS=Do("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ro=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const s=r?Or:"button";return u.jsx(s,{className:D(IS({variant:t,size:n,className:e})),ref:l,...o})});Ro.displayName="Button";function wi(e){const t=LS(e),n=DS(e);return{raw:e,metadata:t,fileContents:n}}function LS(e){if(!e.includes("METADATA: IMPORT GRAPH"))return null;const t=[],n=[],r=[],o={},l=/METADATA: IMPORT GRAPH\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|$)/g,s=[...e.matchAll(l)],i=s.length>0?s[s.length-1]:null;if(i){const w=i[1].trim();let g="";for(const S of w.split(`
|
|
196
|
+
`)){const v=S.match(/^([^\s].+):$/);if(v){g=v[1];continue}const h=S.match(/^\s+(?:→|->)\s*(.+)$/);h&&g&&n.push({source:g,target:h[1]})}}const a=/METADATA: EXPORT INDEX\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|$)/g,c=[...e.matchAll(a)],f=c.length>0?c[c.length-1]:null;if(f){const w=f[1].trim().split(`
|
|
197
|
+
`);for(const g of w){const S=g.match(/^([^:]+):\s*(.+)$/);if(S){const v=S[1].trim(),x=S[2].trim().split(",").map(C=>C.trim());x.length>0&&(o[v]=x[0]),r.push({file:v,symbols:x})}}}const p=e.match(/METADATA: FILE EXPORTS\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|={80}\nFILE:|$)/);if(p){const w=p[1].trim().split(`
|
|
198
|
+
`);for(const g of w){const S=g.match(/^([^:]+):\d+\s*-\s*\w+\s+(\S+)/);if(S){const v=S[1].trim(),h=S[2].split(" ")[0];o[h]=v}}}const m=/^={80}\nFILE: \.\/(.+?)\n={80}/gm;let y;for(;(y=m.exec(e))!==null;){const w=y[1],g=w.split(".").pop()||"",S=y.index+y[0].length,v=e.indexOf(`
|
|
199
|
+
================================================================================
|
|
200
|
+
FILE:`,S),h=e.indexOf(`
|
|
201
|
+
METADATA:`,S),x=Math.min(v===-1?e.length:v,h===-1?e.length:h),b=e.slice(S,x).split(`
|
|
202
|
+
`).length-1;t.push({path:w,lines:b,extension:g})}return{files:t,imports:n,exports:r,symbolIndex:o}}function DS(e){const t=new Map,n="=".repeat(80),r=e.split(n);for(let o=0;o<r.length;o++){const s=r[o].match(/^\nFILE: \.\/(.+?)\n$/);if(s&&o+1<r.length){const i=s[1];let a=r[o+1];a.startsWith(`
|
|
203
|
+
`)&&(a=a.slice(1)),a.endsWith(`
|
|
204
|
+
`)&&(a=a.slice(0,-1)),t.set(i,a)}}if(t.size===0){const o=/^={80}\n\/\/ File: (.+?) \(\d+ lines\)\n={80}\n([\s\S]*?)(?=^={80}|$)/gm;let l;for(;(l=o.exec(e))!==null;)t.set(l[1],l[2].trim())}return t}function zS(e){var r;const t={name:"root",path:"",type:"directory",children:[]};for(const o of e){const l=o.path.split("/");let s=t;for(let i=0;i<l.length;i++){const a=l[i],c=i===l.length-1,f=l.slice(0,i+1).join("/");let p=(r=s.children)==null?void 0:r.find(m=>m.name===a);p||(p={name:a,path:f,type:c?"file":"directory",children:c?void 0:[],extension:c?o.extension:void 0,lines:c?o.lines:void 0},s.children=s.children||[],s.children.push(p)),s=p}}const n=o=>{o.children&&(o.children.sort((l,s)=>l.type!==s.type?l.type==="directory"?-1:1:l.name.localeCompare(s.name)),o.children.forEach(n))};return n(t),t}function FS(e,t,n={}){const{caseSensitive:r=!1,maxResults:o=100}=n,l=[],s=new RegExp(t,r?"g":"gi");for(const[i,a]of e.fileContents){const c=a.split(`
|
|
205
|
+
`);for(let f=0;f<c.length;f++){if(s.test(c[f])&&(l.push({file:i,line:f+1,content:c[f].trim()}),l.length>=o))return l;s.lastIndex=0}}return l}function th(e){return{ts:"#3178c6",tsx:"#3178c6",js:"#f7df1e",jsx:"#61dafb",py:"#3776ab",rs:"#dea584",go:"#00add8",java:"#b07219",rb:"#cc342d",php:"#777bb4",md:"#083fa1",json:"#292929",css:"#264de4",scss:"#c6538c",html:"#e34c26"}[e]||"#8b949e"}function nh({node:e,depth:t,onFileSelect:n,selectedFile:r,expandedPaths:o,toggleExpanded:l}){const s=o.has(e.path),i=r===e.path,a=e.children&&e.children.length>0,c=()=>{e.type==="directory"?l(e.path):n&&n(e.path)},f=()=>{if(e.type==="directory")return s?u.jsx(ql,{className:"h-4 w-4 text-muted-foreground"}):u.jsx(Yw,{className:"h-4 w-4 text-muted-foreground"});const p=e.extension?th(e.extension):void 0;return u.jsx(Bw,{className:"h-4 w-4",style:p?{color:p}:void 0})};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:D("flex items-center gap-1 px-2 py-1 cursor-pointer rounded-sm transition-colors",i?"bg-accent text-accent-foreground":"hover:bg-muted/50"),style:{paddingLeft:`${t*12+8}px`},onClick:c,children:[e.type==="directory"&&u.jsx("span",{className:"text-muted-foreground",children:s?u.jsx(zc,{className:"h-3 w-3"}):u.jsx(Ow,{className:"h-3 w-3"})}),e.type==="file"&&u.jsx("span",{className:"w-3"}),f(),u.jsx("span",{className:"truncate flex-1 text-sm",children:e.name}),e.lines!==void 0&&u.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:e.lines})]}),s&&a&&u.jsx("div",{children:e.children.map(p=>u.jsx(nh,{node:p,depth:t+1,onFileSelect:n,selectedFile:r,expandedPaths:o,toggleExpanded:l},p.path))})]})}function $S({tree:e,onFileSelect:t,selectedFile:n}){const[r,o]=d.useState(new Set([""])),l=d.useCallback(a=>{o(c=>{const f=new Set(c);return f.has(a)?f.delete(a):f.add(a),f})},[]),s=d.useCallback(()=>{const a=new Set,c=f=>{var p;f.type==="directory"&&(a.add(f.path),(p=f.children)==null||p.forEach(c))};c(e),o(a)},[e]),i=d.useCallback(()=>{o(new Set([""]))},[]);return!e.children||e.children.length===0?u.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"No files loaded. Drop a snapshot file or enter a path."}):u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"flex gap-1 p-2 border-b",children:[u.jsxs(Ro,{variant:"ghost",size:"sm",onClick:s,className:"h-7 px-2 text-xs",children:[u.jsx(Zw,{className:"h-3 w-3 mr-1"}),"Expand"]}),u.jsxs(Ro,{variant:"ghost",size:"sm",onClick:i,className:"h-7 px-2 text-xs",children:[u.jsx(Jw,{className:"h-3 w-3 mr-1"}),"Collapse"]})]}),u.jsx(vn,{className:"flex-1",children:u.jsx("div",{className:"py-1",children:e.children.map(a=>u.jsx(nh,{node:a,depth:0,onFileSelect:t,selectedFile:n,expandedPaths:r,toggleExpanded:l},a.path))})})]})}function Ad({data:e,selectedFile:t,highlightLine:n}){const r=d.useMemo(()=>!e||!t?null:e.fileContents.get(t)||null,[e,t]),o=d.useMemo(()=>t&&t.split(".").pop()||"",[t]);if(!t)return u.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:u.jsxs("div",{className:"text-center",children:[u.jsx(Fc,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{children:"Select a file to view its contents"})]})});if(!r)return u.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:u.jsxs("div",{className:"text-center",children:[u.jsx("p",{children:"File content not found"}),u.jsx("p",{className:"text-sm mt-2 font-mono",children:t})]})});const l=r.split(`
|
|
206
|
+
`),s=th(o);return u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"px-4 py-2 border-b flex items-center gap-2",children:[u.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:s}}),u.jsx("span",{className:"text-sm font-medium truncate flex-1",children:t}),u.jsxs(Ln,{variant:"secondary",className:"text-xs",children:[l.length," lines"]})]}),u.jsx(vn,{className:"flex-1",children:u.jsx("table",{className:"w-full font-mono text-sm",children:u.jsx("tbody",{children:l.map((i,a)=>{const c=a+1,f=n===c;return u.jsxs("tr",{className:D("hover:bg-muted/50",f&&"bg-primary/10"),id:`line-${c}`,children:[u.jsx("td",{className:"px-4 py-0.5 text-right text-muted-foreground select-none w-12 border-r tabular-nums",children:c}),u.jsx("td",{className:"px-4 py-0.5 whitespace-pre overflow-x-auto",children:i||" "})]},c)})})})})]})}const Uc=d.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:D("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Uc.displayName="Input";var VS=Ya[" useInsertionEffect ".trim().toString()]||Pe;function jo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,l,s]=BS({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"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.`),f.current=i},[i,r])}const c=d.useCallback(f=>{var p;if(i){const m=WS(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else l(f)},[i,e,l,s]);return[a,c]}function BS({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),l=d.useRef(t);return VS(()=>{l.current=t},[t]),d.useEffect(()=>{var s;o.current!==n&&((s=l.current)==null||s.call(l,n),o.current=n)},[n,o]),[n,r,l]}function WS(e){return typeof e=="function"}function rh(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function oh(e){const[t,n]=d.useState(void 0);return Pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let s,i;if("borderBoxSize"in l){const a=l.borderBoxSize,c=Array.isArray(a)?a[0]:a;s=c.inlineSize,i=c.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 js="Checkbox",[HS]=Wn(js),[US,Gc]=HS(js);function GS(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:l,form:s,name:i,onCheckedChange:a,required:c,value:f="on",internal_do_not_use_render:p}=e,[m,y]=jo({prop:n,defaultProp:o??!1,onChange:a,caller:js}),[w,g]=d.useState(null),[S,v]=d.useState(null),h=d.useRef(!1),x=w?!!s||!!w.closest("form"):!0,C={checked:m,disabled:l,setChecked:y,control:w,setControl:g,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:h,required:c,defaultChecked:sn(o)?!1:o,isFormControl:x,bubbleInput:S,setBubbleInput:v};return u.jsx(US,{scope:t,...C,children:YS(p)?p(C):r})}var lh="CheckboxTrigger",sh=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:l,value:s,disabled:i,checked:a,required:c,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:w}=Gc(lh,e),g=ee(o,f),S=d.useRef(a);return d.useEffect(()=>{const v=l==null?void 0:l.form;if(v){const h=()=>p(S.current);return v.addEventListener("reset",h),()=>v.removeEventListener("reset",h)}},[l,p]),u.jsx(K.button,{type:"button",role:"checkbox","aria-checked":sn(a)?"mixed":a,"aria-required":c,"data-state":dh(a),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:g,onKeyDown:H(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:H(n,v=>{p(h=>sn(h)?!0:!h),w&&y&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})})});sh.displayName=lh;var Yc=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:l,required:s,disabled:i,value:a,onCheckedChange:c,form:f,...p}=e;return u.jsx(GS,{__scopeCheckbox:n,checked:o,defaultChecked:l,disabled:i,required:s,onCheckedChange:c,name:r,form:f,value:a,internal_do_not_use_render:({isFormControl:m})=>u.jsxs(u.Fragment,{children:[u.jsx(sh,{...p,ref:t,__scopeCheckbox:n}),m&&u.jsx(uh,{__scopeCheckbox:n})]})})});Yc.displayName=js;var ih="CheckboxIndicator",ah=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,l=Gc(ih,n);return u.jsx(ht,{present:r||sn(l.checked)||l.checked===!0,children:u.jsx(K.span,{"data-state":dh(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ah.displayName=ih;var ch="CheckboxBubbleInput",uh=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:l,defaultChecked:s,required:i,disabled:a,name:c,value:f,form:p,bubbleInput:m,setBubbleInput:y}=Gc(ch,e),w=ee(n,y),g=rh(l),S=oh(r);d.useEffect(()=>{const h=m;if(!h)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set,P=!o.current;if(g!==l&&b){const E=new Event("click",{bubbles:P});h.indeterminate=sn(l),b.call(h,sn(l)?!1:l),h.dispatchEvent(E)}},[m,g,l,o]);const v=d.useRef(sn(l)?!1:l);return u.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??v.current,required:i,disabled:a,name:c,value:f,form:p,...t,tabIndex:-1,ref:w,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});uh.displayName=ch;function YS(e){return typeof e=="function"}function sn(e){return e==="indeterminate"}function dh(e){return sn(e)?"indeterminate":e?"checked":"unchecked"}const fh=d.forwardRef(({className:e,...t},n)=>u.jsx(Yc,{ref:n,className:D("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(ah,{className:D("grid place-content-center text-current"),children:u.jsx(Cm,{className:"h-4 w-4"})})}));fh.displayName=Yc.displayName;var KS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],XS=KS.reduce((e,t)=>{const n=Rs(`Primitive.${t}`),r=d.forwardRef((o,l)=>{const{asChild:s,...i}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...i,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),QS="Label",ph=d.forwardRef((e,t)=>u.jsx(XS.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())}}));ph.displayName=QS;var mh=ph;const ZS=Do("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),hh=d.forwardRef(({className:e,...t},n)=>u.jsx(mh,{ref:n,className:D(ZS(),e),...t}));hh.displayName=mh.displayName;function qS({data:e,onFileSelect:t}){const[n,r]=d.useState(""),[o,l]=d.useState(!1),s=d.useMemo(()=>{if(!e||!n.trim()||n.length<2)return[];try{return FS(e,n,{caseSensitive:o,maxResults:100})}catch{return[]}},[e,n,o]),i=d.useMemo(()=>{const c=new Map;for(const f of s){const p=c.get(f.file)||[];p.push(f),c.set(f.file,p)}return c},[s]),a=(c,f)=>{t&&t(c,f)};return u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"p-3 border-b space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(bm,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),u.jsx(Uc,{type:"text",value:n,onChange:c=>r(c.target.value),placeholder:"Search in codebase... (regex supported)",className:"pl-9"})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx(fh,{id:"case-sensitive",checked:o,onCheckedChange:c=>l(c)}),u.jsx(hh,{htmlFor:"case-sensitive",className:"text-xs text-muted-foreground cursor-pointer",children:"Case sensitive"})]}),s.length>0&&u.jsxs(Ln,{variant:"secondary",className:"text-xs",children:[s.length," in ",i.size," file",i.size!==1?"s":""]})]})]}),u.jsxs(vn,{className:"flex-1",children:[n.length>0&&n.length<2&&u.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"Type at least 2 characters to search"}),n.length>=2&&s.length===0&&u.jsxs("div",{className:"p-4 text-muted-foreground text-sm",children:['No results found for "',n,'"']}),Array.from(i.entries()).map(([c,f])=>u.jsxs("div",{className:"border-b",children:[u.jsxs("div",{className:"px-3 py-2 bg-muted/50 text-sm font-medium text-primary truncate flex items-center justify-between",children:[u.jsx("span",{className:"truncate",children:c}),u.jsx(Ln,{variant:"outline",className:"text-xs ml-2 shrink-0",children:f.length})]}),u.jsx("div",{className:"divide-y divide-border/50",children:f.map((p,m)=>u.jsx("div",{className:"px-3 py-2 hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>a(c,p.line),children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx("span",{className:"text-xs text-muted-foreground font-mono min-w-[40px] tabular-nums",children:p.line}),u.jsx("code",{className:"text-sm break-all",children:JS(p.content,n,o)})]})},`${p.line}-${m}`))})]},c))]})]})}function JS(e,t,n){try{const r=new RegExp(`(${t})`,n?"g":"gi");return e.split(r).map((l,s)=>r.test(l)?(r.lastIndex=0,u.jsx("span",{className:"bg-chart-4/30 text-chart-4 px-0.5 rounded",children:l},s)):l)}catch{return e}}function e1(e,t=[]){let n=[];function r(l,s){const i=d.createContext(s);i.displayName=l+"Context";const a=n.length;n=[...n,s];const c=p=>{var v;const{scope:m,children:y,...w}=p,g=((v=m==null?void 0:m[e])==null?void 0:v[a])||i,S=d.useMemo(()=>w,Object.values(w));return u.jsx(g.Provider,{value:S,children:y})};c.displayName=l+"Provider";function f(p,m){var g;const y=((g=m==null?void 0:m[e])==null?void 0:g[a])||i,w=d.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[c,f]}const o=()=>{const l=n.map(s=>d.createContext(s));return function(i){const a=(i==null?void 0:i[e])||l;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:a}}),[i,a])}};return o.scopeName=e,[r,t1(o,...t)]}function t1(...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(l){const s=r.reduce((i,{useScope:a,scopeName:c})=>{const p=a(l)[`__scope${c}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var n1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gh=n1.reduce((e,t)=>{const n=Rs(`Primitive.${t}`),r=d.forwardRef((o,l)=>{const{asChild:s,...i}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...i,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Kc="Progress",Xc=100,[r1]=e1(Kc),[o1,l1]=r1(Kc),vh=d.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:l=s1,...s}=e;(o||o===0)&&!Od(o)&&console.error(i1(`${o}`,"Progress"));const i=Od(o)?o:Xc;r!==null&&!Md(r,i)&&console.error(a1(`${r}`,"Progress"));const a=Md(r,i)?r:null,c=rs(a)?l(a,i):void 0;return u.jsx(o1,{scope:n,value:a,max:i,children:u.jsx(gh.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":rs(a)?a:void 0,"aria-valuetext":c,role:"progressbar","data-state":wh(a,i),"data-value":a??void 0,"data-max":i,...s,ref:t})})});vh.displayName=Kc;var yh="ProgressIndicator",xh=d.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=l1(yh,n);return u.jsx(gh.div,{"data-state":wh(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});xh.displayName=yh;function s1(e,t){return`${Math.round(e/t*100)}%`}function wh(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function rs(e){return typeof e=="number"}function Od(e){return rs(e)&&!isNaN(e)&&e>0}function Md(e,t){return rs(e)&&!isNaN(e)&&e<=t&&e>=0}function i1(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Xc}\`.`}function a1(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
207
|
+
- a positive number
|
|
208
|
+
- less than the value passed to \`max\` (or ${Xc} if no \`max\` prop is set)
|
|
209
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
210
|
+
|
|
211
|
+
Defaulting to \`null\`.`}var Sh=vh,c1=xh;const Ch=d.forwardRef(({className:e,value:t,...n},r)=>u.jsx(Sh,{ref:r,className:D("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:u.jsx(c1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ch.displayName=Sh.displayName;function il({title:e,value:t,description:n,icon:r}){return u.jsxs(un,{children:[u.jsxs(Mn,{className:"flex flex-row items-center justify-between pb-2",children:[u.jsx(In,{className:"text-sm font-medium text-muted-foreground",children:e}),u.jsx("div",{className:"text-muted-foreground",children:r})]}),u.jsxs(dn,{children:[u.jsx("div",{className:"text-2xl font-bold",children:t.toLocaleString()}),n&&u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n})]})]})}function u1({metadata:e}){if(!e)return u.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"No snapshot loaded"});const t=e.files.length,n=e.files.reduce((a,c)=>a+c.lines,0),r=e.imports.length,o=Object.keys(e.symbolIndex).length,l=new Map;for(const a of e.files){const c=a.extension||"other",f=l.get(c)||{count:0,lines:0};l.set(c,{count:f.count+1,lines:f.lines+a.lines})}const s=Array.from(l.entries()).sort((a,c)=>c[1].count-a[1].count).slice(0,8),i=Math.max(...s.map(([,a])=>a.count));return u.jsx(vn,{className:"h-full",children:u.jsxs("div",{className:"p-4 space-y-6",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(il,{title:"Files",value:t,icon:u.jsx(Fc,{className:"h-4 w-4"})}),u.jsx(il,{title:"Lines",value:n,icon:u.jsx(Fw,{className:"h-4 w-4"})}),u.jsx(il,{title:"Imports",value:r,icon:u.jsx(Xw,{className:"h-4 w-4"})}),u.jsx(il,{title:"Symbols",value:o,icon:u.jsx(t0,{className:"h-4 w-4"})})]}),u.jsxs(un,{children:[u.jsxs(Mn,{children:[u.jsx(In,{className:"text-base",children:"File Types"}),u.jsx(Cr,{children:"Distribution by extension"})]}),u.jsx(dn,{className:"space-y-4",children:s.map(([a,c])=>{const f=c.count/i*100;return u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm",children:[u.jsxs("span",{className:"font-mono",children:[".",a]}),u.jsxs("span",{className:"text-muted-foreground",children:[c.count," files"]})]}),u.jsx(Ch,{value:f,className:"h-2"})]},a)})})]}),u.jsxs(un,{children:[u.jsxs(Mn,{children:[u.jsx(In,{className:"text-base",children:"Exports"}),u.jsx(Cr,{children:"Exported symbols across files"})]}),u.jsx(dn,{children:e.exports.length>0?u.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.exports.reduce((a,c)=>a+c.symbols.length,0).toLocaleString()," symbols exported across"," ",e.exports.length," files"]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No export data available (basic snapshot)"})})]})]})})}const Si=768;function d1(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Si-1}px)`),r=()=>{t(window.innerWidth<Si)};return n.addEventListener("change",r),t(window.innerWidth<Si),()=>n.removeEventListener("change",r)},[]),!!e}var f1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],p1=f1.reduce((e,t)=>{const n=Rs(`Primitive.${t}`),r=d.forwardRef((o,l)=>{const{asChild:s,...i}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...i,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),m1="Separator",Id="horizontal",h1=["horizontal","vertical"],bh=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Id,...o}=e,l=g1(r)?r:Id,i=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return u.jsx(p1.div,{"data-orientation":l,...i,...o,ref:t})});bh.displayName=m1;function g1(e){return h1.includes(e)}var kh=bh;const co=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>u.jsx(kh,{ref:o,decorative:n,orientation:t,className:D("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));co.displayName=kh.displayName;var v1=Ya[" useId ".trim().toString()]||(()=>{}),y1=0;function Rn(e){const[t,n]=d.useState(v1());return Pe(()=>{n(r=>r??String(y1++))},[e]),e||(t?`radix-${t}`:"")}function x1(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e);d.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 w1="DismissableLayer",Ra="dismissableLayer.update",S1="dismissableLayer.pointerDownOutside",C1="dismissableLayer.focusOutside",Ld,Eh=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_s=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:s,onDismiss:i,...a}=e,c=d.useContext(Eh),[f,p]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=d.useState({}),w=ee(t,E=>p(E)),g=Array.from(c.layers),[S]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(S),h=f?g.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,C=h>=v,b=E1(E=>{const N=E.target,_=[...c.branches].some(R=>R.contains(N));!C||_||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},m),P=N1(E=>{const N=E.target;[...c.branches].some(R=>R.contains(N))||(l==null||l(E),s==null||s(E),E.defaultPrevented||i==null||i())},m);return x1(E=>{h===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},m),d.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ld=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Dd(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ld)}},[f,m,n,c]),d.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Dd())},[f,c]),d.useEffect(()=>{const E=()=>y({});return document.addEventListener(Ra,E),()=>document.removeEventListener(Ra,E)},[]),u.jsx(K.div,{...a,ref:w,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,P.onFocusCapture),onBlurCapture:H(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,b.onPointerDownCapture)})});_s.displayName=w1;var b1="DismissableLayerBranch",k1=d.forwardRef((e,t)=>{const n=d.useContext(Eh),r=d.useRef(null),o=ee(t,r);return d.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),u.jsx(K.div,{...e,ref:o})});k1.displayName=b1;function E1(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const l=i=>{if(i.target&&!r.current){let a=function(){Nh(S1,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function N1(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e),r=d.useRef(!1);return d.useEffect(()=>{const o=l=>{l.target&&!r.current&&Nh(C1,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Dd(){const e=new CustomEvent(Ra);document.dispatchEvent(e)}function Nh(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sS(o,l):o.dispatchEvent(l)}var Ci="focusScope.autoFocusOnMount",bi="focusScope.autoFocusOnUnmount",zd={bubbles:!1,cancelable:!0},P1="FocusScope",Qc=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...s}=e,[i,a]=d.useState(null),c=ze(o),f=ze(l),p=d.useRef(null),m=ee(t,g=>a(g)),y=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let g=function(x){if(y.paused||!i)return;const C=x.target;i.contains(C)?p.current=C:Ut(p.current,{select:!0})},S=function(x){if(y.paused||!i)return;const C=x.relatedTarget;C!==null&&(i.contains(C)||Ut(p.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&Ut(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",S);const h=new MutationObserver(v);return i&&h.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",S),h.disconnect()}}},[r,i,y.paused]),d.useEffect(()=>{if(i){$d.add(y);const g=document.activeElement;if(!i.contains(g)){const v=new CustomEvent(Ci,zd);i.addEventListener(Ci,c),i.dispatchEvent(v),v.defaultPrevented||(R1(O1(Ph(i)),{select:!0}),document.activeElement===g&&Ut(i))}return()=>{i.removeEventListener(Ci,c),setTimeout(()=>{const v=new CustomEvent(bi,zd);i.addEventListener(bi,f),i.dispatchEvent(v),v.defaultPrevented||Ut(g??document.body,{select:!0}),i.removeEventListener(bi,f),$d.remove(y)},0)}}},[i,c,f,y]);const w=d.useCallback(g=>{if(!n&&!r||y.paused)return;const S=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(S&&v){const h=g.currentTarget,[x,C]=j1(h);x&&C?!g.shiftKey&&v===C?(g.preventDefault(),n&&Ut(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Ut(C,{select:!0})):v===h&&g.preventDefault()}},[n,r,y.paused]);return u.jsx(K.div,{tabIndex:-1,...s,ref:m,onKeyDown:w})});Qc.displayName=P1;function R1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ut(r,{select:t}),document.activeElement!==n)return}function j1(e){const t=Ph(e),n=Fd(t,e),r=Fd(t.reverse(),e);return[n,r]}function Ph(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 Fd(e,t){for(const n of e)if(!_1(n,{upTo:t}))return n}function _1(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 T1(e){return e instanceof HTMLInputElement&&"select"in e}function Ut(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&T1(e)&&t&&e.select()}}var $d=A1();function A1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vd(e,t),e.unshift(t)},remove(t){var n;e=Vd(e,t),(n=e[0])==null||n.resume()}}}function Vd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function O1(e){return e.filter(t=>t.tagName!=="A")}var M1="Portal",Ts=d.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,l]=d.useState(!1);Pe(()=>l(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?yw.createPortal(u.jsx(K.div,{...r,ref:t}),s):null});Ts.displayName=M1;var ki=0;function Rh(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bd()),document.body.insertAdjacentElement("beforeend",e[1]??Bd()),ki++,()=>{ki===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ki--}},[])}function Bd(){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 St=function(){return St=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},St.apply(this,arguments)};function jh(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 I1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,l;r<o;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var El="right-scroll-bar-position",Nl="width-before-scroll-bar",L1="with-scroll-bars-hidden",D1="--removed-body-scroll-bar-size";function Ei(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function z1(e,t){var n=d.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 F1=typeof window<"u"?d.useLayoutEffect:d.useEffect,Wd=new WeakMap;function $1(e,t){var n=z1(null,function(r){return e.forEach(function(o){return Ei(o,r)})});return F1(function(){var r=Wd.get(n);if(r){var o=new Set(r),l=new Set(e),s=n.current;o.forEach(function(i){l.has(i)||Ei(i,null)}),l.forEach(function(i){o.has(i)||Ei(i,s)})}Wd.set(n,e)},[e]),n}function V1(e){return e}function B1(e,t){t===void 0&&(t=V1);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(l){var s=t(l,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(l){for(r=!0;n.length;){var s=n;n=[],s.forEach(l)}n={push:function(i){return l(i)},filter:function(){return n}}},assignMedium:function(l){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(l),s=n}var a=function(){var f=s;s=[],f.forEach(l)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return o}function W1(e){e===void 0&&(e={});var t=B1(null);return t.options=St({async:!0,ssr:!1},e),t}var _h=function(e){var t=e.sideCar,n=jh(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 d.createElement(r,St({},n))};_h.isSideCarExport=!0;function H1(e,t){return e.useMedium(t),_h}var Th=W1(),Ni=function(){},As=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Ni,onWheelCapture:Ni,onTouchMoveCapture:Ni}),o=r[0],l=r[1],s=e.forwardProps,i=e.children,a=e.className,c=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,y=e.noRelative,w=e.noIsolation,g=e.inert,S=e.allowPinchZoom,v=e.as,h=v===void 0?"div":v,x=e.gapMode,C=jh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,P=$1([n,t]),E=St(St({},C),o);return d.createElement(d.Fragment,null,f&&d.createElement(b,{sideCar:Th,removeScrollBar:c,shards:p,noRelative:y,noIsolation:w,inert:g,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:x}),s?d.cloneElement(d.Children.only(i),St(St({},E),{ref:P})):d.createElement(h,St({},E,{className:a,ref:P}),i))});As.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};As.classNames={fullWidth:Nl,zeroRight:El};var U1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function G1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=U1();return t&&e.setAttribute("nonce",t),e}function Y1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function K1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var X1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=G1())&&(Y1(t,n),K1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q1=function(){var e=X1();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ah=function(){var e=Q1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Z1={left:0,top:0,right:0,gap:0},Pi=function(e){return parseInt(e||"",10)||0},q1=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[Pi(n),Pi(r),Pi(o)]},J1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Z1;var t=q1(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])}},eC=Ah(),pr="data-scroll-locked",tC=function(e,t,n,r){var o=e.left,l=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
212
|
+
.`.concat(L1,` {
|
|
213
|
+
overflow: hidden `).concat(r,`;
|
|
214
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
215
|
+
}
|
|
216
|
+
body[`).concat(pr,`] {
|
|
217
|
+
overflow: hidden `).concat(r,`;
|
|
218
|
+
overscroll-behavior: contain;
|
|
219
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
220
|
+
padding-left: `.concat(o,`px;
|
|
221
|
+
padding-top: `).concat(l,`px;
|
|
222
|
+
padding-right: `).concat(s,`px;
|
|
223
|
+
margin-left:0;
|
|
224
|
+
margin-top:0;
|
|
225
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
226
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.`).concat(El,` {
|
|
230
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.`).concat(Nl,` {
|
|
234
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.`).concat(El," .").concat(El,` {
|
|
238
|
+
right: 0 `).concat(r,`;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.`).concat(Nl," .").concat(Nl,` {
|
|
242
|
+
margin-right: 0 `).concat(r,`;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
body[`).concat(pr,`] {
|
|
246
|
+
`).concat(D1,": ").concat(i,`px;
|
|
247
|
+
}
|
|
248
|
+
`)},Hd=function(){var e=parseInt(document.body.getAttribute(pr)||"0",10);return isFinite(e)?e:0},nC=function(){d.useEffect(function(){return document.body.setAttribute(pr,(Hd()+1).toString()),function(){var e=Hd()-1;e<=0?document.body.removeAttribute(pr):document.body.setAttribute(pr,e.toString())}},[])},rC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;nC();var l=d.useMemo(function(){return J1(o)},[o]);return d.createElement(eC,{styles:tC(l,!t,o,n?"":"!important")})},ja=!1;if(typeof window<"u")try{var al=Object.defineProperty({},"passive",{get:function(){return ja=!0,!0}});window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{ja=!1}var Gn=ja?{passive:!1}:!1,oC=function(e){return e.tagName==="TEXTAREA"},Oh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oC(e)&&n[t]==="visible")},lC=function(e){return Oh(e,"overflowY")},sC=function(e){return Oh(e,"overflowX")},Ud=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Mh(e,r);if(o){var l=Ih(e,r),s=l[1],i=l[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},iC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},aC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Mh=function(e,t){return e==="v"?lC(t):sC(t)},Ih=function(e,t){return e==="v"?iC(t):aC(t)},cC=function(e,t){return e==="h"&&t==="rtl"?-1:1},uC=function(e,t,n,r,o){var l=cC(e,window.getComputedStyle(t).direction),s=l*r,i=n.target,a=t.contains(i),c=!1,f=s>0,p=0,m=0;do{if(!i)break;var y=Ih(e,i),w=y[0],g=y[1],S=y[2],v=g-S-l*w;(w||v)&&Mh(e,i)&&(p+=v,m+=w);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!a&&i!==document.body||a&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(c=!0),c},cl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gd=function(e){return[e.deltaX,e.deltaY]},Yd=function(e){return e&&"current"in e?e.current:e},dC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fC=function(e){return`
|
|
249
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
250
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
251
|
+
`)},pC=0,Yn=[];function mC(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(pC++)[0],l=d.useState(Ah)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=I1([e.lockRef.current],(e.shards||[]).map(Yd),!0).filter(Boolean);return g.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(g,S){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var v=cl(g),h=n.current,x="deltaX"in g?g.deltaX:h[0]-v[0],C="deltaY"in g?g.deltaY:h[1]-v[1],b,P=g.target,E=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in g&&E==="h"&&P.type==="range")return!1;var N=window.getSelection(),_=N&&N.anchorNode,R=_?_===P||_.contains(P):!1;if(R)return!1;var T=Ud(E,P);if(!T)return!0;if(T?b=E:(b=E==="v"?"h":"v",T=Ud(E,P)),!T)return!1;if(!r.current&&"changedTouches"in g&&(x||C)&&(r.current=b),!b)return!0;var z=r.current||b;return uC(z,S,g,z==="h"?x:C)},[]),a=d.useCallback(function(g){var S=g;if(!(!Yn.length||Yn[Yn.length-1]!==l)){var v="deltaY"in S?Gd(S):cl(S),h=t.current.filter(function(b){return b.name===S.type&&(b.target===S.target||S.target===b.shadowParent)&&dC(b.delta,v)})[0];if(h&&h.should){S.cancelable&&S.preventDefault();return}if(!h){var x=(s.current.shards||[]).map(Yd).filter(Boolean).filter(function(b){return b.contains(S.target)}),C=x.length>0?i(S,x[0]):!s.current.noIsolation;C&&S.cancelable&&S.preventDefault()}}},[]),c=d.useCallback(function(g,S,v,h){var x={name:g,delta:S,target:v,should:h,shadowParent:hC(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),f=d.useCallback(function(g){n.current=cl(g),r.current=void 0},[]),p=d.useCallback(function(g){c(g.type,Gd(g),g.target,i(g,e.lockRef.current))},[]),m=d.useCallback(function(g){c(g.type,cl(g),g.target,i(g,e.lockRef.current))},[]);d.useEffect(function(){return Yn.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",a,Gn),document.addEventListener("touchmove",a,Gn),document.addEventListener("touchstart",f,Gn),function(){Yn=Yn.filter(function(g){return g!==l}),document.removeEventListener("wheel",a,Gn),document.removeEventListener("touchmove",a,Gn),document.removeEventListener("touchstart",f,Gn)}},[]);var y=e.removeScrollBar,w=e.inert;return d.createElement(d.Fragment,null,w?d.createElement(l,{styles:fC(o)}):null,y?d.createElement(rC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gC=H1(Th,mC);var Zc=d.forwardRef(function(e,t){return d.createElement(As,St({},e,{ref:t,sideCar:gC}))});Zc.classNames=As.classNames;var vC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kn=new WeakMap,ul=new WeakMap,dl={},Ri=0,Lh=function(e){return e&&(e.host||Lh(e.parentNode))},yC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lh(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})},xC=function(e,t,n,r){var o=yC(t,Array.isArray(e)?e:[e]);dl[n]||(dl[n]=new WeakMap);var l=dl[n],s=[],i=new Set,a=new Set(o),c=function(p){!p||i.has(p)||(i.add(p),c(p.parentNode))};o.forEach(c);var f=function(p){!p||a.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var y=m.getAttribute(r),w=y!==null&&y!=="false",g=(Kn.get(m)||0)+1,S=(l.get(m)||0)+1;Kn.set(m,g),l.set(m,S),s.push(m),g===1&&w&&ul.set(m,!0),S===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return f(t),i.clear(),Ri++,function(){s.forEach(function(p){var m=Kn.get(p)-1,y=l.get(p)-1;Kn.set(p,m),l.set(p,y),m||(ul.has(p)||p.removeAttribute(r),ul.delete(p)),y||p.removeAttribute(n)}),Ri--,Ri||(Kn=new WeakMap,Kn=new WeakMap,ul=new WeakMap,dl={})}},Dh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=vC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),xC(r,o,n,"aria-hidden")):function(){return null}};function wC(e){const t=SC(e),n=d.forwardRef((r,o)=>{const{children:l,...s}=r,i=d.Children.toArray(l),a=i.find(bC);if(a){const c=a.props.children,f=i.map(p=>p===a?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function SC(e){const t=d.forwardRef((n,r)=>{const{children:o,...l}=n;if(d.isValidElement(o)){const s=EC(o),i=kC(l,o.props);return o.type!==d.Fragment&&(i.ref=r?Ar(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CC=Symbol("radix.slottable");function bC(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CC}function kC(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...i)=>{const a=l(...i);return o(...i),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function EC(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 Os="Dialog",[zh]=Wn(Os),[NC,gt]=zh(Os),Fh=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:s=!0}=e,i=d.useRef(null),a=d.useRef(null),[c,f]=jo({prop:r,defaultProp:o??!1,onChange:l,caller:Os});return u.jsx(NC,{scope:t,triggerRef:i,contentRef:a,contentId:Rn(),titleId:Rn(),descriptionId:Rn(),open:c,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};Fh.displayName=Os;var $h="DialogTrigger",PC=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt($h,n),l=ee(t,o.triggerRef);return u.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eu(o.open),...r,ref:l,onClick:H(e.onClick,o.onOpenToggle)})});PC.displayName=$h;var qc="DialogPortal",[RC,Vh]=zh(qc,{forceMount:void 0}),Bh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=gt(qc,t);return u.jsx(RC,{scope:t,forceMount:n,children:d.Children.map(r,s=>u.jsx(ht,{present:n||l.open,children:u.jsx(Ts,{asChild:!0,container:o,children:s})}))})};Bh.displayName=qc;var os="DialogOverlay",Wh=d.forwardRef((e,t)=>{const n=Vh(os,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=gt(os,e.__scopeDialog);return l.modal?u.jsx(ht,{present:r||l.open,children:u.jsx(_C,{...o,ref:t})}):null});Wh.displayName=os;var jC=wC("DialogOverlay.RemoveScroll"),_C=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(os,n);return u.jsx(Zc,{as:jC,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(K.div,{"data-state":eu(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Dn="DialogContent",Hh=d.forwardRef((e,t)=>{const n=Vh(Dn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=gt(Dn,e.__scopeDialog);return u.jsx(ht,{present:r||l.open,children:l.modal?u.jsx(TC,{...o,ref:t}):u.jsx(AC,{...o,ref:t})})});Hh.displayName=Dn;var TC=d.forwardRef((e,t)=>{const n=gt(Dn,e.__scopeDialog),r=d.useRef(null),o=ee(t,n.contentRef,r);return d.useEffect(()=>{const l=r.current;if(l)return Dh(l)},[]),u.jsx(Uh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&l.preventDefault()}),onFocusOutside:H(e.onFocusOutside,l=>l.preventDefault())})}),AC=d.forwardRef((e,t)=>{const n=gt(Dn,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return u.jsx(Uh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,l),l.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),l.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:l=>{var a,c;(a=e.onInteractOutside)==null||a.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=l.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),Uh=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...s}=e,i=gt(Dn,n),a=d.useRef(null),c=ee(t,a);return Rh(),u.jsxs(u.Fragment,{children:[u.jsx(Qc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:u.jsx(_s,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":eu(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(OC,{titleId:i.titleId}),u.jsx(IC,{contentRef:a,descriptionId:i.descriptionId})]})]})}),Jc="DialogTitle",Gh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Jc,n);return u.jsx(K.h2,{id:o.titleId,...r,ref:t})});Gh.displayName=Jc;var Yh="DialogDescription",Kh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Yh,n);return u.jsx(K.p,{id:o.descriptionId,...r,ref:t})});Kh.displayName=Yh;var Xh="DialogClose",Qh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Xh,n);return u.jsx(K.button,{type:"button",...r,ref:t,onClick:H(e.onClick,()=>o.onOpenChange(!1))})});Qh.displayName=Xh;function eu(e){return e?"open":"closed"}var Zh="DialogTitleWarning",[$E,qh]=uS(Zh,{contentName:Dn,titleName:Jc,docsSlug:"dialog"}),OC=({titleId:e})=>{const t=qh(Zh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
252
|
+
|
|
253
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
254
|
+
|
|
255
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},MC="DialogDescriptionWarning",IC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qh(MC).contentName}}.`;return d.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},LC=Fh,DC=Bh,Jh=Wh,eg=Hh,tg=Gh,ng=Kh,zC=Qh;const FC=LC,$C=DC,rg=d.forwardRef(({className:e,...t},n)=>u.jsx(Jh,{className:D("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}));rg.displayName=Jh.displayName;const VC=Do("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),og=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs($C,{children:[u.jsx(rg,{}),u.jsxs(eg,{ref:o,className:D(VC({side:e}),t),...r,children:[u.jsxs(zC,{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(km,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));og.displayName=eg.displayName;const lg=({className:e,...t})=>u.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});lg.displayName="SheetHeader";const sg=d.forwardRef(({className:e,...t},n)=>u.jsx(tg,{ref:n,className:D("text-lg font-semibold text-foreground",e),...t}));sg.displayName=tg.displayName;const ig=d.forwardRef(({className:e,...t},n)=>u.jsx(ng,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));ig.displayName=ng.displayName;function Kd({className:e,...t}){return u.jsx("div",{className:D("animate-pulse rounded-md bg-primary/10",e),...t})}const BC=["top","right","bottom","left"],fn=Math.min,Ue=Math.max,ls=Math.round,fl=Math.floor,Et=e=>({x:e,y:e}),WC={left:"right",right:"left",bottom:"top",top:"bottom"},HC={start:"end",end:"start"};function _a(e,t,n){return Ue(e,fn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function Vt(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function tu(e){return e==="x"?"y":"x"}function nu(e){return e==="y"?"height":"width"}const UC=new Set(["top","bottom"]);function Ct(e){return UC.has(Vt(e))?"y":"x"}function ru(e){return tu(Ct(e))}function GC(e,t,n){n===void 0&&(n=!1);const r=Mr(e),o=ru(e),l=nu(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=ss(s)),[s,ss(s)]}function YC(e){const t=ss(e);return[Ta(e),t,Ta(t)]}function Ta(e){return e.replace(/start|end/g,t=>HC[t])}const Xd=["left","right"],Qd=["right","left"],KC=["top","bottom"],XC=["bottom","top"];function QC(e,t,n){switch(e){case"top":case"bottom":return n?t?Qd:Xd:t?Xd:Qd;case"left":case"right":return t?KC:XC;default:return[]}}function ZC(e,t,n,r){const o=Mr(e);let l=QC(Vt(e),n==="start",r);return o&&(l=l.map(s=>s+"-"+o),t&&(l=l.concat(l.map(Ta)))),l}function ss(e){return e.replace(/left|right|bottom|top/g,t=>WC[t])}function qC(e){return{top:0,right:0,bottom:0,left:0,...e}}function ag(e){return typeof e!="number"?qC(e):{top:e,right:e,bottom:e,left:e}}function is(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 Zd(e,t,n){let{reference:r,floating:o}=e;const l=Ct(t),s=ru(t),i=nu(s),a=Vt(t),c=l==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let y;switch(a){case"top":y={x:f,y:r.y-o.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Mr(t)){case"start":y[s]-=m*(n&&c?-1:1);break;case"end":y[s]+=m*(n&&c?-1:1);break}return y}async function JC(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:s,elements:i,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=$t(t,e),w=ag(y),S=i[m?p==="floating"?"reference":"floating":p],v=is(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:f,strategy:a})),h=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),C=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},b=is(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:x,strategy:a}):h);return{top:(v.top-b.top+w.top)/C.y,bottom:(b.bottom-v.bottom+w.bottom)/C.y,left:(v.left-b.left+w.left)/C.x,right:(b.right-v.right+w.right)/C.x}}const eb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:s}=n,i=l.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Zd(c,r,a),m=r,y={},w=0;for(let S=0;S<i.length;S++){var g;const{name:v,fn:h}=i[S],{x,y:C,data:b,reset:P}=await h({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:c,platform:{...s,detectOverflow:(g=s.detectOverflow)!=null?g:JC},elements:{reference:e,floating:t}});f=x??f,p=C??p,y={...y,[v]:{...y[v],...b}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(c=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Zd(c,m,a)),S=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:y}},tb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:s,elements:i,middlewareData:a}=t,{element:c,padding:f=0}=$t(e,t)||{};if(c==null)return{};const p=ag(f),m={x:n,y:r},y=ru(o),w=nu(y),g=await s.getDimensions(c),S=y==="y",v=S?"top":"left",h=S?"bottom":"right",x=S?"clientHeight":"clientWidth",C=l.reference[w]+l.reference[y]-m[y]-l.floating[w],b=m[y]-l.reference[y],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=P?P[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(P)))&&(E=i.floating[x]||l.floating[w]);const N=C/2-b/2,_=E/2-g[w]/2-1,R=fn(p[v],_),T=fn(p[h],_),z=R,B=E-g[w]-T,V=E/2-g[w]/2+N,G=_a(z,V,B),$=!a.arrow&&Mr(o)!=null&&V!==G&&l.reference[w]/2-(V<z?R:T)-g[w]/2<0,W=$?V<z?V-z:V-B:0;return{[y]:m[y]+W,data:{[y]:G,centerOffset:V-G-W,...$&&{alignmentOffset:W}},reset:$}}}),nb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:s,initialPlacement:i,platform:a,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...S}=$t(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const v=Vt(o),h=Ct(i),x=Vt(i)===i,C=await(a.isRTL==null?void 0:a.isRTL(c.floating)),b=m||(x||!g?[ss(i)]:YC(i)),P=w!=="none";!m&&P&&b.push(...ZC(i,g,w,C));const E=[i,...b],N=await a.detectOverflow(t,S),_=[];let R=((r=l.flip)==null?void 0:r.overflows)||[];if(f&&_.push(N[v]),p){const V=GC(o,s,C);_.push(N[V[0]],N[V[1]])}if(R=[...R,{placement:o,overflows:_}],!_.every(V=>V<=0)){var T,z;const V=(((T=l.flip)==null?void 0:T.index)||0)+1,G=E[V];if(G&&(!(p==="alignment"?h!==Ct(G):!1)||R.every(k=>Ct(k.placement)===h?k.overflows[0]>0:!0)))return{data:{index:V,overflows:R},reset:{placement:G}};let $=(z=R.filter(W=>W.overflows[0]<=0).sort((W,k)=>W.overflows[1]-k.overflows[1])[0])==null?void 0:z.placement;if(!$)switch(y){case"bestFit":{var B;const W=(B=R.filter(k=>{if(P){const A=Ct(k.placement);return A===h||A==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(A=>A>0).reduce((A,F)=>A+F,0)]).sort((k,A)=>k[1]-A[1])[0])==null?void 0:B[0];W&&($=W);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function qd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jd(e){return BC.some(t=>e[t]>=0)}const rb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...l}=$t(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...l,elementContext:"reference"}),i=qd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Jd(i)}}}case"escaped":{const s=await r.detectOverflow(t,{...l,altBoundary:!0}),i=qd(s,n.floating);return{data:{escapedOffsets:i,escaped:Jd(i)}}}default:return{}}}}},cg=new Set(["left","top"]);async function ob(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Vt(n),i=Mr(n),a=Ct(n)==="y",c=cg.has(s)?-1:1,f=l&&a?-1:1,p=$t(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(y=i==="end"?w*-1:w),a?{x:y*f,y:m*c}:{x:m*c,y:y*f}}const lb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:s,middlewareData:i}=t,a=await ob(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:l+a.y,data:{...a,placement:s}}}}},sb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:l}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:h,y:x}=v;return{x:h,y:x}}},...c}=$t(e,t),f={x:n,y:r},p=await l.detectOverflow(t,c),m=Ct(Vt(o)),y=tu(m);let w=f[y],g=f[m];if(s){const v=y==="y"?"top":"left",h=y==="y"?"bottom":"right",x=w+p[v],C=w-p[h];w=_a(x,w,C)}if(i){const v=m==="y"?"top":"left",h=m==="y"?"bottom":"right",x=g+p[v],C=g-p[h];g=_a(x,g,C)}const S=a.fn({...t,[y]:w,[m]:g});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[y]:s,[m]:i}}}}}},ib=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:s}=t,{offset:i=0,mainAxis:a=!0,crossAxis:c=!0}=$t(e,t),f={x:n,y:r},p=Ct(o),m=tu(p);let y=f[m],w=f[p];const g=$t(i,t),S=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const x=m==="y"?"height":"width",C=l.reference[m]-l.floating[x]+S.mainAxis,b=l.reference[m]+l.reference[x]-S.mainAxis;y<C?y=C:y>b&&(y=b)}if(c){var v,h;const x=m==="y"?"width":"height",C=cg.has(Vt(o)),b=l.reference[p]-l.floating[x]+(C&&((v=s.offset)==null?void 0:v[p])||0)+(C?0:S.crossAxis),P=l.reference[p]+l.reference[x]+(C?0:((h=s.offset)==null?void 0:h[p])||0)-(C?S.crossAxis:0);w<b?w=b:w>P&&(w=P)}return{[m]:y,[p]:w}}}},ab=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:s,elements:i}=t,{apply:a=()=>{},...c}=$t(e,t),f=await s.detectOverflow(t,c),p=Vt(o),m=Mr(o),y=Ct(o)==="y",{width:w,height:g}=l.floating;let S,v;p==="top"||p==="bottom"?(S=p,v=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(v=p,S=m==="end"?"top":"bottom");const h=g-f.top-f.bottom,x=w-f.left-f.right,C=fn(g-f[S],h),b=fn(w-f[v],x),P=!t.middlewareData.shift;let E=C,N=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=h),P&&!m){const R=Ue(f.left,0),T=Ue(f.right,0),z=Ue(f.top,0),B=Ue(f.bottom,0);y?N=w-2*(R!==0||T!==0?R+T:Ue(f.left,f.right)):E=g-2*(z!==0||B!==0?z+B:Ue(f.top,f.bottom))}await a({...t,availableWidth:N,availableHeight:E});const _=await s.getDimensions(i.floating);return w!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function Ms(){return typeof window<"u"}function Ir(e){return ug(e)?(e.nodeName||"").toLowerCase():"#document"}function Ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ug(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ug(e){return Ms()?e instanceof Node||e instanceof Ke(e).Node:!1}function pt(e){return Ms()?e instanceof Element||e instanceof Ke(e).Element:!1}function Nt(e){return Ms()?e instanceof HTMLElement||e instanceof Ke(e).HTMLElement:!1}function ef(e){return!Ms()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ke(e).ShadowRoot}const cb=new Set(["inline","contents"]);function zo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cb.has(o)}const ub=new Set(["table","td","th"]);function db(e){return ub.has(Ir(e))}const fb=[":popover-open",":modal"];function Is(e){return fb.some(t=>{try{return e.matches(t)}catch{return!1}})}const pb=["transform","translate","scale","rotate","perspective"],mb=["transform","translate","scale","rotate","perspective","filter"],hb=["paint","layout","strict","content"];function ou(e){const t=lu(),n=pt(e)?mt(e):e;return pb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mb.some(r=>(n.willChange||"").includes(r))||hb.some(r=>(n.contain||"").includes(r))}function gb(e){let t=pn(e);for(;Nt(t)&&!kr(t);){if(ou(t))return t;if(Is(t))return null;t=pn(t)}return null}function lu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vb=new Set(["html","body","#document"]);function kr(e){return vb.has(Ir(e))}function mt(e){return Ke(e).getComputedStyle(e)}function Ls(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pn(e){if(Ir(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ef(e)&&e.host||Rt(e);return ef(t)?t.host:t}function dg(e){const t=pn(e);return kr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(t)&&zo(t)?t:dg(t)}function _o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dg(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ke(o);if(l){const i=Aa(s);return t.concat(s,s.visualViewport||[],zo(o)?o:[],i&&n?_o(i):[])}return t.concat(o,_o(o,[],n))}function Aa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fg(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nt(e),l=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=ls(n)!==l||ls(r)!==s;return i&&(n=l,r=s),{width:n,height:r,$:i}}function su(e){return pt(e)?e:e.contextElement}function mr(e){const t=su(e);if(!Nt(t))return Et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=fg(t);let s=(l?ls(n.width):n.width)/r,i=(l?ls(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const yb=Et(0);function pg(e){const t=Ke(e);return!lu()||!t.visualViewport?yb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ke(e)?!1:t}function zn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=su(e);let s=Et(1);t&&(r?pt(r)&&(s=mr(r)):s=mr(e));const i=xb(l,n,r)?pg(l):Et(0);let a=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(l){const m=Ke(l),y=r&&pt(r)?Ke(r):r;let w=m,g=Aa(w);for(;g&&r&&y!==w;){const S=mr(g),v=g.getBoundingClientRect(),h=mt(g),x=v.left+(g.clientLeft+parseFloat(h.paddingLeft))*S.x,C=v.top+(g.clientTop+parseFloat(h.paddingTop))*S.y;a*=S.x,c*=S.y,f*=S.x,p*=S.y,a+=x,c+=C,w=Ke(g),g=Aa(w)}}return is({width:f,height:p,x:a,y:c})}function Ds(e,t){const n=Ls(e).scrollLeft;return t?t.left+n:zn(Rt(e)).left+n}function mg(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ds(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",s=Rt(r),i=t?Is(t.floating):!1;if(r===s||i&&l)return n;let a={scrollLeft:0,scrollTop:0},c=Et(1);const f=Et(0),p=Nt(r);if((p||!p&&!l)&&((Ir(r)!=="body"||zo(s))&&(a=Ls(r)),Nt(r))){const y=zn(r);c=mr(r),f.x=y.x+r.clientLeft,f.y=y.y+r.clientTop}const m=s&&!p&&!l?mg(s,a):Et(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-a.scrollTop*c.y+f.y+m.y}}function Sb(e){return Array.from(e.getClientRects())}function Cb(e){const t=Rt(e),n=Ls(e),r=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ds(e);const i=-n.scrollTop;return mt(r).direction==="rtl"&&(s+=Ue(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:s,y:i}}const tf=25;function bb(e,t){const n=Ke(e),r=Rt(e),o=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,i=0,a=0;if(o){l=o.width,s=o.height;const f=lu();(!f||f&&t==="fixed")&&(i=o.offsetLeft,a=o.offsetTop)}const c=Ds(r);if(c<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),y=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-y);w<=tf&&(l-=w)}else c<=tf&&(l+=c);return{width:l,height:s,x:i,y:a}}const kb=new Set(["absolute","fixed"]);function Eb(e,t){const n=zn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=Nt(e)?mr(e):Et(1),s=e.clientWidth*l.x,i=e.clientHeight*l.y,a=o*l.x,c=r*l.y;return{width:s,height:i,x:a,y:c}}function nf(e,t,n){let r;if(t==="viewport")r=bb(e,n);else if(t==="document")r=Cb(Rt(e));else if(pt(t))r=Eb(t,n);else{const o=pg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return is(r)}function hg(e,t){const n=pn(e);return n===t||!pt(n)||kr(n)?!1:mt(n).position==="fixed"||hg(n,t)}function Nb(e,t){const n=t.get(e);if(n)return n;let r=_o(e,[],!1).filter(i=>pt(i)&&Ir(i)!=="body"),o=null;const l=mt(e).position==="fixed";let s=l?pn(e):e;for(;pt(s)&&!kr(s);){const i=mt(s),a=ou(s);!a&&i.position==="fixed"&&(o=null),(l?!a&&!o:!a&&i.position==="static"&&!!o&&kb.has(o.position)||zo(s)&&!a&&hg(e,s))?r=r.filter(f=>f!==s):o=i,s=pn(s)}return t.set(e,r),r}function Pb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Is(t)?[]:Nb(t,this._c):[].concat(n),r],i=s[0],a=s.reduce((c,f)=>{const p=nf(t,f,o);return c.top=Ue(p.top,c.top),c.right=fn(p.right,c.right),c.bottom=fn(p.bottom,c.bottom),c.left=Ue(p.left,c.left),c},nf(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Rb(e){const{width:t,height:n}=fg(e);return{width:t,height:n}}function jb(e,t,n){const r=Nt(t),o=Rt(t),l=n==="fixed",s=zn(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const a=Et(0);function c(){a.x=Ds(o)}if(r||!r&&!l)if((Ir(t)!=="body"||zo(o))&&(i=Ls(t)),r){const y=zn(t,!0,l,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&c();l&&!r&&o&&c();const f=o&&!r&&!l?mg(o,i):Et(0),p=s.left+i.scrollLeft-a.x-f.x,m=s.top+i.scrollTop-a.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function ji(e){return mt(e).position==="static"}function rf(e,t){if(!Nt(e)||mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function gg(e,t){const n=Ke(e);if(Is(e))return n;if(!Nt(e)){let o=pn(e);for(;o&&!kr(o);){if(pt(o)&&!ji(o))return o;o=pn(o)}return n}let r=rf(e,t);for(;r&&db(r)&&ji(r);)r=rf(r,t);return r&&kr(r)&&ji(r)&&!ou(r)?n:r||gb(e)||n}const _b=async function(e){const t=this.getOffsetParent||gg,n=this.getDimensions,r=await n(e.floating);return{reference:jb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tb(e){return mt(e).direction==="rtl"}const Ab={convertOffsetParentRelativeRectToViewportRelativeRect:wb,getDocumentElement:Rt,getClippingRect:Pb,getOffsetParent:gg,getElementRects:_b,getClientRects:Sb,getDimensions:Rb,getScale:mr,isElement:pt,isRTL:Tb};function vg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ob(e,t){let n=null,r;const o=Rt(e);function l(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),l();const c=e.getBoundingClientRect(),{left:f,top:p,width:m,height:y}=c;if(i||t(),!m||!y)return;const w=fl(p),g=fl(o.clientWidth-(f+m)),S=fl(o.clientHeight-(p+y)),v=fl(f),x={rootMargin:-w+"px "+-g+"px "+-S+"px "+-v+"px",threshold:Ue(0,fn(1,a))||1};let C=!0;function b(P){const E=P[0].intersectionRatio;if(E!==a){if(!C)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!vg(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(b,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return s(!0),l}function Mb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=su(e),f=o||l?[...c?_o(c):[],..._o(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),l&&v.addEventListener("resize",n)});const p=c&&i?Ob(c,n):null;let m=-1,y=null;s&&(y=new ResizeObserver(v=>{let[h]=v;h&&h.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=y)==null||x.observe(t)})),n()}),c&&!a&&y.observe(c),y.observe(t));let w,g=a?zn(e):null;a&&S();function S(){const v=zn(e);g&&!vg(g,v)&&n(),g=v,w=requestAnimationFrame(S)}return n(),()=>{var v;f.forEach(h=>{o&&h.removeEventListener("scroll",n),l&&h.removeEventListener("resize",n)}),p==null||p(),(v=y)==null||v.disconnect(),y=null,a&&cancelAnimationFrame(w)}}const Ib=lb,Lb=sb,Db=nb,zb=ab,Fb=rb,of=tb,$b=ib,Vb=(e,t,n)=>{const r=new Map,o={platform:Ab,...n},l={...o.platform,_c:r};return eb(e,t,{...o,platform:l})};var Bb=typeof document<"u",Wb=function(){},Pl=Bb?d.useLayoutEffect:Wb;function as(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(!as(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 l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!as(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function yg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lf(e,t){const n=yg(e);return Math.round(t*n)/n}function _i(e){const t=d.useRef(e);return Pl(()=>{t.current=e}),t}function Hb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:i=!0,whileElementsMounted:a,open:c}=e,[f,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=d.useState(r);as(m,r)||y(r);const[w,g]=d.useState(null),[S,v]=d.useState(null),h=d.useCallback(k=>{k!==P.current&&(P.current=k,g(k))},[]),x=d.useCallback(k=>{k!==E.current&&(E.current=k,v(k))},[]),C=l||w,b=s||S,P=d.useRef(null),E=d.useRef(null),N=d.useRef(f),_=a!=null,R=_i(a),T=_i(o),z=_i(c),B=d.useCallback(()=>{if(!P.current||!E.current)return;const k={placement:t,strategy:n,middleware:m};T.current&&(k.platform=T.current),Vb(P.current,E.current,k).then(A=>{const F={...A,isPositioned:z.current!==!1};V.current&&!as(N.current,F)&&(N.current=F,jr.flushSync(()=>{p(F)}))})},[m,t,n,T,z]);Pl(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[c]);const V=d.useRef(!1);Pl(()=>(V.current=!0,()=>{V.current=!1}),[]),Pl(()=>{if(C&&(P.current=C),b&&(E.current=b),C&&b){if(R.current)return R.current(C,b,B);B()}},[C,b,B,R,_]);const G=d.useMemo(()=>({reference:P,floating:E,setReference:h,setFloating:x}),[h,x]),$=d.useMemo(()=>({reference:C,floating:b}),[C,b]),W=d.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const A=lf($.floating,f.x),F=lf($.floating,f.y);return i?{...k,transform:"translate("+A+"px, "+F+"px)",...yg($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:F}},[n,i,$.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:B,refs:G,elements:$,floatingStyles:W}),[f,B,G,$,W])}const Ub=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?of({element:r.current,padding:o}).fn(n):{}:r?of({element:r,padding:o}).fn(n):{}}}},Gb=(e,t)=>({...Ib(e),options:[e,t]}),Yb=(e,t)=>({...Lb(e),options:[e,t]}),Kb=(e,t)=>({...$b(e),options:[e,t]}),Xb=(e,t)=>({...Db(e),options:[e,t]}),Qb=(e,t)=>({...zb(e),options:[e,t]}),Zb=(e,t)=>({...Fb(e),options:[e,t]}),qb=(e,t)=>({...Ub(e),options:[e,t]});var Jb="Arrow",xg=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...l}=e;return u.jsx(K.svg,{...l,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"})})});xg.displayName=Jb;var ek=xg,iu="Popper",[wg,zs]=Wn(iu),[tk,Sg]=wg(iu),Cg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return u.jsx(tk,{scope:t,anchor:r,onAnchorChange:o,children:n})};Cg.displayName=iu;var bg="PopperAnchor",kg=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,l=Sg(bg,n),s=d.useRef(null),i=ee(t,s),a=d.useRef(null);return d.useEffect(()=>{const c=a.current;a.current=(r==null?void 0:r.current)||s.current,c!==a.current&&l.onAnchorChange(a.current)}),r?null:u.jsx(K.div,{...o,ref:i})});kg.displayName=bg;var au="PopperContent",[nk,rk]=wg(au),Eg=d.forwardRef((e,t)=>{var O,oe,he,J,q,Q;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:l="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:a=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,...g}=e,S=Sg(au,n),[v,h]=d.useState(null),x=ee(t,We=>h(We)),[C,b]=d.useState(null),P=oh(C),E=(P==null?void 0:P.width)??0,N=(P==null?void 0:P.height)??0,_=r+(l!=="center"?"-"+l:""),R=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(c)?c:[c],z=T.length>0,B={padding:R,boundary:T.filter(lk),altBoundary:z},{refs:V,floatingStyles:G,placement:$,isPositioned:W,middlewareData:k}=Hb({strategy:"fixed",placement:_,whileElementsMounted:(...We)=>Mb(...We,{animationFrame:y==="always"}),elements:{reference:S.anchor},middleware:[Gb({mainAxis:o+N,alignmentAxis:s}),a&&Yb({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Kb():void 0,...B}),a&&Xb({...B}),Qb({...B,apply:({elements:We,rects:vt,availableWidth:Dr,availableHeight:zr})=>{const{width:Fr,height:Uv}=vt.reference,$o=We.floating.style;$o.setProperty("--radix-popper-available-width",`${Dr}px`),$o.setProperty("--radix-popper-available-height",`${zr}px`),$o.setProperty("--radix-popper-anchor-width",`${Fr}px`),$o.setProperty("--radix-popper-anchor-height",`${Uv}px`)}}),C&&qb({element:C,padding:i}),sk({arrowWidth:E,arrowHeight:N}),m&&Zb({strategy:"referenceHidden",...B})]}),[A,F]=Rg($),X=ze(w);Pe(()=>{W&&(X==null||X())},[W,X]);const re=(O=k.arrow)==null?void 0:O.x,le=(oe=k.arrow)==null?void 0:oe.y,te=((he=k.arrow)==null?void 0:he.centerOffset)!==0,[Ae,Se]=d.useState();return Pe(()=>{v&&Se(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:W?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(J=k.transformOrigin)==null?void 0:J.x,(q=k.transformOrigin)==null?void 0:q.y].join(" "),...((Q=k.hide)==null?void 0:Q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(nk,{scope:n,placedSide:A,onArrowChange:b,arrowX:re,arrowY:le,shouldHideArrow:te,children:u.jsx(K.div,{"data-side":A,"data-align":F,...g,ref:x,style:{...g.style,animation:W?void 0:"none"}})})})});Eg.displayName=au;var Ng="PopperArrow",ok={top:"bottom",right:"left",bottom:"top",left:"right"},Pg=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,l=rk(Ng,r),s=ok[l.placedSide];return u.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:u.jsx(ek,{...o,ref:n,style:{...o.style,display:"block"}})})});Pg.displayName=Ng;function lk(e){return e!==null}var sk=e=>({name:"transformOrigin",options:e,fn(t){var S,v,h;const{placement:n,rects:r,middlewareData:o}=t,s=((S=o.arrow)==null?void 0:S.centerOffset)!==0,i=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[c,f]=Rg(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,y=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let w="",g="";return c==="bottom"?(w=s?p:`${m}px`,g=`${-a}px`):c==="top"?(w=s?p:`${m}px`,g=`${r.floating.height+a}px`):c==="right"?(w=`${-a}px`,g=s?p:`${y}px`):c==="left"&&(w=`${r.floating.width+a}px`,g=s?p:`${y}px`),{data:{x:w,y:g}}}});function Rg(e){const[t,n="center"]=e.split("-");return[t,n]}var jg=Cg,_g=kg,Tg=Eg,Ag=Pg,ik=Symbol("radix.slottable");function ak(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ik,t}var Og=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"}),ck="VisuallyHidden",Mg=d.forwardRef((e,t)=>u.jsx(K.span,{...e,ref:t,style:{...Og,...e.style}}));Mg.displayName=ck;var uk=Mg,[Fs]=Wn("Tooltip",[zs]),$s=zs(),Ig="TooltipProvider",dk=700,Oa="tooltip.open",[fk,cu]=Fs(Ig),Lg=e=>{const{__scopeTooltip:t,delayDuration:n=dk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,s=d.useRef(!0),i=d.useRef(!1),a=d.useRef(0);return d.useEffect(()=>{const c=a.current;return()=>window.clearTimeout(c)},[]),u.jsx(fk,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:l})};Lg.displayName=Ig;var To="Tooltip",[pk,Fo]=Fs(To),Dg=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:s,delayDuration:i}=e,a=cu(To,e.__scopeTooltip),c=$s(t),[f,p]=d.useState(null),m=Rn(),y=d.useRef(0),w=s??a.disableHoverableContent,g=i??a.delayDuration,S=d.useRef(!1),[v,h]=jo({prop:r,defaultProp:o??!1,onChange:E=>{E?(a.onOpen(),document.dispatchEvent(new CustomEvent(Oa))):a.onClose(),l==null||l(E)},caller:To}),x=d.useMemo(()=>v?S.current?"delayed-open":"instant-open":"closed",[v]),C=d.useCallback(()=>{window.clearTimeout(y.current),y.current=0,S.current=!1,h(!0)},[h]),b=d.useCallback(()=>{window.clearTimeout(y.current),y.current=0,h(!1)},[h]),P=d.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{S.current=!0,h(!0),y.current=0},g)},[g,h]);return d.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),u.jsx(jg,{...c,children:u.jsx(pk,{scope:t,contentId:m,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{a.isOpenDelayedRef.current?P():C()},[a.isOpenDelayedRef,P,C]),onTriggerLeave:d.useCallback(()=>{w?b():(window.clearTimeout(y.current),y.current=0)},[b,w]),onOpen:C,onClose:b,disableHoverableContent:w,children:n})})};Dg.displayName=To;var Ma="TooltipTrigger",zg=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fo(Ma,n),l=cu(Ma,n),s=$s(n),i=d.useRef(null),a=ee(t,i,o.onTriggerChange),c=d.useRef(!1),f=d.useRef(!1),p=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(_g,{asChild:!0,...s,children:u.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:H(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:H(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:H(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:H(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:H(e.onBlur,o.onClose),onClick:H(e.onClick,o.onClose)})})});zg.displayName=Ma;var uu="TooltipPortal",[mk,hk]=Fs(uu,{forceMount:void 0}),Fg=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,l=Fo(uu,t);return u.jsx(mk,{scope:t,forceMount:n,children:u.jsx(ht,{present:n||l.open,children:u.jsx(Ts,{asChild:!0,container:o,children:r})})})};Fg.displayName=uu;var Er="TooltipContent",$g=d.forwardRef((e,t)=>{const n=hk(Er,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...l}=e,s=Fo(Er,e.__scopeTooltip);return u.jsx(ht,{present:r||s.open,children:s.disableHoverableContent?u.jsx(Vg,{side:o,...l,ref:t}):u.jsx(gk,{side:o,...l,ref:t})})}),gk=d.forwardRef((e,t)=>{const n=Fo(Er,e.__scopeTooltip),r=cu(Er,e.__scopeTooltip),o=d.useRef(null),l=ee(t,o),[s,i]=d.useState(null),{trigger:a,onClose:c}=n,f=o.current,{onPointerInTransitChange:p}=r,m=d.useCallback(()=>{i(null),p(!1)},[p]),y=d.useCallback((w,g)=>{const S=w.currentTarget,v={x:w.clientX,y:w.clientY},h=Sk(v,S.getBoundingClientRect()),x=Ck(v,h),C=bk(g.getBoundingClientRect()),b=Ek([...x,...C]);i(b),p(!0)},[p]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(a&&f){const w=S=>y(S,f),g=S=>y(S,a);return a.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[a,f,y,m]),d.useEffect(()=>{if(s){const w=g=>{const S=g.target,v={x:g.clientX,y:g.clientY},h=(a==null?void 0:a.contains(S))||(f==null?void 0:f.contains(S)),x=!kk(v,s);h?m():x&&(m(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,f,s,c,m]),u.jsx(Vg,{...e,ref:l})}),[vk,yk]=Fs(To,{isInside:!1}),xk=ak("TooltipContent"),Vg=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:s,...i}=e,a=Fo(Er,n),c=$s(n),{onClose:f}=a;return d.useEffect(()=>(document.addEventListener(Oa,f),()=>document.removeEventListener(Oa,f)),[f]),d.useEffect(()=>{if(a.trigger){const p=m=>{const y=m.target;y!=null&&y.contains(a.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,f]),u.jsx(_s,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(Tg,{"data-state":a.stateAttribute,...c,...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(xk,{children:r}),u.jsx(vk,{scope:n,isInside:!0,children:u.jsx(uk,{id:a.contentId,role:"tooltip",children:o||r})})]})})});$g.displayName=Er;var Bg="TooltipArrow",wk=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$s(n);return yk(Bg,n).isInside?null:u.jsx(Ag,{...o,...r,ref:t})});wk.displayName=Bg;function Sk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,o,l)){case l:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ck(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 bk(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 kk(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const i=t[l],a=t[s],c=i.x,f=i.y,p=a.x,m=a.y;f>r!=m>r&&n<(p-c)*(r-f)/(m-f)+c&&(o=!o)}return o}function Ek(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),Nk(t)}function Nk(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 l=t[t.length-1],s=t[t.length-2];if((l.x-s.x)*(o.y-s.y)>=(l.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 l=n[n.length-1],s=n[n.length-2];if((l.x-s.x)*(o.y-s.y)>=(l.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 Pk=Lg,Rk=Dg,jk=zg,_k=Fg,Wg=$g;const Hg=Pk,Ug=Rk,Gg=jk,du=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(_k,{children:u.jsx(Wg,{ref:r,sideOffset:t,className:D("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));du.displayName=Wg.displayName;const Tk="sidebar_state",Ak=60*60*24*7,Ok="16rem",Mk="18rem",Ik="3rem",Lk="b",Yg=d.createContext(null);function Vs(){const e=d.useContext(Yg);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Kg=d.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:l,...s},i)=>{const a=d1(),[c,f]=d.useState(!1),[p,m]=d.useState(e),y=t??p,w=d.useCallback(h=>{const x=typeof h=="function"?h(y):h;n?n(x):m(x),document.cookie=`${Tk}=${x}; path=/; max-age=${Ak}`},[n,y]),g=d.useCallback(()=>a?f(h=>!h):w(h=>!h),[a,w,f]);d.useEffect(()=>{const h=x=>{x.key===Lk&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[g]);const S=y?"expanded":"collapsed",v=d.useMemo(()=>({state:S,open:y,setOpen:w,isMobile:a,openMobile:c,setOpenMobile:f,toggleSidebar:g}),[S,y,w,a,c,f,g]);return u.jsx(Yg.Provider,{value:v,children:u.jsx(Hg,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":Ok,"--sidebar-width-icon":Ik,...o},className:D("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...s,children:l})})})});Kg.displayName="SidebarProvider";const Xg=d.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...l},s)=>{const{isMobile:i,state:a,openMobile:c,setOpenMobile:f}=Vs();return n==="none"?u.jsx("div",{className:D("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...l,children:o}):i?u.jsx(FC,{open:c,onOpenChange:f,...l,children:u.jsxs(og,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Mk},side:e,children:[u.jsxs(lg,{className:"sr-only",children:[u.jsx(sg,{children:"Sidebar"}),u.jsx(ig,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{ref:s,className:"group peer hidden text-sidebar-foreground md:block","data-state":a,"data-collapsible":a==="collapsed"?n:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:D("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 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:D("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 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),...l,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})})]})});Xg.displayName="Sidebar";const Qg=d.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Vs();return u.jsxs(Ro,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:D("h-7 w-7",e),onClick:l=>{t==null||t(l),o()},...n,children:[u.jsx(r0,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Qg.displayName="SidebarTrigger";const Zg=d.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Vs();return u.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:D("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})});Zg.displayName="SidebarRail";const qg=d.forwardRef(({className:e,...t},n)=>u.jsx("main",{ref:n,className:D("relative flex w-full flex-1 flex-col bg-background","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}));qg.displayName="SidebarInset";const Dk=d.forwardRef(({className:e,...t},n)=>u.jsx(Uc,{ref:n,"data-sidebar":"input",className:D("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Dk.displayName="SidebarInput";const Jg=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t}));Jg.displayName="SidebarHeader";const ev=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t}));ev.displayName="SidebarFooter";const zk=d.forwardRef(({className:e,...t},n)=>u.jsx(co,{ref:n,"data-sidebar":"separator",className:D("mx-2 w-auto bg-sidebar-border",e),...t}));zk.displayName="SidebarSeparator";const tv=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));tv.displayName="SidebarContent";const Ia=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ia.displayName="SidebarGroup";const La=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Or:"div";return u.jsx(o,{ref:r,"data-sidebar":"group-label",className:D("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,opacity] duration-200 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})});La.displayName="SidebarGroupLabel";const Fk=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Or:"button";return u.jsx(o,{ref:r,"data-sidebar":"group-action",className:D("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})});Fk.displayName="SidebarGroupAction";const Da=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group-content",className:D("w-full text-sm",e),...t}));Da.displayName="SidebarGroupContent";const nv=d.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t}));nv.displayName="SidebarMenu";const rv=d.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,"data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t}));rv.displayName="SidebarMenuItem";const $k=Do("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"}}),ov=d.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:l,...s},i)=>{const a=e?Or:"button",{isMobile:c,state:f}=Vs(),p=u.jsx(a,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:D($k({variant:n,size:r}),l),...s});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(Ug,{children:[u.jsx(Gg,{asChild:!0,children:p}),u.jsx(du,{side:"right",align:"center",hidden:f!=="collapsed"||c,...o})]})):p});ov.displayName="SidebarMenuButton";const Vk=d.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const l=t?Or:"button";return u.jsx(l,{ref:o,"data-sidebar":"menu-action",className:D("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})});Vk.displayName="SidebarMenuAction";const Bk=d.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:D("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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}));Bk.displayName="SidebarMenuBadge";const Wk=d.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&u.jsx(Kd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(Kd,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Wk.displayName="SidebarMenuSkeleton";const Hk=d.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:D("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}));Hk.displayName="SidebarMenuSub";const Uk=d.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));Uk.displayName="SidebarMenuSubItem";const Gk=d.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},l)=>{const s=e?Or:"a";return u.jsx(s,{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("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})});Gk.displayName="SidebarMenuSubButton";const Yk=[{id:"analysis",label:"Analysis",icon:jw,description:"Dependency analysis"},{id:"files",label:"Files",icon:Uw,description:"File explorer"},{id:"search",label:"Search",icon:bm,description:"Search codebase"},{id:"stats",label:"Stats",icon:Fc,description:"Codebase statistics"}];function Kk({activeTab:e,onTabChange:t,hasSnapshot:n,fileCount:r=0,importCount:o=0,onClear:l,currentProjectPath:s}){return u.jsxs(Xg,{collapsible:"icon",children:[u.jsx(Jg,{className:"border-b border-sidebar-border",children:u.jsxs("div",{className:"flex items-center gap-2 px-2 py-1",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:u.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:[u.jsx("circle",{cx:"12",cy:"12",r:"10",fillOpacity:"0.2"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M12 2v4M12 18v4M2 12h4M18 12h4",stroke:"currentColor",strokeWidth:"2",fill:"none"})]})}),u.jsxs("div",{className:"flex flex-col group-data-[collapsible=icon]:hidden",children:[u.jsx("span",{className:"text-sm font-semibold",children:"Foundation"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"Codebase Explorer"})]})]})}),u.jsxs(tv,{children:[u.jsxs(Ia,{children:[u.jsx(La,{children:"Navigation"}),u.jsx(Da,{children:u.jsx(nv,{children:Yk.map(i=>u.jsx(rv,{children:u.jsxs(ov,{isActive:e===i.id,onClick:()=>t(i.id),tooltip:i.label,disabled:!n&&i.id!=="analysis",children:[u.jsx(i.icon,{className:"h-4 w-4"}),u.jsx("span",{children:i.label})]})},i.id))})})]}),n&&u.jsxs(Ia,{children:[u.jsx(La,{children:"Snapshot Info"}),u.jsx(Da,{children:u.jsxs("div",{className:"px-2 space-y-2 group-data-[collapsible=icon]:hidden",children:[s&&u.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[u.jsx(ql,{className:"h-4 w-4 text-muted-foreground shrink-0 mt-0.5"}),u.jsx("span",{className:"text-muted-foreground text-xs font-mono break-all leading-relaxed",children:s})]}),u.jsxs("div",{className:"flex items-center justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Files"}),u.jsx(Ln,{variant:"secondary",children:r.toLocaleString()})]}),u.jsxs("div",{className:"flex items-center justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Imports"}),u.jsx(Ln,{variant:"secondary",children:o.toLocaleString()})]})]})})]})]}),u.jsx(ev,{className:"border-t border-sidebar-border",children:n?u.jsxs(Ro,{variant:"ghost",size:"sm",className:"w-full justify-start text-destructive hover:text-destructive hover:bg-destructive/10 group-data-[collapsible=icon]:justify-center",onClick:l,children:[u.jsx(km,{className:"h-4 w-4 mr-2 group-data-[collapsible=icon]:mr-0"}),u.jsx("span",{className:"group-data-[collapsible=icon]:hidden",children:"Clear Snapshot"})]}):u.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ka,{className:"h-3 w-3"}),u.jsx("span",{children:"Drop snapshot to load"})]})})}),u.jsx(Zg,{})]})}function sf(e){const t=Xk(e),n=d.forwardRef((r,o)=>{const{children:l,...s}=r,i=d.Children.toArray(l),a=i.find(Zk);if(a){const c=a.props.children,f=i.map(p=>p===a?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function Xk(e){const t=d.forwardRef((n,r)=>{const{children:o,...l}=n;if(d.isValidElement(o)){const s=Jk(o),i=qk(l,o.props);return o.type!==d.Fragment&&(i.ref=r?Ar(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qk=Symbol("radix.slottable");function Zk(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qk}function qk(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...i)=>{const a=l(...i);return o(...i),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function Jk(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 eE(e){const t=e+"CollectionProvider",[n,r]=Wn(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:S,children:v}=g,h=_t.useRef(null),x=_t.useRef(new Map).current;return u.jsx(o,{scope:S,itemMap:x,collectionRef:h,children:v})};s.displayName=t;const i=e+"CollectionSlot",a=sf(i),c=_t.forwardRef((g,S)=>{const{scope:v,children:h}=g,x=l(i,v),C=ee(S,x.collectionRef);return u.jsx(a,{ref:C,children:h})});c.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=sf(f),y=_t.forwardRef((g,S)=>{const{scope:v,children:h,...x}=g,C=_t.useRef(null),b=ee(S,C),P=l(f,v);return _t.useEffect(()=>(P.itemMap.set(C,{ref:C,...x}),()=>void P.itemMap.delete(C))),u.jsx(m,{[p]:"",ref:b,children:h})});y.displayName=f;function w(g){const S=l(e+"CollectionConsumer",g);return _t.useCallback(()=>{const h=S.collectionRef.current;if(!h)return[];const x=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(S.itemMap.values()).sort((P,E)=>x.indexOf(P.ref.current)-x.indexOf(E.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:c,ItemSlot:y},w,r]}function tE(e){const t=nE(e),n=d.forwardRef((r,o)=>{const{children:l,...s}=r,i=d.Children.toArray(l),a=i.find(oE);if(a){const c=a.props.children,f=i.map(p=>p===a?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function nE(e){const t=d.forwardRef((n,r)=>{const{children:o,...l}=n;if(d.isValidElement(o)){const s=sE(o),i=lE(l,o.props);return o.type!==d.Fragment&&(i.ref=r?Ar(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rE=Symbol("radix.slottable");function oE(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rE}function lE(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...i)=>{const a=l(...i);return o(...i),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function sE(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 iE=[" ","Enter","ArrowUp","ArrowDown"],aE=[" ","Enter"],Fn="Select",[Bs,Ws,cE]=eE(Fn),[Lr]=Wn(Fn,[cE,zs]),Hs=zs(),[uE,yn]=Lr(Fn),[dE,fE]=Lr(Fn),lv=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:s,defaultValue:i,onValueChange:a,dir:c,name:f,autoComplete:p,disabled:m,required:y,form:w}=e,g=Hs(t),[S,v]=d.useState(null),[h,x]=d.useState(null),[C,b]=d.useState(!1),P=Fm(c),[E,N]=jo({prop:r,defaultProp:o??!1,onChange:l,caller:Fn}),[_,R]=jo({prop:s,defaultProp:i,onChange:a,caller:Fn}),T=d.useRef(null),z=S?w||!!S.closest("form"):!0,[B,V]=d.useState(new Set),G=Array.from(B).map($=>$.props.value).join(";");return u.jsx(jg,{...g,children:u.jsxs(uE,{required:y,scope:t,trigger:S,onTriggerChange:v,valueNode:h,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:b,contentId:Rn(),value:_,onValueChange:R,open:E,onOpenChange:N,dir:P,triggerPointerDownPosRef:T,disabled:m,children:[u.jsx(Bs.Provider,{scope:t,children:u.jsx(dE,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback($=>{V(W=>new Set(W).add($))},[]),onNativeOptionRemove:d.useCallback($=>{V(W=>{const k=new Set(W);return k.delete($),k})},[]),children:n})}),z?u.jsxs(jv,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:p,value:_,onChange:$=>R($.target.value),disabled:m,form:w,children:[_===void 0?u.jsx("option",{value:""}):null,Array.from(B)]},G):null]})})};lv.displayName=Fn;var sv="SelectTrigger",iv=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,l=Hs(n),s=yn(sv,n),i=s.disabled||r,a=ee(t,s.onTriggerChange),c=Ws(n),f=d.useRef("touch"),[p,m,y]=Tv(g=>{const S=c().filter(x=>!x.disabled),v=S.find(x=>x.value===s.value),h=Av(S,g,v);h!==void 0&&s.onValueChange(h.value)}),w=g=>{i||(s.onOpenChange(!0),y()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(_g,{asChild:!0,...l,children:u.jsx(K.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":_v(s.value)?"":void 0,...o,ref:a,onClick:H(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&w(g)}),onPointerDown:H(o.onPointerDown,g=>{f.current=g.pointerType;const S=g.target;S.hasPointerCapture(g.pointerId)&&S.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:H(o.onKeyDown,g=>{const S=p.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(S&&g.key===" ")&&iE.includes(g.key)&&(w(),g.preventDefault())})})})});iv.displayName=sv;var av="SelectValue",cv=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:l,placeholder:s="",...i}=e,a=yn(av,n),{onValueNodeHasChildrenChange:c}=a,f=l!==void 0,p=ee(t,a.onValueNodeChange);return Pe(()=>{c(f)},[c,f]),u.jsx(K.span,{...i,ref:p,style:{pointerEvents:"none"},children:_v(a.value)?u.jsx(u.Fragment,{children:s}):l})});cv.displayName=av;var pE="SelectIcon",uv=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});uv.displayName=pE;var mE="SelectPortal",dv=e=>u.jsx(Ts,{asChild:!0,...e});dv.displayName=mE;var $n="SelectContent",fv=d.forwardRef((e,t)=>{const n=yn($n,e.__scopeSelect),[r,o]=d.useState();if(Pe(()=>{o(new DocumentFragment)},[]),!n.open){const l=r;return l?jr.createPortal(u.jsx(pv,{scope:e.__scopeSelect,children:u.jsx(Bs.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),l):null}return u.jsx(mv,{...e,ref:t})});fv.displayName=$n;var st=10,[pv,xn]=Lr($n),hE="SelectContentImpl",gE=tE("SelectContent.RemoveScroll"),mv=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:s,side:i,sideOffset:a,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:w,hideWhenDetached:g,avoidCollisions:S,...v}=e,h=yn($n,n),[x,C]=d.useState(null),[b,P]=d.useState(null),E=ee(t,O=>C(O)),[N,_]=d.useState(null),[R,T]=d.useState(null),z=Ws(n),[B,V]=d.useState(!1),G=d.useRef(!1);d.useEffect(()=>{if(x)return Dh(x)},[x]),Rh();const $=d.useCallback(O=>{const[oe,...he]=z().map(Q=>Q.ref.current),[J]=he.slice(-1),q=document.activeElement;for(const Q of O)if(Q===q||(Q==null||Q.scrollIntoView({block:"nearest"}),Q===oe&&b&&(b.scrollTop=0),Q===J&&b&&(b.scrollTop=b.scrollHeight),Q==null||Q.focus(),document.activeElement!==q))return},[z,b]),W=d.useCallback(()=>$([N,x]),[$,N,x]);d.useEffect(()=>{B&&W()},[B,W]);const{onOpenChange:k,triggerPointerDownPosRef:A}=h;d.useEffect(()=>{if(x){let O={x:0,y:0};const oe=J=>{var q,Q;O={x:Math.abs(Math.round(J.pageX)-(((q=A.current)==null?void 0:q.x)??0)),y:Math.abs(Math.round(J.pageY)-(((Q=A.current)==null?void 0:Q.y)??0))}},he=J=>{O.x<=10&&O.y<=10?J.preventDefault():x.contains(J.target)||k(!1),document.removeEventListener("pointermove",oe),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",he,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",he,{capture:!0})}}},[x,k,A]),d.useEffect(()=>{const O=()=>k(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[k]);const[F,X]=Tv(O=>{const oe=z().filter(q=>!q.disabled),he=oe.find(q=>q.ref.current===document.activeElement),J=Av(oe,O,he);J&&setTimeout(()=>J.ref.current.focus())}),re=d.useCallback((O,oe,he)=>{const J=!G.current&&!he;(h.value!==void 0&&h.value===oe||J)&&(_(O),J&&(G.current=!0))},[h.value]),le=d.useCallback(()=>x==null?void 0:x.focus(),[x]),te=d.useCallback((O,oe,he)=>{const J=!G.current&&!he;(h.value!==void 0&&h.value===oe||J)&&T(O)},[h.value]),Ae=r==="popper"?za:hv,Se=Ae===za?{side:i,sideOffset:a,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:w,hideWhenDetached:g,avoidCollisions:S}:{};return u.jsx(pv,{scope:n,content:x,viewport:b,onViewportChange:P,itemRefCallback:re,selectedItem:N,onItemLeave:le,itemTextRefCallback:te,focusSelectedItem:W,selectedItemText:R,position:r,isPositioned:B,searchRef:F,children:u.jsx(Zc,{as:gE,allowPinchZoom:!0,children:u.jsx(Qc,{asChild:!0,trapped:h.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:H(o,O=>{var oe;(oe=h.trigger)==null||oe.focus({preventScroll:!0}),O.preventDefault()}),children:u.jsx(_s,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:u.jsx(Ae,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:O=>O.preventDefault(),...v,...Se,onPlaced:()=>V(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:H(v.onKeyDown,O=>{const oe=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!oe&&O.key.length===1&&X(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let J=z().filter(q=>!q.disabled).map(q=>q.ref.current);if(["ArrowUp","End"].includes(O.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const q=O.target,Q=J.indexOf(q);J=J.slice(Q+1)}setTimeout(()=>$(J)),O.preventDefault()}})})})})})})});mv.displayName=hE;var vE="SelectItemAlignedPosition",hv=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,l=yn($n,n),s=xn($n,n),[i,a]=d.useState(null),[c,f]=d.useState(null),p=ee(t,E=>f(E)),m=Ws(n),y=d.useRef(!1),w=d.useRef(!0),{viewport:g,selectedItem:S,selectedItemText:v,focusSelectedItem:h}=s,x=d.useCallback(()=>{if(l.trigger&&l.valueNode&&i&&c&&g&&S&&v){const E=l.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),_=l.valueNode.getBoundingClientRect(),R=v.getBoundingClientRect();if(l.dir!=="rtl"){const q=R.left-N.left,Q=_.left-q,We=E.left-Q,vt=E.width+We,Dr=Math.max(vt,N.width),zr=window.innerWidth-st,Fr=Na(Q,[st,Math.max(st,zr-Dr)]);i.style.minWidth=vt+"px",i.style.left=Fr+"px"}else{const q=N.right-R.right,Q=window.innerWidth-_.right-q,We=window.innerWidth-E.right-Q,vt=E.width+We,Dr=Math.max(vt,N.width),zr=window.innerWidth-st,Fr=Na(Q,[st,Math.max(st,zr-Dr)]);i.style.minWidth=vt+"px",i.style.right=Fr+"px"}const T=m(),z=window.innerHeight-st*2,B=g.scrollHeight,V=window.getComputedStyle(c),G=parseInt(V.borderTopWidth,10),$=parseInt(V.paddingTop,10),W=parseInt(V.borderBottomWidth,10),k=parseInt(V.paddingBottom,10),A=G+$+B+k+W,F=Math.min(S.offsetHeight*5,A),X=window.getComputedStyle(g),re=parseInt(X.paddingTop,10),le=parseInt(X.paddingBottom,10),te=E.top+E.height/2-st,Ae=z-te,Se=S.offsetHeight/2,O=S.offsetTop+Se,oe=G+$+O,he=A-oe;if(oe<=te){const q=T.length>0&&S===T[T.length-1].ref.current;i.style.bottom="0px";const Q=c.clientHeight-g.offsetTop-g.offsetHeight,We=Math.max(Ae,Se+(q?le:0)+Q+W),vt=oe+We;i.style.height=vt+"px"}else{const q=T.length>0&&S===T[0].ref.current;i.style.top="0px";const We=Math.max(te,G+g.offsetTop+(q?re:0)+Se)+he;i.style.height=We+"px",g.scrollTop=oe-te+g.offsetTop}i.style.margin=`${st}px 0`,i.style.minHeight=F+"px",i.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[m,l.trigger,l.valueNode,i,c,g,S,v,l.dir,r]);Pe(()=>x(),[x]);const[C,b]=d.useState();Pe(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);const P=d.useCallback(E=>{E&&w.current===!0&&(x(),h==null||h(),w.current=!1)},[x,h]);return u.jsx(xE,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:y,onScrollButtonChange:P,children:u.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(K.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});hv.displayName=vE;var yE="SelectPopperPosition",za=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=st,...l}=e,s=Hs(n);return u.jsx(Tg,{...s,...l,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.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)"}})});za.displayName=yE;var[xE,fu]=Lr($n,{}),Fa="SelectViewport",gv=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,l=xn(Fa,n),s=fu(Fa,n),i=ee(t,l.onViewportChange),a=d.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(Bs.Slot,{scope:n,children:u.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:H(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=s;if(m!=null&&m.current&&p){const y=Math.abs(a.current-f.scrollTop);if(y>0){const w=window.innerHeight-st*2,g=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),v=Math.max(g,S);if(v<w){const h=v+y,x=Math.min(w,h),C=h-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});gv.displayName=Fa;var vv="SelectGroup",[wE,SE]=Lr(vv),CE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rn();return u.jsx(wE,{scope:n,id:o,children:u.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});CE.displayName=vv;var yv="SelectLabel",xv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=SE(yv,n);return u.jsx(K.div,{id:o.id,...r,ref:t})});xv.displayName=yv;var cs="SelectItem",[bE,wv]=Lr(cs),Sv=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...s}=e,i=yn(cs,n),a=xn(cs,n),c=i.value===r,[f,p]=d.useState(l??""),[m,y]=d.useState(!1),w=ee(t,h=>{var x;return(x=a.itemRefCallback)==null?void 0:x.call(a,h,r,o)}),g=Rn(),S=d.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(bE,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:d.useCallback(h=>{p(x=>x||((h==null?void 0:h.textContent)??"").trim())},[]),children:u.jsx(Bs.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:u.jsx(K.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:H(s.onFocus,()=>y(!0)),onBlur:H(s.onBlur,()=>y(!1)),onClick:H(s.onClick,()=>{S.current!=="mouse"&&v()}),onPointerUp:H(s.onPointerUp,()=>{S.current==="mouse"&&v()}),onPointerDown:H(s.onPointerDown,h=>{S.current=h.pointerType}),onPointerMove:H(s.onPointerMove,h=>{var x;S.current=h.pointerType,o?(x=a.onItemLeave)==null||x.call(a):S.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:H(s.onPointerLeave,h=>{var x;h.currentTarget===document.activeElement&&((x=a.onItemLeave)==null||x.call(a))}),onKeyDown:H(s.onKeyDown,h=>{var C;((C=a.searchRef)==null?void 0:C.current)!==""&&h.key===" "||(aE.includes(h.key)&&v(),h.key===" "&&h.preventDefault())})})})})});Sv.displayName=cs;var Jr="SelectItemText",Cv=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...l}=e,s=yn(Jr,n),i=xn(Jr,n),a=wv(Jr,n),c=fE(Jr,n),[f,p]=d.useState(null),m=ee(t,v=>p(v),a.onItemTextChange,v=>{var h;return(h=i.itemTextRefCallback)==null?void 0:h.call(i,v,a.value,a.disabled)}),y=f==null?void 0:f.textContent,w=d.useMemo(()=>u.jsx("option",{value:a.value,disabled:a.disabled,children:y},a.value),[a.disabled,a.value,y]),{onNativeOptionAdd:g,onNativeOptionRemove:S}=c;return Pe(()=>(g(w),()=>S(w)),[g,S,w]),u.jsxs(u.Fragment,{children:[u.jsx(K.span,{id:a.textId,...l,ref:m}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?jr.createPortal(l.children,s.valueNode):null]})});Cv.displayName=Jr;var bv="SelectItemIndicator",kv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return wv(bv,n).isSelected?u.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});kv.displayName=bv;var $a="SelectScrollUpButton",Ev=d.forwardRef((e,t)=>{const n=xn($a,e.__scopeSelect),r=fu($a,e.__scopeSelect),[o,l]=d.useState(!1),s=ee(t,r.onScrollButtonChange);return Pe(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=a.scrollTop>0;l(c)};const a=n.viewport;return i(),a.addEventListener("scroll",i),()=>a.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?u.jsx(Pv,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:a}=n;i&&a&&(i.scrollTop=i.scrollTop-a.offsetHeight)}}):null});Ev.displayName=$a;var Va="SelectScrollDownButton",Nv=d.forwardRef((e,t)=>{const n=xn(Va,e.__scopeSelect),r=fu(Va,e.__scopeSelect),[o,l]=d.useState(!1),s=ee(t,r.onScrollButtonChange);return Pe(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<c;l(f)};const a=n.viewport;return i(),a.addEventListener("scroll",i),()=>a.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?u.jsx(Pv,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:a}=n;i&&a&&(i.scrollTop=i.scrollTop+a.offsetHeight)}}):null});Nv.displayName=Va;var Pv=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,l=xn("SelectScrollButton",n),s=d.useRef(null),i=Ws(n),a=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>a(),[a]),Pe(()=>{var f;const c=i().find(p=>p.ref.current===document.activeElement);(f=c==null?void 0:c.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:H(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:H(o.onPointerMove,()=>{var c;(c=l.onItemLeave)==null||c.call(l),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:H(o.onPointerLeave,()=>{a()})})}),kE="SelectSeparator",Rv=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Rv.displayName=kE;var Ba="SelectArrow",EE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hs(n),l=yn(Ba,n),s=xn(Ba,n);return l.open&&s.position==="popper"?u.jsx(Ag,{...o,...r,ref:t}):null});EE.displayName=Ba;var NE="SelectBubbleInput",jv=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),l=ee(r,o),s=rh(t);return d.useEffect(()=>{const i=o.current;if(!i)return;const a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(K.select,{...n,style:{...Og,...n.style},ref:l,defaultValue:t})});jv.displayName=NE;function _v(e){return e===""||e===void 0}function Tv(e){const t=ze(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(s=>{const i=n.current+s;t(i),function a(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(i)},[t]),l=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function Av(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=PE(e,Math.max(l,0));o.length===1&&(s=s.filter(c=>c!==n));const a=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function PE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var RE=lv,Ov=iv,jE=cv,_E=uv,TE=dv,Mv=fv,AE=gv,Iv=xv,Lv=Sv,OE=Cv,ME=kv,Dv=Ev,zv=Nv,Fv=Rv;const IE=RE,LE=jE,$v=d.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Ov,{ref:r,className:D("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(_E,{asChild:!0,children:u.jsx(zc,{className:"h-4 w-4 opacity-50"})})]}));$v.displayName=Ov.displayName;const Vv=d.forwardRef(({className:e,...t},n)=>u.jsx(Dv,{ref:n,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Iw,{className:"h-4 w-4"})}));Vv.displayName=Dv.displayName;const Bv=d.forwardRef(({className:e,...t},n)=>u.jsx(zv,{ref:n,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(zc,{className:"h-4 w-4"})}));Bv.displayName=zv.displayName;const Wv=d.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>u.jsx(TE,{children:u.jsxs(Mv,{ref:o,className:D("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",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(Vv,{}),u.jsx(AE,{className:D("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(Bv,{})]})}));Wv.displayName=Mv.displayName;const DE=d.forwardRef(({className:e,...t},n)=>u.jsx(Iv,{ref:n,className:D("px-2 py-1.5 text-sm font-semibold",e),...t}));DE.displayName=Iv.displayName;const Hv=d.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Lv,{ref:r,className:D("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(ME,{children:u.jsx(Cm,{className:"h-4 w-4"})})}),u.jsx(OE,{children:t})]}));Hv.displayName=Lv.displayName;const zE=d.forwardRef(({className:e,...t},n)=>u.jsx(Fv,{ref:n,className:D("-mx-1 my-1 h-px bg-muted",e),...t}));zE.displayName=Fv.displayName;function FE(){var E,N,_;const[e,t]=d.useState(null),[n,r]=d.useState(null),[o,l]=d.useState(),[s,i]=d.useState("analysis"),[a,c]=d.useState(!1),[f,p]=d.useState([]),[m,y]=d.useState(""),[w,g]=d.useState(!1);d.useEffect(()=>{(async()=>{try{const T=await fetch("/api/projects");if(T.ok){const z=await T.json();p(z),z.length>0&&!m&&y(z[0].path)}}catch{console.log("Projects API not available"),p([])}})()},[]),d.useEffect(()=>{const R=async()=>{g(!0);try{const T=m?`/api/snapshot?project=${encodeURIComponent(m)}`:"/api/snapshot",z=await fetch(T);if(z.ok){const B=await z.text(),V=wi(B);t(V),console.log("Loaded snapshot"+(m?` for ${m}`:""))}else t(null)}catch{console.log("No snapshot found"),t(null)}finally{g(!1)}};(m||f.length===0)&&R()},[m,f.length]);const S=d.useMemo(()=>{var R;return(R=e==null?void 0:e.metadata)!=null&&R.files?zS(e.metadata.files):{name:"root",path:"",type:"directory",children:[]}},[e]),v=d.useCallback(R=>{R.preventDefault(),c(!1);const T=R.dataTransfer.files[0];if(T){const z=new FileReader;z.onload=B=>{var G;const V=(G=B.target)==null?void 0:G.result;if(V){const $=wi(V);t($),r(null),l(void 0)}},z.readAsText(T)}},[]),h=d.useCallback(R=>{R.preventDefault(),c(!0)},[]),x=d.useCallback(()=>{c(!1)},[]),C=d.useCallback((R,T)=>{r(R),l(T),T&&setTimeout(()=>{const z=document.getElementById(`line-${T}`);z==null||z.scrollIntoView({behavior:"smooth",block:"center"})},100)},[]),b=d.useCallback(R=>{if(R.trim()){const T=wi(R);t(T),r(null),l(void 0)}},[]),P=d.useCallback(()=>{t(null),r(null),l(void 0)},[]);return u.jsx(Kg,{defaultOpen:!0,children:u.jsxs("div",{className:"flex min-h-screen w-full",onDrop:v,onDragOver:h,onDragLeave:x,children:[u.jsx(Kk,{activeTab:s,onTabChange:i,hasSnapshot:!!e,fileCount:((E=e==null?void 0:e.metadata)==null?void 0:E.files.length)||0,importCount:((N=e==null?void 0:e.metadata)==null?void 0:N.imports.length)||0,onClear:P,currentProjectPath:m}),u.jsxs(qg,{children:[u.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b px-4",children:[u.jsx(Qg,{className:"-ml-1"}),u.jsx(co,{orientation:"vertical",className:"mr-2 h-4"}),f.length>0&&u.jsx(Hg,{children:u.jsxs(Ug,{children:[u.jsx(Gg,{asChild:!0,children:u.jsx("div",{children:u.jsxs(IE,{value:m,onValueChange:y,children:[u.jsx($v,{className:"w-[200px] h-8",children:u.jsx(LE,{placeholder:"Select project",children:m&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ql,{className:"h-4 w-4 text-muted-foreground shrink-0"}),u.jsx("span",{className:"truncate",children:((_=f.find(R=>R.path===m))==null?void 0:_.name)||"Select project"})]})})}),u.jsx(Wv,{children:f.map(R=>u.jsx(Hv,{value:R.path,children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ql,{className:"h-4 w-4 text-muted-foreground shrink-0"}),u.jsx("span",{children:R.name})]})},R.path))})]})})}),u.jsx(du,{side:"bottom",className:"max-w-xs",children:u.jsx("p",{className:"font-mono text-xs break-all",children:m})})]})}),u.jsx(co,{orientation:"vertical",className:"mx-2 h-4"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h1",{className:"text-sm font-medium",children:s.charAt(0).toUpperCase()+s.slice(1)}),w&&u.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Loading..."})]})]}),a&&u.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm",children:u.jsx(un,{className:"border-dashed border-2 border-primary",children:u.jsxs(dn,{className:"flex flex-col items-center gap-2 p-8",children:[u.jsx(ka,{className:"h-8 w-8 text-primary"}),u.jsx("p",{className:"text-lg font-medium",children:"Drop snapshot file here"})]})})}),e?u.jsx("div",{className:"flex flex-1 overflow-hidden",children:s==="analysis"?u.jsx("div",{className:"flex-1 overflow-hidden",children:e.metadata?u.jsx(PS,{files:e.metadata.files,imports:e.metadata.imports,onFileSelect:C,selectedFile:n}):u.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:u.jsx("p",{children:"No dependency data available (basic snapshot)"})})}):s==="files"?u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsx("div",{className:"w-72 border-r overflow-hidden flex flex-col",children:u.jsx($S,{tree:S,onFileSelect:C,selectedFile:n})}),u.jsx("div",{className:"flex-1 overflow-hidden",children:u.jsx(Ad,{data:e,selectedFile:n,highlightLine:o})})]}):s==="search"?u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsx("div",{className:"w-80 border-r overflow-hidden flex flex-col",children:u.jsx(qS,{data:e,onFileSelect:C})}),u.jsx("div",{className:"flex-1 overflow-hidden",children:u.jsx(Ad,{data:e,selectedFile:n,highlightLine:o})})]}):u.jsx("div",{className:"flex-1 overflow-auto",children:u.jsx(u1,{metadata:e.metadata})})}):u.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:u.jsxs(un,{className:"max-w-2xl w-full",children:[u.jsxs(Mn,{className:"text-center",children:[u.jsx(In,{className:"text-2xl",children:"Load a Snapshot"}),u.jsx(Cr,{children:"Drag and drop a snapshot file, or paste content below"})]}),u.jsxs(dn,{className:"space-y-6",children:[u.jsxs("div",{className:"border-2 border-dashed border-border rounded-lg p-8 text-center hover:border-primary/50 transition-colors cursor-pointer",children:[u.jsx("input",{type:"file",id:"file-input",className:"hidden",accept:".txt",onChange:R=>{var z;const T=(z=R.target.files)==null?void 0:z[0];if(T){const B=new FileReader;B.onload=V=>{var $;const G=($=V.target)==null?void 0:$.result;G&&b(G)},B.readAsText(T)}}}),u.jsxs("label",{htmlFor:"file-input",className:"cursor-pointer",children:[u.jsx(ka,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"Click to browse or drag & drop"})]})]}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 flex items-center",children:u.jsx(co,{})}),u.jsx("div",{className:"relative flex justify-center",children:u.jsx("span",{className:"bg-card px-2 text-xs text-muted-foreground uppercase",children:"or"})})]}),u.jsx("textarea",{placeholder:"Paste snapshot content here...",className:"w-full h-48 p-4 bg-muted/50 border border-input rounded-lg text-sm font-mono resize-none focus:outline-none focus:ring-2 focus:ring-ring",onPaste:R=>{const T=R.clipboardData.getData("text");T&&b(T)}}),u.jsxs("div",{className:"text-center space-y-2",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a snapshot with:"," ",u.jsx("code",{className:"bg-muted px-2 py-1 rounded text-xs",children:"foundation snapshot . -o snapshot.txt"})]}),f.length===0&&u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Or run"," ",u.jsx("code",{className:"bg-muted px-2 py-1 rounded text-xs",children:"foundation snapshot"})," ","in your project directories to register them for quick switching."]})]})]})]})})]})]})})}Ti.createRoot(document.getElementById("root")).render(u.jsx(_t.StrictMode,{children:u.jsx(FE,{})}));
|