@bitovi/vybit 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/overlay/dist/overlay.js +823 -737
- package/package.json +1 -1
- package/panel/dist/assets/{DesignMode-BvwXaVHr.js → DesignMode--Rr68C4a.js} +2 -2
- package/panel/dist/assets/index-BGv11THn.css +1 -0
- package/panel/dist/assets/index-DYasOvKi.js +49 -0
- package/panel/dist/index.html +4 -4
- package/server/tailwind-v3.ts +476 -146
- package/server/tailwind-v4.ts +228 -115
- package/shared/types.ts +13 -0
- package/panel/dist/assets/index-BuY5a8tH.css +0 -1
- package/panel/dist/assets/index-CQNPp6e5.js +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
function tp(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 i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).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 np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pc={exports:{}},yl={},mc={exports:{}},J={};/**
|
|
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 Gr=Symbol.for("react.element"),rp=Symbol.for("react.portal"),op=Symbol.for("react.fragment"),lp=Symbol.for("react.strict_mode"),ip=Symbol.for("react.profiler"),sp=Symbol.for("react.provider"),up=Symbol.for("react.context"),ap=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),fp=Symbol.for("react.memo"),dp=Symbol.for("react.lazy"),Pu=Symbol.iterator;function pp(e){return e===null||typeof e!="object"?null:(e=Pu&&e[Pu]||e["@@iterator"],typeof e=="function"?e:null)}var hc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yc=Object.assign,gc={};function nr(e,t,n){this.props=e,this.context=t,this.refs=gc,this.updater=n||hc}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 vc(){}vc.prototype=nr.prototype;function _s(e,t,n){this.props=e,this.context=t,this.refs=gc,this.updater=n||hc}var Ls=_s.prototype=new vc;Ls.constructor=_s;yc(Ls,nr.prototype);Ls.isPureReactComponent=!0;var _u=Array.isArray,xc=Object.prototype.hasOwnProperty,As={current:null},wc={key:!0,ref:!0,__self:!0,__source:!0};function Sc(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)xc.call(t,r)&&!wc.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Gr,type:e,key:l,ref:i,props:o,_owner:As.current}}function mp(e,t){return{$$typeof:Gr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Os(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gr}function hp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lu=/\/+/g;function Ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hp(""+e.key):t.toString(36)}function So(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Gr:case rp:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ml(i,0):r,_u(o)?(n="",e!=null&&(n=e.replace(Lu,"$&/")+"/"),So(o,t,n,"",function(a){return a})):o!=null&&(Os(o)&&(o=mp(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Lu,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",_u(e))for(var s=0;s<e.length;s++){l=e[s];var u=r+Ml(l,s);i+=So(l,t,n,u,o)}else if(u=pp(e),typeof u=="function")for(e=u.call(e),s=0;!(l=e.next()).done;)l=l.value,u=r+Ml(l,s++),i+=So(l,t,n,u,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 i}function to(e,t,n){if(e==null)return e;var r=[],o=0;return So(e,r,"","",function(l){return t.call(n,l,o++)}),r}function yp(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 Oe={current:null},bo={transition:null},gp={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:bo,ReactCurrentOwner:As};function bc(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:to,forEach:function(e,t,n){to(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return to(e,function(){t++}),t},toArray:function(e){return to(e,function(t){return t})||[]},only:function(e){if(!Os(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=nr;J.Fragment=op;J.Profiler=ip;J.PureComponent=_s;J.StrictMode=lp;J.Suspense=cp;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gp;J.act=bc;J.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=yc({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=As.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)xc.call(t,u)&&!wc.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:Gr,type:e.type,key:o,ref:l,props:r,_owner:i}};J.createContext=function(e){return e={$$typeof:up,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sp,_context:e},e.Consumer=e};J.createElement=Sc;J.createFactory=function(e){var t=Sc.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:ap,render:e}};J.isValidElement=Os;J.lazy=function(e){return{$$typeof:dp,_payload:{_status:-1,_result:e},_init:yp}};J.memo=function(e,t){return{$$typeof:fp,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=bo.transition;bo.transition={};try{e()}finally{bo.transition=t}};J.unstable_act=bc;J.useCallback=function(e,t){return Oe.current.useCallback(e,t)};J.useContext=function(e){return Oe.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};J.useEffect=function(e,t){return Oe.current.useEffect(e,t)};J.useId=function(){return Oe.current.useId()};J.useImperativeHandle=function(e,t,n){return Oe.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return Oe.current.useMemo(e,t)};J.useReducer=function(e,t,n){return Oe.current.useReducer(e,t,n)};J.useRef=function(e){return Oe.current.useRef(e)};J.useState=function(e){return Oe.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return Oe.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return Oe.current.useTransition()};J.version="18.3.1";mc.exports=J;var S=mc.exports;const kc=np(S),Cc=tp({__proto__:null,default:kc},[S]);/**
|
|
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 vp=S,xp=Symbol.for("react.element"),wp=Symbol.for("react.fragment"),Sp=Object.prototype.hasOwnProperty,bp=vp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kp={key:!0,ref:!0,__self:!0,__source:!0};function Ec(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Sp.call(t,r)&&!kp.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:xp,type:e,key:l,ref:i,props:o,_owner:bp.current}}yl.Fragment=wp;yl.jsx=Ec;yl.jsxs=Ec;pc.exports=yl;var y=pc.exports,wi={},Tc={exports:{}},Ge={},Rc={exports:{}},jc={};/**
|
|
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(T,L){var _=T.length;T.push(L);e:for(;0<_;){var V=_-1>>>1,q=T[V];if(0<o(q,L))T[V]=L,T[_]=q,_=V;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],_=T.pop();if(_!==L){T[0]=_;e:for(var V=0,q=T.length,Re=q>>>1;V<Re;){var be=2*(V+1)-1,se=T[be],ue=be+1,ke=T[ue];if(0>o(se,_))ue<q&&0>o(ke,se)?(T[V]=ke,T[ue]=_,V=ue):(T[V]=se,T[be]=_,V=be);else if(ue<q&&0>o(ke,_))T[V]=ke,T[ue]=_,V=ue;else break e}}return L}function o(T,L){var _=T.sortIndex-L.sortIndex;return _!==0?_:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],c=1,d=null,p=3,v=!1,x=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(T){for(var L=n(a);L!==null;){if(L.callback===null)r(a);else if(L.startTime<=T)r(a),L.sortIndex=L.expirationTime,t(u,L);else break;L=n(a)}}function g(T){if(w=!1,h(T),!x)if(n(u)!==null)x=!0,M(C);else{var L=n(a);L!==null&&X(g,L.startTime-T)}}function C(T,L){x=!1,w&&(w=!1,m(R),R=-1),v=!0;var _=p;try{for(h(L),d=n(u);d!==null&&(!(d.expirationTime>L)||T&&!K());){var V=d.callback;if(typeof V=="function"){d.callback=null,p=d.priorityLevel;var q=V(d.expirationTime<=L);L=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(u)&&r(u),h(L)}else r(u);d=n(u)}if(d!==null)var Re=!0;else{var be=n(a);be!==null&&X(g,be.startTime-L),Re=!1}return Re}finally{d=null,p=_,v=!1}}var E=!1,k=null,R=-1,I=5,P=-1;function K(){return!(e.unstable_now()-P<I)}function $(){if(k!==null){var T=e.unstable_now();P=T;var L=!0;try{L=k(!0,T)}finally{L?j():(E=!1,k=null)}}else E=!1}var j;if(typeof f=="function")j=function(){f($)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,Y=D.port2;D.port1.onmessage=$,j=function(){Y.postMessage(null)}}else j=function(){b($,0)};function M(T){k=T,E||(E=!0,j())}function X(T,L){R=b(function(){T(e.unstable_now())},L)}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(T){T.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,M(C))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var L=3;break;default:L=p}var _=p;p=L;try{return T()}finally{p=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var _=p;p=T;try{return L()}finally{p=_}},e.unstable_scheduleCallback=function(T,L,_){var V=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?V+_:V):_=V,T){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=_+q,T={id:c++,callback:L,priorityLevel:T,startTime:_,expirationTime:q,sortIndex:-1},_>V?(T.sortIndex=_,t(a,T),n(u)===null&&T===n(a)&&(w?(m(R),R=-1):w=!0,X(g,_-V))):(T.sortIndex=q,t(u,T),x||v||(x=!0,M(C))),T},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(T){var L=p;return function(){var _=p;p=L;try{return T.apply(this,arguments)}finally{p=_}}}})(jc);Rc.exports=jc;var Cp=Rc.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 Ep=S,Ue=Cp;function A(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 Nc=new Set,jr={};function xn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(jr[e]=t,e=0;e<t.length;e++)Nc.add(t[e])}var jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Si=Object.prototype.hasOwnProperty,Tp=/^[: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]*$/,Au={},Ou={};function Rp(e){return Si.call(Ou,e)?!0:Si.call(Au,e)?!1:Tp.test(e)?Ou[e]=!0:(Au[e]=!0,!1)}function jp(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 Np(e,t,n,r){if(t===null||typeof t>"u"||jp(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 De(e,t,n,r,o,l,i){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=i}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new De(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){Te[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ds=/[\-:]([a-z])/g;function Is(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(Ds,Is);Te[t]=new De(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(Ds,Is);Te[t]=new De(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(Ds,Is);Te[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ks(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Np(t,n,o,r)&&(n=null),r||o===null?Rp(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 At=Ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,no=Symbol.for("react.element"),Rn=Symbol.for("react.portal"),jn=Symbol.for("react.fragment"),Ms=Symbol.for("react.strict_mode"),bi=Symbol.for("react.profiler"),Pc=Symbol.for("react.provider"),_c=Symbol.for("react.context"),zs=Symbol.for("react.forward_ref"),ki=Symbol.for("react.suspense"),Ci=Symbol.for("react.suspense_list"),$s=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),Lc=Symbol.for("react.offscreen"),Du=Symbol.iterator;function ir(e){return e===null||typeof e!="object"?null:(e=Du&&e[Du]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,zl;function hr(e){if(zl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zl=t&&t[1]||""}return`
|
|
34
|
-
`+zl+e}var $l=!1;function Fl(e,t){if(!e||$l)return"";$l=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(`
|
|
35
|
-
`),l=r.stack.split(`
|
|
36
|
-
`),i=o.length-1,s=l.length-1;1<=i&&0<=s&&o[i]!==l[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==l[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==l[s]){var u=`
|
|
37
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function Pp(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Fl(e.type,!1),e;case 11:return e=Fl(e.type.render,!1),e;case 1:return e=Fl(e.type,!0),e;default:return""}}function Ei(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 jn:return"Fragment";case Rn:return"Portal";case bi:return"Profiler";case Ms:return"StrictMode";case ki:return"Suspense";case Ci:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _c:return(e.displayName||"Context")+".Consumer";case Pc:return(e._context.displayName||"Context")+".Provider";case zs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $s:return t=e.displayName||null,t!==null?t:Ei(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return Ei(e(t))}catch{}}return null}function _p(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 Ei(t);case 8:return t===Ms?"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 Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ac(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lp(e){var t=Ac(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(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ro(e){e._valueTracker||(e._valueTracker=Lp(e))}function Oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ac(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(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 Ti(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(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 Dc(e,t){t=t.checked,t!=null&&Ks(e,"checked",t,!1)}function Ri(e,t){Dc(e,t);var n=Xt(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")?ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&ji(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ku(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 ji(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Fn(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=""+Xt(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 Ni(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(yr(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xt(n)}}function Ic(e,t){var n=Xt(t.value),r=Xt(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 zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Kc(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 Pi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Kc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oo,Mc=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(oo=oo||document.createElement("div"),oo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xr={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},Ap=["Webkit","ms","Moz","O"];Object.keys(xr).forEach(function(e){Ap.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xr[t]=xr[e]})});function zc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xr.hasOwnProperty(e)&&xr[e]?(""+t).trim():t+"px"}function $c(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Op=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,t){if(t){if(Op[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Li(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 Ai=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oi=null,Bn=null,Wn=null;function $u(e){if(e=Xr(e)){if(typeof Oi!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Sl(t),Oi(e.stateNode,e.type,t))}}function Fc(e){Bn?Wn?Wn.push(e):Wn=[e]:Bn=e}function Bc(){if(Bn){var e=Bn,t=Wn;if(Wn=Bn=null,$u(e),t)for(e=0;e<t.length;e++)$u(t[e])}}function Wc(e,t){return e(t)}function Vc(){}var Bl=!1;function Hc(e,t,n){if(Bl)return e(t,n);Bl=!0;try{return Wc(e,t,n)}finally{Bl=!1,(Bn!==null||Wn!==null)&&(Vc(),Bc())}}function Pr(e,t){var n=e.stateNode;if(n===null)return null;var r=Sl(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(A(231,t,typeof n));return n}var Di=!1;if(jt)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){Di=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Di=!1}function Dp(e,t,n,r,o,l,i,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var wr=!1,$o=null,Fo=!1,Ii=null,Ip={onError:function(e){wr=!0,$o=e}};function Kp(e,t,n,r,o,l,i,s,u){wr=!1,$o=null,Dp.apply(Ip,arguments)}function Mp(e,t,n,r,o,l,i,s,u){if(Kp.apply(this,arguments),wr){if(wr){var a=$o;wr=!1,$o=null}else throw Error(A(198));Fo||(Fo=!0,Ii=a)}}function wn(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 Uc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fu(e){if(wn(e)!==e)throw Error(A(188))}function zp(e){var t=e.alternate;if(!t){if(t=wn(e),t===null)throw Error(A(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 Fu(o),e;if(l===r)return Fu(o),t;l=l.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Gc(e){return e=zp(e),e!==null?Qc(e):null}function Qc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qc(e);if(t!==null)return t;e=e.sibling}return null}var Yc=Ue.unstable_scheduleCallback,Bu=Ue.unstable_cancelCallback,$p=Ue.unstable_shouldYield,Fp=Ue.unstable_requestPaint,he=Ue.unstable_now,Bp=Ue.unstable_getCurrentPriorityLevel,Bs=Ue.unstable_ImmediatePriority,Xc=Ue.unstable_UserBlockingPriority,Bo=Ue.unstable_NormalPriority,Wp=Ue.unstable_LowPriority,Zc=Ue.unstable_IdlePriority,gl=null,ht=null;function Vp(e){if(ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var at=Math.clz32?Math.clz32:Gp,Hp=Math.log,Up=Math.LN2;function Gp(e){return e>>>=0,e===0?32:31-(Hp(e)/Up|0)|0}var lo=64,io=4194304;function gr(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 Wo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=gr(s):(l&=i,l!==0&&(r=gr(l)))}else i=n&~o,i!==0?r=gr(i):l!==0&&(r=gr(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-at(t),o=1<<n,r|=e[n],t&=~o;return r}function Qp(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 Yp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-at(l),s=1<<i,u=o[i];u===-1?(!(s&n)||s&r)&&(o[i]=Qp(s,t)):u<=t&&(e.expiredLanes|=s),l&=~s}}function Ki(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Jc(){var e=lo;return lo<<=1,!(lo&4194240)&&(lo=64),e}function Wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Xp(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-at(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function Ws(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ne=0;function qc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ef,Vs,tf,nf,rf,Mi=!1,so=[],Ft=null,Bt=null,Wt=null,_r=new Map,Lr=new Map,Kt=[],Zp="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 Wu(e,t){switch(e){case"focusin":case"focusout":Ft=null;break;case"dragenter":case"dragleave":Bt=null;break;case"mouseover":case"mouseout":Wt=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lr.delete(t.pointerId)}}function ur(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=Xr(t),t!==null&&Vs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Jp(e,t,n,r,o){switch(t){case"focusin":return Ft=ur(Ft,e,t,n,r,o),!0;case"dragenter":return Bt=ur(Bt,e,t,n,r,o),!0;case"mouseover":return Wt=ur(Wt,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return _r.set(l,ur(_r.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,Lr.set(l,ur(Lr.get(l)||null,e,t,n,r,o)),!0}return!1}function of(e){var t=ln(e.target);if(t!==null){var n=wn(t);if(n!==null){if(t=n.tag,t===13){if(t=Uc(n),t!==null){e.blockedOn=t,rf(e.priority,function(){tf(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 ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ai=r,n.target.dispatchEvent(r),Ai=null}else return t=Xr(n),t!==null&&Vs(t),e.blockedOn=n,!1;t.shift()}return!0}function Vu(e,t,n){ko(e)&&n.delete(t)}function qp(){Mi=!1,Ft!==null&&ko(Ft)&&(Ft=null),Bt!==null&&ko(Bt)&&(Bt=null),Wt!==null&&ko(Wt)&&(Wt=null),_r.forEach(Vu),Lr.forEach(Vu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,Mi||(Mi=!0,Ue.unstable_scheduleCallback(Ue.unstable_NormalPriority,qp)))}function Ar(e){function t(o){return ar(o,e)}if(0<so.length){ar(so[0],e);for(var n=1;n<so.length;n++){var r=so[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ft!==null&&ar(Ft,e),Bt!==null&&ar(Bt,e),Wt!==null&&ar(Wt,e),_r.forEach(t),Lr.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);)of(n),n.blockedOn===null&&Kt.shift()}var Vn=At.ReactCurrentBatchConfig,Vo=!0;function em(e,t,n,r){var o=ne,l=Vn.transition;Vn.transition=null;try{ne=1,Hs(e,t,n,r)}finally{ne=o,Vn.transition=l}}function tm(e,t,n,r){var o=ne,l=Vn.transition;Vn.transition=null;try{ne=4,Hs(e,t,n,r)}finally{ne=o,Vn.transition=l}}function Hs(e,t,n,r){if(Vo){var o=zi(e,t,n,r);if(o===null)ql(e,t,r,Ho,n),Wu(e,r);else if(Jp(o,e,t,n,r))r.stopPropagation();else if(Wu(e,r),t&4&&-1<Zp.indexOf(e)){for(;o!==null;){var l=Xr(o);if(l!==null&&ef(l),l=zi(e,t,n,r),l===null&&ql(e,t,r,Ho,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else ql(e,t,r,null,n)}}var Ho=null;function zi(e,t,n,r){if(Ho=null,e=Fs(r),e=ln(e),e!==null)if(t=wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Uc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ho=e,null}function lf(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(Bp()){case Bs:return 1;case Xc:return 4;case Bo:case Wp:return 16;case Zc:return 536870912;default:return 16}default:return 16}}var zt=null,Us=null,Co=null;function sf(){if(Co)return Co;var e,t=Us,n=t.length,r,o="value"in zt?zt.value:zt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return Co=o.slice(e,1<r?1-r:void 0)}function Eo(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 uo(){return!0}function Hu(){return!1}function Qe(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?uo:Hu,this.isPropagationStopped=Hu,this}return de(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Qe(rr),Yr=de({},rr,{view:0,detail:0}),nm=Qe(Yr),Vl,Hl,cr,vl=de({},Yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,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!==cr&&(cr&&e.type==="mousemove"?(Vl=e.screenX-cr.screenX,Hl=e.screenY-cr.screenY):Hl=Vl=0,cr=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),Uu=Qe(vl),rm=de({},vl,{dataTransfer:0}),om=Qe(rm),lm=de({},Yr,{relatedTarget:0}),Ul=Qe(lm),im=de({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),sm=Qe(im),um=de({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),am=Qe(um),cm=de({},rr,{data:0}),Gu=Qe(cm),fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dm={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"},pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pm[e])?!!t[e]:!1}function Qs(){return mm}var hm=de({},Yr,{key:function(e){if(e.key){var t=fm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ym=Qe(hm),gm=de({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qu=Qe(gm),vm=de({},Yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),xm=Qe(vm),wm=de({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sm=Qe(wm),bm=de({},vl,{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}),km=Qe(bm),Cm=[9,13,27,32],Ys=jt&&"CompositionEvent"in window,Sr=null;jt&&"documentMode"in document&&(Sr=document.documentMode);var Em=jt&&"TextEvent"in window&&!Sr,uf=jt&&(!Ys||Sr&&8<Sr&&11>=Sr),Yu=" ",Xu=!1;function af(e,t){switch(e){case"keyup":return Cm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function Tm(e,t){switch(e){case"compositionend":return cf(t);case"keypress":return t.which!==32?null:(Xu=!0,Yu);case"textInput":return e=t.data,e===Yu&&Xu?null:e;default:return null}}function Rm(e,t){if(Nn)return e==="compositionend"||!Ys&&af(e,t)?(e=sf(),Co=Us=zt=null,Nn=!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 uf&&t.locale!=="ko"?null:t.data;default:return null}}var jm={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 Zu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jm[e.type]:t==="textarea"}function ff(e,t,n,r){Fc(r),t=Uo(t,"onChange"),0<t.length&&(n=new Gs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var br=null,Or=null;function Nm(e){bf(e,0)}function xl(e){var t=Ln(e);if(Oc(t))return e}function Pm(e,t){if(e==="change")return t}var df=!1;if(jt){var Gl;if(jt){var Ql="oninput"in document;if(!Ql){var Ju=document.createElement("div");Ju.setAttribute("oninput","return;"),Ql=typeof Ju.oninput=="function"}Gl=Ql}else Gl=!1;df=Gl&&(!document.documentMode||9<document.documentMode)}function qu(){br&&(br.detachEvent("onpropertychange",pf),Or=br=null)}function pf(e){if(e.propertyName==="value"&&xl(Or)){var t=[];ff(t,Or,e,Fs(e)),Hc(Nm,t)}}function _m(e,t,n){e==="focusin"?(qu(),br=t,Or=n,br.attachEvent("onpropertychange",pf)):e==="focusout"&&qu()}function Lm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl(Or)}function Am(e,t){if(e==="click")return xl(t)}function Om(e,t){if(e==="input"||e==="change")return xl(t)}function Dm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:Dm;function Dr(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(!Si.call(t,o)||!ft(e[o],t[o]))return!1}return!0}function ea(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ta(e,t){var n=ea(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=ea(n)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hf(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function Xs(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 Im(e){var t=hf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mf(n.ownerDocument.documentElement,n)){if(r!==null&&Xs(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=ta(n,l);var i=ta(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 Km=jt&&"documentMode"in document&&11>=document.documentMode,Pn=null,$i=null,kr=null,Fi=!1;function na(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fi||Pn==null||Pn!==zo(r)||(r=Pn,"selectionStart"in r&&Xs(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}),kr&&Dr(kr,r)||(kr=r,r=Uo($i,"onSelect"),0<r.length&&(t=new Gs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _n={animationend:ao("Animation","AnimationEnd"),animationiteration:ao("Animation","AnimationIteration"),animationstart:ao("Animation","AnimationStart"),transitionend:ao("Transition","TransitionEnd")},Yl={},yf={};jt&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function wl(e){if(Yl[e])return Yl[e];if(!_n[e])return e;var t=_n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yf)return Yl[e]=t[n];return e}var gf=wl("animationend"),vf=wl("animationiteration"),xf=wl("animationstart"),wf=wl("transitionend"),Sf=new Map,ra="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 qt(e,t){Sf.set(e,t),xn(t,[e])}for(var Xl=0;Xl<ra.length;Xl++){var Zl=ra[Xl],Mm=Zl.toLowerCase(),zm=Zl[0].toUpperCase()+Zl.slice(1);qt(Mm,"on"+zm)}qt(gf,"onAnimationEnd");qt(vf,"onAnimationIteration");qt(xf,"onAnimationStart");qt("dblclick","onDoubleClick");qt("focusin","onFocus");qt("focusout","onBlur");qt(wf,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xn("onBeforeInput",["compositionend","keypress","textInput","paste"]);xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),$m=new Set("cancel close invalid load scroll toggle".split(" ").concat(vr));function oa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Mp(r,t,void 0,e),e.currentTarget=null}function bf(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 i=r.length-1;0<=i;i--){var s=r[i],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==l&&o.isPropagationStopped())break e;oa(o,s,a),l=u}else for(i=0;i<r.length;i++){if(s=r[i],u=s.instance,a=s.currentTarget,s=s.listener,u!==l&&o.isPropagationStopped())break e;oa(o,s,a),l=u}}}if(Fo)throw e=Ii,Fo=!1,Ii=null,e}function le(e,t){var n=t[Ui];n===void 0&&(n=t[Ui]=new Set);var r=e+"__bubble";n.has(r)||(kf(t,e,2,!1),n.add(r))}function Jl(e,t,n){var r=0;t&&(r|=4),kf(n,e,r,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[co]){e[co]=!0,Nc.forEach(function(n){n!=="selectionchange"&&($m.has(n)||Jl(n,!1,e),Jl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,Jl("selectionchange",!1,t))}}function kf(e,t,n,r){switch(lf(t)){case 1:var o=em;break;case 4:o=tm;break;default:o=Hs}n=o.bind(null,t,n,e),o=void 0,!Di||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 ql(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;i=i.return}for(;s!==null;){if(i=ln(s),i===null)return;if(u=i.tag,u===5||u===6){r=l=i;continue e}s=s.parentNode}}r=r.return}Hc(function(){var a=l,c=Fs(n),d=[];e:{var p=Sf.get(e);if(p!==void 0){var v=Gs,x=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":v=ym;break;case"focusin":x="focus",v=Ul;break;case"focusout":x="blur",v=Ul;break;case"beforeblur":case"afterblur":v=Ul;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":v=Uu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=xm;break;case gf:case vf:case xf:v=sm;break;case wf:v=Sm;break;case"scroll":v=nm;break;case"wheel":v=km;break;case"copy":case"cut":case"paste":v=am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Qu}var w=(t&4)!==0,b=!w&&e==="scroll",m=w?p!==null?p+"Capture":null:p;w=[];for(var f=a,h;f!==null;){h=f;var g=h.stateNode;if(h.tag===5&&g!==null&&(h=g,m!==null&&(g=Pr(f,m),g!=null&&w.push(Kr(f,g,h)))),b)break;f=f.return}0<w.length&&(p=new v(p,x,null,n,c),d.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==Ai&&(x=n.relatedTarget||n.fromElement)&&(ln(x)||x[Nt]))break e;if((v||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=a,x=x?ln(x):null,x!==null&&(b=wn(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=a),v!==x)){if(w=Uu,g="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=Qu,g="onPointerLeave",m="onPointerEnter",f="pointer"),b=v==null?p:Ln(v),h=x==null?p:Ln(x),p=new w(g,f+"leave",v,n,c),p.target=b,p.relatedTarget=h,g=null,ln(c)===a&&(w=new w(m,f+"enter",x,n,c),w.target=h,w.relatedTarget=b,g=w),b=g,v&&x)t:{for(w=v,m=x,f=0,h=w;h;h=kn(h))f++;for(h=0,g=m;g;g=kn(g))h++;for(;0<f-h;)w=kn(w),f--;for(;0<h-f;)m=kn(m),h--;for(;f--;){if(w===m||m!==null&&w===m.alternate)break t;w=kn(w),m=kn(m)}w=null}else w=null;v!==null&&la(d,p,v,w,!1),x!==null&&b!==null&&la(d,b,x,w,!0)}}e:{if(p=a?Ln(a):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var C=Pm;else if(Zu(p))if(df)C=Om;else{C=Lm;var E=_m}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Am);if(C&&(C=C(e,a))){ff(d,C,n,c);break e}E&&E(e,p,a),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&ji(p,"number",p.value)}switch(E=a?Ln(a):window,e){case"focusin":(Zu(E)||E.contentEditable==="true")&&(Pn=E,$i=a,kr=null);break;case"focusout":kr=$i=Pn=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,na(d,n,c);break;case"selectionchange":if(Km)break;case"keydown":case"keyup":na(d,n,c)}var k;if(Ys)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Nn?af(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(uf&&n.locale!=="ko"&&(Nn||R!=="onCompositionStart"?R==="onCompositionEnd"&&Nn&&(k=sf()):(zt=c,Us="value"in zt?zt.value:zt.textContent,Nn=!0)),E=Uo(a,R),0<E.length&&(R=new Gu(R,e,null,n,c),d.push({event:R,listeners:E}),k?R.data=k:(k=cf(n),k!==null&&(R.data=k)))),(k=Em?Tm(e,n):Rm(e,n))&&(a=Uo(a,"onBeforeInput"),0<a.length&&(c=new Gu("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:a}),c.data=k))}bf(d,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=Pr(e,n),l!=null&&r.unshift(Kr(e,l,o)),l=Pr(e,t),l!=null&&r.push(Kr(e,l,o))),e=e.return}return r}function kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function la(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,o?(u=Pr(n,l),u!=null&&i.unshift(Kr(n,u,s))):o||(u=Pr(n,l),u!=null&&i.push(Kr(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Fm=/\r\n?/g,Bm=/\u0000|\uFFFD/g;function ia(e){return(typeof e=="string"?e:""+e).replace(Fm,`
|
|
38
|
-
`).replace(Bm,"")}function fo(e,t,n){if(t=ia(t),ia(e)!==t&&n)throw Error(A(425))}function Go(){}var Bi=null,Wi=null;function Vi(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 Hi=typeof setTimeout=="function"?setTimeout:void 0,Wm=typeof clearTimeout=="function"?clearTimeout:void 0,sa=typeof Promise=="function"?Promise:void 0,Vm=typeof queueMicrotask=="function"?queueMicrotask:typeof sa<"u"?function(e){return sa.resolve(null).then(e).catch(Hm)}:Hi;function Hm(e){setTimeout(function(){throw e})}function ei(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),Ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ar(t)}function Vt(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 ua(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 or=Math.random().toString(36).slice(2),mt="__reactFiber$"+or,Mr="__reactProps$"+or,Nt="__reactContainer$"+or,Ui="__reactEvents$"+or,Um="__reactListeners$"+or,Gm="__reactHandles$"+or;function ln(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ua(e);e!==null;){if(n=e[mt])return n;e=ua(e)}return t}e=n,n=e.parentNode}return null}function Xr(e){return e=e[mt]||e[Nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ln(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function Sl(e){return e[Mr]||null}var Gi=[],An=-1;function en(e){return{current:e}}function ie(e){0>An||(e.current=Gi[An],Gi[An]=null,An--)}function re(e,t){An++,Gi[An]=e.current,e.current=t}var Zt={},_e=en(Zt),Me=en(!1),pn=Zt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Zt;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 ze(e){return e=e.childContextTypes,e!=null}function Qo(){ie(Me),ie(_e)}function aa(e,t,n){if(_e.current!==Zt)throw Error(A(168));re(_e,t),re(Me,n)}function Cf(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(A(108,_p(e)||"Unknown",o));return de({},n,r)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,pn=_e.current,re(_e,e),re(Me,Me.current),!0}function ca(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Cf(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,ie(Me),ie(_e),re(_e,e)):ie(Me),re(Me,n)}var bt=null,bl=!1,ti=!1;function Ef(e){bt===null?bt=[e]:bt.push(e)}function Qm(e){bl=!0,Ef(e)}function tn(){if(!ti&&bt!==null){ti=!0;var e=0,t=ne;try{var n=bt;for(ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bt=null,bl=!1}catch(o){throw bt!==null&&(bt=bt.slice(e+1)),Yc(Bs,tn),o}finally{ne=t,ti=!1}}return null}var On=[],Dn=0,Xo=null,Zo=0,Ye=[],Xe=0,mn=null,kt=1,Ct="";function rn(e,t){On[Dn++]=Zo,On[Dn++]=Xo,Xo=e,Zo=t}function Tf(e,t,n){Ye[Xe++]=kt,Ye[Xe++]=Ct,Ye[Xe++]=mn,mn=e;var r=kt;e=Ct;var o=32-at(r)-1;r&=~(1<<o),n+=1;var l=32-at(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,kt=1<<32-at(t)+o|n<<o|r,Ct=l+e}else kt=1<<l|n<<o|r,Ct=e}function Zs(e){e.return!==null&&(rn(e,1),Tf(e,1,0))}function Js(e){for(;e===Xo;)Xo=On[--Dn],On[Dn]=null,Zo=On[--Dn],On[Dn]=null;for(;e===mn;)mn=Ye[--Xe],Ye[Xe]=null,Ct=Ye[--Xe],Ye[Xe]=null,kt=Ye[--Xe],Ye[Xe]=null}var Ve=null,We=null,ae=!1,ut=null;function Rf(e,t){var n=Ze(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 fa(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,Ve=e,We=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ve=e,We=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mn!==null?{id:kt,overflow:Ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ve=e,We=null,!0):!1;default:return!1}}function Qi(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yi(e){if(ae){var t=We;if(t){var n=t;if(!fa(e,t)){if(Qi(e))throw Error(A(418));t=Vt(n.nextSibling);var r=Ve;t&&fa(e,t)?Rf(r,n):(e.flags=e.flags&-4097|2,ae=!1,Ve=e)}}else{if(Qi(e))throw Error(A(418));e.flags=e.flags&-4097|2,ae=!1,Ve=e}}}function da(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ve=e}function po(e){if(e!==Ve)return!1;if(!ae)return da(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vi(e.type,e.memoizedProps)),t&&(t=We)){if(Qi(e))throw jf(),Error(A(418));for(;t;)Rf(e,t),t=Vt(t.nextSibling)}if(da(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){We=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}We=null}}else We=Ve?Vt(e.stateNode.nextSibling):null;return!0}function jf(){for(var e=We;e;)e=Vt(e.nextSibling)}function Xn(){We=Ve=null,ae=!1}function qs(e){ut===null?ut=[e]:ut.push(e)}var Ym=At.ReactCurrentBatchConfig;function fr(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(A(309));var r=n.stateNode}if(!r)throw Error(A(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(i){var s=o.refs;i===null?delete s[l]:s[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function mo(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pa(e){var t=e._init;return t(e._payload)}function Nf(e){function t(m,f){if(e){var h=m.deletions;h===null?(m.deletions=[f],m.flags|=16):h.push(f)}}function n(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function r(m,f){for(m=new Map;f!==null;)f.key!==null?m.set(f.key,f):m.set(f.index,f),f=f.sibling;return m}function o(m,f){return m=Qt(m,f),m.index=0,m.sibling=null,m}function l(m,f,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<f?(m.flags|=2,f):h):(m.flags|=2,f)):(m.flags|=1048576,f)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,f,h,g){return f===null||f.tag!==6?(f=ui(h,m.mode,g),f.return=m,f):(f=o(f,h),f.return=m,f)}function u(m,f,h,g){var C=h.type;return C===jn?c(m,f,h.props.children,g,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dt&&pa(C)===f.type)?(g=o(f,h.props),g.ref=fr(m,f,h),g.return=m,g):(g=Lo(h.type,h.key,h.props,null,m.mode,g),g.ref=fr(m,f,h),g.return=m,g)}function a(m,f,h,g){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=ai(h,m.mode,g),f.return=m,f):(f=o(f,h.children||[]),f.return=m,f)}function c(m,f,h,g,C){return f===null||f.tag!==7?(f=fn(h,m.mode,g,C),f.return=m,f):(f=o(f,h),f.return=m,f)}function d(m,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ui(""+f,m.mode,h),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case no:return h=Lo(f.type,f.key,f.props,null,m.mode,h),h.ref=fr(m,null,f),h.return=m,h;case Rn:return f=ai(f,m.mode,h),f.return=m,f;case Dt:var g=f._init;return d(m,g(f._payload),h)}if(yr(f)||ir(f))return f=fn(f,m.mode,h,null),f.return=m,f;mo(m,f)}return null}function p(m,f,h,g){var C=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:s(m,f,""+h,g);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case no:return h.key===C?u(m,f,h,g):null;case Rn:return h.key===C?a(m,f,h,g):null;case Dt:return C=h._init,p(m,f,C(h._payload),g)}if(yr(h)||ir(h))return C!==null?null:c(m,f,h,g,null);mo(m,h)}return null}function v(m,f,h,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return m=m.get(h)||null,s(f,m,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case no:return m=m.get(g.key===null?h:g.key)||null,u(f,m,g,C);case Rn:return m=m.get(g.key===null?h:g.key)||null,a(f,m,g,C);case Dt:var E=g._init;return v(m,f,h,E(g._payload),C)}if(yr(g)||ir(g))return m=m.get(h)||null,c(f,m,g,C,null);mo(f,g)}return null}function x(m,f,h,g){for(var C=null,E=null,k=f,R=f=0,I=null;k!==null&&R<h.length;R++){k.index>R?(I=k,k=null):I=k.sibling;var P=p(m,k,h[R],g);if(P===null){k===null&&(k=I);break}e&&k&&P.alternate===null&&t(m,k),f=l(P,f,R),E===null?C=P:E.sibling=P,E=P,k=I}if(R===h.length)return n(m,k),ae&&rn(m,R),C;if(k===null){for(;R<h.length;R++)k=d(m,h[R],g),k!==null&&(f=l(k,f,R),E===null?C=k:E.sibling=k,E=k);return ae&&rn(m,R),C}for(k=r(m,k);R<h.length;R++)I=v(k,m,R,h[R],g),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?R:I.key),f=l(I,f,R),E===null?C=I:E.sibling=I,E=I);return e&&k.forEach(function(K){return t(m,K)}),ae&&rn(m,R),C}function w(m,f,h,g){var C=ir(h);if(typeof C!="function")throw Error(A(150));if(h=C.call(h),h==null)throw Error(A(151));for(var E=C=null,k=f,R=f=0,I=null,P=h.next();k!==null&&!P.done;R++,P=h.next()){k.index>R?(I=k,k=null):I=k.sibling;var K=p(m,k,P.value,g);if(K===null){k===null&&(k=I);break}e&&k&&K.alternate===null&&t(m,k),f=l(K,f,R),E===null?C=K:E.sibling=K,E=K,k=I}if(P.done)return n(m,k),ae&&rn(m,R),C;if(k===null){for(;!P.done;R++,P=h.next())P=d(m,P.value,g),P!==null&&(f=l(P,f,R),E===null?C=P:E.sibling=P,E=P);return ae&&rn(m,R),C}for(k=r(m,k);!P.done;R++,P=h.next())P=v(k,m,R,P.value,g),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?R:P.key),f=l(P,f,R),E===null?C=P:E.sibling=P,E=P);return e&&k.forEach(function($){return t(m,$)}),ae&&rn(m,R),C}function b(m,f,h,g){if(typeof h=="object"&&h!==null&&h.type===jn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case no:e:{for(var C=h.key,E=f;E!==null;){if(E.key===C){if(C=h.type,C===jn){if(E.tag===7){n(m,E.sibling),f=o(E,h.props.children),f.return=m,m=f;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dt&&pa(C)===E.type){n(m,E.sibling),f=o(E,h.props),f.ref=fr(m,E,h),f.return=m,m=f;break e}n(m,E);break}else t(m,E);E=E.sibling}h.type===jn?(f=fn(h.props.children,m.mode,g,h.key),f.return=m,m=f):(g=Lo(h.type,h.key,h.props,null,m.mode,g),g.ref=fr(m,f,h),g.return=m,m=g)}return i(m);case Rn:e:{for(E=h.key;f!==null;){if(f.key===E)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(m,f.sibling),f=o(f,h.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=ai(h,m.mode,g),f.return=m,m=f}return i(m);case Dt:return E=h._init,b(m,f,E(h._payload),g)}if(yr(h))return x(m,f,h,g);if(ir(h))return w(m,f,h,g);mo(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,h),f.return=m,m=f):(n(m,f),f=ui(h,m.mode,g),f.return=m,m=f),i(m)):n(m,f)}return b}var Zn=Nf(!0),Pf=Nf(!1),Jo=en(null),qo=null,In=null,eu=null;function tu(){eu=In=qo=null}function nu(e){var t=Jo.current;ie(Jo),e._currentValue=t}function Xi(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 Hn(e,t){qo=e,eu=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(eu!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(qo===null)throw Error(A(308));In=e,qo.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var sn=null;function ru(e){sn===null?sn=[e]:sn.push(e)}function _f(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ru(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 It=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lf(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pt(e,n)}return o=r.interleaved,o===null?(t.next=t,ru(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pt(e,n)}function To(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,Ws(e,n)}}function ma(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 i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,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 el(e,t,n,r){var o=e.updateQueue;It=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?l=a:i.next=a,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(l!==null){var d=o.baseState;i=0,c=a=u=null,s=l;do{var p=s.lane,v=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(p=t,v=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){d=x.call(v,d,p);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,p=typeof x=="function"?x.call(v,d,p):x,p==null)break e;d=de({},d,p);break e;case 2:It=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=v,u=d):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(u=d),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);yn|=i,e.lanes=i,e.memoizedState=d}}function ha(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(A(191,o));o.call(r)}}}var Zr={},yt=en(Zr),zr=en(Zr),$r=en(Zr);function un(e){if(e===Zr)throw Error(A(174));return e}function lu(e,t){switch(re($r,t),re(zr,e),re(yt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pi(t,e)}ie(yt),re(yt,t)}function Jn(){ie(yt),ie(zr),ie($r)}function Af(e){un($r.current);var t=un(yt.current),n=Pi(t,e.type);t!==n&&(re(zr,e),re(yt,n))}function iu(e){zr.current===e&&(ie(yt),ie(zr))}var ce=en(0);function tl(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 ni=[];function su(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var Ro=At.ReactCurrentDispatcher,ri=At.ReactCurrentBatchConfig,hn=0,fe=null,ve=null,we=null,nl=!1,Cr=!1,Fr=0,Xm=0;function je(){throw Error(A(321))}function uu(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 au(e,t,n,r,o,l){if(hn=l,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ro.current=e===null||e.memoizedState===null?eh:th,e=n(r,o),Cr){l=0;do{if(Cr=!1,Fr=0,25<=l)throw Error(A(301));l+=1,we=ve=null,t.updateQueue=null,Ro.current=nh,e=n(r,o)}while(Cr)}if(Ro.current=rl,t=ve!==null&&ve.next!==null,hn=0,we=ve=fe=null,nl=!1,t)throw Error(A(300));return e}function cu(){var e=Fr!==0;return Fr=0,e}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?fe.memoizedState=we=e:we=we.next=e,we}function tt(){if(ve===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=we===null?fe.memoizedState:we.next;if(t!==null)we=t,ve=e;else{if(e===null)throw Error(A(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},we===null?fe.memoizedState=we=e:we=we.next=e}return we}function Br(e,t){return typeof t=="function"?t(e):t}function oi(e){var t=tt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=ve,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var s=i=null,u=null,a=l;do{var c=a.lane;if((hn&c)===c)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var d={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=d,i=r):u=u.next=d,fe.lanes|=c,yn|=c}a=a.next}while(a!==null&&a!==l);u===null?i=r:u.next=s,ft(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,fe.lanes|=l,yn|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function li(e){var t=tt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);ft(l,t.memoizedState)||(Ke=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Of(){}function Df(e,t){var n=fe,r=tt(),o=t(),l=!ft(r.memoizedState,o);if(l&&(r.memoizedState=o,Ke=!0),r=r.queue,fu(Mf.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,Wr(9,Kf.bind(null,n,r,o,t),void 0,null),Se===null)throw Error(A(349));hn&30||If(n,t,o)}return o}function If(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kf(e,t,n,r){t.value=n,t.getSnapshot=r,zf(t)&&$f(e)}function Mf(e,t,n){return n(function(){zf(t)&&$f(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch{return!0}}function $f(e){var t=Pt(e,1);t!==null&&ct(t,e,1,-1)}function ya(e){var t=pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:e},t.queue=e,e=e.dispatch=qm.bind(null,fe,e),[t.memoizedState,e]}function Wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.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 Ff(){return tt().memoizedState}function jo(e,t,n,r){var o=pt();fe.flags|=e,o.memoizedState=Wr(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var o=tt();r=r===void 0?null:r;var l=void 0;if(ve!==null){var i=ve.memoizedState;if(l=i.destroy,r!==null&&uu(r,i.deps)){o.memoizedState=Wr(t,n,l,r);return}}fe.flags|=e,o.memoizedState=Wr(1|t,n,l,r)}function ga(e,t){return jo(8390656,8,e,t)}function fu(e,t){return kl(2048,8,e,t)}function Bf(e,t){return kl(4,2,e,t)}function Wf(e,t){return kl(4,4,e,t)}function Vf(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 Hf(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,Vf.bind(null,t,e),n)}function du(){}function Uf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&uu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&uu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qf(e,t,n){return hn&21?(ft(n,t)||(n=Jc(),fe.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function Zm(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=ri.transition;ri.transition={};try{e(!1),t()}finally{ne=n,ri.transition=r}}function Yf(){return tt().memoizedState}function Jm(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xf(e))Zf(t,n);else if(n=_f(e,t,n,r),n!==null){var o=Ae();ct(n,e,r,o),Jf(n,t,r)}}function qm(e,t,n){var r=Gt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xf(e))Zf(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,ft(s,i)){var u=t.interleaved;u===null?(o.next=o,ru(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=_f(e,t,o,r),n!==null&&(o=Ae(),ct(n,e,r,o),Jf(n,t,r))}}function Xf(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Zf(e,t){Cr=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(e,n)}}var rl={readContext:et,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},eh={readContext:et,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:ga,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jo(4194308,4,Vf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return jo(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=Jm.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:ya,useDebugValue:du,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=ya(!1),t=e[0];return e=Zm.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=pt();if(ae){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Se===null)throw Error(A(349));hn&30||If(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,ga(Mf.bind(null,r,l,e),[e]),r.flags|=2048,Wr(9,Kf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=pt(),t=Se.identifierPrefix;if(ae){var n=Ct,r=kt;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},th={readContext:et,useCallback:Uf,useContext:et,useEffect:fu,useImperativeHandle:Hf,useInsertionEffect:Bf,useLayoutEffect:Wf,useMemo:Gf,useReducer:oi,useRef:Ff,useState:function(){return oi(Br)},useDebugValue:du,useDeferredValue:function(e){var t=tt();return Qf(t,ve.memoizedState,e)},useTransition:function(){var e=oi(Br)[0],t=tt().memoizedState;return[e,t]},useMutableSource:Of,useSyncExternalStore:Df,useId:Yf,unstable_isNewReconciler:!1},nh={readContext:et,useCallback:Uf,useContext:et,useEffect:fu,useImperativeHandle:Hf,useInsertionEffect:Bf,useLayoutEffect:Wf,useMemo:Gf,useReducer:li,useRef:Ff,useState:function(){return li(Br)},useDebugValue:du,useDeferredValue:function(e){var t=tt();return ve===null?t.memoizedState=e:Qf(t,ve.memoizedState,e)},useTransition:function(){var e=li(Br)[0],t=tt().memoizedState;return[e,t]},useMutableSource:Of,useSyncExternalStore:Df,useId:Yf,unstable_isNewReconciler:!1};function it(e,t){if(e&&e.defaultProps){t=de({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Zi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:de({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cl={isMounted:function(e){return(e=e._reactInternals)?wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),o=Gt(e),l=Tt(r,o);l.payload=t,n!=null&&(l.callback=n),t=Ht(e,l,o),t!==null&&(ct(t,e,o,r),To(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),o=Gt(e),l=Tt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Ht(e,l,o),t!==null&&(ct(t,e,o,r),To(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Gt(e),o=Tt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ht(e,o,r),t!==null&&(ct(t,e,r,n),To(t,e,r))}};function va(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!Dr(n,r)||!Dr(o,l):!0}function qf(e,t,n){var r=!1,o=Zt,l=t.contextType;return typeof l=="object"&&l!==null?l=et(l):(o=ze(t)?pn:_e.current,r=t.contextTypes,l=(r=r!=null)?Yn(e,o):Zt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function xa(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&&Cl.enqueueReplaceState(t,t.state,null)}function Ji(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ou(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=et(l):(l=ze(t)?pn:_e.current,o.context=Yn(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Zi(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&&Cl.enqueueReplaceState(o,o.state,null),el(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Pp(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 ii(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rh=typeof WeakMap=="function"?WeakMap:Map;function ed(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,as=r),qi(e,t)},n}function td(e,t,n){n=Tt(-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(){qi(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){qi(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function wa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rh;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=gh.bind(null,e,t,n),t.then(e,e))}function Sa(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 ba(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=Tt(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var oh=At.ReactCurrentOwner,Ke=!1;function Le(e,t,n,r){t.child=e===null?Pf(t,null,n,r):Zn(t,e.child,n,r)}function ka(e,t,n,r,o){n=n.render;var l=t.ref;return Hn(t,o),r=au(e,t,n,r,l,o),n=cu(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_t(e,t,o)):(ae&&n&&Zs(t),t.flags|=1,Le(e,t,r,o),t.child)}function Ca(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!wu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,nd(e,t,l,r,o)):(e=Lo(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 i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Dr,n(i,r)&&e.ref===t.ref)return _t(e,t,o)}return t.flags|=1,e=Qt(l,r),e.ref=t.ref,e.return=t,t.child=e}function nd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(Dr(l,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,_t(e,t,o)}return es(e,t,n,r,o)}function rd(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},re(Mn,Fe),Fe|=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,re(Mn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,re(Mn,Fe),Fe|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,re(Mn,Fe),Fe|=r;return Le(e,t,o,n),t.child}function od(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function es(e,t,n,r,o){var l=ze(n)?pn:_e.current;return l=Yn(t,l),Hn(t,o),n=au(e,t,n,r,l,o),r=cu(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_t(e,t,o)):(ae&&r&&Zs(t),t.flags|=1,Le(e,t,n,o),t.child)}function Ea(e,t,n,r,o){if(ze(n)){var l=!0;Yo(t)}else l=!1;if(Hn(t,o),t.stateNode===null)No(e,t),qf(t,n,r),Ji(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=et(a):(a=ze(n)?pn:_e.current,a=Yn(t,a));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==a)&&xa(t,i,r,a),It=!1;var p=t.memoizedState;i.state=p,el(t,r,i,o),u=t.memoizedState,s!==r||p!==u||Me.current||It?(typeof c=="function"&&(Zi(t,n,c,r),u=t.memoizedState),(s=It||va(t,n,s,r,p,u,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Lf(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:it(t.type,s),i.props=a,d=t.pendingProps,p=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=et(u):(u=ze(n)?pn:_e.current,u=Yn(t,u));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||p!==u)&&xa(t,i,r,u),It=!1,p=t.memoizedState,i.state=p,el(t,r,i,o);var x=t.memoizedState;s!==d||p!==x||Me.current||It?(typeof v=="function"&&(Zi(t,n,v,r),x=t.memoizedState),(a=It||va(t,n,a,r,p,x,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ts(e,t,n,r,l,o)}function ts(e,t,n,r,o,l){od(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&ca(t,n,!1),_t(e,t,l);r=t.stateNode,oh.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Zn(t,e.child,null,l),t.child=Zn(t,null,s,l)):Le(e,t,s,l),t.memoizedState=r.state,o&&ca(t,n,!0),t.child}function ld(e){var t=e.stateNode;t.pendingContext?aa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aa(e,t.context,!1),lu(e,t.containerInfo)}function Ta(e,t,n,r,o){return Xn(),qs(o),t.flags|=256,Le(e,t,n,r),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0};function rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function id(e,t,n){var r=t.pendingProps,o=ce.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),re(ce,o&1),e===null)return Yi(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):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Rl(i,r,0,null),e=fn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=rs(n),t.memoizedState=ns,e):pu(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return lh(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qt(o,u),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=Qt(s,l):(l=fn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?rs(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=ns,r}return l=e.child,e=l.sibling,r=Qt(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 pu(e,t){return t=Rl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ho(e,t,n,r){return r!==null&&qs(r),Zn(t,e.child,null,n),e=pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lh(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=ii(Error(A(422))),ho(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Rl({mode:"visible",children:r.children},o,0,null),l=fn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Zn(t,e.child,null,i),t.child.memoizedState=rs(i),t.memoizedState=ns,l);if(!(t.mode&1))return ho(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(A(419)),r=ii(l,r,void 0),ho(e,t,i,r)}if(s=(i&e.childLanes)!==0,Ke||s){if(r=Se,r!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Pt(e,o),ct(r,e,o,-1))}return xu(),r=ii(Error(A(421))),ho(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=vh.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,We=Vt(o.nextSibling),Ve=t,ae=!0,ut=null,e!==null&&(Ye[Xe++]=kt,Ye[Xe++]=Ct,Ye[Xe++]=mn,kt=e.id,Ct=e.overflow,mn=t),t=pu(t,r.children),t.flags|=4096,t)}function Ra(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function si(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 sd(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Le(e,t,r.children,n),r=ce.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&&Ra(e,n,t);else if(e.tag===19)Ra(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(re(ce,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&&tl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),si(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&&tl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}si(t,!0,n,null,l);break;case"together":si(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function No(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ih(e,t,n){switch(t.tag){case 3:ld(t),Xn();break;case 5:Af(t);break;case 1:ze(t.type)&&Yo(t);break;case 4:lu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;re(Jo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?id(e,t,n):(re(ce,ce.current&1),e=_t(e,t,n),e!==null?e.sibling:null);re(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(ce,ce.current),r)break;return null;case 22:case 23:return t.lanes=0,rd(e,t,n)}return _t(e,t,n)}var ud,os,ad,cd;ud=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}};os=function(){};ad=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,un(yt.current);var l=null;switch(n){case"input":o=Ti(e,o),r=Ti(e,r),l=[];break;case"select":o=de({},o,{value:void 0}),r=de({},r,{value:void 0}),l=[];break;case"textarea":o=Ni(e,o),r=Ni(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Go)}_i(n,r);var i;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var s=o[a];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(jr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var u=r[a];if(s=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(jr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&le("scroll",e),l||s===u||(l=[])):(l=l||[]).push(a,u))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};cd=function(e,t,n,r){n!==r&&(t.flags|=4)};function dr(e,t){if(!ae)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 Ne(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 sh(e,t,n){var r=t.pendingProps;switch(Js(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return ze(t.type)&&Qo(),Ne(t),null;case 3:return r=t.stateNode,Jn(),ie(Me),ie(_e),su(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(po(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(ds(ut),ut=null))),os(e,t),Ne(t),null;case 5:iu(t);var o=un($r.current);if(n=t.type,e!==null&&t.stateNode!=null)ad(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Ne(t),null}if(e=un(yt.current),po(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[mt]=t,r[Mr]=l,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(o=0;o<vr.length;o++)le(vr[o],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Iu(r,l),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},le("invalid",r);break;case"textarea":Mu(r,l),le("invalid",r)}_i(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&fo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&fo(r.textContent,s,e),o=["children",""+s]):jr.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&le("scroll",r)}switch(n){case"input":ro(r),Ku(r,l,!0);break;case"textarea":ro(r),zu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Go)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Kc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[mt]=t,e[Mr]=r,ud(e,t,!1,!1),t.stateNode=e;e:{switch(i=Li(n,r),n){case"dialog":le("cancel",e),le("close",e),o=r;break;case"iframe":case"object":case"embed":le("load",e),o=r;break;case"video":case"audio":for(o=0;o<vr.length;o++)le(vr[o],e);o=r;break;case"source":le("error",e),o=r;break;case"img":case"image":case"link":le("error",e),le("load",e),o=r;break;case"details":le("toggle",e),o=r;break;case"input":Iu(e,r),o=Ti(e,r),le("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=de({},r,{value:void 0}),le("invalid",e);break;case"textarea":Mu(e,r),o=Ni(e,r),le("invalid",e);break;default:o=r}_i(n,o),s=o;for(l in s)if(s.hasOwnProperty(l)){var u=s[l];l==="style"?$c(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Mc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Nr(e,u):typeof u=="number"&&Nr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(jr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&le("scroll",e):u!=null&&Ks(e,l,u,i))}switch(n){case"input":ro(e),Ku(e,r,!1);break;case"textarea":ro(e),zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Fn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Fn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Go)}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 Ne(t),null;case 6:if(e&&t.stateNode!=null)cd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=un($r.current),un(yt.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[mt]=t,(l=r.nodeValue!==n)&&(e=Ve,e!==null))switch(e.tag){case 3:fo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mt]=t,t.stateNode=r}return Ne(t),null;case 13:if(ie(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&We!==null&&t.mode&1&&!(t.flags&128))jf(),Xn(),t.flags|=98560,l=!1;else if(l=po(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(A(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(A(317));l[mt]=t}else Xn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),l=!1}else ut!==null&&(ds(ut),ut=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||ce.current&1?xe===0&&(xe=3):xu())),t.updateQueue!==null&&(t.flags|=4),Ne(t),null);case 4:return Jn(),os(e,t),e===null&&Ir(t.stateNode.containerInfo),Ne(t),null;case 10:return nu(t.type._context),Ne(t),null;case 17:return ze(t.type)&&Qo(),Ne(t),null;case 19:if(ie(ce),l=t.memoizedState,l===null)return Ne(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)dr(l,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=tl(e),i!==null){for(t.flags|=128,dr(l,!1),r=i.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,i=l.alternate,i===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=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(ce,ce.current&1|2),t.child}e=e.sibling}l.tail!==null&&he()>er&&(t.flags|=128,r=!0,dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=tl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ae)return Ne(t),null}else 2*he()-l.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,dr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=he(),t.sibling=null,n=ce.current,re(ce,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function uh(e,t){switch(Js(t),t.tag){case 1:return ze(t.type)&&Qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(),ie(Me),ie(_e),su(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iu(t),null;case 13:if(ie(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Xn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ce),null;case 4:return Jn(),null;case 10:return nu(t.type._context),null;case 22:case 23:return vu(),null;case 24:return null;default:return null}}var yo=!1,Pe=!1,ah=typeof WeakSet=="function"?WeakSet:Set,z=null;function Kn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function ls(e,t,n){try{n()}catch(r){pe(e,t,r)}}var ja=!1;function ch(e,t){if(Bi=Vo,e=hf(),Xs(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 i=0,s=-1,u=-1,a=0,c=0,d=e,p=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==l||r!==0&&d.nodeType!==3||(u=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++a===o&&(s=i),p===l&&++c===r&&(u=i),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wi={focusedElem:e,selectionRange:n},Vo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,b=x.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:it(t.type,w),b);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(g){pe(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return x=ja,ja=!1,x}function Er(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&&ls(t,n,l)}o=o.next}while(o!==r)}}function El(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 is(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 fd(e){var t=e.alternate;t!==null&&(e.alternate=null,fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[Mr],delete t[Ui],delete t[Um],delete t[Gm])),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 dd(e){return e.tag===5||e.tag===3||e.tag===4}function Na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dd(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 ss(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=Go));else if(r!==4&&(e=e.child,e!==null))for(ss(e,t,n),e=e.sibling;e!==null;)ss(e,t,n),e=e.sibling}function us(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(us(e,t,n),e=e.sibling;e!==null;)us(e,t,n),e=e.sibling}var Ce=null,st=!1;function Ot(e,t,n){for(n=n.child;n!==null;)pd(e,t,n),n=n.sibling}function pd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:Pe||Kn(n,t);case 6:var r=Ce,o=st;Ce=null,Ot(e,t,n),Ce=r,st=o,Ce!==null&&(st?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(st?(e=Ce,n=n.stateNode,e.nodeType===8?ei(e.parentNode,n):e.nodeType===1&&ei(e,n),Ar(e)):ei(Ce,n.stateNode));break;case 4:r=Ce,o=st,Ce=n.stateNode.containerInfo,st=!0,Ot(e,t,n),Ce=r,st=o;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&ls(n,t,i),o=o.next}while(o!==r)}Ot(e,t,n);break;case 1:if(!Pe&&(Kn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){pe(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Ot(e,t,n),Pe=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function Pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ah),t.forEach(function(r){var o=xh.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,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:Ce=s.stateNode,st=!1;break e;case 3:Ce=s.stateNode.containerInfo,st=!0;break e;case 4:Ce=s.stateNode.containerInfo,st=!0;break e}s=s.return}if(Ce===null)throw Error(A(160));pd(l,i,o),Ce=null,st=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(a){pe(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)md(t,e),t=t.sibling}function md(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lt(t,e),dt(e),r&4){try{Er(3,e,e.return),El(3,e)}catch(w){pe(e,e.return,w)}try{Er(5,e,e.return)}catch(w){pe(e,e.return,w)}}break;case 1:lt(t,e),dt(e),r&512&&n!==null&&Kn(n,n.return);break;case 5:if(lt(t,e),dt(e),r&512&&n!==null&&Kn(n,n.return),e.flags&32){var o=e.stateNode;try{Nr(o,"")}catch(w){pe(e,e.return,w)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Dc(o,l),Li(s,i);var a=Li(s,l);for(i=0;i<u.length;i+=2){var c=u[i],d=u[i+1];c==="style"?$c(o,d):c==="dangerouslySetInnerHTML"?Mc(o,d):c==="children"?Nr(o,d):Ks(o,c,d,a)}switch(s){case"input":Ri(o,l);break;case"textarea":Ic(o,l);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?Fn(o,!!l.multiple,v,!1):p!==!!l.multiple&&(l.defaultValue!=null?Fn(o,!!l.multiple,l.defaultValue,!0):Fn(o,!!l.multiple,l.multiple?[]:"",!1))}o[Mr]=l}catch(w){pe(e,e.return,w)}}break;case 6:if(lt(t,e),dt(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(w){pe(e,e.return,w)}}break;case 3:if(lt(t,e),dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(w){pe(e,e.return,w)}break;case 4:lt(t,e),dt(e);break;case 13:lt(t,e),dt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(yu=he())),r&4&&Pa(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(a=Pe)||c,lt(t,e),Pe=a):lt(t,e),dt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(p=z,v=p.child,p.tag){case 0:case 11:case 14:case 15:Er(4,p,p.return);break;case 1:Kn(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){pe(r,n,w)}}break;case 5:Kn(p,p.return);break;case 22:if(p.memoizedState!==null){La(d);continue}}v!==null?(v.return=p,z=v):La(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,a?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=d.stateNode,u=d.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=zc("display",i))}catch(w){pe(e,e.return,w)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=a?"":d.memoizedProps}catch(w){pe(e,e.return,w)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lt(t,e),dt(e),r&4&&Pa(e);break;case 21:break;default:lt(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dd(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Nr(o,""),r.flags&=-33);var l=Na(e);us(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Na(e);ss(e,s,i);break;default:throw Error(A(161))}}catch(u){pe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fh(e,t,n){z=e,hd(e)}function hd(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var o=z,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||yo;if(!i){var s=o.alternate,u=s!==null&&s.memoizedState!==null||Pe;s=yo;var a=Pe;if(yo=i,(Pe=u)&&!a)for(z=o;z!==null;)i=z,u=i.child,i.tag===22&&i.memoizedState!==null?Aa(o):u!==null?(u.return=i,z=u):Aa(o);for(;l!==null;)z=l,hd(l),l=l.sibling;z=o,yo=s,Pe=a}_a(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,z=l):_a(e)}}function _a(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||El(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)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&&ha(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ha(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ar(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Pe||t.flags&512&&is(t)}catch(p){pe(t,t.return,p)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function La(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Aa(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{El(4,t)}catch(u){pe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){pe(t,o,u)}}var l=t.return;try{is(t)}catch(u){pe(t,l,u)}break;case 5:var i=t.return;try{is(t)}catch(u){pe(t,i,u)}}}catch(u){pe(t,t.return,u)}if(t===e){z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,z=s;break}z=t.return}}var dh=Math.ceil,ol=At.ReactCurrentDispatcher,mu=At.ReactCurrentOwner,qe=At.ReactCurrentBatchConfig,ee=0,Se=null,ge=null,Ee=0,Fe=0,Mn=en(0),xe=0,Vr=null,yn=0,Tl=0,hu=0,Tr=null,Ie=null,yu=0,er=1/0,wt=null,ll=!1,as=null,Ut=null,go=!1,$t=null,il=0,Rr=0,cs=null,Po=-1,_o=0;function Ae(){return ee&6?he():Po!==-1?Po:Po=he()}function Gt(e){return e.mode&1?ee&2&&Ee!==0?Ee&-Ee:Ym.transition!==null?(_o===0&&(_o=Jc()),_o):(e=ne,e!==0||(e=window.event,e=e===void 0?16:lf(e.type)),e):1}function ct(e,t,n,r){if(50<Rr)throw Rr=0,cs=null,Error(A(185));Qr(e,n,r),(!(ee&2)||e!==Se)&&(e===Se&&(!(ee&2)&&(Tl|=n),xe===4&&Mt(e,Ee)),$e(e,r),n===1&&ee===0&&!(t.mode&1)&&(er=he()+500,bl&&tn()))}function $e(e,t){var n=e.callbackNode;Yp(e,t);var r=Wo(e,e===Se?Ee:0);if(r===0)n!==null&&Bu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bu(n),t===1)e.tag===0?Qm(Oa.bind(null,e)):Ef(Oa.bind(null,e)),Vm(function(){!(ee&6)&&tn()}),n=null;else{switch(qc(r)){case 1:n=Bs;break;case 4:n=Xc;break;case 16:n=Bo;break;case 536870912:n=Zc;break;default:n=Bo}n=kd(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(Po=-1,_o=0,ee&6)throw Error(A(327));var n=e.callbackNode;if(Un()&&e.callbackNode!==n)return null;var r=Wo(e,e===Se?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sl(e,r);else{t=r;var o=ee;ee|=2;var l=vd();(Se!==e||Ee!==t)&&(wt=null,er=he()+500,cn(e,t));do try{hh();break}catch(s){gd(e,s)}while(!0);tu(),ol.current=l,ee=o,ge!==null?t=0:(Se=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(o=Ki(e),o!==0&&(r=o,t=fs(e,o))),t===1)throw n=Vr,cn(e,0),Mt(e,r),$e(e,he()),n;if(t===6)Mt(e,r);else{if(o=e.current.alternate,!(r&30)&&!ph(o)&&(t=sl(e,r),t===2&&(l=Ki(e),l!==0&&(r=l,t=fs(e,l))),t===1))throw n=Vr,cn(e,0),Mt(e,r),$e(e,he()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:on(e,Ie,wt);break;case 3:if(Mt(e,r),(r&130023424)===r&&(t=yu+500-he(),10<t)){if(Wo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hi(on.bind(null,e,Ie,wt),t);break}on(e,Ie,wt);break;case 4:if(Mt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-at(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dh(r/1960))-r,10<r){e.timeoutHandle=Hi(on.bind(null,e,Ie,wt),r);break}on(e,Ie,wt);break;case 5:on(e,Ie,wt);break;default:throw Error(A(329))}}}return $e(e,he()),e.callbackNode===n?yd.bind(null,e):null}function fs(e,t){var n=Tr;return e.current.memoizedState.isDehydrated&&(cn(e,t).flags|=256),e=sl(e,t),e!==2&&(t=Ie,Ie=n,t!==null&&ds(t)),e}function ds(e){Ie===null?Ie=e:Ie.push.apply(Ie,e)}function ph(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 Mt(e,t){for(t&=~hu,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function Oa(e){if(ee&6)throw Error(A(327));Un();var t=Wo(e,0);if(!(t&1))return $e(e,he()),null;var n=sl(e,t);if(e.tag!==0&&n===2){var r=Ki(e);r!==0&&(t=r,n=fs(e,r))}if(n===1)throw n=Vr,cn(e,0),Mt(e,t),$e(e,he()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Ie,wt),$e(e,he()),null}function gu(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(er=he()+500,bl&&tn())}}function gn(e){$t!==null&&$t.tag===0&&!(ee&6)&&Un();var t=ee;ee|=1;var n=qe.transition,r=ne;try{if(qe.transition=null,ne=1,e)return e()}finally{ne=r,qe.transition=n,ee=t,!(ee&6)&&tn()}}function vu(){Fe=Mn.current,ie(Mn)}function cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Wm(n)),ge!==null)for(n=ge.return;n!==null;){var r=n;switch(Js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qo();break;case 3:Jn(),ie(Me),ie(_e),su();break;case 5:iu(r);break;case 4:Jn();break;case 13:ie(ce);break;case 19:ie(ce);break;case 10:nu(r.type._context);break;case 22:case 23:vu()}n=n.return}if(Se=e,ge=e=Qt(e.current,null),Ee=Fe=t,xe=0,Vr=null,hu=Tl=yn=0,Ie=Tr=null,sn!==null){for(t=0;t<sn.length;t++)if(n=sn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}sn=null}return e}function gd(e,t){do{var n=ge;try{if(tu(),Ro.current=rl,nl){for(var r=fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}nl=!1}if(hn=0,we=ve=fe=null,Cr=!1,Fr=0,mu.current=null,n===null||n.return===null){xe=1,Vr=t,ge=null;break}e:{var l=e,i=n.return,s=n,u=t;if(t=Ee,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=Sa(i);if(v!==null){v.flags&=-257,ba(v,i,s,l,t),v.mode&1&&wa(l,a,t),t=v,u=a;var x=t.updateQueue;if(x===null){var w=new Set;w.add(u),t.updateQueue=w}else x.add(u);break e}else{if(!(t&1)){wa(l,a,t),xu();break e}u=Error(A(426))}}else if(ae&&s.mode&1){var b=Sa(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),ba(b,i,s,l,t),qs(qn(u,s));break e}}l=u=qn(u,s),xe!==4&&(xe=2),Tr===null?Tr=[l]:Tr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=ed(l,u,t);ma(l,m);break e;case 1:s=u;var f=l.type,h=l.stateNode;if(!(l.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ut===null||!Ut.has(h)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=td(l,s,t);ma(l,g);break e}}l=l.return}while(l!==null)}wd(n)}catch(C){t=C,ge===n&&n!==null&&(ge=n=n.return);continue}break}while(!0)}function vd(){var e=ol.current;return ol.current=rl,e===null?rl:e}function xu(){(xe===0||xe===3||xe===2)&&(xe=4),Se===null||!(yn&268435455)&&!(Tl&268435455)||Mt(Se,Ee)}function sl(e,t){var n=ee;ee|=2;var r=vd();(Se!==e||Ee!==t)&&(wt=null,cn(e,t));do try{mh();break}catch(o){gd(e,o)}while(!0);if(tu(),ee=n,ol.current=r,ge!==null)throw Error(A(261));return Se=null,Ee=0,xe}function mh(){for(;ge!==null;)xd(ge)}function hh(){for(;ge!==null&&!$p();)xd(ge)}function xd(e){var t=bd(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?wd(e):ge=t,mu.current=null}function wd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=uh(n,t),n!==null){n.flags&=32767,ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,ge=null;return}}else if(n=sh(n,t,Fe),n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);xe===0&&(xe=5)}function on(e,t,n){var r=ne,o=qe.transition;try{qe.transition=null,ne=1,yh(e,t,n,r)}finally{qe.transition=o,ne=r}return null}function yh(e,t,n,r){do Un();while($t!==null);if(ee&6)throw Error(A(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(A(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Xp(e,l),e===Se&&(ge=Se=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||go||(go=!0,kd(Bo,function(){return Un(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=qe.transition,qe.transition=null;var i=ne;ne=1;var s=ee;ee|=4,mu.current=null,ch(e,n),md(n,e),Im(Wi),Vo=!!Bi,Wi=Bi=null,e.current=n,fh(n),Fp(),ee=s,ne=i,qe.transition=l}else e.current=n;if(go&&(go=!1,$t=e,il=o),l=e.pendingLanes,l===0&&(Ut=null),Vp(n.stateNode),$e(e,he()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ll)throw ll=!1,e=as,as=null,e;return il&1&&e.tag!==0&&Un(),l=e.pendingLanes,l&1?e===cs?Rr++:(Rr=0,cs=e):Rr=0,tn(),null}function Un(){if($t!==null){var e=qc(il),t=qe.transition,n=ne;try{if(qe.transition=null,ne=16>e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,il=0,ee&6)throw Error(A(331));var o=ee;for(ee|=4,z=e.current;z!==null;){var l=z,i=l.child;if(z.flags&16){var s=l.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(z=a;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:Er(8,c,l)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var p=c.sibling,v=c.return;if(fd(c),c===a){z=null;break}if(p!==null){p.return=v,z=p;break}z=v}}}var x=l.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var b=w.sibling;w.sibling=null,w=b}while(w!==null)}}z=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,z=i;else e:for(;z!==null;){if(l=z,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Er(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,z=m;break e}z=l.return}}var f=e.current;for(z=f;z!==null;){i=z;var h=i.child;if(i.subtreeFlags&2064&&h!==null)h.return=i,z=h;else e:for(i=f;z!==null;){if(s=z,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:El(9,s)}}catch(C){pe(s,s.return,C)}if(s===i){z=null;break e}var g=s.sibling;if(g!==null){g.return=s.return,z=g;break e}z=s.return}}if(ee=o,tn(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(gl,e)}catch{}r=!0}return r}finally{ne=n,qe.transition=t}}return!1}function Da(e,t,n){t=qn(n,t),t=ed(e,t,1),e=Ht(e,t,1),t=Ae(),e!==null&&(Qr(e,1,t),$e(e,t))}function pe(e,t,n){if(e.tag===3)Da(e,e,n);else for(;t!==null;){if(t.tag===3){Da(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=qn(n,e),e=td(t,e,1),t=Ht(t,e,1),e=Ae(),t!==null&&(Qr(t,1,e),$e(t,e));break}}t=t.return}}function gh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>he()-yu?cn(e,0):hu|=n),$e(e,t)}function Sd(e,t){t===0&&(e.mode&1?(t=io,io<<=1,!(io&130023424)&&(io=4194304)):t=1);var n=Ae();e=Pt(e,t),e!==null&&(Qr(e,t,n),$e(e,n))}function vh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sd(e,n)}function xh(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(A(314))}r!==null&&r.delete(t),Sd(e,n)}var bd;bd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,ih(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ae&&t.flags&1048576&&Tf(t,Zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;No(e,t),e=t.pendingProps;var o=Yn(t,_e.current);Hn(t,n),o=au(null,t,r,e,o,n);var l=cu();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,ze(r)?(l=!0,Yo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ou(t),o.updater=Cl,t.stateNode=o,o._reactInternals=t,Ji(t,r,e,n),t=ts(null,t,r,!0,l,n)):(t.tag=0,ae&&l&&Zs(t),Le(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(No(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Sh(r),e=it(r,e),o){case 0:t=es(null,t,r,e,n);break e;case 1:t=Ea(null,t,r,e,n);break e;case 11:t=ka(null,t,r,e,n);break e;case 14:t=Ca(null,t,r,it(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),es(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),Ea(e,t,r,o,n);case 3:e:{if(ld(t),e===null)throw Error(A(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Lf(e,t),el(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=qn(Error(A(423)),t),t=Ta(e,t,r,n,o);break e}else if(r!==o){o=qn(Error(A(424)),t),t=Ta(e,t,r,n,o);break e}else for(We=Vt(t.stateNode.containerInfo.firstChild),Ve=t,ae=!0,ut=null,n=Pf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xn(),r===o){t=_t(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return Af(t),e===null&&Yi(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Vi(r,o)?i=null:l!==null&&Vi(r,l)&&(t.flags|=32),od(e,t),Le(e,t,i,n),t.child;case 6:return e===null&&Yi(t),null;case 13:return id(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zn(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),ka(e,t,r,o,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,re(Jo,r._currentValue),r._currentValue=i,l!==null)if(ft(l.value,i)){if(l.children===o.children&&!Me.current){t=_t(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Tt(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Xi(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(A(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Xi(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Le(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Hn(t,n),o=et(o),r=r(o),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,o=it(r,t.pendingProps),o=it(r.type,o),Ca(e,t,r,o,n);case 15:return nd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),No(e,t),t.tag=1,ze(r)?(e=!0,Yo(t)):e=!1,Hn(t,n),qf(t,r,o),Ji(t,r,o,n),ts(null,t,r,!0,e,n);case 19:return sd(e,t,n);case 22:return rd(e,t,n)}throw Error(A(156,t.tag))};function kd(e,t){return Yc(e,t)}function wh(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 Ze(e,t,n,r){return new wh(e,t,n,r)}function wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sh(e){if(typeof e=="function")return wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zs)return 11;if(e===$s)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ze(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 Lo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")wu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case jn:return fn(n.children,o,l,t);case Ms:i=8,o|=8;break;case bi:return e=Ze(12,n,t,o|2),e.elementType=bi,e.lanes=l,e;case ki:return e=Ze(13,n,t,o),e.elementType=ki,e.lanes=l,e;case Ci:return e=Ze(19,n,t,o),e.elementType=Ci,e.lanes=l,e;case Lc:return Rl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pc:i=10;break e;case _c:i=9;break e;case zs:i=11;break e;case $s:i=14;break e;case Dt:i=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ze(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function fn(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=Lc,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function ai(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bh(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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Su(e,t,n,r,o,l,i,s,u){return e=new bh(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ze(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ou(l),e}function kh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Cd(e){if(!e)return Zt;e=e._reactInternals;e:{if(wn(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(ze(n))return Cf(e,n,t)}return t}function Ed(e,t,n,r,o,l,i,s,u){return e=Su(n,r,!0,e,o,l,i,s,u),e.context=Cd(null),n=e.current,r=Ae(),o=Gt(n),l=Tt(r,o),l.callback=t??null,Ht(n,l,o),e.current.lanes=o,Qr(e,o,r),$e(e,r),e}function jl(e,t,n,r){var o=t.current,l=Ae(),i=Gt(o);return n=Cd(n),t.context===null?t.context=n:t.pendingContext=n,t=Tt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ht(o,t,i),e!==null&&(ct(e,o,i,l),To(e,o,i)),i}function ul(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 Ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bu(e,t){Ia(e,t),(e=e.alternate)&&Ia(e,t)}function Ch(){return null}var Td=typeof reportError=="function"?reportError:function(e){console.error(e)};function ku(e){this._internalRoot=e}Nl.prototype.render=ku.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));jl(e,t,null,null)};Nl.prototype.unmount=ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){jl(null,e,null,null)}),t[Nt]=null}};function Nl(e){this._internalRoot=e}Nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=nf();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&&of(e)}};function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ka(){}function Eh(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var a=ul(i);l.call(a)}}var i=Ed(t,r,e,0,null,!1,!1,"",Ka);return e._reactRootContainer=i,e[Nt]=i.current,Ir(e.nodeType===8?e.parentNode:e),gn(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var a=ul(u);s.call(a)}}var u=Su(e,0,!1,null,null,!1,!1,"",Ka);return e._reactRootContainer=u,e[Nt]=u.current,Ir(e.nodeType===8?e.parentNode:e),gn(function(){jl(t,u,n,r)}),u}function _l(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var s=o;o=function(){var u=ul(i);s.call(u)}}jl(t,i,e,o)}else i=Eh(n,t,e,o,r);return ul(i)}ef=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gr(t.pendingLanes);n!==0&&(Ws(t,n|1),$e(t,he()),!(ee&6)&&(er=he()+500,tn()))}break;case 13:gn(function(){var r=Pt(e,1);if(r!==null){var o=Ae();ct(r,e,1,o)}}),bu(e,1)}};Vs=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ae();ct(t,e,134217728,n)}bu(e,134217728)}};tf=function(e){if(e.tag===13){var t=Gt(e),n=Pt(e,t);if(n!==null){var r=Ae();ct(n,e,t,r)}bu(e,t)}};nf=function(){return ne};rf=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};Oi=function(e,t,n){switch(t){case"input":if(Ri(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=Sl(r);if(!o)throw Error(A(90));Oc(r),Ri(r,o)}}}break;case"textarea":Ic(e,n);break;case"select":t=n.value,t!=null&&Fn(e,!!n.multiple,t,!1)}};Wc=gu;Vc=gn;var Th={usingClientEntryPoint:!1,Events:[Xr,Ln,Sl,Fc,Bc,gu]},pr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rh={bundleType:pr.bundleType,version:pr.version,rendererPackageName:pr.rendererPackageName,rendererConfig:pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:At.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gc(e),e===null?null:e.stateNode},findFiberByHostInstance:pr.findFiberByHostInstance||Ch,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 vo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vo.isDisabled&&vo.supportsFiber)try{gl=vo.inject(Rh),ht=vo}catch{}}Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Th;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cu(t))throw Error(A(200));return kh(e,t,null,n)};Ge.createRoot=function(e,t){if(!Cu(e))throw Error(A(299));var n=!1,r="",o=Td;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Su(e,1,!1,null,null,n,!1,r,o),e[Nt]=t.current,Ir(e.nodeType===8?e.parentNode:e),new ku(t)};Ge.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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Gc(t),e=e===null?null:e.stateNode,e};Ge.flushSync=function(e){return gn(e)};Ge.hydrate=function(e,t,n){if(!Pl(t))throw Error(A(200));return _l(null,e,t,!0,n)};Ge.hydrateRoot=function(e,t,n){if(!Cu(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=Td;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ed(t,null,e,1,n??null,o,!1,l,i),e[Nt]=t.current,Ir(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 Nl(t)};Ge.render=function(e,t,n){if(!Pl(t))throw Error(A(200));return _l(null,e,t,!1,n)};Ge.unmountComponentAtNode=function(e){if(!Pl(e))throw Error(A(40));return e._reactRootContainer?(gn(function(){_l(null,null,e,!1,function(){e._reactRootContainer=null,e[Nt]=null})}),!0):!1};Ge.unstable_batchedUpdates=gu;Ge.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pl(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return _l(e,t,n,!1,r)};Ge.version="18.3.1-next-f1338f8080-20240426";function Rd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rd)}catch(e){console.error(e)}}Rd(),Tc.exports=Ge;var Ll=Tc.exports,Ma=Ll;wi.createRoot=Ma.createRoot,wi.hydrateRoot=Ma.hydrateRoot;const jh="modulepreload",Nh=function(e){return"/panel/"+e},za={},Ph=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Nh(u),u in za)return;za[u]=!0;const a=u.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":jh,a||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),a)return new Promise((p,v)=>{d.addEventListener("load",p),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})},Je={"m-":{category:"spacing",themeKey:"spacing",valueType:"scalar",renderMode:"boxmodel",isComposite:!0,compositeRelatedPrefixes:["m-","mx-","my-","mt-","mr-","mb-","ml-","ms-","me-","p-","px-","py-","pt-","pr-","pb-","pl-","ps-","pe-","gap-","gap-x-","gap-y-","space-x-","space-y-","border-","border-t-","border-r-","border-b-","border-l-","rounded-","rounded-t-","rounded-r-","rounded-b-","rounded-l-","rounded-tl-","rounded-tr-","rounded-br-","rounded-bl-"],compositeExactMatches:["border","rounded"]},"mx-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"my-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"mt-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"mr-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"mb-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"ml-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"ms-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"me-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"p-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"px-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"py-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"pt-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"pr-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"pb-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"pl-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"ps-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"pe-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"gap-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"gap-x-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"gap-y-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"space-x-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"space-y-":{category:"spacing",themeKey:"spacing",valueType:"scalar"},"w-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"h-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"min-w-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"max-w-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"min-h-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"max-h-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"size-":{category:"sizing",themeKey:"spacing",valueType:"scalar",addable:!0},"font-":{category:"typography",themeKey:"fontWeight",valueType:"scalar",addable:!0},"text-":{category:"typography",themeKey:null,valueType:"enum"},"leading-":{category:"typography",themeKey:"lineHeight",valueType:"scalar",addable:!0},"tracking-":{category:"typography",themeKey:"letterSpacing",valueType:"scalar",addable:!0},"text-left":{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},"text-center":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},"text-right":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},"text-justify":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},"text-start":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},"text-end":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-align",enumAlts:["text-left","text-center","text-right","text-justify","text-start","text-end"]},italic:{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"font-style",enumAlts:["italic","not-italic"]},"not-italic":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"font-style",enumAlts:["italic","not-italic"]},underline:{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"text-decoration",enumAlts:["underline","line-through","overline","no-underline"]},"line-through":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-decoration",enumAlts:["underline","line-through","overline","no-underline"]},overline:{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-decoration",enumAlts:["underline","line-through","overline","no-underline"]},"no-underline":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-decoration",enumAlts:["underline","line-through","overline","no-underline"]},uppercase:{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"text-transform",enumAlts:["uppercase","lowercase","capitalize","normal-case"]},lowercase:{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-transform",enumAlts:["uppercase","lowercase","capitalize","normal-case"]},capitalize:{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-transform",enumAlts:["uppercase","lowercase","capitalize","normal-case"]},"normal-case":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"text-transform",enumAlts:["uppercase","lowercase","capitalize","normal-case"]},truncate:{category:"typography",themeKey:null,valueType:"enum"},"font-sans":{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"font-family",enumAlts:["font-sans","font-serif","font-mono"]},"font-serif":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"font-family",enumAlts:["font-sans","font-serif","font-mono"]},"font-mono":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"font-family",enumAlts:["font-sans","font-serif","font-mono"]},"align-baseline":{category:"typography",themeKey:null,valueType:"enum",addable:!0,propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-top":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-middle":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-bottom":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-text-top":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-text-bottom":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-sub":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"align-super":{category:"typography",themeKey:null,valueType:"enum",propertyKey:"vertical-align",enumAlts:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"]},"bg-":{category:"color",themeKey:"colors",valueType:"color",renderMode:"gradient-editor",isComposite:!0,compositeRelatedPrefixes:["bg-","bg-gradient-to-","from-","via-","to-"]},"bg-gradient-to-":{category:"gradient",themeKey:null,valueType:"enum"},"from-":{category:"gradient",themeKey:"colors",valueType:"color"},"via-":{category:"gradient",themeKey:"colors",valueType:"color"},"to-":{category:"gradient",themeKey:"colors",valueType:"color"},"ring-":{category:"color",themeKey:"colors",valueType:"color"},"outline-":{category:"color",themeKey:"colors",valueType:"color"},"fill-":{category:"color",themeKey:"colors",valueType:"color"},"stroke-":{category:"color",themeKey:"colors",valueType:"color"},"decoration-":{category:"color",themeKey:"colors",valueType:"color"},border:{category:"borders",themeKey:"borderWidth",valueType:"scalar"},"border-":{category:"borders",themeKey:"borderWidth",valueType:"scalar"},"border-t-":{category:"borders",themeKey:"borderWidth",valueType:"scalar"},"border-r-":{category:"borders",themeKey:"borderWidth",valueType:"scalar"},"border-b-":{category:"borders",themeKey:"borderWidth",valueType:"scalar"},"border-l-":{category:"borders",themeKey:"borderWidth",valueType:"scalar"},rounded:{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-t-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-r-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-b-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-l-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-tl-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-tr-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-br-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"rounded-bl-":{category:"borders",themeKey:"borderRadius",valueType:"scalar"},"opacity-":{category:"effects",themeKey:null,valueType:"enum"},"shadow-":{category:"effects",themeKey:null,valueType:"enum"},block:{category:"layout",themeKey:null,valueType:"enum"},"inline-block":{category:"layout",themeKey:null,valueType:"enum"},inline:{category:"layout",themeKey:null,valueType:"enum"},grid:{category:"layout",themeKey:null,valueType:"enum"},"inline-grid":{category:"layout",themeKey:null,valueType:"enum"},hidden:{category:"layout",themeKey:null,valueType:"enum"},table:{category:"layout",themeKey:null,valueType:"enum"},contents:{category:"layout",themeKey:null,valueType:"enum"},static:{category:"layout",themeKey:null,valueType:"enum"},fixed:{category:"layout",themeKey:null,valueType:"enum"},absolute:{category:"layout",themeKey:null,valueType:"enum"},relative:{category:"layout",themeKey:null,valueType:"enum"},sticky:{category:"layout",themeKey:null,valueType:"enum"},"inset-":{category:"layout",themeKey:"spacing",valueType:"scalar"},"top-":{category:"layout",themeKey:"spacing",valueType:"scalar"},"right-":{category:"layout",themeKey:"spacing",valueType:"scalar"},"bottom-":{category:"layout",themeKey:"spacing",valueType:"scalar"},"left-":{category:"layout",themeKey:"spacing",valueType:"scalar"},"z-":{category:"layout",themeKey:null,valueType:"enum"},flex:{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"flex-display",enumAlts:["flex","inline-flex"]},"inline-flex":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-display",enumAlts:["flex","inline-flex"]},"flex-row":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"flex-direction",enumAlts:["flex-row","flex-col","flex-row-reverse","flex-col-reverse"]},"flex-col":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-direction",enumAlts:["flex-row","flex-col","flex-row-reverse","flex-col-reverse"]},"flex-row-reverse":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-direction",enumAlts:["flex-row","flex-col","flex-row-reverse","flex-col-reverse"]},"flex-col-reverse":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-direction",enumAlts:["flex-row","flex-col","flex-row-reverse","flex-col-reverse"]},"flex-wrap":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"flex-wrap",enumAlts:["flex-wrap","flex-nowrap","flex-wrap-reverse"]},"flex-nowrap":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-wrap",enumAlts:["flex-wrap","flex-nowrap","flex-wrap-reverse"]},"flex-wrap-reverse":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"flex-wrap",enumAlts:["flex-wrap","flex-nowrap","flex-wrap-reverse"]},"flex-1":{category:"flexbox",themeKey:null,valueType:"enum"},"flex-auto":{category:"flexbox",themeKey:null,valueType:"enum"},"flex-initial":{category:"flexbox",themeKey:null,valueType:"enum"},"flex-none":{category:"flexbox",themeKey:null,valueType:"enum"},grow:{category:"flexbox",themeKey:null,valueType:"enum"},"grow-0":{category:"flexbox",themeKey:null,valueType:"enum"},shrink:{category:"flexbox",themeKey:null,valueType:"enum"},"shrink-0":{category:"flexbox",themeKey:null,valueType:"enum"},"justify-start":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-end":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-center":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-between":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-around":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-evenly":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"justify-stretch":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-content",enumAlts:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"]},"items-start":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"align-items",enumAlts:["items-start","items-end","items-center","items-baseline","items-stretch"]},"items-end":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-items",enumAlts:["items-start","items-end","items-center","items-baseline","items-stretch"]},"items-center":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-items",enumAlts:["items-start","items-end","items-center","items-baseline","items-stretch"]},"items-baseline":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-items",enumAlts:["items-start","items-end","items-center","items-baseline","items-stretch"]},"items-stretch":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-items",enumAlts:["items-start","items-end","items-center","items-baseline","items-stretch"]},"content-normal":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-start":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-end":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-center":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-between":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-around":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-evenly":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-baseline":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"content-stretch":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"align-content",enumAlts:["content-normal","content-start","content-end","content-center","content-between","content-around","content-evenly","content-baseline","content-stretch"]},"justify-items-start":{category:"flexbox",themeKey:null,valueType:"enum",addable:!0,propertyKey:"justify-items",enumAlts:["justify-items-start","justify-items-end","justify-items-center","justify-items-stretch"]},"justify-items-end":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-items",enumAlts:["justify-items-start","justify-items-end","justify-items-center","justify-items-stretch"]},"justify-items-center":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-items",enumAlts:["justify-items-start","justify-items-end","justify-items-center","justify-items-stretch"]},"justify-items-stretch":{category:"flexbox",themeKey:null,valueType:"enum",propertyKey:"justify-items",enumAlts:["justify-items-start","justify-items-end","justify-items-center","justify-items-stretch"]},"self-auto":{category:"flexbox",themeKey:null,valueType:"enum"},"self-start":{category:"flexbox",themeKey:null,valueType:"enum"},"self-end":{category:"flexbox",themeKey:null,valueType:"enum"},"self-center":{category:"flexbox",themeKey:null,valueType:"enum"},"self-stretch":{category:"flexbox",themeKey:null,valueType:"enum"},"self-baseline":{category:"flexbox",themeKey:null,valueType:"enum"},"basis-":{category:"flexbox",themeKey:"spacing",valueType:"scalar"},"grid-cols-":{category:"flexbox",themeKey:null,valueType:"enum"},"grid-rows-":{category:"flexbox",themeKey:null,valueType:"enum"},"col-span-":{category:"flexbox",themeKey:null,valueType:"enum"},"row-span-":{category:"flexbox",themeKey:null,valueType:"enum"},"order-":{category:"flexbox",themeKey:null,valueType:"enum"}};function _h(e){if(Je[e])return Je[e];const t=Object.keys(Je).filter(n=>n.endsWith("-")&&e.startsWith(n)).sort((n,r)=>r.length-n.length);return t.length>0?Je[t[0]]:void 0}function Lh(){const e={};for(const[t,n]of Object.entries(Je))if(n.valueType==="enum"&&n.enumAlts){const r=n.propertyKey??t.replace(/-$/g,"");for(const o of n.enumAlts)e[o]||(e[o]={alternatives:n.enumAlts,propertyKey:r})}return e}function Ah(){const e={spacing:[],sizing:[],typography:[],color:[],borders:[],effects:[],layout:[],flexbox:[],gradient:[]},t=new Set;for(const[n,r]of Object.entries(Je)){if(!r.addable)continue;const o=r.propertyKey??n.replace(/-$/g,"");if(t.has(o))continue;t.add(o);const l=o.replace(/-/g," ").replace(/\b\w/g,s=>s.toUpperCase()),i=r.enumAlts?r.enumAlts.slice(0,2).join("/")+(r.enumAlts.length>2?"/…":""):`${n}*`;e[r.category].push({name:l,prefixHint:i,prefix:o})}return e}function Oh(){const e=new Set;for(const t of Object.values(Je))t.isComposite&&t.compositeRelatedPrefixes&&t.compositeRelatedPrefixes.forEach(n=>e.add(n)),t.isComposite&&t.compositeExactMatches&&t.compositeExactMatches.forEach(n=>e.add(n));return e}function ci(e){return e==="colors"?"color":e!==null?"scalar":"enum"}const Dh=/^(sm:|md:|lg:|xl:|2xl:|hover:|focus:|active:|disabled:|visited:|first:|last:|odd:|even:|group-hover:|focus-within:|focus-visible:|dark:|motion-safe:|motion-reduce:)+/;function Ih(e){return Dh.test(e)}const Kh=new Set(["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"]),Mh=new Set(["left","center","right","justify","start","end"]),zh=new Set(["0","2","4","8"]),$h=new Set(["solid","dashed","dotted","double","hidden","none"]);function Fh(e){return Kh.has(e)?{category:"typography",valueType:"scalar",prefix:"text-",value:e,fullClass:`text-${e}`,themeKey:"fontSize"}:Mh.has(e)?{category:"typography",valueType:"enum",prefix:"text-",value:e,fullClass:`text-${e}`,themeKey:null}:{category:"typography",valueType:"color",prefix:"text-",value:e,fullClass:`text-${e}`,themeKey:"colors"}}function Bh(e,t){return zh.has(e)?{category:"borders",valueType:"scalar",prefix:"border-",value:e,fullClass:`border-${e}`,themeKey:"borderWidth"}:$h.has(e)?{category:"borders",valueType:"enum",prefix:"border-",value:e,fullClass:`border-${e}`,themeKey:null}:{category:"color",valueType:"color",prefix:"border-",value:e,fullClass:`border-${e}`,themeKey:"colors"}}function Wh(e){const t=[],n=e.trim().split(/\s+/).filter(Boolean);for(const r of n){if(Ih(r))continue;const o=Je[r];if(o){t.push({category:o.category,valueType:ci(o.themeKey),prefix:r,value:"",fullClass:r,themeKey:o.themeKey});continue}if(r.startsWith("text-")){const i=r.slice(5),s=Fh(i);s&&t.push(s);continue}if(r.startsWith("border-")){const i=r.slice(7),s=["border-t-","border-r-","border-b-","border-l-"];let u=!1;for(const a of s)if(r.startsWith(a)){const c=Je[a];c&&t.push({category:c.category,valueType:ci(c.themeKey),prefix:a,value:r.slice(a.length),fullClass:r,themeKey:c.themeKey}),u=!0;break}if(!u){const a=Bh(i);a&&t.push(a)}continue}const l=_h(r);if(l){const i=Object.keys(Je).filter(s=>s.endsWith("-")&&r.startsWith(s)).sort((s,u)=>u.length-s.length);if(i.length>0){const s=i[0];t.push({category:l.category,valueType:ci(l.themeKey),prefix:s,value:r.slice(s.length),fullClass:r,themeKey:l.themeKey})}}}return t}let St=null,al=!1;const Ao=[],Oo=[],Do=[];function Vh(){return window.location.origin.replace(/^http/,"ws")}function jd(){if(St)return;const e=Vh();St=new WebSocket(e),St.addEventListener("open",()=>{al=!0,zn({type:"REGISTER",role:"panel"});for(const t of Oo)t()}),St.addEventListener("close",()=>{al=!1,St=null;for(const t of Do)t();setTimeout(()=>jd(),3e3)}),St.addEventListener("message",t=>{try{const n=JSON.parse(t.data);for(const r of Ao)r(n)}catch(n){console.error("[tw-panel] Failed to parse message:",n)}}),St.addEventListener("error",t=>{console.error("[tw-panel] WebSocket error:",t)})}function zn(e){al&&St&&St.send(JSON.stringify(e))}function me(e,t){zn({...t,to:e})}function Hh(e){return Ao.push(e),()=>{const t=Ao.indexOf(e);t!==-1&&Ao.splice(t,1)}}function Uh(e){return Oo.push(e),()=>{const t=Oo.indexOf(e);t!==-1&&Oo.splice(t,1)}}function Gh(e){return Do.push(e),()=>{const t=Do.indexOf(e);t!==-1&&Do.splice(t,1)}}function Qh(){return al}function Al(){return typeof window<"u"}function lr(e){return Eu(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vt(e){var t;return(t=(Eu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eu(e){return Al()?e instanceof Node||e instanceof He(e).Node:!1}function ye(e){return Al()?e instanceof Element||e instanceof He(e).Element:!1}function xt(e){return Al()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function ps(e){return!Al()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Jr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Yh(e){return/^(table|td|th)$/.test(lr(e))}function Ol(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xh=/transform|translate|scale|rotate|perspective|filter/,Zh=/paint|layout|strict|content/,nn=e=>!!e&&e!=="none";let fi;function Tu(e){const t=ye(e)?nt(e):e;return nn(t.transform)||nn(t.translate)||nn(t.scale)||nn(t.rotate)||nn(t.perspective)||!Dl()&&(nn(t.backdropFilter)||nn(t.filter))||Xh.test(t.willChange||"")||Zh.test(t.contain||"")}function Jh(e){let t=Lt(e);for(;xt(t)&&!Rt(t);){if(Tu(t))return t;if(Ol(t))return null;t=Lt(t)}return null}function Dl(){return fi==null&&(fi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fi}function Rt(e){return/^(html|body|#document)$/.test(lr(e))}function nt(e){return He(e).getComputedStyle(e)}function Il(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if(lr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ps(e)&&e.host||vt(e);return ps(t)?t.host:t}function Nd(e){const t=Lt(e);return Rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&Jr(t)?t:Nd(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Nd(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=He(o);if(l){const s=ms(i);return t.concat(i,i.visualViewport||[],Jr(o)?o:[],s&&n?Yt(s):[])}else return t.concat(o,Yt(o,[],n))}function ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tr=Math.min,Be=Math.max,cl=Math.round,xo=Math.floor,gt=e=>({x:e,y:e}),qh={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(e,t,n){return Be(e,tr(t,n))}function qr(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function eo(e){return e.split("-")[1]}function Pd(e){return e==="x"?"y":"x"}function _d(e){return e==="y"?"height":"width"}function Et(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ld(e){return Pd(Et(e))}function ey(e,t,n){n===void 0&&(n=!1);const r=eo(e),o=Ld(e),l=_d(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=fl(i)),[i,fl(i)]}function ty(e){const t=fl(e);return[hs(e),t,hs(t)]}function hs(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fa=["left","right"],Ba=["right","left"],ny=["top","bottom"],ry=["bottom","top"];function oy(e,t,n){switch(e){case"top":case"bottom":return n?t?Ba:Fa:t?Fa:Ba;case"left":case"right":return t?ny:ry;default:return[]}}function ly(e,t,n,r){const o=eo(e);let l=oy(Jt(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(hs)))),l}function fl(e){const t=Jt(e);return qh[t]+e.slice(t.length)}function iy(e){return{top:0,right:0,bottom:0,left:0,...e}}function sy(e){return typeof e!="number"?iy(e):{top:e,right:e,bottom:e,left:e}}function dl(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}}/*!
|
|
41
|
-
* tabbable 6.4.0
|
|
42
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
43
|
-
*/var uy=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ys=uy.join(","),Ad=typeof Element>"u",Hr=Ad?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pl=!Ad&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ml=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),l=o===""||o==="true",i=l||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ml(t.parentNode));return i},ay=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},cy=function(t,n,r){if(ml(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ys));return n&&Hr.call(t,ys)&&o.unshift(t),o=o.filter(r),o},gs=function(t,n,r){for(var o=[],l=Array.from(t);l.length;){var i=l.shift();if(!ml(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,a=gs(u,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:i,candidates:a})}else{var c=Hr.call(i,ys);c&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),p=!ml(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&p){var v=gs(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:i,candidates:v})}else l.unshift.apply(l,i.children)}}return o},Od=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Dd=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ay(t))&&!Od(t)?0:t.tabIndex},fy=function(t,n){var r=Dd(t);return r<0&&n&&!Od(t)?0:r},dy=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Id=function(t){return t.tagName==="INPUT"},py=function(t){return Id(t)&&t.type==="hidden"},my=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},hy=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},yy=function(t){if(!t.name)return!0;var n=t.form||pl(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var l=hy(o,t.form);return!l||l===t},gy=function(t){return Id(t)&&t.type==="radio"},vy=function(t){return gy(t)&&!yy(t)},xy=function(t){var n,r=t&&pl(t),o=(n=r)===null||n===void 0?void 0:n.host,l=!1;if(r&&r!==t){var i,s,u;for(l=!!((i=o)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!l&&o;){var a,c,d;r=pl(o),o=(a=r)===null||a===void 0?void 0:a.host,l=!!((c=o)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return l},Wa=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},wy=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var l=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!l}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Hr.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(Hr.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var a=t.parentElement,c=pl(t);if(a&&!a.shadowRoot&&o(a)===!0)return Wa(t);t.assignedSlot?t=t.assignedSlot:!a&&c!==t.ownerDocument?t=c.host:t=a}t=u}if(xy(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Wa(t);return!1},Sy=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Hr.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},by=function(t,n){return!(n.disabled||py(n)||wy(n,t)||my(n)||Sy(n))},Va=function(t,n){return!(vy(n)||Dd(n)<0||!by(t,n))},ky=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Kd=function(t){var n=[],r=[];return t.forEach(function(o,l){var i=!!o.scopeParent,s=i?o.scopeParent:o,u=fy(s,i),a=i?Kd(o.candidates):s;u===0?i?n.push.apply(n,a):n.push(s):r.push({documentOrder:l,tabIndex:u,item:o,isScope:i,content:a})}),r.sort(dy).reduce(function(o,l){return l.isScope?o.push.apply(o,l.content):o.push(l.content),o},[]).concat(n)},Md=function(t,n){n=n||{};var r;return n.getShadowRoot?r=gs([t],n.includeContainer,{filter:Va.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:ky}):r=cy(t,n.includeContainer,Va.bind(null,n)),Kd(r)};function Cy(){return/apple/i.test(navigator.vendor)}function Ey(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function vs(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ps(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function mr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function di(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Ty(e){return e.matches("html,body")}function Ur(e){return(e==null?void 0:e.ownerDocument)||document}function Io(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var l;return o.parentId===t&&(!n||((l=o.context)==null?void 0:l.open))}).flatMap(o=>[o,...Io(e,o.id,n)])}function Ry(e){return"nativeEvent"in e}var jy=typeof document<"u",Ny=function(){},dn=jy?S.useLayoutEffect:Ny;const Py={...Cc},_y=Py.useInsertionEffect,Ly=_y||(e=>e());function Tn(e){const t=S.useRef(()=>{});return Ly(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const zd=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $d(e,t){const n=Md(e,zd()),r=n.length;if(r===0)return;const o=Ey(Ur(e)),l=n.indexOf(o),i=l===-1?t===1?0:r-1:l+t;return n[i]}function Ay(e){return $d(Ur(e).body,1)||e}function Oy(e){return $d(Ur(e).body,-1)||e}function pi(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!vs(n,r)}function Dy(e){Md(e,zd()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ha(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Ua(e,t,n){let{reference:r,floating:o}=e;const l=Et(t),i=Ld(t),s=_d(i),u=Jt(t),a=l==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(u){case"top":v={x:c,y:r.y-o.height};break;case"bottom":v={x:c,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(eo(t)){case"start":v[i]-=p*(n&&a?-1:1);break;case"end":v[i]+=p*(n&&a?-1:1);break}return v}async function Iy(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:i,elements:s,strategy:u}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=qr(t,e),x=sy(v),b=s[p?d==="floating"?"reference":"floating":d],m=dl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:a,rootBoundary:c,strategy:u})),f=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,h=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),g=await(l.isElement==null?void 0:l.isElement(h))?await(l.getScale==null?void 0:l.getScale(h))||{x:1,y:1}:{x:1,y:1},C=dl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:f,offsetParent:h,strategy:u}):f);return{top:(m.top-C.top+x.top)/g.y,bottom:(C.bottom-m.bottom+x.bottom)/g.y,left:(m.left-C.left+x.left)/g.x,right:(C.right-m.right+x.right)/g.x}}const Ky=50,My=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:Iy},u=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Ua(a,r,u),p=r,v=0;const x={};for(let w=0;w<l.length;w++){const b=l[w];if(!b)continue;const{name:m,fn:f}=b,{x:h,y:g,data:C,reset:E}=await f({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:x,rects:a,platform:s,elements:{reference:e,floating:t}});c=h??c,d=g??d,x[m]={...x[m],...C},E&&v<Ky&&(v++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(a=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:c,y:d}=Ua(a,p,u)),w=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:x}},zy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:i,initialPlacement:s,platform:u,elements:a}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...b}=qr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const m=Jt(o),f=Et(s),h=Jt(s)===s,g=await(u.isRTL==null?void 0:u.isRTL(a.floating)),C=p||(h||!w?[fl(s)]:ty(s)),E=x!=="none";!p&&E&&C.push(...ly(s,w,x,g));const k=[s,...C],R=await u.detectOverflow(t,b),I=[];let P=((r=l.flip)==null?void 0:r.overflows)||[];if(c&&I.push(R[m]),d){const D=ey(o,i,g);I.push(R[D[0]],R[D[1]])}if(P=[...P,{placement:o,overflows:I}],!I.every(D=>D<=0)){var K,$;const D=(((K=l.flip)==null?void 0:K.index)||0)+1,Y=k[D];if(Y&&(!(d==="alignment"?f!==Et(Y):!1)||P.every(T=>Et(T.placement)===f?T.overflows[0]>0:!0)))return{data:{index:D,overflows:P},reset:{placement:Y}};let M=($=P.filter(X=>X.overflows[0]<=0).sort((X,T)=>X.overflows[1]-T.overflows[1])[0])==null?void 0:$.placement;if(!M)switch(v){case"bestFit":{var j;const X=(j=P.filter(T=>{if(E){const L=Et(T.placement);return L===f||L==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((T,L)=>T[1]-L[1])[0])==null?void 0:j[0];X&&(M=X);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}},$y=new Set(["left","top"]);async function Fy(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Jt(n),s=eo(n),u=Et(n)==="y",a=$y.has(i)?-1:1,c=l&&u?-1:1,d=qr(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof x=="number"&&(v=s==="end"?x*-1:x),u?{x:v*c,y:p*a}:{x:p*a,y:v*c}}const By=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:i,middlewareData:s}=t,u=await Fy(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:i}}}}},Wy=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:i=!0,crossAxis:s=!1,limiter:u={fn:m=>{let{x:f,y:h}=m;return{x:f,y:h}}},...a}=qr(e,t),c={x:n,y:r},d=await l.detectOverflow(t,a),p=Et(Jt(o)),v=Pd(p);let x=c[v],w=c[p];if(i){const m=v==="y"?"top":"left",f=v==="y"?"bottom":"right",h=x+d[m],g=x-d[f];x=$a(h,x,g)}if(s){const m=p==="y"?"top":"left",f=p==="y"?"bottom":"right",h=w+d[m],g=w-d[f];w=$a(h,w,g)}const b=u.fn({...t,[v]:x,[p]:w});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:i,[p]:s}}}}}},Vy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:i,elements:s}=t,{apply:u=()=>{},...a}=qr(e,t),c=await i.detectOverflow(t,a),d=Jt(o),p=eo(o),v=Et(o)==="y",{width:x,height:w}=l.floating;let b,m;d==="top"||d==="bottom"?(b=d,m=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,b=p==="end"?"top":"bottom");const f=w-c.top-c.bottom,h=x-c.left-c.right,g=tr(w-c[b],f),C=tr(x-c[m],h),E=!t.middlewareData.shift;let k=g,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=f),E&&!p){const P=Be(c.left,0),K=Be(c.right,0),$=Be(c.top,0),j=Be(c.bottom,0);v?R=x-2*(P!==0||K!==0?P+K:Be(c.left,c.right)):k=w-2*($!==0||j!==0?$+j:Be(c.top,c.bottom))}await u({...t,availableWidth:R,availableHeight:k});const I=await i.getDimensions(s.floating);return x!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function Fd(e){const t=nt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=cl(n)!==l||cl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function Ru(e){return ye(e)?e:e.contextElement}function Gn(e){const t=Ru(e);if(!xt(t))return gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Fd(t);let i=(l?cl(n.width):n.width)/r,s=(l?cl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Hy=gt(0);function Bd(e){const t=He(e);return!Dl()||!t.visualViewport?Hy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uy(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==He(e)?!1:t}function vn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Ru(e);let i=gt(1);t&&(r?ye(r)&&(i=Gn(r)):i=Gn(e));const s=Uy(l,n,r)?Bd(l):gt(0);let u=(o.left+s.x)/i.x,a=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(l){const p=He(l),v=r&&ye(r)?He(r):r;let x=p,w=ms(x);for(;w&&r&&v!==x;){const b=Gn(w),m=w.getBoundingClientRect(),f=nt(w),h=m.left+(w.clientLeft+parseFloat(f.paddingLeft))*b.x,g=m.top+(w.clientTop+parseFloat(f.paddingTop))*b.y;u*=b.x,a*=b.y,c*=b.x,d*=b.y,u+=h,a+=g,x=He(w),w=ms(x)}}return dl({width:c,height:d,x:u,y:a})}function Kl(e,t){const n=Il(e).scrollLeft;return t?t.left+n:vn(vt(e)).left+n}function Wd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Kl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Gy(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",i=vt(r),s=t?Ol(t.floating):!1;if(r===i||s&&l)return n;let u={scrollLeft:0,scrollTop:0},a=gt(1);const c=gt(0),d=xt(r);if((d||!d&&!l)&&((lr(r)!=="body"||Jr(i))&&(u=Il(r)),d)){const v=vn(r);a=Gn(r),c.x=v.x+r.clientLeft,c.y=v.y+r.clientTop}const p=i&&!d&&!l?Wd(i,u):gt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-u.scrollLeft*a.x+c.x+p.x,y:n.y*a.y-u.scrollTop*a.y+c.y+p.y}}function Qy(e){return Array.from(e.getClientRects())}function Yy(e){const t=vt(e),n=Il(e),r=e.ownerDocument.body,o=Be(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Be(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Kl(e);const s=-n.scrollTop;return nt(r).direction==="rtl"&&(i+=Be(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:s}}const Ga=25;function Xy(e,t){const n=He(e),r=vt(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){l=o.width,i=o.height;const c=Dl();(!c||c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const a=Kl(r);if(a<=0){const c=r.ownerDocument,d=c.body,p=getComputedStyle(d),v=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(r.clientWidth-d.clientWidth-v);x<=Ga&&(l-=x)}else a<=Ga&&(l+=a);return{width:l,height:i,x:s,y:u}}function Zy(e,t){const n=vn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=xt(e)?Gn(e):gt(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,a=r*l.y;return{width:i,height:s,x:u,y:a}}function Qa(e,t,n){let r;if(t==="viewport")r=Xy(e,n);else if(t==="document")r=Yy(vt(e));else if(ye(t))r=Zy(t,n);else{const o=Bd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dl(r)}function Vd(e,t){const n=Lt(e);return n===t||!ye(n)||Rt(n)?!1:nt(n).position==="fixed"||Vd(n,t)}function Jy(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(s=>ye(s)&&lr(s)!=="body"),o=null;const l=nt(e).position==="fixed";let i=l?Lt(e):e;for(;ye(i)&&!Rt(i);){const s=nt(i),u=Tu(i);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Jr(i)&&!u&&Vd(e,i))?r=r.filter(c=>c!==i):o=s,i=Lt(i)}return t.set(e,r),r}function qy(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ol(t)?[]:Jy(t,this._c):[].concat(n),r],s=Qa(t,i[0],o);let u=s.top,a=s.right,c=s.bottom,d=s.left;for(let p=1;p<i.length;p++){const v=Qa(t,i[p],o);u=Be(v.top,u),a=tr(v.right,a),c=tr(v.bottom,c),d=Be(v.left,d)}return{width:a-d,height:c-u,x:d,y:u}}function eg(e){const{width:t,height:n}=Fd(e);return{width:t,height:n}}function tg(e,t,n){const r=xt(t),o=vt(t),l=n==="fixed",i=vn(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const u=gt(0);function a(){u.x=Kl(o)}if(r||!r&&!l)if((lr(t)!=="body"||Jr(o))&&(s=Il(t)),r){const v=vn(t,!0,l,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&a();l&&!r&&o&&a();const c=o&&!r&&!l?Wd(o,s):gt(0),d=i.left+s.scrollLeft-u.x-c.x,p=i.top+s.scrollTop-u.y-c.y;return{x:d,y:p,width:i.width,height:i.height}}function mi(e){return nt(e).position==="static"}function Ya(e,t){if(!xt(e)||nt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function Hd(e,t){const n=He(e);if(Ol(e))return n;if(!xt(e)){let o=Lt(e);for(;o&&!Rt(o);){if(ye(o)&&!mi(o))return o;o=Lt(o)}return n}let r=Ya(e,t);for(;r&&Yh(r)&&mi(r);)r=Ya(r,t);return r&&Rt(r)&&mi(r)&&!Tu(r)?n:r||Jh(e)||n}const ng=async function(e){const t=this.getOffsetParent||Hd,n=this.getDimensions,r=await n(e.floating);return{reference:tg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rg(e){return nt(e).direction==="rtl"}const og={convertOffsetParentRelativeRectToViewportRelativeRect:Gy,getDocumentElement:vt,getClippingRect:qy,getOffsetParent:Hd,getElementRects:ng,getClientRects:Qy,getDimensions:eg,getScale:Gn,isElement:ye,isRTL:rg};function Ud(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lg(e,t){let n=null,r;const o=vt(e);function l(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),l();const a=e.getBoundingClientRect(),{left:c,top:d,width:p,height:v}=a;if(s||t(),!p||!v)return;const x=xo(d),w=xo(o.clientWidth-(c+p)),b=xo(o.clientHeight-(d+v)),m=xo(c),h={rootMargin:-x+"px "+-w+"px "+-b+"px "+-m+"px",threshold:Be(0,tr(1,u))||1};let g=!0;function C(E){const k=E[0].intersectionRatio;if(k!==u){if(!g)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Ud(a,e.getBoundingClientRect())&&i(),g=!1}try{n=new IntersectionObserver(C,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,h)}n.observe(e)}return i(!0),l}function xs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,a=Ru(e),c=o||l?[...a?Yt(a):[],...t?Yt(t):[]]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),l&&m.addEventListener("resize",n)});const d=a&&s?lg(a,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(m=>{let[f]=m;f&&f.target===a&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var h;(h=v)==null||h.observe(t)})),n()}),a&&!u&&v.observe(a),t&&v.observe(t));let x,w=u?vn(e):null;u&&b();function b(){const m=vn(e);w&&!Ud(w,m)&&n(),w=m,x=requestAnimationFrame(b)}return n(),()=>{var m;c.forEach(f=>{o&&f.removeEventListener("scroll",n),l&&f.removeEventListener("resize",n)}),d==null||d(),(m=v)==null||m.disconnect(),v=null,u&&cancelAnimationFrame(x)}}const ig=By,sg=Wy,ug=zy,ag=Vy,cg=(e,t,n)=>{const r=new Map,o={platform:og,...n},l={...o.platform,_c:r};return My(e,t,{...o,platform:l})};var fg=typeof document<"u",dg=function(){},Ko=fg?S.useLayoutEffect:dg;function hl(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(!hl(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)&&!hl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Gd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xa(e,t){const n=Gd(e);return Math.round(t*n)/n}function hi(e){const t=S.useRef(e);return Ko(()=>{t.current=e}),t}function pg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:u,open:a}=e,[c,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=S.useState(r);hl(p,r)||v(r);const[x,w]=S.useState(null),[b,m]=S.useState(null),f=S.useCallback(T=>{T!==E.current&&(E.current=T,w(T))},[]),h=S.useCallback(T=>{T!==k.current&&(k.current=T,m(T))},[]),g=l||x,C=i||b,E=S.useRef(null),k=S.useRef(null),R=S.useRef(c),I=u!=null,P=hi(u),K=hi(o),$=hi(a),j=S.useCallback(()=>{if(!E.current||!k.current)return;const T={placement:t,strategy:n,middleware:p};K.current&&(T.platform=K.current),cg(E.current,k.current,T).then(L=>{const _={...L,isPositioned:$.current!==!1};D.current&&!hl(R.current,_)&&(R.current=_,Ll.flushSync(()=>{d(_)}))})},[p,t,n,K,$]);Ko(()=>{a===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[a]);const D=S.useRef(!1);Ko(()=>(D.current=!0,()=>{D.current=!1}),[]),Ko(()=>{if(g&&(E.current=g),C&&(k.current=C),g&&C){if(P.current)return P.current(g,C,j);j()}},[g,C,j,P,I]);const Y=S.useMemo(()=>({reference:E,floating:k,setReference:f,setFloating:h}),[f,h]),M=S.useMemo(()=>({reference:g,floating:C}),[g,C]),X=S.useMemo(()=>{const T={position:n,left:0,top:0};if(!M.floating)return T;const L=Xa(M.floating,c.x),_=Xa(M.floating,c.y);return s?{...T,transform:"translate("+L+"px, "+_+"px)",...Gd(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,s,M.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:j,refs:Y,elements:M,floatingStyles:X}),[c,j,Y,M,X])}const ws=(e,t)=>{const n=ig(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ss=(e,t)=>{const n=sg(e);return{name:n.name,fn:n.fn,options:[e,t]}},bs=(e,t)=>{const n=ug(e);return{name:n.name,fn:n.fn,options:[e,t]}},ks=(e,t)=>{const n=ag(e);return{name:n.name,fn:n.fn,options:[e,t]}},mg="data-floating-ui-focusable",Za="active",Ja="selected",hg={...Cc};let qa=!1,yg=0;const ec=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yg++;function gg(){const[e,t]=S.useState(()=>qa?ec():void 0);return dn(()=>{e==null&&t(ec())},[]),S.useEffect(()=>{qa=!0},[]),e}const vg=hg.useId,Qd=vg||gg;function xg(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const wg=S.createContext(null),Sg=S.createContext(null),bg=()=>{var e;return((e=S.useContext(wg))==null?void 0:e.id)||null},Yd=()=>S.useContext(Sg);function ju(e){return"data-floating-ui-"+e}const kg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},tc=S.forwardRef(function(t,n){const[r,o]=S.useState();dn(()=>{Cy()&&o("button")},[]);const l={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ju("focus-guard")]:"",style:kg};return y.jsx("span",{...t,...l})}),Cg={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Xd=S.createContext(null),nc=ju("portal");function Eg(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Qd(),o=Tg(),[l,i]=S.useState(null),s=S.useRef(null);return dn(()=>()=>{l==null||l.remove(),queueMicrotask(()=>{s.current=null})},[l]),dn(()=>{if(!r||s.current)return;const u=t?document.getElementById(t):null;if(!u)return;const a=document.createElement("div");a.id=r,a.setAttribute(nc,""),u.appendChild(a),s.current=a,i(a)},[t,r]),dn(()=>{if(n===null||!r||s.current)return;let u=n||(o==null?void 0:o.portalNode);u&&!Eu(u)&&(u=u.current),u=u||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,u.appendChild(a));const c=document.createElement("div");c.id=r,c.setAttribute(nc,""),u=a||u,u.appendChild(c),s.current=c,i(c)},[t,n,r,o]),l}function Cs(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,l=Eg({id:n,root:r}),[i,s]=S.useState(null),u=S.useRef(null),a=S.useRef(null),c=S.useRef(null),d=S.useRef(null),p=i==null?void 0:i.modal,v=i==null?void 0:i.open,x=!!i&&!i.modal&&i.open&&o&&!!(r||l);return S.useEffect(()=>{if(!l||!o||p)return;function w(b){l&&pi(b)&&(b.type==="focusin"?Ha:Dy)(l)}return l.addEventListener("focusin",w,!0),l.addEventListener("focusout",w,!0),()=>{l.removeEventListener("focusin",w,!0),l.removeEventListener("focusout",w,!0)}},[l,o,p]),S.useEffect(()=>{l&&(v||Ha(l))},[v,l]),y.jsxs(Xd.Provider,{value:S.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:a,beforeInsideRef:c,afterInsideRef:d,portalNode:l,setFocusManagerState:s}),[o,l]),children:[x&&l&&y.jsx(tc,{"data-type":"outside",ref:u,onFocus:w=>{if(pi(w,l)){var b;(b=c.current)==null||b.focus()}else{const m=i?i.domReference:null,f=Oy(m);f==null||f.focus()}}}),x&&l&&y.jsx("span",{"aria-owns":l.id,style:Cg}),l&&Ll.createPortal(t,l),x&&l&&y.jsx(tc,{"data-type":"outside",ref:a,onFocus:w=>{if(pi(w,l)){var b;(b=d.current)==null||b.focus()}else{const m=i?i.domReference:null,f=Ay(m);f==null||f.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,w.nativeEvent,"focus-out"))}}})]})}const Tg=()=>S.useContext(Xd),Rg={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},jg={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},rc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Es(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:i=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:a="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:x}=t,w=Yd(),b=Tn(typeof u=="function"?u:()=>!1),m=typeof u=="function"?b:u,f=S.useRef(!1),{escapeKey:h,outsidePress:g}=rc(v),{escapeKey:C,outsidePress:E}=rc(x),k=S.useRef(!1),R=Tn(D=>{var Y;if(!n||!i||!s||D.key!=="Escape"||k.current)return;const M=(Y=l.current.floatingContext)==null?void 0:Y.nodeId,X=w?Io(w.nodesRef.current,M):[];if(!h&&(D.stopPropagation(),X.length>0)){let T=!0;if(X.forEach(L=>{var _;if((_=L.context)!=null&&_.open&&!L.context.dataRef.current.__escapeKeyBubbles){T=!1;return}}),!T)return}r(!1,Ry(D)?D.nativeEvent:D,"escape-key")}),I=Tn(D=>{var Y;const M=()=>{var X;R(D),(X=mr(D))==null||X.removeEventListener("keydown",M)};(Y=mr(D))==null||Y.addEventListener("keydown",M)}),P=Tn(D=>{var Y;const M=l.current.insideReactTree;l.current.insideReactTree=!1;const X=f.current;if(f.current=!1,a==="click"&&X||M||typeof m=="function"&&!m(D))return;const T=mr(D),L="["+ju("inert")+"]",_=Ur(o.floating).querySelectorAll(L);let V=ye(T)?T:null;for(;V&&!Rt(V);){const se=Lt(V);if(Rt(se)||!ye(se))break;V=se}if(_.length&&ye(T)&&!Ty(T)&&!vs(T,o.floating)&&Array.from(_).every(se=>!vs(V,se)))return;if(xt(T)&&j){const se=Rt(T),ue=nt(T),ke=/auto|scroll/,Sn=se||ke.test(ue.overflowX),bn=se||ke.test(ue.overflowY),O=Sn&&T.clientWidth>0&&T.scrollWidth>T.clientWidth,H=bn&&T.clientHeight>0&&T.scrollHeight>T.clientHeight,Q=ue.direction==="rtl",Z=H&&(Q?D.offsetX<=T.offsetWidth-T.clientWidth:D.offsetX>T.clientWidth),te=O&&D.offsetY>T.clientHeight;if(Z||te)return}const q=(Y=l.current.floatingContext)==null?void 0:Y.nodeId,Re=w&&Io(w.nodesRef.current,q).some(se=>{var ue;return di(D,(ue=se.context)==null?void 0:ue.elements.floating)});if(di(D,o.floating)||di(D,o.domReference)||Re)return;const be=w?Io(w.nodesRef.current,q):[];if(be.length>0){let se=!0;if(be.forEach(ue=>{var ke;if((ke=ue.context)!=null&&ke.open&&!ue.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,D,"outside-press")}),K=Tn(D=>{var Y;const M=()=>{var X;P(D),(X=mr(D))==null||X.removeEventListener(a,M)};(Y=mr(D))==null||Y.addEventListener(a,M)});S.useEffect(()=>{if(!n||!i)return;l.current.__escapeKeyBubbles=h,l.current.__outsidePressBubbles=g;let D=-1;function Y(_){r(!1,_,"ancestor-scroll")}function M(){window.clearTimeout(D),k.current=!0}function X(){D=window.setTimeout(()=>{k.current=!1},Dl()?5:0)}const T=Ur(o.floating);s&&(T.addEventListener("keydown",C?I:R,C),T.addEventListener("compositionstart",M),T.addEventListener("compositionend",X)),m&&T.addEventListener(a,E?K:P,E);let L=[];return p&&(ye(o.domReference)&&(L=Yt(o.domReference)),ye(o.floating)&&(L=L.concat(Yt(o.floating))),!ye(o.reference)&&o.reference&&o.reference.contextElement&&(L=L.concat(Yt(o.reference.contextElement)))),L=L.filter(_=>{var V;return _!==((V=T.defaultView)==null?void 0:V.visualViewport)}),L.forEach(_=>{_.addEventListener("scroll",Y,{passive:!0})}),()=>{s&&(T.removeEventListener("keydown",C?I:R,C),T.removeEventListener("compositionstart",M),T.removeEventListener("compositionend",X)),m&&T.removeEventListener(a,E?K:P,E),L.forEach(_=>{_.removeEventListener("scroll",Y)}),window.clearTimeout(D)}},[l,o,s,m,a,n,r,p,i,h,g,R,C,I,P,E,K]),S.useEffect(()=>{l.current.insideReactTree=!1},[l,m,a]);const $=S.useMemo(()=>({onKeyDown:R,...c&&{[Rg[d]]:D=>{r(!1,D.nativeEvent,"reference-press")},...d!=="click"&&{onClick(D){r(!1,D.nativeEvent,"reference-press")}}}}),[R,r,c,d]),j=S.useMemo(()=>{function D(Y){Y.button===0&&(f.current=!0)}return{onKeyDown:R,onMouseDown:D,onMouseUp:D,[jg[a]]:()=>{l.current.insideReactTree=!0}}},[R,a,l]);return S.useMemo(()=>i?{reference:$,floating:j}:{},[i,$,j])}function Ng(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qd(),l=S.useRef({}),[i]=S.useState(()=>xg()),s=bg()!=null,[u,a]=S.useState(r.reference),c=Tn((v,x,w)=>{l.current.openEvent=v?x:void 0,i.emit("openchange",{open:v,event:x,reason:w,nested:s}),n==null||n(v,x,w)}),d=S.useMemo(()=>({setPositionReference:a}),[]),p=S.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return S.useMemo(()=>({dataRef:l,open:t,onOpenChange:c,elements:p,events:i,floatingId:o,refs:d}),[t,c,p,i,o,d])}function Ts(e){e===void 0&&(e={});const{nodeId:t}=e,n=Ng({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,i]=S.useState(null),[s,u]=S.useState(null),c=(o==null?void 0:o.domReference)||l,d=S.useRef(null),p=Yd();dn(()=>{c&&(d.current=c)},[c]);const v=pg({...e,elements:{...o,...s&&{reference:s}}}),x=S.useCallback(h=>{const g=ye(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),getClientRects:()=>h.getClientRects(),contextElement:h}:h;u(g),v.refs.setReference(g)},[v.refs]),w=S.useCallback(h=>{(ye(h)||h===null)&&(d.current=h,i(h)),(ye(v.refs.reference.current)||v.refs.reference.current===null||h!==null&&!ye(h))&&v.refs.setReference(h)},[v.refs]),b=S.useMemo(()=>({...v.refs,setReference:w,setPositionReference:x,domReference:d}),[v.refs,w,x]),m=S.useMemo(()=>({...v.elements,domReference:c}),[v.elements,c]),f=S.useMemo(()=>({...v,...r,refs:b,elements:m,nodeId:t}),[v,b,m,t,r]);return dn(()=>{r.dataRef.current.floatingContext=f;const h=p==null?void 0:p.nodesRef.current.find(g=>g.id===t);h&&(h.context=f)}),S.useMemo(()=>({...v,context:f,refs:b,elements:m}),[v,b,m,f])}function yi(e,t,n){const r=new Map,o=n==="item";let l=e;if(o&&e){const{[Za]:i,[Ja]:s,...u}=e;l=u}return{...n==="floating"&&{tabIndex:-1,[mg]:""},...l,...t.map(i=>{const s=i?i[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(u=>{let[a,c]=u;if(!(o&&[Za,Ja].includes(a)))if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof c=="function"){var d;(d=r.get(a))==null||d.push(c),i[a]=function(){for(var p,v=arguments.length,x=new Array(v),w=0;w<v;w++)x[w]=arguments[w];return(p=r.get(a))==null?void 0:p.map(b=>b(...x)).find(b=>b!==void 0)}}}else i[a]=c}),i),{})}}function Rs(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),o=S.useCallback(s=>yi(s,e,"reference"),t),l=S.useCallback(s=>yi(s,e,"floating"),n),i=S.useCallback(s=>yi(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:l,getItemProps:i}),[o,l,i])}const Pg=["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"],_g=["50","100","200","300","400","500","600","700","800","900","950"];function js({prefix:e,currentValue:t,colors:n,locked:r,lockedValue:o,onHover:l,onLeave:i,onClick:s,onRemove:u,onRemoveHover:a}){return y.jsxs("div",{className:"p-2 bg-bv-surface border border-bv-border rounded-md my-2",onMouseLeave:()=>{r||i()},children:[y.jsxs("div",{className:"flex items-center gap-0.5 mb-0.5",children:[y.jsx("span",{className:"w-[52px] text-[10px] text-bv-muted text-right pr-1.5 shrink-0"}),u&&y.jsx("div",{title:"Remove class",className:`w-5 h-5 rounded cursor-pointer border-2 shrink-0 transition-[border-color,transform] flex items-center justify-center ${t===""?"outline outline-2 outline-offset-2 outline-bv-orange border-transparent":"border-transparent hover:border-bv-orange hover:scale-110"}`,onMouseEnter:()=>{!r&&a&&a()},onClick:u,children:y.jsxs("svg",{viewBox:"0 0 10 10",width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("line",{x1:"1",y1:"1",x2:"9",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"}),y.jsx("line",{x1:"9",y1:"1",x2:"1",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"})]})}),["black","white","transparent"].map(c=>n[c]!==void 0?y.jsx(oc,{prefix:e,colorName:c,colorValue:n[c],isCurrent:c===t,isLocked:o===`${e}${c}`,locked:r,onHover:l,onClick:s},c):null)]}),Pg.map(c=>{const d=n[c];return!d||typeof d!="object"?null:y.jsxs("div",{className:"flex items-center gap-0.5 mb-0.5",children:[y.jsx("span",{className:"w-[52px] text-[10px] text-bv-muted text-right pr-1.5 shrink-0",children:c}),_g.map(p=>d[p]!==void 0?y.jsx(oc,{prefix:e,colorName:`${c}-${p}`,colorValue:d[p],isCurrent:`${c}-${p}`===t,isLocked:o===`${e}${c}-${p}`,locked:r,onHover:l,onClick:s},`${c}-${p}`):null)]},c)})]})}function oc({prefix:e,colorName:t,colorValue:n,isCurrent:r,isLocked:o,locked:l,onHover:i,onClick:s}){const u=`${e}${t}`,a=o?"outline outline-2 outline-offset-2 outline-bv-teal border-transparent":r?"outline outline-2 outline-offset-2 outline-bv-orange border-transparent":l?"border-transparent":"border-transparent hover:border-bv-text hover:scale-110 hover:z-10",c=t==="transparent"?{background:"repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 50% / 8px 8px"}:{backgroundColor:n};return y.jsx("div",{title:u,className:`w-5 h-5 rounded cursor-pointer border-2 shrink-0 transition-[border-color,transform] ${a}`,style:c,onMouseEnter:()=>{l||i(u)},onClick:d=>{d.stopPropagation(),s(u)}})}function Nu({onClose:e,children:t,...n}){const r=S.useRef(null);return S.useEffect(()=>{var o;(o=r.current)==null||o.focus()},[]),y.jsx("div",{ref:r,tabIndex:-1,onBlur:o=>{var l;(l=r.current)!=null&&l.contains(o.relatedTarget)||e()},onKeyDown:o=>{o.code==="Escape"&&e()},...n,children:t})}const Lg=4,Ag=10;function Cn({values:e,currentValue:t,lockedValue:n,locked:r,ghost:o,onStart:l,onHover:i,onLeave:s,onClick:u,onRemove:a,onRemoveHover:c}){const[d,p]=S.useState(!1),[v,x]=S.useState(null),w=S.useRef(null),b=S.useRef(null),m=S.useRef(null),f=n!==null&&e.includes(n),h=v!==null?e[v]:f?n:t;S.useEffect(()=>{var P,K;d&&m.current&&((K=(P=m.current).scrollIntoView)==null||K.call(P,{block:"nearest"}))},[d]);const g=r&&!f;function C(P){if(g)return;l==null||l();const K=f?n:t,$=e.indexOf(K);w.current={startX:P.clientX,startIndex:$>=0?$:0,didScrub:!1},P.currentTarget.setPointerCapture(P.pointerId),P.preventDefault()}function E(P){const K=w.current;if(!K)return;const $=P.clientX-K.startX;if(!K.didScrub&&Math.abs($)>Lg&&(K.didScrub=!0,p(!1)),K.didScrub){const j=Math.round($/Ag),D=Math.max(0,Math.min(e.length-1,K.startIndex+j));x(D),i(e[D])}}function k(){const P=w.current;P&&(P.didScrub&&v!==null?u(e[v]):P.didScrub||p(K=>(K&&s(),!K)),x(null),w.current=null)}const R=v!==null,I=R?"border-bv-teal bg-bv-teal/9 text-bv-teal":f?"border-bv-border bg-bv-surface-hi text-bv-text hover:border-bv-teal hover:bg-bv-teal/9 hover:text-bv-teal":d?"border-bv-border bg-bv-surface-hi text-bv-text":g?"bg-bv-surface text-bv-text-mid border-transparent":o?"border-dashed border-bv-border text-bv-muted bg-transparent hover:border-bv-teal hover:text-bv-teal":"bg-bv-surface text-bv-text-mid border-transparent hover:border-bv-teal hover:bg-bv-teal/9 hover:text-bv-teal";return y.jsxs("div",{ref:b,className:"relative inline-block",children:[y.jsxs("div",{className:`group select-none px-2 py-0.5 rounded text-[11px] font-mono border transition-colors ${g?"cursor-default":"cursor-ew-resize"} ${I}`,onPointerDown:C,onPointerMove:E,onPointerUp:k,children:[!g&&y.jsx("span",{className:`inline-block mr-0.5 text-[9px] transition-opacity ${R?"opacity-100":"opacity-0 group-hover:opacity-50"}`,children:"‹"}),h,!g&&y.jsx("span",{className:`inline-block ml-0.5 text-[9px] transition-opacity ${R?"opacity-100":"opacity-0 group-hover:opacity-50"}`,children:"›"})]}),d&&y.jsxs(Nu,{className:"absolute z-50 top-full left-0 mt-0.5 max-h-52 overflow-y-auto bg-bv-bg border border-bv-border rounded-md shadow-md min-w-[5rem]",onMouseLeave:s,onClose:()=>{p(!1),s()},children:[a&&y.jsxs("div",{className:`flex items-center gap-1.5 px-2 py-[3px] text-[11px] font-mono cursor-pointer border-b border-bv-border text-bv-muted hover:bg-bv-surface hover:text-bv-text ${t===""||n===""?"text-bv-orange":""}`,onMouseEnter:c,onClick:P=>{P.stopPropagation(),a(),p(!1)},children:[y.jsxs("svg",{viewBox:"0 0 10 10",width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0",children:[y.jsx("line",{x1:"1",y1:"1",x2:"9",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"}),y.jsx("line",{x1:"9",y1:"1",x2:"1",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"})]}),"remove"]}),e.map(P=>{const K=P===(n??t),$=K?"bg-bv-teal/9 text-bv-teal":"text-bv-text-mid hover:bg-bv-surface hover:text-bv-text";return y.jsx("div",{ref:K?m:void 0,className:`px-2 py-[3px] text-[11px] font-mono cursor-pointer ${$}`,onMouseEnter:()=>i(P),onClick:j=>{j.stopPropagation(),u(P),p(!1)},children:P},P)})]})]})}const Og={px:.0625};function $n(e){return isNaN(Number(e))?Og[e]??1/0:Number(e)}function gi(e,t,n){return t==="spacing"&&(n!=null&&n.spacing)?Object.keys(n.spacing).sort((o,l)=>$n(o)-$n(l)).map(o=>`${e}${o}`):t==="fontSize"?["text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]:t==="fontWeight"?["font-thin","font-extralight","font-light","font-normal","font-medium","font-semibold","font-bold","font-extrabold","font-black"]:t==="borderRadius"?["rounded-none","rounded-sm","rounded","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full"]:t==="lineHeight"?["leading-none","leading-tight","leading-snug","leading-normal","leading-relaxed","leading-loose","leading-3","leading-4","leading-5","leading-6","leading-7","leading-8","leading-9","leading-10"]:t==="letterSpacing"?["tracking-tighter","tracking-tight","tracking-normal","tracking-wide","tracking-wider","tracking-widest"]:[]}const Dg=4,Ig=10;function Zd({placeholder:e,values:t,currentValue:n,displayValue:r,formatValue:o,axis:l="x",disabled:i,onHover:s,onLeave:u,onClick:a,onScrubStart:c,onScrubEnd:d,onOpen:p,onClose:v,onRemove:x,onRemoveHover:w}){const[b,m]=S.useState(!1),[f,h]=S.useState(null),[g,C]=S.useState(null),E=S.useRef(null),k=S.useRef(null),R=S.useRef(null),I=n!=null,P=n?t.indexOf(n):-1,K=g!==null?t[g]:null,$=K?o?o(K):K:r??e;S.useEffect(()=>{var V;if(!b){h(null);return}const _=(V=k.current)==null?void 0:V.getBoundingClientRect();_&&h({top:_.bottom+4,left:_.left+_.width/2})},[b]),S.useEffect(()=>{var _,V;b&&R.current&&((V=(_=R.current).scrollIntoView)==null||V.call(_,{block:"nearest"}))},[b]);function j(_){var q,Re;if(i)return;_.preventDefault(),_.stopPropagation();const V=P>=0?P:0;E.current={startX:_.clientX,startY:_.clientY,startIndex:V,didScrub:!1},(Re=(q=_.target).setPointerCapture)==null||Re.call(q,_.pointerId)}function D(_){const V=E.current;if(!V)return;const q=l==="y"?-(_.clientY-V.startY):_.clientX-V.startX;if(!V.didScrub&&Math.abs(q)>Dg&&(V.didScrub=!0,m(!1),c==null||c()),V.didScrub){const Re=Math.round(q/Ig),be=Math.max(0,Math.min(t.length-1,V.startIndex+Re));C(be),s==null||s(t[be])}}function Y(){const _=E.current;_&&(_.didScrub&&g!==null?(a==null||a(t[g]),C(null),E.current=null,d==null||d()):_.didScrub||(C(null),E.current=null,m(V=>V?(v==null||v(),u==null||u(),!1):(p==null||p(),!0))))}const M=g!==null,T=["bm-slot",I||M?"bm-has-val":"",M?"bm-scrubbing":""].filter(Boolean).join(" "),L=i?"default":l==="y"?"ns-resize":"ew-resize";return y.jsxs("span",{ref:k,className:T,style:{position:"relative",cursor:L},onPointerDown:j,onPointerMove:D,onPointerUp:Y,role:"button",tabIndex:i?-1:0,children:[$,b&&f&&Ll.createPortal(y.jsxs(Nu,{className:"bm-mini-dropdown",style:{position:"fixed",top:f.top,left:f.left,transform:"translateX(-50%)"},onClick:_=>_.stopPropagation(),onMouseLeave:()=>u==null?void 0:u(),onMouseDown:_=>_.stopPropagation(),onClose:()=>{m(!1),v==null||v(),u==null||u()},children:[x&&y.jsxs("div",{className:"bm-mini-dropdown-item bm-mini-dropdown-remove",onMouseEnter:w,onClick:_=>{_.stopPropagation(),x(),m(!1),v==null||v()},children:[y.jsxs("svg",{viewBox:"0 0 10 10",width:"8",height:"8",xmlns:"http://www.w3.org/2000/svg",style:{display:"inline-block",flexShrink:0},children:[y.jsx("line",{x1:"1",y1:"1",x2:"9",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"}),y.jsx("line",{x1:"9",y1:"1",x2:"1",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"})]}),"remove"]}),t.map(_=>{const V=_===n;return y.jsx("div",{ref:V?R:void 0,className:`bm-mini-dropdown-item${V?" bm-active":""}`,onMouseEnter:()=>s==null?void 0:s(_),onClick:q=>{q.stopPropagation(),a==null||a(_),m(!1),v==null||v()},children:_},_)})]}),document.body)]})}function lc(e,t){const r={padding:"p",margin:"m",border:"border-",outline:"outline-"}[t];return e.startsWith(r)?e.slice(r.length):e}function Kg({value:e,placeholder:t,layer:n,frozen:r,scaleValues:o,axis:l,onClick:i,onValueChange:s,onValueHover:u,onValueLeave:a,onScrubStart:c,onScrubEnd:d,onOpen:p,onClose:v,onValueRemove:x,onValueRemoveHover:w}){const b=e!=null,m=b?lc(e,n):null;if(o&&o.length>0)return y.jsx(Zd,{placeholder:t,values:o,currentValue:e,displayValue:m,formatValue:h=>lc(h,n),axis:l,disabled:r,onHover:u,onLeave:a,onClick:s,onScrubStart:c,onScrubEnd:d,onOpen:p,onClose:v,onRemove:x,onRemoveHover:w});const f=`bm-slot${b?" bm-has-val":""}`;return y.jsx("span",{className:f,onClick:r?void 0:h=>i==null?void 0:i(h.currentTarget),role:"button",tabIndex:r?-1:0,children:m??t})}const Mg={top:["y","t"],right:["r"],bottom:["b"],left:["x","l"],tr:["color"],bl:["style"],br:["offset"]},zg={margin:["top","right","bottom","left"],outline:["top","right","bottom","left","tr","bl","br"],border:["top","right","bottom","left","tr","bl"],padding:["top","right","bottom","left"]},$g={top:"y",bottom:"y",left:"x",right:"x",tr:"x",bl:"x",br:"x"};function Fg({layer:e,classState:t,shorthandValue:n,shorthandScaleValues:r,slots:o,isHovered:l,frozen:i,onHoverChange:s,onSlotClick:u,onSlotChange:a,onSlotHover:c,onScrubStart:d,onScrubEnd:p,onSlotOpen:v,onSlotClose:x,onSlotRemove:w,onSlotRemoveHover:b,children:m}){const f=`bm-layer bm-${e}${l?" bm-hovered":""}`,[h,g]=S.useState(null),C=new Map(o.map($=>[$.key,$])),E=(t==="shorthand"||t==="mixed")&&n,k=r&&r.length>0?y.jsx("span",{className:"bm-name bm-name-scrubber",children:y.jsx(Zd,{placeholder:e,values:r,currentValue:E?n:null,displayValue:E?n:null,formatValue:$=>$,axis:"x",disabled:i,onHover:$=>c==null?void 0:c("shorthand",$),onLeave:()=>c==null?void 0:c("shorthand",null),onClick:$=>a==null?void 0:a("shorthand",$),onScrubStart:()=>{d==null||d()},onScrubEnd:p,onOpen:()=>{g("__shorthand__"),v==null||v()},onClose:()=>{g(null),x==null||x()},onRemove:w?()=>w("shorthand"):void 0,onRemoveHover:b?()=>b("shorthand"):void 0})}):E?y.jsx("span",{className:"bm-name",children:y.jsx("span",{className:"bm-val",onClick:$=>u==null?void 0:u("shorthand",$.currentTarget),children:n})}):y.jsx("span",{className:"bm-name",children:e}),I=(zg[e]??[]).map($=>{const D=(Mg[$]??[]).map(L=>C.get(L)).filter(L=>L!=null);if(D.length===0)return null;const Y=D.some(L=>L.value!=null),X=`bm-slot-group bm-sg-${$}${Y?" bm-has-values":""}${h===$?" bm-sg-active":""}`,T=$g[$];return y.jsx("div",{className:X,children:D.map(L=>y.jsx(Kg,{slotKey:L.key,value:L.value,placeholder:L.placeholder,layer:e,isExpanded:l,frozen:i,scaleValues:L.scaleValues,axis:T,onClick:_=>u==null?void 0:u(L.key,_),onValueChange:a?_=>a(L.key,_):void 0,onValueHover:c?_=>c(L.key,_):void 0,onValueLeave:c?()=>c(L.key,null):void 0,onScrubStart:d,onScrubEnd:p,onOpen:()=>{g($),v==null||v()},onClose:()=>{g(null),x==null||x()},onValueRemove:w?()=>w(L.key):void 0,onValueRemoveHover:b?()=>b(L.key):void 0},L.key))},$)}),P=$=>{$.stopPropagation(),i||s(!0)},K=$=>{const j=$.relatedTarget,D=$.currentTarget;j&&D.contains(j)||i||s(!1)};return y.jsxs("div",{className:f,onMouseOver:P,onMouseOut:K,"data-layer":e,children:[k,I,m]})}const ic=["margin","outline","border","padding"];function Bg({layers:e,frozen:t=!1,onSlotClick:n,onSlotChange:r,onSlotHover:o,onSlotRemove:l,onSlotRemoveHover:i,onEditStart:s}){const[u,a]=S.useState(null),[c,d]=S.useState(null),p=t||c!==null,v=new Map(e.map(h=>[h.layer,h])),x=(h,g)=>{p||a(g?h:null)},w=(h,g,C)=>{p||n==null||n(h,g,C)};let m=y.jsx("div",{className:"bm-content"});for(let h=ic.length-1;h>=0;h--){const g=ic[h],C=v.get(g);C&&(m=y.jsx(Fg,{layer:C.layer,classState:C.classState,shorthandValue:C.shorthandValue,shorthandScaleValues:C.shorthandScaleValues,slots:C.slots,isHovered:u===g||c===g,frozen:p,onHoverChange:E=>x(g,E),onSlotClick:(E,k)=>w(g,E,k),onSlotChange:r?(E,k)=>r(g,E,k):void 0,onSlotHover:o?(E,k)=>o(g,E,k):void 0,onSlotRemove:l?E=>l(g,E):void 0,onSlotRemoveHover:i?E=>i(g,E):void 0,onScrubStart:()=>{d(g),s==null||s()},onScrubEnd:()=>d(null),onSlotOpen:()=>{d(g),s==null||s()},onSlotClose:()=>d(null),children:m}))}const f=`bm-root${p?" bm-frozen":""}`;return y.jsx("div",{className:f,children:m})}const Wg={margin:{shorthand:"m",x:"mx",y:"my",t:"mt",r:"mr",b:"mb",l:"ml"},outline:{shorthand:"outline",x:"outline-x",y:"outline-y",t:"outline-t",r:"outline-r",b:"outline-b",l:"outline-l"},border:{shorthand:"border",x:"border-x",y:"border-y",t:"border-t",r:"border-r",b:"border-b",l:"border-l"},padding:{shorthand:"p",x:"px",y:"py",t:"pt",r:"pr",b:"pb",l:"pl"}},Vg=["y","t","r","b","x","l"];function Hg(e){const t=Vg.map(n=>({key:n,placeholder:n}));return(e==="border"||e==="outline")&&t.push({key:"color",placeholder:"color"},{key:"style",placeholder:"style"}),e==="outline"&&t.push({key:"offset",placeholder:"offset"}),t}function Ug(e,t){const n=Wg[e],r=Hg(e),o=t[n.shorthand]??null,l=o!=null?o===""?n.shorthand:`${n.shorthand}-${o}`:null,i=r.map(({key:p,placeholder:v})=>{let x;if(p==="color"){const m=e==="outline"?"outline-color":"border-color";x=m in t?m:void 0}else if(p==="style"){const m=e==="outline"?"outline-style":"border-style";x=m in t?m:void 0}else p==="offset"?x="outline-offset"in t?"outline-offset":void 0:x=n[p];const w=x?t[x]??null:null;let b;return(p==="color"||p==="style")&&w!=null?b=`${e==="outline"?"outline":"border"}-${w}`:b=w!=null&&x?`${x}-${w}`:null,{key:p,value:b,placeholder:v}}),s=l!=null,u=i.some(p=>(p.key==="x"||p.key==="y")&&p.value!=null),a=i.some(p=>(p.key==="t"||p.key==="r"||p.key==="b"||p.key==="l")&&p.value!=null),c=u||a;let d;return!s&&!c?d="none":s&&!c?d="shorthand":!s&&u&&!a?d="axis":s?d="mixed":d="individual",{layer:e,classState:d,shorthandValue:l,slots:i}}const Ns=["0","px","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Jd=["0","","2","3","4","5","6","8","10","12","16","20","24","32","40","48","56","64"],Gg=["solid","dashed","dotted","double","hidden","none"];function Qg(e,t,n){var i,s,u;if(t==="color")return[];if(t==="style"){const a=e==="outline"?"outline":"border";return Gg.map(c=>`${a}-${c}`)}let r;e==="border"||e==="outline"?t==="offset"?r=(i=n==null?void 0:n.theme)!=null&&i.spacing?Object.keys(n.theme.spacing).sort((a,c)=>$n(a)-$n(c)):Ns:r=(s=n==null?void 0:n.theme)!=null&&s.borderWidth?Object.keys(n.theme.borderWidth):Jd:r=(u=n==null?void 0:n.theme)!=null&&u.spacing?Object.keys(n.theme.spacing).sort((a,c)=>$n(a)-$n(c)):Ns;const l={margin:{shorthand:"m",t:"mt",r:"mr",b:"mb",l:"ml",x:"mx",y:"my"},padding:{shorthand:"p",t:"pt",r:"pr",b:"pb",l:"pl",x:"px",y:"py"},border:{t:"border-t",r:"border-r",b:"border-b",l:"border-l",x:"border-x",y:"border-y",offset:"outline-offset"},outline:{t:"outline-t",r:"outline-r",b:"outline-b",l:"outline-l",x:"outline-x",y:"outline-y",offset:"outline-offset"}}[e][t];return l?r.map(a=>a===""?l:`${l}-${a}`):[]}function En(e,t){const n={};for(const i of e){let s=i.prefix.replace(/-$/,"");s==="border"&&i.themeKey==="colors"?s="border-color":s==="border"&&i.themeKey===null&&i.valueType==="enum"?s="border-style":s==="outline"&&i.themeKey==="colors"&&(s="outline-color"),n[s]=i.value}const r={margin:"m",padding:"p",border:"border",outline:"outline"},o={margin:!1,padding:!1,border:!0,outline:!1};return["margin","outline","border","padding"].map(i=>{var d,p;const s=Ug(i,n),u=s.slots.map(v=>{const x=Qg(i,v.key,t);return x.length>0?{...v,scaleValues:x}:v}),c=(o[i]?(d=t==null?void 0:t.theme)!=null&&d.borderWidth?Object.keys(t.theme.borderWidth):Jd:(p=t==null?void 0:t.theme)!=null&&p.spacing?Object.keys(t.theme.spacing):Ns).map(v=>v===""?r[i]:`${r[i]}-${v}`);return{...s,slots:u,shorthandScaleValues:c}})}function Yg({label:e,availableProperties:t=[],onAddProperty:n,isEmpty:r=!1,children:o}){const[l,i]=S.useState(!1);function s(u){n==null||n(u),i(!1)}return y.jsxs("div",{className:"mb-1",children:[y.jsxs("div",{className:"mt-3 mb-1 flex items-center gap-1.5",children:[y.jsx("span",{className:"w-[5px] h-[5px] rounded-full bg-bv-teal opacity-50 shrink-0"}),y.jsx("span",{className:"text-[9px] font-semibold uppercase tracking-[1px] text-bv-text-mid",children:e}),t.length>0&&y.jsxs("div",{className:"relative ml-auto",children:[y.jsx("button",{type:"button","aria-label":`Add ${e} property`,className:`w-[18px] h-[18px] flex items-center justify-center rounded text-[11px] leading-none border transition-colors cursor-pointer ${l?"border-bv-teal text-bv-teal bg-bv-teal/10":"border-bv-border text-bv-muted bg-transparent hover:border-bv-teal hover:text-bv-teal hover:bg-bv-teal/10"}`,onClick:()=>i(u=>!u),children:"+"}),l&&y.jsx(Nu,{className:"absolute z-50 top-[calc(100%+2px)] right-0 bg-bv-bg border border-bv-border rounded-md shadow-[0_4px_16px_rgba(0,0,0,0.10)] min-w-[180px] max-w-[calc(100vw-16px)] py-1",onClose:()=>i(!1),children:t.map(u=>y.jsxs("button",{type:"button",className:"w-full px-2.5 py-[5px] text-[11px] font-[family-name:var(--font-ui)] text-bv-text-mid flex items-center gap-1.5 transition-colors hover:bg-bv-teal/10 hover:text-bv-teal cursor-pointer border-none bg-transparent text-left whitespace-nowrap",onClick:()=>s(u.prefix),children:[u.name,y.jsx("span",{className:"font-mono text-[10px] text-bv-muted group-hover:text-bv-teal/60",children:u.prefixHint})]},u.prefix))})]})]}),r?y.jsxs("div",{className:"text-[10px] text-bv-muted italic mb-2",children:["No ",e.toLowerCase()," classes — click + to add"]}):y.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:o}),y.jsx("hr",{className:"border-none border-t border-bv-border my-1"})]})}const Xg=[{dir:"tl",arrow:"↖"},{dir:"t",arrow:"↑"},{dir:"tr",arrow:"↗"},{dir:"l",arrow:"←"},"center",{dir:"r",arrow:"→"},{dir:"bl",arrow:"↙"},{dir:"b",arrow:"↓"},{dir:"br",arrow:"↘"}];function Zg({direction:e,mode:t,onHover:n,onLeave:r,onDirectionClick:o,onSolidClick:l,solidColorName:i}){const s=t==="solid";return y.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[y.jsx("div",{className:"grid grid-cols-3 gap-0.5",onMouseLeave:r,children:Xg.map((u,a)=>{if(u==="center"){const d=s;return y.jsx("button",{type:"button",className:`w-5 h-5 rounded-[3px] flex items-center justify-center text-xs cursor-pointer transition-all duration-150
|
|
44
|
-
${d?"border-[1.5px] border-bv-orange bg-bv-orange text-white":"border-[1.5px] border-bv-border bg-bv-bg text-bv-muted hover:border-bv-orange hover:bg-bv-orange/9 hover:text-bv-orange"}`,title:"Solid color",onClick:l,children:"●"},"center")}const c=!s&&e===u.dir;return y.jsx("button",{type:"button",className:`w-5 h-5 rounded-[3px] flex items-center justify-center text-[10px] cursor-pointer transition-all duration-150
|
|
45
|
-
${s?"opacity-35 hover:opacity-100":""}
|
|
46
|
-
${c?"border-[1.5px] border-bv-teal bg-bv-teal text-white":"border-[1.5px] border-bv-border bg-bv-bg text-bv-muted hover:border-bv-teal hover:bg-bv-teal/9 hover:text-bv-teal"}`,onMouseEnter:()=>n(u.dir),onClick:()=>o(u.dir),children:u.arrow},u.dir)})}),y.jsx("div",{className:"text-[10px] font-mono text-bv-text-mid mt-0.75 max-w-[68px] truncate text-center",children:s?i?y.jsx("span",{className:"text-bv-orange font-bold",children:i}):y.jsx("span",{className:"text-bv-muted italic",children:"none"}):y.jsxs("span",{children:["to-",y.jsx("span",{className:"text-bv-teal font-bold",children:e})]})})]})}function Jg(e,t){const r=[...e].sort((o,l)=>(o.position??0)-(l.position??0)).map(o=>o.position!=null?`${o.hex} ${o.position}%`:o.hex);return`linear-gradient(${t}, ${r.join(", ")})`}function vi(e){return Math.round(Math.max(0,Math.min(100,e))/5)*5}function qg({stop:e,isEndpoint:t,isSelected:n,onDragStart:r,onClick:o,onRemove:l}){const i=S.useRef(!1),s=S.useCallback(d=>{d.preventDefault(),d.stopPropagation(),i.current=!1,r(e.id,d.clientX);const p=()=>{i.current=!0},v=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",v)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",v)},[e.id,r]),u=S.useCallback(d=>{d.stopPropagation(),i.current||o(e.id,d.currentTarget)},[e.id,o]),a=S.useCallback(d=>{d.stopPropagation(),l(e.id)},[e.id,l]),c=e.position??0;return y.jsxs("div",{className:`absolute top-0 cursor-grab select-none z-10
|
|
47
|
-
hover:z-20
|
|
48
|
-
${n?"z-25":""}`,style:{left:`${c}%`,transform:"translateX(-50%)",width:22,height:26,filter:"drop-shadow(0 1px 2px rgba(0,0,0,0.2))"},onMouseDown:s,onClick:u,title:`${e.role}-${e.colorName}${e.position!=null?` ${e.position}%`:""}`,children:[y.jsx("svg",{viewBox:"0 0 22 26",width:22,height:26,xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M2 1 L20 1 L20 16 L11 25 L2 16 Z",fill:e.hex,stroke:n?"#00848B":"white",strokeWidth:n?2:1.5,strokeLinejoin:"round"})}),!t&&y.jsx("div",{className:"absolute -top-1.5 -right-1.5 w-3.5 h-3.5 rounded-full bg-bv-orange text-white text-[9px] leading-3.5 text-center cursor-pointer z-40 hidden group-hover/handle:block hover:block!",style:{display:void 0},onClick:a,onMouseDown:d=>d.stopPropagation(),children:"×"})]})}function ev({stops:e,direction:t,onStopDrag:n,onStopDragEnd:r,onStopClick:o,onBarClick:l,onStopRemove:i,selectedStopId:s}){const u=S.useRef(null),a=S.useRef(null),c=[...e].sort((x,w)=>(x.position??0)-(w.position??0)),d=S.useCallback((x,w)=>{const b=e.find(h=>h.id===x);if(!b)return;a.current={stopId:x,startX:w,startPos:b.position??0};const m=h=>{const g=a.current;if(!g||!u.current)return;const C=u.current.getBoundingClientRect(),k=(h.clientX-g.startX)/C.width*100,R=vi(g.startPos+k);n(g.stopId,R)},f=h=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",f);const g=a.current;if(g&&u.current){const C=u.current.getBoundingClientRect(),k=(h.clientX-g.startX)/C.width*100,R=vi(g.startPos+k);r(g.stopId,R)}a.current=null};document.addEventListener("mousemove",m),document.addEventListener("mouseup",f)},[e,n,r]),p=S.useCallback(x=>{if(!u.current)return;const w=u.current.getBoundingClientRect(),b=(x.clientX-w.left)/w.width*100;l(vi(b))},[l]),v=Jg(c,t);return y.jsxs("div",{className:"relative flex-1 min-w-0",style:{paddingTop:28},children:[c.map((x,w)=>y.jsx(qg,{stop:x,isEndpoint:w===0||w===c.length-1,isSelected:x.id===s,onDragStart:d,onClick:o,onRemove:i},x.id)),y.jsx("div",{ref:u,className:"h-9 rounded-md cursor-pointer relative",style:{background:v,border:"1px solid rgba(0,0,0,0.08)",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.06)"},onClick:p,children:y.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-lg font-bold text-white/0 hover:text-white/60 transition-colors pointer-events-none",children:"+"})})]})}const tv={t:"to top",tr:"to top right",r:"to right",br:"to bottom right",b:"to bottom",bl:"to bottom left",l:"to left",tl:"to top left"};function nv(e){var te,oe;const{direction:t,stops:n,mode:r,solidColorName:o,solidColorHex:l,onPreview:i,onPreviewBatch:s,onRevert:u,onStage:a}=e,[c,d]=S.useState(t),[p,v]=S.useState(n),[x,w]=S.useState(r),[b,m]=S.useState(o),[f,h]=S.useState(l),[g,C]=S.useState(null),[E,k]=S.useState(!1),[R,I]=S.useState(null),[P,K]=S.useState(null),$=S.useRef(n.length+1),j=S.useCallback(F=>{if(x==="gradient")i(`bg-gradient-to-${c}`,`bg-gradient-to-${F}`);else{const B=b??"slate-500",N=b?`bg-${b}`:"";s([{oldClass:N,newClass:`bg-gradient-to-${F}`},{oldClass:"",newClass:`from-${B}`},{oldClass:"",newClass:`to-${B}`}])}},[c,x,b,i,s]),D=S.useCallback(()=>{u()},[u]),Y=S.useCallback(F=>{if(d(F),w("gradient"),x==="gradient"&&p.length>=2){const B=`bg-gradient-to-${c}`,N=`bg-gradient-to-${F}`;a(B,N)}else{const B=b??"slate-500",N=f??an(B,e.colors),W={id:"1",role:"from",colorName:B,hex:N,position:0},G={id:"2",role:"to",colorName:B,hex:N,position:100};$.current=3,v([W,G]);const U=b?`bg-${b}`:"";a(U,`bg-gradient-to-${F}`),a("",`from-${B}`),a("",`to-${B}`)}},[c,x,p,b,f,e.colors,a]),M=S.useCallback(()=>{w("solid"),k(!1),C(null),I(null),p.length>0&&!b&&(m(p[0].colorName),h(p[0].hex))},[p,b]),X=S.useCallback((F,B)=>{v(W=>W.map(G=>G.id===F?{...G,position:B}:G));const N=p.find(W=>W.id===F);if(N){const W=N.position!=null?`${N.role}-${N.position}%`:"",G=`${N.role}-${B}%`;i(W,G)}},[p,i]),T=S.useCallback((F,B)=>{v(W=>W.map(G=>G.id===F?{...G,position:B}:G));const N=p.find(W=>W.id===F);if(N){const W=N.position!=null?`${N.role}-${N.position}%`:"",G=`${N.role}-${B}%`;a(W,G)}},[p,a]),L=S.useCallback((F,B)=>{g===F&&E?(C(null),k(!1),I(null),K(null)):(C(F),k(!0),I("stop"),K(B))},[g,E]),_=S.useCallback(F=>{const B=String($.current++),N=[...p].sort((U,rt)=>(U.position??0)-(rt.position??0));let W=N[0];for(const U of N)(U.position??0)<=F&&(W=U);const G={id:B,role:"via",colorName:(W==null?void 0:W.colorName)??"gray-500",hex:(W==null?void 0:W.hex)??"#6B7280",position:F};v(U=>[...U,G]),C(B),k(!0),I("stop")},[p]),V=S.useCallback(F=>{const B=p.find(W=>W.id===F);if(!B)return;const N=p.filter(W=>W.id!==F);if(C(null),k(!1),I(null),K(null),N.length>=2)v(N),a(`${B.role}-${B.colorName}`,"");else if(N.length===1){const W=N[0];v([]),w("solid"),m(W.colorName),h(W.hex),a(`bg-gradient-to-${c}`,""),p.forEach(G=>a(`${G.role}-${G.colorName}`,"")),a("",`bg-${W.colorName}`)}else v([]),w("none"),m(null),h(null),a(`bg-gradient-to-${c}`,""),p.forEach(W=>a(`${W.role}-${W.colorName}`,""))},[p,c,a]),q=S.useCallback(F=>{k(!0),I("solid"),C(null),K(F)},[]),Re=S.useCallback(()=>{i(b?`bg-${b}`:"","")},[b,i]),be=S.useCallback(()=>{b&&a(`bg-${b}`,""),m(null),h(null),k(!1),I(null),K(null)},[b,a]),se=S.useCallback(F=>{if(R==="stop"&&g){const B=p.find(N=>N.id===g);B&&i(`${B.role}-${B.colorName}`,F)}else R==="solid"&&i(`bg-${b}`,F)},[R,g,p,b,i]),ue=S.useCallback(()=>{u()},[u]),ke=S.useCallback(F=>{if(R==="stop"&&g){const B=p.find(N=>N.id===g);if(B){const N=B.role+"-",W=F.startsWith(N)?F.slice(N.length):F;v(G=>G.map(U=>U.id===g?{...U,colorName:W,hex:an(W,e.colors)}:U)),a(`${B.role}-${B.colorName}`,`${B.role}-${W}`),k(!1),C(null),I(null),K(null)}}else if(R==="solid"){const B="bg-",N=F.startsWith(B)?F.slice(B.length):F,W=b?`bg-${b}`:"";m(N),h(an(N,e.colors)),a(W,`bg-${N}`),k(!1),I(null),K(null)}},[R,g,p,b,a,e.colors]),Sn=S.useCallback(()=>{k(!1),C(null),I(null),K(null),u()},[u]),bn=R==="stop"&&g?(((te=p.find(F=>F.id===g))==null?void 0:te.role)??"from")+"-":"bg-",O=R==="stop"&&g?((oe=p.find(F=>F.id===g))==null?void 0:oe.colorName)??"":b??"",H=tv[c],Z=!!(g?p.find(F=>F.id===g):null);return{direction:c,stops:p,mode:x,solidColorName:b,solidColorHex:f,selectedStopId:g,colorPickerOpen:E,editingTarget:R,anchorEl:P,colorPrefix:bn,colorPickerCurrentValue:O,directionCSS:H,selectedStopIsRemovable:Z,handleDirectionHover:j,handleDirectionLeave:D,handleDirectionClick:Y,handleSolidToggle:M,handleStopDrag:X,handleStopDragEnd:T,handleStopClick:L,handleBarClick:_,handleStopRemove:V,handleSwatchClick:q,handleHoverRemoveSolid:Re,handleRemoveSolid:be,handleColorHover:se,handleColorLeave:ue,handleColorClick:ke,handleCloseColorPicker:Sn}}function an(e,t){if(typeof t[e]=="string")return t[e];const n=e.lastIndexOf("-");if(n>0){const r=e.slice(0,n),o=e.slice(n+1);if(t[r]&&typeof t[r][o]=="string")return t[r][o]}return"#888888"}function rv(e){const t=nv(e),n=t.mode==="solid",{refs:r,floatingStyles:o,context:l}=Ts({open:t.colorPickerOpen,onOpenChange:u=>{u||t.handleCloseColorPicker()},strategy:"fixed",placement:"bottom-start",middleware:[ws(4),bs(),Ss({padding:8}),ks({apply({availableHeight:u,elements:a}){Object.assign(a.floating.style,{maxHeight:`${u}px`})},padding:8})],whileElementsMounted:xs}),i=Es(l),{getFloatingProps:s}=Rs([i]);return S.useEffect(()=>{t.anchorEl&&r.setReference(t.anchorEl)},[t.anchorEl]),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-start gap-2.5 mb-2",children:[y.jsx(Zg,{direction:t.direction,mode:t.mode,onHover:t.handleDirectionHover,onLeave:t.handleDirectionLeave,onDirectionClick:t.handleDirectionClick,onSolidClick:t.handleSolidToggle,solidColorName:t.solidColorName}),n?y.jsx("div",{className:"flex-1 min-w-0 self-stretch rounded-md cursor-pointer relative overflow-hidden",style:{background:t.solidColorHex??"transparent",border:"1px solid rgba(0,0,0,0.08)",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.06)",minHeight:36},onClick:u=>t.handleSwatchClick(u.currentTarget),title:t.solidColorName?`bg-${t.solidColorName}`:"Click to pick color",children:!t.solidColorHex&&y.jsxs("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("line",{x1:"4",y1:"4",x2:"96",y2:"96",stroke:"#F5532D",strokeWidth:"3",strokeLinecap:"round"}),y.jsx("line",{x1:"96",y1:"4",x2:"4",y2:"96",stroke:"#F5532D",strokeWidth:"3",strokeLinecap:"round"})]})}):y.jsx(ev,{stops:t.stops,direction:t.directionCSS,onStopDrag:t.handleStopDrag,onStopDragEnd:t.handleStopDragEnd,onStopClick:t.handleStopClick,onBarClick:t.handleBarClick,onStopRemove:t.handleStopRemove,selectedStopId:t.selectedStopId})]}),t.colorPickerOpen&&y.jsx(Cs,{children:y.jsxs("div",{ref:r.setFloating,style:{...o,zIndex:9999,overflowY:"auto"},className:"p-2 bg-bv-surface border border-bv-border rounded-md shadow-lg",...s(),children:[y.jsx(js,{prefix:t.colorPrefix,currentValue:t.colorPickerCurrentValue,colors:e.colors,locked:!1,lockedValue:null,onHover:t.handleColorHover,onLeave:t.handleColorLeave,onClick:t.handleColorClick,onRemove:t.editingTarget==="solid"?t.handleRemoveSolid:void 0,onRemoveHover:t.editingTarget==="solid"?t.handleHoverRemoveSolid:void 0}),t.selectedStopIsRemovable&&y.jsx("button",{type:"button",className:"mt-1.5 w-full text-[10px] text-bv-orange border border-bv-orange/40 rounded px-2 py-0.5 cursor-pointer hover:bg-bv-orange hover:text-white transition-colors",onClick:()=>{t.selectedStopId&&t.handleStopRemove(t.selectedStopId)},children:"Remove stop"})]})}),y.jsx("div",{className:"text-[10px] text-bv-muted italic",children:n?"Click the swatch to change color · Click a direction arrow for gradient":"Click handles to change color · Drag to reposition · Click bar to add stop"})]})}function ov(e,t,n){var h;const r=new Map;for(const g of e)r.set(g.fullClass,!0);if(n)for(const g of n)g.kind==="class-change"&&g.status==="staged"&&(g.originalClass&&r.delete(g.originalClass),g.newClass&&r.set(g.newClass,!0));const o=e.find(g=>g.prefix==="bg-gradient-to-"),l=Array.from(r.keys()).find(g=>g.startsWith("bg-gradient-to-")),s=(l==null?void 0:l.replace("bg-gradient-to-",""))||(o==null?void 0:o.value)||"r",a=((h=Array.from(r.keys()).filter(g=>g.startsWith("bg-")&&!g.startsWith("bg-gradient-to-"))[0])==null?void 0:h.replace("bg-",""))??null,c=(a==null?void 0:a.split("/")[0])??null,d=c?an(c,t):null,p=Array.from(r.keys()),v=p.filter(g=>g.startsWith("from-")),x=p.filter(g=>g.startsWith("via-")),w=p.filter(g=>g.startsWith("to-")),b=!!(l||v.length>0&&w.length>0),m=b?"gradient":"solid",f=[];if(b){let g=1;for(const C of v){const E=C.replace("from-",""),k=E.split("/")[0];f.push({id:String(g++),role:"from",colorName:E,hex:an(k,t),position:null})}for(const C of x){const E=C.replace("via-",""),k=E.split("/")[0];f.push({id:String(g++),role:"via",colorName:E,hex:an(k,t),position:null})}for(const C of w){const E=C.replace("to-",""),k=E.split("/")[0];f.push({id:String(g++),role:"to",colorName:E,hex:an(k,t),position:null})}}return{direction:s,stops:f,mode:m,solidColorName:a,solidColorHex:d,colors:t}}const lv={spacing:"Spacing",sizing:"Sizing",typography:"Typography",color:"Backgrounds",borders:"Borders",effects:"Effects",layout:"Layout",flexbox:"Flexbox & Grid",gradient:"Gradient"},iv=["sizing","typography","color","flexbox","borders","effects","layout"],sc=Oh(),sv=Lh(),qd=Ah(),uv={"text-size":{themeKey:"fontSize",valueType:"scalar"},"text-color":{themeKey:"colors",valueType:"color"}};qd.typography.unshift({name:"Font size",prefixHint:"text-sm/base/lg/…",prefix:"text-size"},{name:"Text color",prefixHint:"text-{color}",prefix:"text-color"});function Mo(e){const t=uv[e];if(t)return{...t,stagingKey:e};const n=Object.entries(Je).find(([o,l])=>(l.propertyKey??o.replace(/-$/g,""))===e&&l.addable);if(n){const[o,l]=n;return{themeKey:l.themeKey,valueType:l.valueType,enumAlts:l.enumAlts,stagingKey:e}}const r=Je[e];return r?{themeKey:r.themeKey,valueType:r.valueType,enumAlts:r.enumAlts,stagingKey:e.replace(/-$/g,"")}:null}function av(e,t,n,r){const o=new Set(t.map(i=>i.fullClass)),l=new Set(t.map(i=>i.prefix));return e.filter(i=>{if(n.has(i.prefix)||r!=null&&r.has(i.prefix))return!1;const s=Mo(i.prefix);if((s==null?void 0:s.valueType)==="enum"&&s.enumAlts)return!s.enumAlts.some(u=>o.has(u));if(s&&s.valueType!=="enum"){if(i.prefix==="text-size")return!t.some(u=>u.prefix==="text-"&&u.themeKey==="fontSize");if(i.prefix==="text-color")return!t.some(u=>u.prefix==="text-"&&u.themeKey==="colors")}return!l.has(i.prefix)})}function cv(e){const t=new Map;for(const n of e){const r=t.get(n.category)||[];r.push(n),t.set(n.category,r)}return t}function fv({componentName:e,instanceCount:t,parsedClasses:n,tailwindConfig:r,patchManager:o}){var Sn,bn;const[l,i]=S.useState(null),[s,u]=S.useState(new Map),[a,c]=S.useState(null),[d,p]=S.useState(null),v=S.useRef(null),{refs:x,floatingStyles:w,context:b}=Ts({open:a!==null,onOpenChange:O=>{O||(c(null),o.revertPreview())},strategy:"fixed",placement:"bottom-start",middleware:[ws(4),bs(),Ss({padding:8}),ks({apply({availableHeight:O,elements:H}){Object.assign(H.floating.style,{maxHeight:`${O}px`})},padding:8})],whileElementsMounted:xs}),m=Es(b),{getFloatingProps:f}=Rs([m]);S.useEffect(()=>{a!=null&&a.anchorEl&&x.setReference(a.anchorEl)},[a==null?void 0:a.anchorEl]);const{refs:h,floatingStyles:g,context:C}=Ts({open:d!==null,onOpenChange:O=>{O||(p(null),o.revertPreview())},strategy:"fixed",placement:"bottom-start",middleware:[ws(4),bs(),Ss({padding:8}),ks({apply({availableHeight:O,elements:H}){Object.assign(H.floating.style,{maxHeight:`${O}px`})},padding:8})],whileElementsMounted:xs}),E=Es(C),{getFloatingProps:k}=Rs([E]);S.useEffect(()=>{d!=null&&d.anchorEl&&h.setReference(d.anchorEl)},[d==null?void 0:d.anchorEl]);const[R,I]=S.useState(new Set),P=S.useRef(n.map(O=>O.fullClass).join(" ")),K=n.map(O=>O.fullClass).join(" ");S.useEffect(()=>{P.current!==K&&(P.current=K,o.revertPreview(),u(new Map),c(null),p(null),I(new Set))});const $=e,j=o.patches.filter(O=>O.status==="staged"),D=new Set(j.filter(O=>O.originalClass==="").map(O=>O.property));function Y(O){return s.size===0?O:O.map(H=>{const Q=s.get(`${H.layer}-shorthand`),Z=H.slots.map(F=>{const B=s.get(`${H.layer}-${F.key}`);return B!==void 0?{...F,value:B}:F}),te=Q??H.shorthandValue;let oe=H.classState;return Q!==void 0&&(oe=Z.some(B=>B.value!=null)?"mixed":"shorthand"),{...H,shorthandValue:te,classState:oe,slots:Z}})}const M=cv(n);function X(O,H){o.preview(O,H)}function T(){o.revertPreview()}function L(O,H,Q){o.stage($,O,H,Q)}function _(O,H){const Q=O||H,Z=Q.startsWith("bg-gradient-to-")?"bg-gradient-to-":Q.startsWith("from-")?"from-":Q.startsWith("via-")?"via-":Q.startsWith("to-")?"to-":"bg-";L(Z,O,H)}function V(O,H){o.revertPreview(),me("overlay",{type:"CLEAR_HIGHLIGHTS"}),O.valueType==="color"&&H?(p(Q=>(Q==null?void 0:Q.cls.fullClass)===O.fullClass?null:{cls:O,anchorEl:H}),i(null)):(p(null),i(O))}function q(O,H){o.preview(O.fullClass,H)}function Re(O){o.revertPreview()}function be(O){I(H=>new Set(H).add(O))}function se(O,H){o.preview("",H)}function ue(O){o.revertPreview()}function ke(O,H){const Q=Mo(O);o.stage($,(Q==null?void 0:Q.stagingKey)??O,"",H),I(Z=>{const te=new Set(Z);return te.delete(O),te})}return y.jsxs("div",{className:"p-3",children:[y.jsxs("div",{className:"mt-3 mb-1 flex items-center gap-1.5",children:[y.jsx("span",{className:"w-[5px] h-[5px] rounded-full bg-bv-teal opacity-50 shrink-0"}),y.jsx("span",{className:"text-[9px] font-semibold uppercase tracking-[1px] text-bv-text-mid",children:"Box Model"})]}),y.jsxs("div",{className:"mb-4",children:[y.jsx(Bg,{layers:Y(En(n,r)),onEditStart:()=>{me("overlay",{type:"CLEAR_HIGHLIGHTS"}),c(null)},onSlotClick:(O,H,Q)=>{var B;if(H!=="color"||!Q){c(null);return}const Z=En(n,r).find(N=>N.layer===O),te=`${O}-color`,oe=s.get(te)??((B=Z==null?void 0:Z.slots.find(N=>N.key==="color"))==null?void 0:B.value)??"",F=O==="outline"?"outline-":"border-";c(N=>(N==null?void 0:N.layer)===O?null:{layer:O,prefix:F,currentClass:oe,staged:!1,anchorEl:Q})},onSlotHover:(O,H,Q)=>{var Z;if(Q===null)o.revertPreview();else{const te=`${O}-${H}`,oe=En(n,r).find(B=>B.layer===O),F=H==="shorthand"?s.get(te)??(oe==null?void 0:oe.shorthandValue):s.get(te)??((Z=oe==null?void 0:oe.slots.find(B=>B.key===H))==null?void 0:Z.value);o.preview(F??"",Q)}},onSlotChange:(O,H,Q)=>{var F;const Z=`${O}-${H}`,te=En(n,r).find(B=>B.layer===O),oe=H==="shorthand"?s.get(Z)??(te==null?void 0:te.shorthandValue):s.get(Z)??((F=te==null?void 0:te.slots.find(B=>B.key===H))==null?void 0:F.value);L(`${O}-${H}`,oe??"",Q),u(B=>new Map(B).set(Z,Q))},onSlotRemoveHover:(O,H)=>{var oe;const Q=`${O}-${H}`,Z=En(n,r).find(F=>F.layer===O),te=H==="shorthand"?s.get(Q)??(Z==null?void 0:Z.shorthandValue):s.get(Q)??((oe=Z==null?void 0:Z.slots.find(F=>F.key===H))==null?void 0:oe.value);te&&o.preview(te,"")},onSlotRemove:(O,H)=>{var oe;const Q=`${O}-${H}`,Z=En(n,r).find(F=>F.layer===O),te=H==="shorthand"?s.get(Q)??(Z==null?void 0:Z.shorthandValue):s.get(Q)??((oe=Z==null?void 0:Z.slots.find(F=>F.key===H))==null?void 0:oe.value);te&&(L(`${O}-${H}`,te,""),u(F=>{const B=new Map(F);return B.delete(Q),B}))}}),a&&y.jsx(Cs,{children:y.jsx("div",{ref:x.setFloating,style:{...w,zIndex:9999,overflowY:"auto"},...f(),children:y.jsx(js,{prefix:a.prefix,currentValue:a.currentClass.startsWith(a.prefix)?a.currentClass.slice(a.prefix.length):"",colors:(r==null?void 0:r.colors)||{},locked:!1,lockedValue:((Sn=j.find(O=>O.property===a.prefix))==null?void 0:Sn.newClass)??null,onHover:O=>{v.current=O,o.preview(a.currentClass,O)},onLeave:()=>{a.staged&&v.current?(o.preview(v.current,a.currentClass),v.current=null):o.revertPreview()},onClick:O=>{const H=`${a.layer}-color`;L(a.prefix,a.currentClass,O),u(Q=>new Map(Q).set(H,O)),c(Q=>Q?{...Q,currentClass:O,staged:!0}:null)}})})})]}),d&&y.jsx(Cs,{children:y.jsx("div",{ref:h.setFloating,style:{...g,zIndex:9999,overflowY:"auto"},...k(),children:y.jsx(js,{prefix:d.cls.prefix,currentValue:d.cls.value,colors:(r==null?void 0:r.colors)||{},locked:!1,lockedValue:((bn=j.find(O=>O.property===d.cls.prefix))==null?void 0:bn.newClass)??null,onHover:O=>X(d.cls.fullClass,O),onLeave:T,onClick:O=>L(d.cls.prefix,d.cls.fullClass,O),onRemoveHover:()=>X(d.cls.fullClass,""),onRemove:()=>{L(d.cls.prefix,d.cls.fullClass,""),p(null)}})})}),iv.map(O=>{const Q=(M.get(O)||[]).filter(N=>!sc.has(N.prefix)&&!sc.has(N.fullClass)),Z=qd[O]||[],te=av(Z,Q,R,D),oe=Z.filter(N=>R.has(N.prefix)).map(N=>N.prefix),F=Z.filter(N=>D.has(N.prefix)).map(N=>N.prefix),B=O==="color"?!1:Q.length===0&&oe.length===0&&F.length===0;return y.jsxs(Yg,{label:lv[O],availableProperties:te,onAddProperty:be,isEmpty:B,children:[O==="color"&&y.jsx(rv,{...ov(n,(r==null?void 0:r.colors)||{},j.filter(N=>N.elementKey===$)),onPreview:X,onPreviewBatch:N=>o.previewBatch(N),onRevert:T,onStage:_}),Q.map(N=>{var W,G;if(N.valueType==="scalar"){const U=gi(N.prefix,N.themeKey,r);if(U.length>0){const rt=((W=j.find(ot=>ot.property===N.prefix))==null?void 0:W.newClass)??null;return y.jsx(Cn,{values:U,currentValue:N.fullClass,lockedValue:rt,locked:!1,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:ot=>q(N,ot),onLeave:()=>Re(),onClick:ot=>L(N.prefix,N.fullClass,ot),onRemoveHover:()=>o.preview(N.fullClass,""),onRemove:()=>L(N.prefix,N.fullClass,"")},N.fullClass)}}if(N.valueType==="enum"){const U=sv[N.fullClass];if(U){const rt=((G=j.find(ot=>ot.property===U.propertyKey))==null?void 0:G.newClass)??null;return y.jsx(Cn,{values:U.alternatives,currentValue:N.fullClass,lockedValue:rt,locked:!1,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:ot=>q(N,ot),onLeave:()=>Re(),onClick:ot=>L(U.propertyKey,N.fullClass,ot),onRemoveHover:()=>o.preview(N.fullClass,""),onRemove:()=>L(U.propertyKey,N.fullClass,"")},N.fullClass)}}return y.jsxs("div",{className:`group flex items-center gap-1 px-2 py-0.5 rounded cursor-pointer text-[11px] font-mono border transition-colors ${(l==null?void 0:l.fullClass)===N.fullClass||(d==null?void 0:d.cls.fullClass)===N.fullClass?"border-bv-border bg-bv-surface-hi text-bv-text":"bg-bv-surface text-bv-text-mid border-transparent hover:border-bv-teal hover:text-bv-teal"}`,onClick:U=>V(N,U.currentTarget),children:[N.fullClass,y.jsx("span",{className:"opacity-0 group-hover:opacity-60 hover:!opacity-100 ml-0.5 shrink-0",title:"Remove class",onClick:U=>{U.stopPropagation(),L(N.prefix,N.fullClass,"")},onMouseEnter:U=>{U.stopPropagation(),o.preview(N.fullClass,"")},onMouseLeave:U=>{U.stopPropagation(),o.revertPreview()},children:y.jsxs("svg",{viewBox:"0 0 10 10",width:"8",height:"8",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("line",{x1:"1",y1:"1",x2:"9",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"}),y.jsx("line",{x1:"9",y1:"1",x2:"1",y2:"9",stroke:"#F5532D",strokeWidth:"1.8",strokeLinecap:"round"})]})})]},N.fullClass)}),F.map(N=>{const W=Mo(N);if(!W)return null;if(W.valueType==="scalar"){const G=gi(N,W.themeKey,r);if(G.length===0)return null;const U=j.find(rt=>rt.property===W.stagingKey);return y.jsx(Cn,{values:G,currentValue:(U==null?void 0:U.newClass)??G[Math.floor(G.length/2)],lockedValue:(U==null?void 0:U.newClass)??null,locked:!1,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:rt=>se(N,rt),onLeave:()=>ue(),onClick:rt=>ke(N,rt)},`staged-${N}`)}if(W.valueType==="enum"&&W.enumAlts){const G=j.find(U=>U.property===W.stagingKey);return y.jsx(Cn,{values:W.enumAlts,currentValue:(G==null?void 0:G.newClass)??W.enumAlts[0],lockedValue:(G==null?void 0:G.newClass)??null,locked:!1,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:U=>se(N,U),onLeave:()=>ue(),onClick:U=>ke(N,U)},`staged-${N}`)}return null}),oe.map(N=>{const W=Mo(N);if(!W)return null;if(W.valueType==="scalar"){const G=gi(N,W.themeKey,r);if(G.length>0)return y.jsx(Cn,{values:G,currentValue:G[Math.floor(G.length/2)],lockedValue:null,locked:!1,ghost:!0,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:U=>se(N,U),onLeave:()=>ue(),onClick:U=>ke(N,U)},`pending-${N}`)}return W.valueType==="enum"&&W.enumAlts?y.jsx(Cn,{values:W.enumAlts,currentValue:W.enumAlts[0],lockedValue:null,locked:!1,ghost:!0,onStart:()=>me("overlay",{type:"CLEAR_HIGHLIGHTS"}),onHover:G=>se(N,G),onLeave:()=>ue(),onClick:G=>ke(N,G)},`pending-${N}`):W.valueType==="color"?y.jsxs("div",{"data-testid":`pending-ghost-${N}`,className:"px-2 py-0.5 rounded cursor-pointer text-[11px] font-mono border border-dashed border-bv-border text-bv-muted hover:border-bv-teal hover:text-bv-teal transition-colors",onClick:G=>{p({cls:{category:"typography",valueType:"color",prefix:"text-",value:"",fullClass:"",themeKey:"colors"},anchorEl:G.currentTarget}),i(null)},children:[N==="text-color"?"text-":N,"color"]},`pending-${N}`):null})]},O)})]})}function dv(){const[e,t]=S.useState([]),[n,r]=S.useState({draft:0,committed:0,implementing:0,implemented:0,partial:0,error:0}),[o,l]=S.useState({draft:[],commits:[]}),[i,s]=S.useState(!1),u=S.useRef(e);u.current=e;const a=S.useRef(o);a.current=o;const c=S.useCallback((k,R)=>{me("overlay",{type:"PATCH_PREVIEW",oldClass:k,newClass:R})},[]),d=S.useCallback(k=>{me("overlay",{type:"PATCH_PREVIEW_BATCH",pairs:k})},[]),p=S.useCallback(()=>{me("overlay",{type:"PATCH_REVERT"})},[]),v=S.useCallback((k,R,I,P)=>{if(P===I){t($=>$.filter(j=>!(j.kind==="class-change"&&j.elementKey===k&&j.property===R))),me("overlay",{type:"PATCH_REVERT"});return}const K=crypto.randomUUID();t($=>{const j=$.filter(Y=>!(Y.kind==="class-change"&&Y.elementKey===k&&Y.property===R)),D={id:K,kind:"class-change",elementKey:k,status:"staged",originalClass:I,newClass:P,property:R,timestamp:new Date().toISOString()};return[...j,D]}),me("overlay",{type:"PATCH_STAGE",id:K,oldClass:I,newClass:P,property:R})},[]),x=S.useCallback((k,R,I)=>{const P=crypto.randomUUID(),K=I?{name:I}:void 0;t($=>{const j={id:P,kind:"message",elementKey:R,status:"staged",originalClass:"",newClass:"",property:"",timestamp:new Date().toISOString(),message:k,component:K};return[...$,j]}),zn(K?{type:"MESSAGE_STAGE",id:P,message:k,elementKey:R,component:K}:{type:"MESSAGE_STAGE",id:P,message:k,elementKey:R})},[]),w=S.useCallback(()=>{const k=a.current.draft.map(P=>P.id),R=u.current.filter(P=>P.status==="staged").map(P=>P.id),I=Array.from(new Set([...k,...R]));I.length!==0&&(zn({type:"PATCH_COMMIT",ids:I}),t([]))},[]),b=S.useCallback(k=>{t(R=>R.filter(I=>I.id!==k)),zn({type:"DISCARD_DRAFTS",ids:[k]}),me("overlay",{type:"PATCH_REVERT"})},[]),m=S.useCallback(()=>{const k=a.current.draft.map(P=>P.id),R=u.current.filter(P=>P.status==="staged").map(P=>P.id),I=Array.from(new Set([...k,...R]));t([]),I.length>0&&zn({type:"DISCARD_DRAFTS",ids:I}),me("overlay",{type:"PATCH_REVERT"})},[]),f=S.useCallback(()=>{},[]),h=S.useCallback(k=>{r({draft:k.draftCount,committed:k.committedCount,implementing:k.implementingCount,implemented:k.implementedCount,partial:k.partialCount,error:k.errorCount}),l({draft:k.draft,commits:k.commits}),s(!!k.agentWaiting)},[]),g=S.useCallback(k=>{r({draft:k.staged,committed:k.committed,implementing:k.implementing,implemented:k.implemented,partial:0,error:0})},[]),C=e.filter(k=>k.status==="staged").length,E={draft:Math.max(C,n.draft),committed:n.committed,implementing:n.implementing,implemented:n.implemented,partial:n.partial,error:n.error};return{patches:e,counts:E,queueState:o,agentWaiting:i,preview:c,previewBatch:d,revertPreview:p,stage:v,stageMessage:x,commitAll:w,discard:b,discardAll:m,reset:f,handleQueueUpdate:h,handlePatchUpdate:g}}function wo({label:e,count:t,items:n,activeColor:r,onCommit:o,onDiscard:l,onCommitAll:i,onDiscardAll:s}){const[u,a]=S.useState(!1),c=S.useRef(null),d=S.useRef(null),[p,v]=S.useState(void 0);S.useEffect(()=>{if(!u||!d.current)return;const m=d.current.getBoundingClientRect(),f=220,h=window.innerWidth,g=4;let C=m.left+m.width/2-f/2;C=Math.max(g,Math.min(C,h-f-g)),v(C-m.left)},[u]),S.useEffect(()=>{if(!u)return;function b(m){c.current&&!c.current.contains(m.target)&&a(!1)}return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[u]),S.useEffect(()=>{if(!u)return;function b(m){m.key==="Escape"&&a(!1)}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[u]);const x=t>0,w=o||l||i||s;return y.jsxs("div",{ref:c,className:"relative",children:[y.jsxs("button",{ref:d,className:`text-[11px] tabular-nums border-none bg-transparent cursor-pointer px-0 py-0 ${x?`${r} font-medium`:"text-bv-muted"} ${x?"hover:underline":""}`,onClick:()=>x&&a(!u),disabled:!x,type:"button",children:[t," ",e]}),u&&y.jsxs("div",{className:"absolute bottom-full mb-1 min-w-[220px] bg-bv-surface border border-bv-border rounded-lg shadow-lg overflow-hidden flex flex-col z-[9999]",style:p!==void 0?{left:`${p}px`}:void 0,children:[y.jsxs("div",{className:"px-3 py-1.5 border-b border-bv-border text-[11px] font-semibold text-bv-text-mid uppercase tracking-wide",children:[e," (",t,")"]}),y.jsx("div",{className:"flex-1 overflow-auto",children:n.length===0?y.jsx("div",{className:"px-3 py-2 text-[11px] text-bv-muted italic",children:"No patches"}):n.map(b=>{var h,g;const m="kind"in b&&b.kind==="message",f="kind"in b&&b.kind==="design";return y.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-b border-bv-border last:border-b-0 group",children:[y.jsxs("div",{className:"flex-1 min-w-0",children:[!m&&!f&&((h=b.component)==null?void 0:h.name)&&y.jsx("div",{className:"text-[10px] text-bv-muted truncate",children:b.component.name}),f?y.jsxs("div",{className:"text-[11px] text-bv-text",children:[y.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[y.jsx("span",{children:"✏️"}),y.jsxs("span",{className:"truncate",children:["Drawing",(g=b.component)!=null&&g.name?` in ${b.component.name}`:""]})]}),"image"in b&&b.image&&y.jsx("img",{src:b.image,alt:"Design drawing",className:"w-full max-h-16 object-contain rounded border border-bv-border bg-white"})]}):m?y.jsxs("div",{className:"text-[11px] text-bv-text truncate",children:[y.jsx("span",{className:"mr-1",children:"💬"}),'"',"message"in b&&b.message||"",'"']}):y.jsx("div",{className:"text-[11px] font-mono text-bv-text truncate",children:b.originalClass?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"line-through text-bv-muted",children:b.originalClass})," → ",y.jsx("span",{className:"text-bv-teal",children:b.newClass})]}):y.jsxs("span",{className:"text-bv-teal",children:["+",b.newClass]})})]}),(o||l)&&y.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:[o&&y.jsx("button",{className:"text-[10px] px-1.5 py-0.5 rounded border-none cursor-pointer bg-bv-teal text-white hover:bg-bv-teal-dark transition-colors",onClick:C=>{C.stopPropagation(),o(b.id)},title:"Commit to Agent",type:"button",children:"✓"}),l&&y.jsx("button",{className:"text-[10px] px-1.5 py-0.5 rounded border-none cursor-pointer bg-transparent text-bv-muted hover:text-bv-orange hover:bg-bv-surface-hi transition-colors",onClick:C=>{C.stopPropagation(),l(b.id)},title:"Discard",type:"button",children:"✕"})]})]},b.id)})}),w&&n.length>0&&(i||s)&&y.jsxs("div",{className:"flex gap-2 px-3 py-1.5 border-t border-bv-border",children:[i&&y.jsx("button",{className:"text-[10px] px-2 py-1 rounded border-none cursor-pointer font-semibold bg-bv-teal text-white hover:bg-bv-teal-dark transition-colors",onClick:()=>{i(),a(!1)},type:"button",children:"Commit All"}),s&&y.jsx("button",{className:"text-[10px] px-2 py-1 rounded cursor-pointer font-semibold bg-transparent border border-bv-border text-bv-text-mid hover:text-bv-orange hover:border-bv-orange transition-colors",onClick:()=>{s(),a(!1)},type:"button",children:"Discard All"})]})]})]})}function uc({tabs:e,activeTab:t,onTabChange:n}){const[r,o]=S.useState(null);return y.jsx("div",{className:"relative flex border-b border-bv-border px-3",children:e.map(l=>{const i=l.id===t,s=l.disabled===!0;return y.jsxs("div",{className:"relative",onMouseEnter:()=>s&&l.tooltip&&o(l.id),onMouseLeave:()=>o(null),children:[y.jsxs("button",{type:"button",className:`relative px-3 py-2 text-[12px] font-medium font-[family-name:var(--font-ui)] border-none bg-transparent cursor-pointer transition-colors ${s?"text-bv-muted cursor-not-allowed":i?"text-bv-text":"text-bv-text-mid hover:text-bv-text"}`,disabled:s,onClick:()=>!s&&n(l.id),"aria-selected":i,role:"tab",children:[l.label,i&&y.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-bv-teal"})]}),r===l.id&&l.tooltip&&y.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-1 px-2 py-1 text-[10px] text-white bg-bv-text rounded whitespace-nowrap z-[9999]",children:l.tooltip})]},l.id)})})}const xi=typeof window<"u"?window.SpeechRecognition??window.webkitSpeechRecognition??null:null;function ac({draft:e,currentElementKey:t,onAddMessage:n,onDiscard:r}){const[o,l]=S.useState(""),[i,s]=S.useState(!1),[u,a]=S.useState(null),c=S.useRef(null),d=S.useRef(null),p=S.useRef("");S.useEffect(()=>{var f;(f=c.current)==null||f.focus()},[]);const v=e.filter(f=>f.kind==="message"),x=!!o.trim()&&!!t;function w(){var h;const f=o.trim();!f||!t||(n(f,t),l(""),(h=c.current)==null||h.focus())}function b(){var h;if(i){(h=d.current)==null||h.stop();return}if(!xi)return;p.current=o;const f=new xi;f.continuous=!1,f.interimResults=!0,f.lang="en-US",f.onresult=g=>{let C="";for(let k=0;k<g.results.length;k++)C+=g.results[k][0].transcript;const E=p.current.trimEnd();l(E?`${E} ${C}`:C)},f.onend=()=>s(!1),f.onerror=g=>{console.error("[mic] SpeechRecognition error:",g.error,g.message),s(!1),g.error==="not-allowed"&&a("Microphone blocked — allow access in your browser's address bar, then reload.")},d.current=f;try{f.start(),s(!0),console.log("[mic] recognition started")}catch(g){console.error("[mic] recognition.start() threw:",g)}}function m(f){(f.metaKey||f.ctrlKey)&&f.key==="Enter"&&(f.preventDefault(),w())}return y.jsxs("div",{className:"p-3 flex flex-col gap-3",children:[y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("textarea",{ref:c,className:"w-full min-h-[80px] p-2 bg-bv-bg border border-bv-border rounded text-[13px] font-[family-name:var(--font-ui)] text-bv-text placeholder:text-bv-muted resize-y focus:outline-none focus:border-bv-teal",placeholder:t?"Add context for the AI agent…":"Select an element to add contextual message…",value:o,onChange:f=>l(f.target.value),onKeyDown:m,disabled:!t}),y.jsxs("div",{className:"flex items-center justify-between",children:[xi?y.jsx("button",{type:"button",title:i?"Stop recording":"Record voice message",onClick:b,className:`flex items-center justify-center w-7 h-7 rounded-full border-none cursor-pointer transition-colors ${i?"bg-bv-orange text-white":u?"bg-bv-surface text-bv-orange hover:bg-bv-surface-hi":"bg-bv-surface text-bv-text-mid hover:text-bv-teal hover:bg-bv-surface-hi"}`,children:i?y.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-white animate-pulse"}):y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"currentColor",children:y.jsx("path",{d:"M12 1a4 4 0 0 1 4 4v7a4 4 0 0 1-8 0V5a4 4 0 0 1 4-4zm-1.5 4v7a1.5 1.5 0 0 0 3 0V5a1.5 1.5 0 0 0-3 0zM6 11a1 1 0 0 1 1 1 5 5 0 0 0 10 0 1 1 0 1 1 2 0 7 7 0 0 1-6 6.93V21h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2.07A7 7 0 0 1 5 12a1 1 0 0 1 1-1z"})})}):y.jsx("span",{}),y.jsx("button",{type:"button",className:"px-3 py-1 text-[11px] font-semibold rounded bg-bv-teal text-white border-none cursor-pointer hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",disabled:!x,onClick:w,children:"Add Message"})]}),u&&y.jsx("p",{className:"text-[11px] text-bv-orange mt-1",children:u})]}),v.length>0&&y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"w-[5px] h-[5px] rounded-full bg-bv-teal opacity-50 shrink-0"}),y.jsx("span",{className:"text-[9px] font-semibold uppercase tracking-[1px] text-bv-text-mid",children:"Staged Messages"})]}),v.map(f=>{var h;return y.jsxs("div",{className:"flex items-start gap-2 p-2 bg-bv-surface rounded border border-bv-border group",children:[y.jsx("span",{className:"text-[12px] shrink-0 mt-0.5",children:"💬"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"text-[12px] font-[family-name:var(--font-ui)] text-bv-text break-words",children:['"',f.message,'"']}),f.elementKey&&y.jsx("div",{className:"text-[11px] text-bv-text-mid mt-0.5",children:((h=f.component)==null?void 0:h.name)||f.elementKey})]}),y.jsx("button",{type:"button",className:"shrink-0 text-[10px] px-1 py-0.5 rounded border-none cursor-pointer bg-transparent text-bv-muted hover:text-bv-orange transition-colors opacity-0 group-hover:opacity-100",onClick:()=>r(f.id),title:"Discard",children:"✕"})]},f.id)})]})]})}const Ps=[{name:"popover",label:"Popover",icon:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsx("rect",{x:"1",y:"1",width:"14",height:"14",rx:"1.5",stroke:"currentColor",strokeWidth:"1.1",opacity:"0.3"}),y.jsx("rect",{x:"4",y:"4",width:"8",height:"6",rx:"1",fill:"currentColor"})]})},{name:"sidebar",label:"Sidebar",icon:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsx("rect",{x:"1",y:"1",width:"14",height:"14",rx:"1.5",stroke:"currentColor",strokeWidth:"1.1",opacity:"0.3"}),y.jsx("rect",{x:"9",y:"1",width:"6",height:"14",rx:"1.5",fill:"currentColor",opacity:"0.85"})]})},{name:"modal",label:"Modal",icon:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsx("rect",{x:"1",y:"1",width:"14",height:"14",rx:"1.5",fill:"currentColor",opacity:"0.12"}),y.jsx("rect",{x:"3",y:"4",width:"10",height:"8",rx:"1",fill:"currentColor",opacity:"0.9"})]})},{name:"popup",label:"Popup",icon:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsx("rect",{x:"1",y:"1",width:"14",height:"14",rx:"1.5",stroke:"currentColor",strokeWidth:"1.1",opacity:"0.3"}),y.jsx("rect",{x:"8",y:"8",width:"7",height:"7",rx:"1",fill:"currentColor",opacity:"0.85"})]})}],ep="tw-panel-container";function pv(){try{const e=localStorage.getItem(ep);if(e&&Ps.some(t=>t.name===e))return e}catch{}return"popover"}function cc(){const[e,t]=S.useState(pv),[n,r]=S.useState(!1),o=S.useRef(null);S.useEffect(()=>{function s(u){o.current&&!o.current.contains(u.target)&&r(!1)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]);function l(s){if(s!==e){try{localStorage.setItem(ep,s)}catch{}t(s),me("overlay",{type:"SWITCH_CONTAINER",container:s})}r(!1)}const i=Ps.find(s=>s.name===e);return y.jsxs("div",{ref:o,className:"relative",children:[y.jsx("button",{title:"Change container",onClick:()=>r(s=>!s),className:"w-7 h-7 flex items-center justify-center rounded border border-transparent text-bv-text-mid bg-transparent cursor-pointer transition-colors hover:bg-bv-surface hover:border-bv-border hover:text-bv-text",children:i.icon}),n&&y.jsxs("div",{className:"absolute top-[calc(100%+4px)] right-0 bg-white border border-bv-border rounded-lg shadow-[0_4px_16px_rgba(0,0,0,0.12)] p-1.5 flex flex-col gap-px min-w-[148px] z-50",children:[y.jsx("div",{className:"text-[9px] font-semibold uppercase tracking-[0.8px] text-bv-muted px-2 pt-1 pb-1.5",children:"Container"}),Ps.map(s=>y.jsxs("button",{onClick:()=>l(s.name),className:`flex items-center gap-2 px-2 py-1.5 rounded text-[12px] cursor-pointer border-none w-full text-left transition-colors ${s.name===e?"bg-bv-teal/9 text-bv-teal":"bg-transparent text-bv-text-mid hover:bg-bv-surface hover:text-bv-text"}`,children:[s.icon,s.label]},s.name)),y.jsx("div",{className:"h-px bg-bv-border mx-1 my-1"}),y.jsxs("button",{onClick:()=>{r(!1),me("overlay",{type:"CLOSE_PANEL"})},className:"flex items-center gap-2 px-2 py-1.5 rounded text-[12px] cursor-pointer border-none w-full text-left transition-colors bg-transparent text-bv-text-mid hover:bg-bv-surface hover:text-bv-text",children:[y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),y.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),"Close panel"]})]})]})}const mv=S.lazy(()=>Ph(()=>import("./DesignMode-BvwXaVHr.js"),[]).then(e=>({default:e.DesignMode}))),hv=new URLSearchParams(window.location.search),yv=hv.get("mode"),fc=[{id:"design",label:"Design"},{id:"message",label:"Message"}];function gv(){return yv==="design"?y.jsx(S.Suspense,{fallback:null,children:y.jsx(mv,{})}):y.jsx(vv,{})}function vv(){const[e,t]=S.useState(!1),[n,r]=S.useState(null),[o,l]=S.useState(0),[i,s]=S.useState("design"),[u,a]=S.useState(!1),c=dv();S.useEffect(()=>{const j=Uh(()=>{t(!0);try{const M=localStorage.getItem("tw-panel-container");M&&M!=="popover"&&me("overlay",{type:"SWITCH_CONTAINER",container:M})}catch{}}),D=Gh(()=>t(!1)),Y=Hh(M=>{M.type==="ELEMENT_SELECTED"?(r({componentName:M.componentName,instanceCount:M.instanceCount,classes:M.classes,tailwindConfig:M.tailwindConfig}),l(X=>X+1),a(!1)):M.type==="SELECT_MODE_CHANGED"?a(!!M.active):M.type==="QUEUE_UPDATE"?c.handleQueueUpdate({draftCount:M.draftCount,committedCount:M.committedCount,implementingCount:M.implementingCount,implementedCount:M.implementedCount,partialCount:M.partialCount,errorCount:M.errorCount,draft:M.draft,commits:M.commits,agentWaiting:M.agentWaiting}):M.type==="PATCH_UPDATE"&&c.handlePatchUpdate({staged:M.staged,committed:M.committed,implementing:M.implementing,implemented:M.implemented,patches:M.patches})});return jd(),t(Qh()),()=>{j(),D(),Y()}},[]);const{draft:d,committed:p,implementing:v,implemented:x,partial:w,error:b}=c.counts,m=p>0&&!c.agentWaiting&&v===0,f=new Map(c.patches.filter(j=>j.status==="staged").map(j=>[j.id,{id:j.id,kind:j.kind??"class-change",elementKey:j.elementKey,status:j.status,originalClass:j.originalClass,newClass:j.newClass,property:j.property,timestamp:j.timestamp,component:j.component,message:j.message,image:j.image}])),h=new Set(c.queueState.draft.map(j=>j.id)),g=[...c.queueState.draft.map(j=>f.get(j.id)??j),...c.patches.filter(j=>j.status==="staged"&&!h.has(j.id)).map(j=>f.get(j.id))],C=c.queueState.commits.filter(j=>j.status==="committed"),E=c.queueState.commits.filter(j=>j.status==="implementing"),k=c.queueState.commits.filter(j=>j.status==="implemented"),R="Please implement the next change and continue implementing changes with VyBit.";async function I(j){if(navigator.clipboard){try{if((await navigator.permissions.query({name:"clipboard-write"})).state==="denied"){P(j);return}}catch{}navigator.clipboard.writeText(j).catch(()=>P(j))}else P(j)}function P(j){const D=document.createElement("textarea");D.value=j,D.style.position="fixed",D.style.opacity="0",document.body.appendChild(D),D.select(),document.execCommand("copy"),document.body.removeChild(D)}const K=y.jsxs("div",{className:"shrink-0",children:[m&&y.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-amber-50 border-t border-amber-200 text-amber-700 text-[10px] font-medium",children:[y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"currentColor",className:"shrink-0 text-amber-500",children:y.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.19-1.458-1.516-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),y.jsxs("span",{className:"flex-1 leading-tight",children:["No agent watching —"," ",y.jsx("a",{href:"https://github.com/bitovi/vybit?tab=readme-ov-file#telling-your-agent-to-start-making-features",target:"_blank",rel:"noreferrer",className:"underline hover:text-amber-900",children:"ask your agent"})," ","to start"]}),y.jsx("button",{onClick:()=>I(R),className:"shrink-0 px-1.5 py-0.5 rounded border border-amber-300 bg-amber-100 hover:bg-amber-200 text-amber-700 font-semibold text-[9px] transition-colors",title:`Copy: "${R}"`,children:"Copy prompt"})]}),y.jsxs("div",{className:"flex items-center justify-center px-3 py-1.5 border-t border-bv-border gap-2.5",children:[y.jsx(wo,{label:"draft",count:d,items:g,activeColor:"text-bv-text",onDiscard:j=>c.discard(j),onCommitAll:()=>c.commitAll(),onDiscardAll:()=>c.discardAll()}),y.jsx("span",{className:"text-bv-border text-[11px]",children:"·"}),y.jsx(wo,{label:"committed",count:p,items:C.flatMap(j=>j.patches),activeColor:"text-bv-orange"}),y.jsx("span",{className:"text-bv-border text-[11px]",children:"·"}),y.jsx(wo,{label:"implementing",count:v,items:E.flatMap(j=>j.patches),activeColor:"text-bv-orange"}),y.jsx("span",{className:"text-bv-border text-[11px]",children:"·"}),y.jsx(wo,{label:"implemented",count:x,items:k.flatMap(j=>j.patches),activeColor:"text-bv-teal"})]})]});if(!e)return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 p-6",children:[y.jsx("div",{className:"w-2 h-2 rounded-full bg-bv-orange animate-pulse"}),y.jsx("span",{className:"text-bv-text-mid text-[12px]",children:"Waiting for connection…"})]}),K]});if(!n)return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsx("div",{className:"px-3 pt-3 pb-2 border-b border-bv-border",children:y.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y.jsx(dc,{active:u,onToggle:()=>{const j=!u;a(j),me("overlay",{type:"TOGGLE_SELECT_MODE",active:j})}}),y.jsx("div",{className:"flex-1 min-w-0",children:u?y.jsx("span",{className:"text-[11px] text-bv-teal font-medium",children:"● Selecting… click an element on the page"}):y.jsx("span",{className:"text-[12px] text-bv-muted",children:"No element selected"})}),y.jsx(cc,{})]})}),y.jsx(uc,{tabs:fc,activeTab:i,onTabChange:s}),y.jsx("div",{className:"flex-1 overflow-auto",children:i==="message"?y.jsx(ac,{draft:g,currentElementKey:"",onAddMessage:(j,D)=>c.stageMessage(j,D),onDiscard:j=>c.discard(j)}):u?y.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 p-8",children:[y.jsx("div",{className:"w-10 h-10 rounded-full bg-bv-teal text-white flex items-center justify-center",children:y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:y.jsx("path",{d:"M8 12l2.5 6 1.5-3 3-1.5z"})})}),y.jsx("span",{className:"text-[12px] text-bv-teal font-medium",children:"Selection mode active"}),y.jsxs("span",{className:"text-[10px] text-bv-muted text-center leading-relaxed",children:["Hover over elements on the page to preview, then click to select.",y.jsx("br",{}),"Press ",y.jsx("kbd",{className:"font-mono text-[9px] text-bv-text-mid",children:"Esc"})," to cancel."]})]}):y.jsx("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:y.jsxs("button",{onClick:()=>{a(!0),me("overlay",{type:"TOGGLE_SELECT_MODE",active:!0})},className:"flex flex-col items-center gap-3 px-6 py-5 rounded-lg border border-bv-border bg-bv-surface hover:border-bv-teal hover:bg-bv-teal/5 transition-all cursor-pointer",children:[y.jsx("div",{className:"w-10 h-10 rounded-full bg-bv-teal/10 text-bv-teal flex items-center justify-center",children:y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:y.jsx("path",{d:"M8 12l2.5 6 1.5-3 3-1.5z"})})}),y.jsx("span",{className:"text-[12px] text-bv-text font-medium",children:"Select an element to inspect"}),y.jsxs("span",{className:"text-[10px] text-bv-muted",children:["or press ",y.jsx("kbd",{className:"font-mono text-[9px] text-bv-text-mid font-semibold",children:"⌘⇧C"})]})]})})}),K]});const $=Wh(n.classes);return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsx("div",{className:"px-3 pt-3 pb-2 border-b border-bv-border",children:y.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y.jsx(dc,{active:u,onToggle:()=>{const j=!u;a(j),me("overlay",{type:"TOGGLE_SELECT_MODE",active:j})}}),y.jsxs("div",{className:"font-[family-name:var(--font-display)] font-bold text-[13px] text-bv-text leading-tight truncate",children:[n.componentName," ",y.jsxs("span",{className:"font-[family-name:var(--font-ui)] font-normal text-bv-text-mid",children:["— ",n.instanceCount," instance",n.instanceCount!==1?"s":""]})]})]}),y.jsx(cc,{})]})}),y.jsx(uc,{tabs:fc,activeTab:i,onTabChange:s}),y.jsxs("div",{className:"flex-1 overflow-auto",children:[i==="design"&&y.jsx(fv,{componentName:n.componentName,instanceCount:n.instanceCount,parsedClasses:$,tailwindConfig:n.tailwindConfig,patchManager:c},o),i==="message"&&y.jsx(ac,{draft:g,currentElementKey:n.componentName,onAddMessage:(j,D)=>c.stageMessage(j,D,n.componentName),onDiscard:j=>c.discard(j)})]}),K]})}function dc({active:e,onToggle:t}){return y.jsx("button",{onClick:t,title:`${e?"Stop selecting":"Select an element"} (⌘⇧C)`,className:`w-7 h-7 rounded flex items-center justify-center shrink-0 border transition-all
|
|
49
|
-
${e?"bg-bv-teal border-bv-teal text-white":"bg-transparent border-bv-border text-bv-text-mid hover:border-bv-teal hover:text-bv-teal hover:bg-bv-teal/10"}`,children:y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),y.jsx("path",{d:"M8 12l2.5 6 1.5-3 3-1.5z"})]})})}wi.createRoot(document.getElementById("root")).render(y.jsx(kc.StrictMode,{children:y.jsx(gv,{})}));export{Hh as a,jd as c,y as j,Uh as o,S as r,zn as s};
|