@designtools/codesurface 0.1.3 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -15
- package/dist/cli.js +217 -109
- package/dist/client/assets/index--eM7ukq5.js +284 -0
- package/dist/client/assets/index-1q-WwsbN.css +1 -0
- package/dist/client/assets/index-A_L26x1h.js +164 -0
- package/dist/client/assets/index-B6jN1q8m.js +221 -0
- package/dist/client/assets/index-B7jQZQIh.js +164 -0
- package/dist/client/assets/index-BCq28ejx.js +274 -0
- package/dist/client/assets/index-BSe1-ayg.js +221 -0
- package/dist/client/assets/index-BoqOSsiL.js +164 -0
- package/dist/client/assets/index-BrTweOBw.css +1 -0
- package/dist/client/assets/index-BvlvZBFo.js +164 -0
- package/dist/client/assets/index-C0W09LqU.js +274 -0
- package/dist/client/assets/index-C8zdCN9Y.css +1 -0
- package/dist/client/assets/index-CNoLX-EE.css +1 -0
- package/dist/client/assets/index-CT_MpeRK.css +1 -0
- package/dist/client/assets/index-Caw3C8nD.js +164 -0
- package/dist/client/assets/index-CiJuTDXP.css +1 -0
- package/dist/client/assets/index-D1sfJ6Vs.js +274 -0
- package/dist/client/assets/index-D4qADRtt.js +221 -0
- package/dist/client/assets/index-DLNdLnNZ.css +1 -0
- package/dist/client/assets/index-DOOYG-7t.js +221 -0
- package/dist/client/assets/index-DOo00IKO.js +164 -0
- package/dist/client/assets/index-DT_WVyln.js +274 -0
- package/dist/client/assets/index-Dd5ywdn8.css +1 -0
- package/dist/client/assets/index-DevUtWzq.js +274 -0
- package/dist/client/assets/index-DnmW8VmS.js +274 -0
- package/dist/client/assets/index-Ndu6k3-t.css +1 -0
- package/dist/client/assets/index-WBV2EURP.js +284 -0
- package/dist/client/assets/index-lOuYsLDH.css +1 -0
- package/dist/client/assets/index-nMHvJQPa.css +1 -0
- package/dist/client/assets/index-s0F6GbJf.js +164 -0
- package/dist/client/assets/index-xf9QDxu1.css +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +4 -1
- package/dist/client/assets/index-B5g8qgFW.css +0 -1
- package/dist/client/assets/index-BB9cuIlF.js +0 -111
- package/dist/client/assets/index-BH-ji2K7.js +0 -150
- package/dist/client/assets/index-BH4MtIeE.js +0 -150
- package/dist/client/assets/index-BIpQhd8p.js +0 -150
- package/dist/client/assets/index-BRJOTqhn.js +0 -130
- package/dist/client/assets/index-Bb8QmYLf.css +0 -1
- package/dist/client/assets/index-Bbi0p5WW.js +0 -150
- package/dist/client/assets/index-BdWkGSfZ.js +0 -130
- package/dist/client/assets/index-BnRqJ-Bb.js +0 -150
- package/dist/client/assets/index-BneJISnX.js +0 -150
- package/dist/client/assets/index-C9_QxP1g.css +0 -1
- package/dist/client/assets/index-CBjuhHfq.js +0 -150
- package/dist/client/assets/index-CEFmdeB7.css +0 -1
- package/dist/client/assets/index-CQpCDasO.js +0 -131
- package/dist/client/assets/index-CRUCeIYi.css +0 -1
- package/dist/client/assets/index-CUSGVUIj.js +0 -150
- package/dist/client/assets/index-CZJQ3vJi.js +0 -150
- package/dist/client/assets/index-CdshIoQY.css +0 -1
- package/dist/client/assets/index-Cne4pc0S.css +0 -1
- package/dist/client/assets/index-Cps9lJoI.css +0 -1
- package/dist/client/assets/index-Cs7mKzsY.css +0 -1
- package/dist/client/assets/index-D-bUCwC3.css +0 -1
- package/dist/client/assets/index-D11nArXR.css +0 -1
- package/dist/client/assets/index-D2DhQd-K.js +0 -51
- package/dist/client/assets/index-D3ju6tgw.css +0 -1
- package/dist/client/assets/index-DG2JRz0f.js +0 -150
- package/dist/client/assets/index-DO-UYUx0.js +0 -150
- package/dist/client/assets/index-DOb58Ii1.js +0 -111
- package/dist/client/assets/index-DVd7DS_W.css +0 -1
- package/dist/client/assets/index-DZNHUm4M.js +0 -130
- package/dist/client/assets/index-Di7zgczR.css +0 -1
- package/dist/client/assets/index-DlUCyHdA.css +0 -1
- package/dist/client/assets/index-FTflg87d.js +0 -130
- package/dist/client/assets/index-U5_kmGxX.js +0 -150
- package/dist/client/assets/index-_4EXPfyt.css +0 -1
- package/dist/client/assets/index-gow3pju2.css +0 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
function N6(t,l){for(var o=0;o<l.length;o++){const r=l[o];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in t)){const s=Object.getOwnPropertyDescriptor(r,c);s&&Object.defineProperty(t,c,s.get?s:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const s of c)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const s={};return c.integrity&&(s.integrity=c.integrity),c.referrerPolicy&&(s.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?s.credentials="include":c.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(c){if(c.ep)return;c.ep=!0;const s=o(c);fetch(c.href,s)}})();function Pp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var G1={exports:{}},wr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 a3;function L6(){if(a3)return wr;a3=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,c,s){var f=null;if(s!==void 0&&(f=""+s),c.key!==void 0&&(f=""+c.key),"key"in c){s={};for(var h in c)h!=="key"&&(s[h]=c[h])}else s=c;return c=s.ref,{$$typeof:t,type:r,key:f,ref:c!==void 0?c:null,props:s}}return wr.Fragment=l,wr.jsx=o,wr.jsxs=o,wr}var o3;function O6(){return o3||(o3=1,G1.exports=L6()),G1.exports}var u=O6(),Q1={exports:{}},Sr={},K1={exports:{}},F1={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 r3;function A6(){return r3||(r3=1,(function(t){function l(H,D){var K=H.length;H.push(D);e:for(;0<K;){var se=K-1>>>1,he=H[se];if(0<c(he,D))H[se]=D,H[K]=he,K=se;else break e}}function o(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var D=H[0],K=H.pop();if(K!==D){H[0]=K;e:for(var se=0,he=H.length,L=he>>>1;se<L;){var Y=2*(se+1)-1,te=H[Y],le=Y+1,fe=H[le];if(0>c(te,K))le<he&&0>c(fe,te)?(H[se]=fe,H[le]=K,se=le):(H[se]=te,H[Y]=K,se=Y);else if(le<he&&0>c(fe,K))H[se]=fe,H[le]=K,se=le;else break e}}return D}function c(H,D){var K=H.sortIndex-D.sortIndex;return K!==0?K:H.id-D.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var x=[],m=[],v=1,b=null,C=3,S=!1,M=!1,w=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function O(H){for(var D=o(m);D!==null;){if(D.callback===null)r(m);else if(D.startTime<=H)r(m),D.sortIndex=D.expirationTime,l(x,D);else break;D=o(m)}}function k(H){if(w=!1,O(H),!M)if(o(x)!==null)M=!0,Z||(Z=!0,W());else{var D=o(m);D!==null&&me(k,D.startTime-H)}}var Z=!1,z=-1,J=5,F=-1;function ce(){return E?!0:!(t.unstable_now()-F<J)}function ne(){if(E=!1,Z){var H=t.unstable_now();F=H;var D=!0;try{e:{M=!1,w&&(w=!1,T(z),z=-1),S=!0;var K=C;try{t:{for(O(H),b=o(x);b!==null&&!(b.expirationTime>H&&ce());){var se=b.callback;if(typeof se=="function"){b.callback=null,C=b.priorityLevel;var he=se(b.expirationTime<=H);if(H=t.unstable_now(),typeof he=="function"){b.callback=he,O(H),D=!0;break t}b===o(x)&&r(x),O(H)}else r(x);b=o(x)}if(b!==null)D=!0;else{var L=o(m);L!==null&&me(k,L.startTime-H),D=!1}}break e}finally{b=null,C=K,S=!1}D=void 0}}finally{D?W():Z=!1}}}var W;if(typeof _=="function")W=function(){_(ne)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=ne,W=function(){oe.postMessage(null)}}else W=function(){R(ne,0)};function me(H,D){z=R(function(){H(t.unstable_now())},D)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_next=function(H){switch(C){case 1:case 2:case 3:var D=3;break;default:D=C}var K=C;C=D;try{return H()}finally{C=K}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(H,D){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var K=C;C=H;try{return D()}finally{C=K}},t.unstable_scheduleCallback=function(H,D,K){var se=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?se+K:se):K=se,H){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=K+he,H={id:v++,callback:D,priorityLevel:H,startTime:K,expirationTime:he,sortIndex:-1},K>se?(H.sortIndex=K,l(m,H),o(x)===null&&H===o(m)&&(w?(T(z),z=-1):w=!0,me(k,K-se))):(H.sortIndex=he,l(x,H),M||S||(M=!0,Z||(Z=!0,W()))),H},t.unstable_shouldYield=ce,t.unstable_wrapCallback=function(H){var D=C;return function(){var K=C;C=D;try{return H.apply(this,arguments)}finally{C=K}}}})(F1)),F1}var i3;function z6(){return i3||(i3=1,K1.exports=A6()),K1.exports}var J1={exports:{}},Ce={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var c3;function H6(){if(c3)return Ce;c3=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function S(L){return L===null||typeof L!="object"?null:(L=C&&L[C]||L["@@iterator"],typeof L=="function"?L:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function R(L,Y,te){this.props=L,this.context=Y,this.refs=E,this.updater=te||M}R.prototype.isReactComponent={},R.prototype.setState=function(L,Y){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,Y,"setState")},R.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function T(){}T.prototype=R.prototype;function _(L,Y,te){this.props=L,this.context=Y,this.refs=E,this.updater=te||M}var O=_.prototype=new T;O.constructor=_,w(O,R.prototype),O.isPureReactComponent=!0;var k=Array.isArray;function Z(){}var z={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function F(L,Y,te){var le=te.ref;return{$$typeof:t,type:L,key:Y,ref:le!==void 0?le:null,props:te}}function ce(L,Y){return F(L.type,Y,L.props)}function ne(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function W(L){var Y={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(te){return Y[te]})}var ae=/\/+/g;function oe(L,Y){return typeof L=="object"&&L!==null&&L.key!=null?W(""+L.key):Y.toString(36)}function me(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(Z,Z):(L.status="pending",L.then(function(Y){L.status==="pending"&&(L.status="fulfilled",L.value=Y)},function(Y){L.status==="pending"&&(L.status="rejected",L.reason=Y)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function H(L,Y,te,le,fe){var I=typeof L;(I==="undefined"||I==="boolean")&&(L=null);var Q=!1;if(L===null)Q=!0;else switch(I){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(L.$$typeof){case t:case l:Q=!0;break;case v:return Q=L._init,H(Q(L._payload),Y,te,le,fe)}}if(Q)return fe=fe(L),Q=le===""?"."+oe(L,0):le,k(fe)?(te="",Q!=null&&(te=Q.replace(ae,"$&/")+"/"),H(fe,Y,te,"",function(Ne){return Ne})):fe!=null&&(ne(fe)&&(fe=ce(fe,te+(fe.key==null||L&&L.key===fe.key?"":(""+fe.key).replace(ae,"$&/")+"/")+Q)),Y.push(fe)),1;Q=0;var pe=le===""?".":le+":";if(k(L))for(var ve=0;ve<L.length;ve++)le=L[ve],I=pe+oe(le,ve),Q+=H(le,Y,te,I,fe);else if(ve=S(L),typeof ve=="function")for(L=ve.call(L),ve=0;!(le=L.next()).done;)le=le.value,I=pe+oe(le,ve++),Q+=H(le,Y,te,I,fe);else if(I==="object"){if(typeof L.then=="function")return H(me(L),Y,te,le,fe);throw Y=String(L),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Q}function D(L,Y,te){if(L==null)return L;var le=[],fe=0;return H(L,le,"","",function(I){return Y.call(te,I,fe++)}),le}function K(L){if(L._status===-1){var Y=L._result;Y=Y(),Y.then(function(te){(L._status===0||L._status===-1)&&(L._status=1,L._result=te)},function(te){(L._status===0||L._status===-1)&&(L._status=2,L._result=te)}),L._status===-1&&(L._status=0,L._result=Y)}if(L._status===1)return L._result.default;throw L._result}var se=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},he={map:D,forEach:function(L,Y,te){D(L,function(){Y.apply(this,arguments)},te)},count:function(L){var Y=0;return D(L,function(){Y++}),Y},toArray:function(L){return D(L,function(Y){return Y})||[]},only:function(L){if(!ne(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ce.Activity=b,Ce.Children=he,Ce.Component=R,Ce.Fragment=o,Ce.Profiler=c,Ce.PureComponent=_,Ce.StrictMode=r,Ce.Suspense=x,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(L){return z.H.useMemoCache(L)}},Ce.cache=function(L){return function(){return L.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(L,Y,te){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var le=w({},L.props),fe=L.key;if(Y!=null)for(I in Y.key!==void 0&&(fe=""+Y.key),Y)!J.call(Y,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&Y.ref===void 0||(le[I]=Y[I]);var I=arguments.length-2;if(I===1)le.children=te;else if(1<I){for(var Q=Array(I),pe=0;pe<I;pe++)Q[pe]=arguments[pe+2];le.children=Q}return F(L.type,fe,le)},Ce.createContext=function(L){return L={$$typeof:f,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Ce.createElement=function(L,Y,te){var le,fe={},I=null;if(Y!=null)for(le in Y.key!==void 0&&(I=""+Y.key),Y)J.call(Y,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(fe[le]=Y[le]);var Q=arguments.length-2;if(Q===1)fe.children=te;else if(1<Q){for(var pe=Array(Q),ve=0;ve<Q;ve++)pe[ve]=arguments[ve+2];fe.children=pe}if(L&&L.defaultProps)for(le in Q=L.defaultProps,Q)fe[le]===void 0&&(fe[le]=Q[le]);return F(L,I,fe)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(L){return{$$typeof:h,render:L}},Ce.isValidElement=ne,Ce.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:K}},Ce.memo=function(L,Y){return{$$typeof:m,type:L,compare:Y===void 0?null:Y}},Ce.startTransition=function(L){var Y=z.T,te={};z.T=te;try{var le=L(),fe=z.S;fe!==null&&fe(te,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Z,se)}catch(I){se(I)}finally{Y!==null&&te.types!==null&&(Y.types=te.types),z.T=Y}},Ce.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ce.use=function(L){return z.H.use(L)},Ce.useActionState=function(L,Y,te){return z.H.useActionState(L,Y,te)},Ce.useCallback=function(L,Y){return z.H.useCallback(L,Y)},Ce.useContext=function(L){return z.H.useContext(L)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(L,Y){return z.H.useDeferredValue(L,Y)},Ce.useEffect=function(L,Y){return z.H.useEffect(L,Y)},Ce.useEffectEvent=function(L){return z.H.useEffectEvent(L)},Ce.useId=function(){return z.H.useId()},Ce.useImperativeHandle=function(L,Y,te){return z.H.useImperativeHandle(L,Y,te)},Ce.useInsertionEffect=function(L,Y){return z.H.useInsertionEffect(L,Y)},Ce.useLayoutEffect=function(L,Y){return z.H.useLayoutEffect(L,Y)},Ce.useMemo=function(L,Y){return z.H.useMemo(L,Y)},Ce.useOptimistic=function(L,Y){return z.H.useOptimistic(L,Y)},Ce.useReducer=function(L,Y,te){return z.H.useReducer(L,Y,te)},Ce.useRef=function(L){return z.H.useRef(L)},Ce.useState=function(L){return z.H.useState(L)},Ce.useSyncExternalStore=function(L,Y,te){return z.H.useSyncExternalStore(L,Y,te)},Ce.useTransition=function(){return z.H.useTransition()},Ce.version="19.2.4",Ce}var s3;function gd(){return s3||(s3=1,J1.exports=H6()),J1.exports}var W1={exports:{}},Mt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 u3;function V6(){if(u3)return Mt;u3=1;var t=gd();function l(x){var m="https://react.dev/errors/"+x;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+x+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function s(x,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:x,containerInfo:m,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(x,m){if(x==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Mt.createPortal=function(x,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return s(x,m,null,v)},Mt.flushSync=function(x){var m=f.T,v=r.p;try{if(f.T=null,r.p=2,x)return x()}finally{f.T=m,r.p=v,r.d.f()}},Mt.preconnect=function(x,m){typeof x=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(x,m))},Mt.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},Mt.preinit=function(x,m){if(typeof x=="string"&&m&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(x,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:S}):v==="script"&&r.d.X(x,{crossOrigin:b,integrity:C,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Mt.preinitModule=function(x,m){if(typeof x=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);r.d.M(x,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(x)},Mt.preload=function(x,m){if(typeof x=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin);r.d.L(x,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Mt.preloadModule=function(x,m){if(typeof x=="string")if(m){var v=h(m.as,m.crossOrigin);r.d.m(x,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(x)},Mt.requestFormReset=function(x){r.d.r(x)},Mt.unstable_batchedUpdates=function(x,m){return x(m)},Mt.useFormState=function(x,m,v){return f.H.useFormState(x,m,v)},Mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Mt.version="19.2.4",Mt}var d3;function Yp(){if(d3)return W1.exports;d3=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),W1.exports=V6(),W1.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var f3;function k6(){if(f3)return Sr;f3=1;var t=z6(),l=gd(),o=Yp();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function x(e){if(s(e)!==e)throw Error(r(188))}function m(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,i=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(i=d.return,i!==null){a=i;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return x(d),e;if(p===i)return x(d),n;p=p.sibling}throw Error(r(188))}if(a.return!==i.return)a=d,i=p;else{for(var y=!1,j=d.child;j;){if(j===a){y=!0,a=d,i=p;break}if(j===i){y=!0,i=d,a=p;break}j=j.sibling}if(!y){for(j=p.child;j;){if(j===a){y=!0,a=p,i=d;break}if(j===i){y=!0,i=p,a=d;break}j=j.sibling}if(!y)throw Error(r(189))}}if(a.alternate!==i)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case E:return"StrictMode";case k:return"Suspense";case Z:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case _:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case O:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return n=e.displayName||null,n!==null?n:oe(e.type)||"Memo";case J:n=e._payload,e=e._init;try{return oe(e(n))}catch{}}return null}var me=Array.isArray,H=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},se=[],he=-1;function L(e){return{current:e}}function Y(e){0>he||(e.current=se[he],se[he]=null,he--)}function te(e,n){he++,se[he]=e.current,e.current=n}var le=L(null),fe=L(null),I=L(null),Q=L(null);function pe(e,n){switch(te(I,n),te(fe,e),te(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?T5(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=T5(n),e=R5(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(le),te(le,e)}function ve(){Y(le),Y(fe),Y(I)}function Ne(e){e.memoizedState!==null&&te(Q,e);var n=le.current,a=R5(n,e.type);n!==a&&(te(fe,e),te(le,a))}function Re(e){fe.current===e&&(Y(le),Y(fe)),Q.current===e&&(Y(Q),vr._currentValue=K)}var Le,ht;function nt(e){if(Le===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Le=n&&n[1]||"",ht=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Le+e+ht}var $t=!1;function Jt(e,n){if(!e||$t)return"";$t=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(P){var U=P}Reflect.construct(e,[],G)}else{try{G.call()}catch(P){U=P}e.call(G.prototype)}}else{try{throw Error()}catch(P){U=P}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(P){if(P&&U&&typeof P.stack=="string")return[P.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=i.DetermineComponentFrameRoot(),y=p[0],j=p[1];if(y&&j){var N=y.split(`
|
|
44
|
+
`),B=j.split(`
|
|
45
|
+
`);for(d=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;d<B.length&&!B[d].includes("DetermineComponentFrameRoot");)d++;if(i===N.length||d===B.length)for(i=N.length-1,d=B.length-1;1<=i&&0<=d&&N[i]!==B[d];)d--;for(;1<=i&&0<=d;i--,d--)if(N[i]!==B[d]){if(i!==1||d!==1)do if(i--,d--,0>d||N[i]!==B[d]){var q=`
|
|
46
|
+
`+N[i].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=i&&0<=d);break}}}finally{$t=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nt(a):""}function zn(e,n){switch(e.tag){case 26:case 27:case 5:return nt(e.type);case 16:return nt("Lazy");case 13:return e.child!==n&&n!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return Jt(e.type,!1);case 11:return Jt(e.type.render,!1);case 1:return Jt(e.type,!0);case 31:return nt("Activity");default:return""}}function va(e){try{var n="",a=null;do n+=zn(e,a),a=e,e=e.return;while(e);return n}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var yn=Object.prototype.hasOwnProperty,_o=t.unstable_scheduleCallback,ya=t.unstable_cancelCallback,be=t.unstable_shouldYield,Lt=t.unstable_requestPaint,ut=t.unstable_now,li=t.unstable_getCurrentPriorityLevel,af=t.unstable_ImmediatePriority,of=t.unstable_UserBlockingPriority,ai=t.unstable_NormalPriority,d8=t.unstable_LowPriority,rf=t.unstable_IdlePriority,f8=t.log,p8=t.unstable_setDisableYieldValue,No=null,Bt=null;function al(e){if(typeof f8=="function"&&p8(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(No,e)}catch{}}var Zt=Math.clz32?Math.clz32:m8,h8=Math.log,g8=Math.LN2;function m8(e){return e>>>=0,e===0?32:31-(h8(e)/g8|0)|0}var oi=256,ri=262144,ii=4194304;function Zl(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ci(e,n,a){var i=e.pendingLanes;if(i===0)return 0;var d=0,p=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var j=i&134217727;return j!==0?(i=j&~p,i!==0?d=Zl(i):(y&=j,y!==0?d=Zl(y):a||(a=j&~e,a!==0&&(d=Zl(a))))):(j=i&~p,j!==0?d=Zl(j):y!==0?d=Zl(y):a||(a=i&~e,a!==0&&(d=Zl(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function Lo(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function x8(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cf(){var e=ii;return ii<<=1,(ii&62914560)===0&&(ii=4194304),e}function Hs(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Oo(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function v8(e,n,a,i,d,p){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var j=e.entanglements,N=e.expirationTimes,B=e.hiddenUpdates;for(a=y&~a;0<a;){var q=31-Zt(a),G=1<<q;j[q]=0,N[q]=-1;var U=B[q];if(U!==null)for(B[q]=null,q=0;q<U.length;q++){var P=U[q];P!==null&&(P.lane&=-536870913)}a&=~G}i!==0&&sf(e,i,0),p!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=p&~(y&~n))}function sf(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Zt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function uf(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var i=31-Zt(a),d=1<<i;d&n|e[i]&n&&(e[i]|=n),a&=~d}}function df(e,n){var a=n&-n;return a=(a&42)!==0?1:Vs(a),(a&(e.suspendedLanes|n))!==0?0:a}function Vs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ff(){var e=D.p;return e!==0?e:(e=window.event,e===void 0?32:J5(e.type))}function pf(e,n){var a=D.p;try{return D.p=e,n()}finally{D.p=a}}var ol=Math.random().toString(36).slice(2),vt="__reactFiber$"+ol,Ot="__reactProps$"+ol,ba="__reactContainer$"+ol,Ds="__reactEvents$"+ol,y8="__reactListeners$"+ol,b8="__reactHandles$"+ol,hf="__reactResources$"+ol,Ao="__reactMarker$"+ol;function $s(e){delete e[vt],delete e[Ot],delete e[Ds],delete e[y8],delete e[b8]}function Ca(e){var n=e[vt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[ba]||a[vt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=H5(e);e!==null;){if(a=e[vt])return a;e=H5(e)}return n}e=a,a=e.parentNode}return null}function wa(e){if(e=e[vt]||e[ba]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function zo(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Sa(e){var n=e[hf];return n||(n=e[hf]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[Ao]=!0}var gf=new Set,mf={};function Ul(e,n){ja(e,n),ja(e+"Capture",n)}function ja(e,n){for(mf[e]=n,e=0;e<n.length;e++)gf.add(n[e])}var C8=RegExp("^[: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]*$"),xf={},vf={};function w8(e){return yn.call(vf,e)?!0:yn.call(xf,e)?!1:C8.test(e)?vf[e]=!0:(xf[e]=!0,!1)}function si(e,n,a){if(w8(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function ui(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Hn(e,n,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+i)}}function Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yf(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function S8(e,n,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,p=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Bs(e){if(!e._valueTracker){var n=yf(e)?"checked":"value";e._valueTracker=S8(e,n,""+e[n])}}function bf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),i="";return e&&(i=yf(e)?e.checked?"true":"false":e.value),e=i,e!==a?(n.setValue(e),!0):!1}function di(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}}var j8=/[\n"\\]/g;function It(e){return e.replace(j8,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zs(e,n,a,i,d,p,y,j){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Wt(n)):e.value!==""+Wt(n)&&(e.value=""+Wt(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?Us(e,y,Wt(n)):a!=null?Us(e,y,Wt(a)):i!=null&&e.removeAttribute("value"),d==null&&p!=null&&(e.defaultChecked=!!p),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?e.name=""+Wt(j):e.removeAttribute("name")}function Cf(e,n,a,i,d,p,y,j){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Bs(e);return}a=a!=null?""+Wt(a):"",n=n!=null?""+Wt(n):a,j||n===e.value||(e.value=n),e.defaultValue=n}i=i??d,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=j?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Bs(e)}function Us(e,n,a){n==="number"&&di(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ma(e,n,a,i){if(e=e.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=n.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Wt(a),n=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,i&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function wf(e,n,a){if(n!=null&&(n=""+Wt(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+Wt(a):""}function Sf(e,n,a,i){if(n==null){if(i!=null){if(a!=null)throw Error(r(92));if(me(i)){if(1<i.length)throw Error(r(93));i=i[0]}a=i}a==null&&(a=""),n=a}a=Wt(n),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Bs(e)}function Ea(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var M8=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jf(e,n,a){var i=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,a):typeof a!="number"||a===0||M8.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function Mf(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var d in n)i=n[d],n.hasOwnProperty(d)&&a[d]!==i&&jf(e,d,i)}else for(var p in n)n.hasOwnProperty(p)&&jf(e,p,n[p])}function Ps(e){if(e.indexOf("-")===-1)return!1;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 E8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),T8=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fi(e){return T8.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Vn(){}var Ys=null;function qs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ta=null,Ra=null;function Ef(e){var n=wa(e);if(n&&(e=n.stateNode)){var a=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+It(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var i=a[n];if(i!==e&&i.form===e.form){var d=i[Ot]||null;if(!d)throw Error(r(90));Zs(i,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)i=a[n],i.form===e.form&&bf(i)}break e;case"textarea":wf(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ma(e,!!a.multiple,n,!1)}}}var Xs=!1;function Tf(e,n,a){if(Xs)return e(n,a);Xs=!0;try{var i=e(n);return i}finally{if(Xs=!1,(Ta!==null||Ra!==null)&&(Ii(),Ta&&(n=Ta,e=Ra,Ra=Ta=null,Ef(n),e)))for(n=0;n<e.length;n++)Ef(e[n])}}function Ho(e,n){var a=e.stateNode;if(a===null)return null;var i=a[Ot]||null;if(i===null)return null;a=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=!1;if(kn)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch{Gs=!1}var rl=null,Qs=null,pi=null;function Rf(){if(pi)return pi;var e,n=Qs,a=n.length,i,d="value"in rl?rl.value:rl.textContent,p=d.length;for(e=0;e<a&&n[e]===d[e];e++);var y=a-e;for(i=1;i<=y&&n[a-i]===d[p-i];i++);return pi=d.slice(e,1<i?1-i:void 0)}function hi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function gi(){return!0}function _f(){return!1}function At(e){function n(a,i,d,p,y){this._reactName=a,this._targetInst=d,this.type=i,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(a=e[j],this[j]=a?a(p):p[j]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?gi:_f,this.isPropagationStopped=_f,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),n}var Pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mi=At(Pl),ko=b({},Pl,{view:0,detail:0}),R8=At(ko),Ks,Fs,Do,xi=b({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ws,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!==Do&&(Do&&e.type==="mousemove"?(Ks=e.screenX-Do.screenX,Fs=e.screenY-Do.screenY):Fs=Ks=0,Do=e),Ks)},movementY:function(e){return"movementY"in e?e.movementY:Fs}}),Nf=At(xi),_8=b({},xi,{dataTransfer:0}),N8=At(_8),L8=b({},ko,{relatedTarget:0}),Js=At(L8),O8=b({},Pl,{animationName:0,elapsedTime:0,pseudoElement:0}),A8=At(O8),z8=b({},Pl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H8=At(z8),V8=b({},Pl,{data:0}),Lf=At(V8),k8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D8={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"},$8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B8(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=$8[e])?!!n[e]:!1}function Ws(){return B8}var Z8=b({},ko,{key:function(e){if(e.key){var n=k8[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ws,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U8=At(Z8),P8=b({},xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=At(P8),Y8=b({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ws}),q8=At(Y8),X8=b({},Pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),G8=At(X8),Q8=b({},xi,{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}),K8=At(Q8),F8=b({},Pl,{newState:0,oldState:0}),J8=At(F8),W8=[9,13,27,32],Is=kn&&"CompositionEvent"in window,$o=null;kn&&"documentMode"in document&&($o=document.documentMode);var I8=kn&&"TextEvent"in window&&!$o,Af=kn&&(!Is||$o&&8<$o&&11>=$o),zf=" ",Hf=!1;function Vf(e,n){switch(e){case"keyup":return W8.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _a=!1;function eg(e,n){switch(e){case"compositionend":return kf(n);case"keypress":return n.which!==32?null:(Hf=!0,zf);case"textInput":return e=n.data,e===zf&&Hf?null:e;default:return null}}function tg(e,n){if(_a)return e==="compositionend"||!Is&&Vf(e,n)?(e=Rf(),pi=Qs=rl=null,_a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Af&&n.locale!=="ko"?null:n.data;default:return null}}var ng={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 Df(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ng[e.type]:n==="textarea"}function $f(e,n,a,i){Ta?Ra?Ra.push(i):Ra=[i]:Ta=i,n=rc(n,"onChange"),0<n.length&&(a=new mi("onChange","change",null,a,i),e.push({event:a,listeners:n}))}var Bo=null,Zo=null;function lg(e){C5(e,0)}function vi(e){var n=zo(e);if(bf(n))return e}function Bf(e,n){if(e==="change")return n}var Zf=!1;if(kn){var eu;if(kn){var tu="oninput"in document;if(!tu){var Uf=document.createElement("div");Uf.setAttribute("oninput","return;"),tu=typeof Uf.oninput=="function"}eu=tu}else eu=!1;Zf=eu&&(!document.documentMode||9<document.documentMode)}function Pf(){Bo&&(Bo.detachEvent("onpropertychange",Yf),Zo=Bo=null)}function Yf(e){if(e.propertyName==="value"&&vi(Zo)){var n=[];$f(n,Zo,e,qs(e)),Tf(lg,n)}}function ag(e,n,a){e==="focusin"?(Pf(),Bo=n,Zo=a,Bo.attachEvent("onpropertychange",Yf)):e==="focusout"&&Pf()}function og(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vi(Zo)}function rg(e,n){if(e==="click")return vi(n)}function ig(e,n){if(e==="input"||e==="change")return vi(n)}function cg(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ut=typeof Object.is=="function"?Object.is:cg;function Uo(e,n){if(Ut(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),i=Object.keys(n);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var d=a[i];if(!yn.call(n,d)||!Ut(e[d],n[d]))return!1}return!0}function qf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xf(e,n){var a=qf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=n&&i>=n)return{node:a,offset:n-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qf(a)}}function Gf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Gf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Qf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=di(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=di(e.document)}return n}function nu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var sg=kn&&"documentMode"in document&&11>=document.documentMode,Na=null,lu=null,Po=null,au=!1;function Kf(e,n,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;au||Na==null||Na!==di(i)||(i=Na,"selectionStart"in i&&nu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Po&&Uo(Po,i)||(Po=i,i=rc(lu,"onSelect"),0<i.length&&(n=new mi("onSelect","select",null,n,a),e.push({event:n,listeners:i}),n.target=Na)))}function Yl(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var La={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},ou={},Ff={};kn&&(Ff=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function ql(e){if(ou[e])return ou[e];if(!La[e])return e;var n=La[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Ff)return ou[e]=n[a];return e}var Jf=ql("animationend"),Wf=ql("animationiteration"),If=ql("animationstart"),ug=ql("transitionrun"),dg=ql("transitionstart"),fg=ql("transitioncancel"),e9=ql("transitionend"),t9=new Map,ru="abort auxClick beforeToggle 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(" ");ru.push("scrollEnd");function pn(e,n){t9.set(e,n),Ul(n,[e])}var yi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],Oa=0,iu=0;function bi(){for(var e=Oa,n=iu=Oa=0;n<e;){var a=en[n];en[n++]=null;var i=en[n];en[n++]=null;var d=en[n];en[n++]=null;var p=en[n];if(en[n++]=null,i!==null&&d!==null){var y=i.pending;y===null?d.next=d:(d.next=y.next,y.next=d),i.pending=d}p!==0&&n9(a,d,p)}}function Ci(e,n,a,i){en[Oa++]=e,en[Oa++]=n,en[Oa++]=a,en[Oa++]=i,iu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function cu(e,n,a,i){return Ci(e,n,a,i),wi(e)}function Xl(e,n){return Ci(e,null,null,n),wi(e)}function n9(e,n,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var d=!1,p=e.return;p!==null;)p.childLanes|=a,i=p.alternate,i!==null&&(i.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(d=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,d&&n!==null&&(d=31-Zt(a),e=p.hiddenUpdates,i=e[d],i===null?e[d]=[n]:i.push(n),n.lane=a|536870912),p):null}function wi(e){if(50<dr)throw dr=0,x1=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Aa={};function pg(e,n,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,n,a,i){return new pg(e,n,a,i)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,n){var a=e.alternate;return a===null?(a=Pt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function l9(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Si(e,n,a,i,d,p){var y=0;if(i=e,typeof e=="function")su(e)&&(y=1);else if(typeof e=="string")y=v6(e,a,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=Pt(31,a,n,d),e.elementType=F,e.lanes=p,e;case w:return Gl(a.children,d,p,n);case E:y=8,d|=24;break;case R:return e=Pt(12,a,n,d|2),e.elementType=R,e.lanes=p,e;case k:return e=Pt(13,a,n,d),e.elementType=k,e.lanes=p,e;case Z:return e=Pt(19,a,n,d),e.elementType=Z,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:y=10;break e;case T:y=9;break e;case O:y=11;break e;case z:y=14;break e;case J:y=16,i=null;break e}y=29,a=Error(r(130,e===null?"null":typeof e,"")),i=null}return n=Pt(y,a,n,d),n.elementType=e,n.type=i,n.lanes=p,n}function Gl(e,n,a,i){return e=Pt(7,e,i,n),e.lanes=a,e}function uu(e,n,a){return e=Pt(6,e,null,n),e.lanes=a,e}function a9(e){var n=Pt(18,null,null,0);return n.stateNode=e,n}function du(e,n,a){return n=Pt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var o9=new WeakMap;function tn(e,n){if(typeof e=="object"&&e!==null){var a=o9.get(e);return a!==void 0?a:(n={value:e,source:n,stack:va(n)},o9.set(e,n),n)}return{value:e,source:n,stack:va(n)}}var za=[],Ha=0,ji=null,Yo=0,nn=[],ln=0,il=null,bn=1,Cn="";function $n(e,n){za[Ha++]=Yo,za[Ha++]=ji,ji=e,Yo=n}function r9(e,n,a){nn[ln++]=bn,nn[ln++]=Cn,nn[ln++]=il,il=e;var i=bn;e=Cn;var d=32-Zt(i)-1;i&=~(1<<d),a+=1;var p=32-Zt(n)+d;if(30<p){var y=d-d%5;p=(i&(1<<y)-1).toString(32),i>>=y,d-=y,bn=1<<32-Zt(n)+d|a<<d|i,Cn=p+e}else bn=1<<p|a<<d|i,Cn=e}function fu(e){e.return!==null&&($n(e,1),r9(e,1,0))}function pu(e){for(;e===ji;)ji=za[--Ha],za[Ha]=null,Yo=za[--Ha],za[Ha]=null;for(;e===il;)il=nn[--ln],nn[ln]=null,Cn=nn[--ln],nn[ln]=null,bn=nn[--ln],nn[ln]=null}function i9(e,n){nn[ln++]=bn,nn[ln++]=Cn,nn[ln++]=il,bn=n.id,Cn=n.overflow,il=e}var yt=null,Qe=null,_e=!1,cl=null,an=!1,hu=Error(r(519));function sl(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qo(tn(n,e)),hu}function c9(e){var n=e.stateNode,a=e.type,i=e.memoizedProps;switch(n[vt]=e,n[Ot]=i,a){case"dialog":Me("cancel",n),Me("close",n);break;case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(a=0;a<pr.length;a++)Me(pr[a],n);break;case"source":Me("error",n);break;case"img":case"image":case"link":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"input":Me("invalid",n),Cf(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",n);break;case"textarea":Me("invalid",n),Sf(n,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||i.suppressHydrationWarning===!0||M5(n.textContent,a)?(i.popover!=null&&(Me("beforetoggle",n),Me("toggle",n)),i.onScroll!=null&&Me("scroll",n),i.onScrollEnd!=null&&Me("scrollend",n),i.onClick!=null&&(n.onclick=Vn),n=!0):n=!1,n||sl(e,!0)}function s9(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:yt=yt.return}}function Va(e){if(e!==yt)return!1;if(!_e)return s9(e),_e=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||O1(e.type,e.memoizedProps)),a=!a),a&&Qe&&sl(e),s9(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=z5(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=z5(e)}else n===27?(n=Qe,Sl(e.type)?(e=k1,k1=null,Qe=e):Qe=n):Qe=yt?rn(e.stateNode.nextSibling):null;return!0}function Ql(){Qe=yt=null,_e=!1}function gu(){var e=cl;return e!==null&&(kt===null?kt=e:kt.push.apply(kt,e),cl=null),e}function qo(e){cl===null?cl=[e]:cl.push(e)}var mu=L(null),Kl=null,Bn=null;function ul(e,n,a){te(mu,n._currentValue),n._currentValue=a}function Zn(e){e._currentValue=mu.current,Y(mu)}function xu(e,n,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===a)break;e=e.return}}function vu(e,n,a,i){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var j=p;p=d;for(var N=0;N<n.length;N++)if(j.context===n[N]){p.lanes|=a,j=p.alternate,j!==null&&(j.lanes|=a),xu(p.return,a,e),i||(y=null);break e}p=j.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(r(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),xu(y,a,e),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===e){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function ka(e,n,a,i){e=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var j=d.type;Ut(d.pendingProps.value,y.value)||(e!==null?e.push(j):e=[j])}}else if(d===Q.current){if(y=d.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(vr):e=[vr])}d=d.return}e!==null&&vu(n,e,a,i),n.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){Kl=e,Bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return u9(Kl,e)}function Ei(e,n){return Kl===null&&Fl(e),u9(e,n)}function u9(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Bn===null){if(e===null)throw Error(r(308));Bn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Bn=Bn.next=n;return a}var hg=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},gg=t.unstable_scheduleCallback,mg=t.unstable_NormalPriority,ot={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yu(){return{controller:new hg,data:new Map,refCount:0}}function Xo(e){e.refCount--,e.refCount===0&&gg(mg,function(){e.controller.abort()})}var Go=null,bu=0,Da=0,$a=null;function xg(e,n){if(Go===null){var a=Go=[];bu=0,Da=S1(),$a={status:"pending",value:void 0,then:function(i){a.push(i)}}}return bu++,n.then(d9,d9),n}function d9(){if(--bu===0&&Go!==null){$a!==null&&($a.status="fulfilled");var e=Go;Go=null,Da=0,$a=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function vg(e,n){var a=[],i={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(i.status="rejected",i.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),i}var f9=H.S;H.S=function(e,n){K2=ut(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xg(e,n),f9!==null&&f9(e,n)};var Jl=L(null);function Cu(){var e=Jl.current;return e!==null?e:qe.pooledCache}function Ti(e,n){n===null?te(Jl,Jl.current):te(Jl,n.pool)}function p9(){var e=Cu();return e===null?null:{parent:ot._currentValue,pool:e}}var Ba=Error(r(460)),wu=Error(r(474)),Ri=Error(r(542)),_i={then:function(){}};function h9(e){return e=e.status,e==="fulfilled"||e==="rejected"}function g9(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Vn,Vn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,x9(e),e;default:if(typeof n.status=="string")n.then(Vn,Vn);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=i}},function(i){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,x9(e),e}throw Il=n,Ba}}function Wl(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Il=a,Ba):a}}var Il=null;function m9(){if(Il===null)throw Error(r(459));var e=Il;return Il=null,e}function x9(e){if(e===Ba||e===Ri)throw Error(r(483))}var Za=null,Qo=0;function Ni(e){var n=Qo;return Qo+=1,Za===null&&(Za=[]),g9(Za,e,n)}function Ko(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Li(e,n){throw n.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function v9(e){function n(V,A){if(e){var $=V.deletions;$===null?(V.deletions=[A],V.flags|=16):$.push(A)}}function a(V,A){if(!e)return null;for(;A!==null;)n(V,A),A=A.sibling;return null}function i(V){for(var A=new Map;V!==null;)V.key!==null?A.set(V.key,V):A.set(V.index,V),V=V.sibling;return A}function d(V,A){return V=Dn(V,A),V.index=0,V.sibling=null,V}function p(V,A,$){return V.index=$,e?($=V.alternate,$!==null?($=$.index,$<A?(V.flags|=67108866,A):$):(V.flags|=67108866,A)):(V.flags|=1048576,A)}function y(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function j(V,A,$,X){return A===null||A.tag!==6?(A=uu($,V.mode,X),A.return=V,A):(A=d(A,$),A.return=V,A)}function N(V,A,$,X){var ge=$.type;return ge===w?q(V,A,$.props.children,X,$.key):A!==null&&(A.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Wl(ge)===A.type)?(A=d(A,$.props),Ko(A,$),A.return=V,A):(A=Si($.type,$.key,$.props,null,V.mode,X),Ko(A,$),A.return=V,A)}function B(V,A,$,X){return A===null||A.tag!==4||A.stateNode.containerInfo!==$.containerInfo||A.stateNode.implementation!==$.implementation?(A=du($,V.mode,X),A.return=V,A):(A=d(A,$.children||[]),A.return=V,A)}function q(V,A,$,X,ge){return A===null||A.tag!==7?(A=Gl($,V.mode,X,ge),A.return=V,A):(A=d(A,$),A.return=V,A)}function G(V,A,$){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=uu(""+A,V.mode,$),A.return=V,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case S:return $=Si(A.type,A.key,A.props,null,V.mode,$),Ko($,A),$.return=V,$;case M:return A=du(A,V.mode,$),A.return=V,A;case J:return A=Wl(A),G(V,A,$)}if(me(A)||W(A))return A=Gl(A,V.mode,$,null),A.return=V,A;if(typeof A.then=="function")return G(V,Ni(A),$);if(A.$$typeof===_)return G(V,Ei(V,A),$);Li(V,A)}return null}function U(V,A,$,X){var ge=A!==null?A.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ge!==null?null:j(V,A,""+$,X);if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return $.key===ge?N(V,A,$,X):null;case M:return $.key===ge?B(V,A,$,X):null;case J:return $=Wl($),U(V,A,$,X)}if(me($)||W($))return ge!==null?null:q(V,A,$,X,null);if(typeof $.then=="function")return U(V,A,Ni($),X);if($.$$typeof===_)return U(V,A,Ei(V,$),X);Li(V,$)}return null}function P(V,A,$,X,ge){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return V=V.get($)||null,j(A,V,""+X,ge);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case S:return V=V.get(X.key===null?$:X.key)||null,N(A,V,X,ge);case M:return V=V.get(X.key===null?$:X.key)||null,B(A,V,X,ge);case J:return X=Wl(X),P(V,A,$,X,ge)}if(me(X)||W(X))return V=V.get($)||null,q(A,V,X,ge,null);if(typeof X.then=="function")return P(V,A,$,Ni(X),ge);if(X.$$typeof===_)return P(V,A,$,Ei(A,X),ge);Li(A,X)}return null}function ue(V,A,$,X){for(var ge=null,Oe=null,de=A,Se=A=0,Te=null;de!==null&&Se<$.length;Se++){de.index>Se?(Te=de,de=null):Te=de.sibling;var Ae=U(V,de,$[Se],X);if(Ae===null){de===null&&(de=Te);break}e&&de&&Ae.alternate===null&&n(V,de),A=p(Ae,A,Se),Oe===null?ge=Ae:Oe.sibling=Ae,Oe=Ae,de=Te}if(Se===$.length)return a(V,de),_e&&$n(V,Se),ge;if(de===null){for(;Se<$.length;Se++)de=G(V,$[Se],X),de!==null&&(A=p(de,A,Se),Oe===null?ge=de:Oe.sibling=de,Oe=de);return _e&&$n(V,Se),ge}for(de=i(de);Se<$.length;Se++)Te=P(de,V,Se,$[Se],X),Te!==null&&(e&&Te.alternate!==null&&de.delete(Te.key===null?Se:Te.key),A=p(Te,A,Se),Oe===null?ge=Te:Oe.sibling=Te,Oe=Te);return e&&de.forEach(function(Rl){return n(V,Rl)}),_e&&$n(V,Se),ge}function xe(V,A,$,X){if($==null)throw Error(r(151));for(var ge=null,Oe=null,de=A,Se=A=0,Te=null,Ae=$.next();de!==null&&!Ae.done;Se++,Ae=$.next()){de.index>Se?(Te=de,de=null):Te=de.sibling;var Rl=U(V,de,Ae.value,X);if(Rl===null){de===null&&(de=Te);break}e&&de&&Rl.alternate===null&&n(V,de),A=p(Rl,A,Se),Oe===null?ge=Rl:Oe.sibling=Rl,Oe=Rl,de=Te}if(Ae.done)return a(V,de),_e&&$n(V,Se),ge;if(de===null){for(;!Ae.done;Se++,Ae=$.next())Ae=G(V,Ae.value,X),Ae!==null&&(A=p(Ae,A,Se),Oe===null?ge=Ae:Oe.sibling=Ae,Oe=Ae);return _e&&$n(V,Se),ge}for(de=i(de);!Ae.done;Se++,Ae=$.next())Ae=P(de,V,Se,Ae.value,X),Ae!==null&&(e&&Ae.alternate!==null&&de.delete(Ae.key===null?Se:Ae.key),A=p(Ae,A,Se),Oe===null?ge=Ae:Oe.sibling=Ae,Oe=Ae);return e&&de.forEach(function(_6){return n(V,_6)}),_e&&$n(V,Se),ge}function Pe(V,A,$,X){if(typeof $=="object"&&$!==null&&$.type===w&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case S:e:{for(var ge=$.key;A!==null;){if(A.key===ge){if(ge=$.type,ge===w){if(A.tag===7){a(V,A.sibling),X=d(A,$.props.children),X.return=V,V=X;break e}}else if(A.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Wl(ge)===A.type){a(V,A.sibling),X=d(A,$.props),Ko(X,$),X.return=V,V=X;break e}a(V,A);break}else n(V,A);A=A.sibling}$.type===w?(X=Gl($.props.children,V.mode,X,$.key),X.return=V,V=X):(X=Si($.type,$.key,$.props,null,V.mode,X),Ko(X,$),X.return=V,V=X)}return y(V);case M:e:{for(ge=$.key;A!==null;){if(A.key===ge)if(A.tag===4&&A.stateNode.containerInfo===$.containerInfo&&A.stateNode.implementation===$.implementation){a(V,A.sibling),X=d(A,$.children||[]),X.return=V,V=X;break e}else{a(V,A);break}else n(V,A);A=A.sibling}X=du($,V.mode,X),X.return=V,V=X}return y(V);case J:return $=Wl($),Pe(V,A,$,X)}if(me($))return ue(V,A,$,X);if(W($)){if(ge=W($),typeof ge!="function")throw Error(r(150));return $=ge.call($),xe(V,A,$,X)}if(typeof $.then=="function")return Pe(V,A,Ni($),X);if($.$$typeof===_)return Pe(V,A,Ei(V,$),X);Li(V,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,A!==null&&A.tag===6?(a(V,A.sibling),X=d(A,$),X.return=V,V=X):(a(V,A),X=uu($,V.mode,X),X.return=V,V=X),y(V)):a(V,A)}return function(V,A,$,X){try{Qo=0;var ge=Pe(V,A,$,X);return Za=null,ge}catch(de){if(de===Ba||de===Ri)throw de;var Oe=Pt(29,de,null,V.mode);return Oe.lanes=X,Oe.return=V,Oe}finally{}}}var ea=v9(!0),y9=v9(!1),dl=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ju(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,n,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(He&2)!==0){var d=i.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),i.pending=n,n=wi(e),n9(e,null,a),n}return Ci(e,i,n,a),wi(e)}function Fo(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,a|=i,n.lanes=a,uf(e,a)}}function Mu(e,n){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:i.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Eu=!1;function Jo(){if(Eu){var e=$a;if(e!==null)throw e}}function Wo(e,n,a,i){Eu=!1;var d=e.updateQueue;dl=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,j=d.shared.pending;if(j!==null){d.shared.pending=null;var N=j,B=N.next;N.next=null,y===null?p=B:y.next=B,y=N;var q=e.alternate;q!==null&&(q=q.updateQueue,j=q.lastBaseUpdate,j!==y&&(j===null?q.firstBaseUpdate=B:j.next=B,q.lastBaseUpdate=N))}if(p!==null){var G=d.baseState;y=0,q=B=N=null,j=p;do{var U=j.lane&-536870913,P=U!==j.lane;if(P?(Ee&U)===U:(i&U)===U){U!==0&&U===Da&&(Eu=!0),q!==null&&(q=q.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var ue=e,xe=j;U=n;var Pe=a;switch(xe.tag){case 1:if(ue=xe.payload,typeof ue=="function"){G=ue.call(Pe,G,U);break e}G=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=xe.payload,U=typeof ue=="function"?ue.call(Pe,G,U):ue,U==null)break e;G=b({},G,U);break e;case 2:dl=!0}}U=j.callback,U!==null&&(e.flags|=64,P&&(e.flags|=8192),P=d.callbacks,P===null?d.callbacks=[U]:P.push(U))}else P={lane:U,tag:j.tag,payload:j.payload,callback:j.callback,next:null},q===null?(B=q=P,N=G):q=q.next=P,y|=U;if(j=j.next,j===null){if(j=d.shared.pending,j===null)break;P=j,j=P.next,P.next=null,d.lastBaseUpdate=P,d.shared.pending=null}}while(!0);q===null&&(N=G),d.baseState=N,d.firstBaseUpdate=B,d.lastBaseUpdate=q,p===null&&(d.shared.lanes=0),vl|=y,e.lanes=y,e.memoizedState=G}}function b9(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function C9(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)b9(a[e],n)}var Ua=L(null),Oi=L(0);function w9(e,n){e=Fn,te(Oi,e),te(Ua,n),Fn=e|n.baseLanes}function Tu(){te(Oi,Fn),te(Ua,Ua.current)}function Ru(){Fn=Oi.current,Y(Ua),Y(Oi)}var Yt=L(null),on=null;function hl(e){var n=e.alternate;te(lt,lt.current&1),te(Yt,e),on===null&&(n===null||Ua.current!==null||n.memoizedState!==null)&&(on=e)}function _u(e){te(lt,lt.current),te(Yt,e),on===null&&(on=e)}function S9(e){e.tag===22?(te(lt,lt.current),te(Yt,e),on===null&&(on=e)):gl()}function gl(){te(lt,lt.current),te(Yt,Yt.current)}function qt(e){Y(Yt),on===e&&(on=null),Y(lt)}var lt=L(0);function Ai(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||H1(a)||V1(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Un=0,we=null,Ze=null,rt=null,zi=!1,Pa=!1,ta=!1,Hi=0,Io=0,Ya=null,yg=0;function et(){throw Error(r(321))}function Nu(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Ut(e[a],n[a]))return!1;return!0}function Lu(e,n,a,i,d,p){return Un=p,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?r2:Xu,ta=!1,p=a(i,d),ta=!1,Pa&&(p=M9(n,a,i,d)),j9(e),p}function j9(e){H.H=nr;var n=Ze!==null&&Ze.next!==null;if(Un=0,rt=Ze=we=null,zi=!1,Io=0,Ya=null,n)throw Error(r(300));e===null||it||(e=e.dependencies,e!==null&&Mi(e)&&(it=!0))}function M9(e,n,a,i){we=e;var d=0;do{if(Pa&&(Ya=null),Io=0,Pa=!1,25<=d)throw Error(r(301));if(d+=1,rt=Ze=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}H.H=i2,p=n(a,i)}while(Pa);return p}function bg(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?er(n):n,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(we.flags|=1024),n}function Ou(){var e=Hi!==0;return Hi=0,e}function Au(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function zu(e){if(zi){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}zi=!1}Un=0,rt=Ze=we=null,Pa=!1,Io=Hi=0,Ya=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?we.memoizedState=rt=e:rt=rt.next=e,rt}function at(){if(Ze===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var n=rt===null?we.memoizedState:rt.next;if(n!==null)rt=n,Ze=e;else{if(e===null)throw we.alternate===null?Error(r(467)):Error(r(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},rt===null?we.memoizedState=rt=e:rt=rt.next=e}return rt}function Vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function er(e){var n=Io;return Io+=1,Ya===null&&(Ya=[]),e=g9(Ya,e,n),n=we,(rt===null?n.memoizedState:rt.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?r2:Xu),e}function ki(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return er(e);if(e.$$typeof===_)return bt(e)}throw Error(r(438,String(e)))}function Hu(e){var n=null,a=we.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var i=we.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Vi(),we.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),i=0;i<e;i++)a[i]=ce;return n.index++,a}function Pn(e,n){return typeof n=="function"?n(e):n}function Di(e){var n=at();return Vu(n,Ze,e)}function Vu(e,n,a){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=a;var d=e.baseQueue,p=i.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,i.pending=null}if(p=e.baseState,d===null)e.memoizedState=p;else{n=d.next;var j=y=null,N=null,B=n,q=!1;do{var G=B.lane&-536870913;if(G!==B.lane?(Ee&G)===G:(Un&G)===G){var U=B.revertLane;if(U===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),G===Da&&(q=!0);else if((Un&U)===U){B=B.next,U===Da&&(q=!0);continue}else G={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(j=N=G,y=p):N=N.next=G,we.lanes|=U,vl|=U;G=B.action,ta&&a(p,G),p=B.hasEagerState?B.eagerState:a(p,G)}else U={lane:G,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(j=N=U,y=p):N=N.next=U,we.lanes|=G,vl|=G;B=B.next}while(B!==null&&B!==n);if(N===null?y=p:N.next=j,!Ut(p,e.memoizedState)&&(it=!0,q&&(a=$a,a!==null)))throw a;e.memoizedState=p,e.baseState=y,e.baseQueue=N,i.lastRenderedState=p}return d===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ku(e){var n=at(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var i=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=e(p,y.action),y=y.next;while(y!==d);Ut(p,n.memoizedState)||(it=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,i]}function E9(e,n,a){var i=we,d=at(),p=_e;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=n();var y=!Ut((Ze||d).memoizedState,a);if(y&&(d.memoizedState=a,it=!0),d=d.queue,Bu(_9.bind(null,i,d,e),[e]),d.getSnapshot!==n||y||rt!==null&&rt.memoizedState.tag&1){if(i.flags|=2048,qa(9,{destroy:void 0},R9.bind(null,i,d,a,n),null),qe===null)throw Error(r(349));p||(Un&127)!==0||T9(i,n,a)}return a}function T9(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=we.updateQueue,n===null?(n=Vi(),we.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function R9(e,n,a,i){n.value=a,n.getSnapshot=i,N9(n)&&L9(e)}function _9(e,n,a){return a(function(){N9(n)&&L9(e)})}function N9(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Ut(e,a)}catch{return!0}}function L9(e){var n=Xl(e,2);n!==null&&Dt(n,e,2)}function Du(e){var n=Rt();if(typeof e=="function"){var a=e;if(e=a(),ta){al(!0);try{a()}finally{al(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},n}function O9(e,n,a,i){return e.baseState=a,Vu(e,Ze,typeof i=="function"?i:Pn)}function Cg(e,n,a,i,d){if(Zi(e))throw Error(r(485));if(e=n.action,e!==null){var p={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};H.T!==null?a(!0):p.isTransition=!1,i(p),a=n.pending,a===null?(p.next=n.pending=p,A9(n,p)):(p.next=a.next,n.pending=a.next=p)}}function A9(e,n){var a=n.action,i=n.payload,d=e.state;if(n.isTransition){var p=H.T,y={};H.T=y;try{var j=a(d,i),N=H.S;N!==null&&N(y,j),z9(e,n,j)}catch(B){$u(e,n,B)}finally{p!==null&&y.types!==null&&(p.types=y.types),H.T=p}}else try{p=a(d,i),z9(e,n,p)}catch(B){$u(e,n,B)}}function z9(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){H9(e,n,i)},function(i){return $u(e,n,i)}):H9(e,n,a)}function H9(e,n,a){n.status="fulfilled",n.value=a,V9(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,A9(e,a)))}function $u(e,n,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=a,V9(n),n=n.next;while(n!==i)}e.action=null}function V9(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function k9(e,n){return n}function D9(e,n){if(_e){var a=qe.formState;if(a!==null){e:{var i=we;if(_e){if(Qe){t:{for(var d=Qe,p=an;d.nodeType!==8;){if(!p){d=null;break t}if(d=rn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){Qe=rn(d.nextSibling),i=d.data==="F!";break e}}sl(i)}i=!1}i&&(n=a[0])}}return a=Rt(),a.memoizedState=a.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:k9,lastRenderedState:n},a.queue=i,a=l2.bind(null,we,i),i.dispatch=a,i=Du(!1),p=qu.bind(null,we,!1,i.queue),i=Rt(),d={state:n,dispatch:null,action:e,pending:null},i.queue=d,a=Cg.bind(null,we,d,p,a),d.dispatch=a,i.memoizedState=e,[n,a,!1]}function $9(e){var n=at();return B9(n,Ze,e)}function B9(e,n,a){if(n=Vu(e,n,k9)[0],e=Di(Pn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=er(n)}catch(y){throw y===Ba?Ri:y}else i=n;n=at();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(we.flags|=2048,qa(9,{destroy:void 0},wg.bind(null,d,a),null)),[i,p,e]}function wg(e,n){e.action=n}function Z9(e){var n=at(),a=Ze;if(a!==null)return B9(n,a,e);at(),n=n.memoizedState,a=at();var i=a.queue.dispatch;return a.memoizedState=e,[n,i,!1]}function qa(e,n,a,i){return e={tag:e,create:a,deps:i,inst:n,next:null},n=we.updateQueue,n===null&&(n=Vi(),we.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,n.lastEffect=e),e}function U9(){return at().memoizedState}function $i(e,n,a,i){var d=Rt();we.flags|=e,d.memoizedState=qa(1|n,{destroy:void 0},a,i===void 0?null:i)}function Bi(e,n,a,i){var d=at();i=i===void 0?null:i;var p=d.memoizedState.inst;Ze!==null&&i!==null&&Nu(i,Ze.memoizedState.deps)?d.memoizedState=qa(n,p,a,i):(we.flags|=e,d.memoizedState=qa(1|n,p,a,i))}function P9(e,n){$i(8390656,8,e,n)}function Bu(e,n){Bi(2048,8,e,n)}function Sg(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Vi(),we.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function Y9(e){var n=at().memoizedState;return Sg({ref:n,nextImpl:e}),function(){if((He&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function q9(e,n){return Bi(4,2,e,n)}function X9(e,n){return Bi(4,4,e,n)}function G9(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Q9(e,n,a){a=a!=null?a.concat([e]):null,Bi(4,4,G9.bind(null,n,e),a)}function Zu(){}function K9(e,n){var a=at();n=n===void 0?null:n;var i=a.memoizedState;return n!==null&&Nu(n,i[1])?i[0]:(a.memoizedState=[e,n],e)}function F9(e,n){var a=at();n=n===void 0?null:n;var i=a.memoizedState;if(n!==null&&Nu(n,i[1]))return i[0];if(i=e(),ta){al(!0);try{e()}finally{al(!1)}}return a.memoizedState=[i,n],i}function Uu(e,n,a){return a===void 0||(Un&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=J2(),we.lanes|=e,vl|=e,a)}function J9(e,n,a,i){return Ut(a,n)?a:Ua.current!==null?(e=Uu(e,a,i),Ut(e,n)||(it=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(Ee&261930)===0?(it=!0,e.memoizedState=a):(e=J2(),we.lanes|=e,vl|=e,n)}function W9(e,n,a,i,d){var p=D.p;D.p=p!==0&&8>p?p:8;var y=H.T,j={};H.T=j,qu(e,!1,n,a);try{var N=d(),B=H.S;if(B!==null&&B(j,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var q=vg(N,i);tr(e,n,q,Qt(e))}else tr(e,n,i,Qt(e))}catch(G){tr(e,n,{then:function(){},status:"rejected",reason:G},Qt())}finally{D.p=p,y!==null&&j.types!==null&&(y.types=j.types),H.T=y}}function jg(){}function Pu(e,n,a,i){if(e.tag!==5)throw Error(r(476));var d=I9(e).queue;W9(e,d,n,K,a===null?jg:function(){return e2(e),a(i)})}function I9(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:K},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function e2(e){var n=I9(e);n.next===null&&(n=e.alternate.memoizedState),tr(e,n.next.queue,{},Qt())}function Yu(){return bt(vr)}function t2(){return at().memoizedState}function n2(){return at().memoizedState}function Mg(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Qt();e=fl(a);var i=pl(n,e,a);i!==null&&(Dt(i,n,a),Fo(i,n,a)),n={cache:yu()},e.payload=n;return}n=n.return}}function Eg(e,n,a){var i=Qt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zi(e)?a2(n,a):(a=cu(e,n,a,i),a!==null&&(Dt(a,e,i),o2(a,n,i)))}function l2(e,n,a){var i=Qt();tr(e,n,a,i)}function tr(e,n,a,i){var d={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zi(e))a2(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,j=p(y,a);if(d.hasEagerState=!0,d.eagerState=j,Ut(j,y))return Ci(e,n,d,0),qe===null&&bi(),!1}catch{}finally{}if(a=cu(e,n,d,i),a!==null)return Dt(a,e,i),o2(a,n,i),!0}return!1}function qu(e,n,a,i){if(i={lane:2,revertLane:S1(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zi(e)){if(n)throw Error(r(479))}else n=cu(e,a,i,2),n!==null&&Dt(n,e,2)}function Zi(e){var n=e.alternate;return e===we||n!==null&&n===we}function a2(e,n){Pa=zi=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function o2(e,n,a){if((a&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,a|=i,n.lanes=a,uf(e,a)}}var nr={readContext:bt,use:ki,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};nr.useEffectEvent=et;var r2={readContext:bt,use:ki,useCallback:function(e,n){return Rt().memoizedState=[e,n===void 0?null:n],e},useContext:bt,useEffect:P9,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,$i(4194308,4,G9.bind(null,n,e),a)},useLayoutEffect:function(e,n){return $i(4194308,4,e,n)},useInsertionEffect:function(e,n){$i(4,2,e,n)},useMemo:function(e,n){var a=Rt();n=n===void 0?null:n;var i=e();if(ta){al(!0);try{e()}finally{al(!1)}}return a.memoizedState=[i,n],i},useReducer:function(e,n,a){var i=Rt();if(a!==void 0){var d=a(n);if(ta){al(!0);try{a(n)}finally{al(!1)}}}else d=n;return i.memoizedState=i.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},i.queue=e,e=e.dispatch=Eg.bind(null,we,e),[i.memoizedState,e]},useRef:function(e){var n=Rt();return e={current:e},n.memoizedState=e},useState:function(e){e=Du(e);var n=e.queue,a=l2.bind(null,we,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Zu,useDeferredValue:function(e,n){var a=Rt();return Uu(a,e,n)},useTransition:function(){var e=Du(!1);return e=W9.bind(null,we,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var i=we,d=Rt();if(_e){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),qe===null)throw Error(r(349));(Ee&127)!==0||T9(i,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,P9(_9.bind(null,i,p,e),[e]),i.flags|=2048,qa(9,{destroy:void 0},R9.bind(null,i,p,a,n),null),a},useId:function(){var e=Rt(),n=qe.identifierPrefix;if(_e){var a=Cn,i=bn;a=(i&~(1<<32-Zt(i)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Hi++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=yg++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Yu,useFormState:D9,useActionState:D9,useOptimistic:function(e){var n=Rt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=qu.bind(null,we,!0,a),a.dispatch=n,[e,n]},useMemoCache:Hu,useCacheRefresh:function(){return Rt().memoizedState=Mg.bind(null,we)},useEffectEvent:function(e){var n=Rt(),a={impl:e};return n.memoizedState=a,function(){if((He&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Xu={readContext:bt,use:ki,useCallback:K9,useContext:bt,useEffect:Bu,useImperativeHandle:Q9,useInsertionEffect:q9,useLayoutEffect:X9,useMemo:F9,useReducer:Di,useRef:U9,useState:function(){return Di(Pn)},useDebugValue:Zu,useDeferredValue:function(e,n){var a=at();return J9(a,Ze.memoizedState,e,n)},useTransition:function(){var e=Di(Pn)[0],n=at().memoizedState;return[typeof e=="boolean"?e:er(e),n]},useSyncExternalStore:E9,useId:t2,useHostTransitionStatus:Yu,useFormState:$9,useActionState:$9,useOptimistic:function(e,n){var a=at();return O9(a,Ze,e,n)},useMemoCache:Hu,useCacheRefresh:n2};Xu.useEffectEvent=Y9;var i2={readContext:bt,use:ki,useCallback:K9,useContext:bt,useEffect:Bu,useImperativeHandle:Q9,useInsertionEffect:q9,useLayoutEffect:X9,useMemo:F9,useReducer:ku,useRef:U9,useState:function(){return ku(Pn)},useDebugValue:Zu,useDeferredValue:function(e,n){var a=at();return Ze===null?Uu(a,e,n):J9(a,Ze.memoizedState,e,n)},useTransition:function(){var e=ku(Pn)[0],n=at().memoizedState;return[typeof e=="boolean"?e:er(e),n]},useSyncExternalStore:E9,useId:t2,useHostTransitionStatus:Yu,useFormState:Z9,useActionState:Z9,useOptimistic:function(e,n){var a=at();return Ze!==null?O9(a,Ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hu,useCacheRefresh:n2};i2.useEffectEvent=Y9;function Gu(e,n,a,i){n=e.memoizedState,a=a(i,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Qu={enqueueSetState:function(e,n,a){e=e._reactInternals;var i=Qt(),d=fl(i);d.payload=n,a!=null&&(d.callback=a),n=pl(e,d,i),n!==null&&(Dt(n,e,i),Fo(n,e,i))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var i=Qt(),d=fl(i);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=pl(e,d,i),n!==null&&(Dt(n,e,i),Fo(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Qt(),i=fl(a);i.tag=2,n!=null&&(i.callback=n),n=pl(e,i,a),n!==null&&(Dt(n,e,a),Fo(n,e,a))}};function c2(e,n,a,i,d,p,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,p,y):n.prototype&&n.prototype.isPureReactComponent?!Uo(a,i)||!Uo(d,p):!0}function s2(e,n,a,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,i),n.state!==e&&Qu.enqueueReplaceState(n,n.state,null)}function na(e,n){var a=n;if("ref"in n){a={};for(var i in n)i!=="ref"&&(a[i]=n[i])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function u2(e){yi(e)}function d2(e){console.error(e)}function f2(e){yi(e)}function Ui(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function p2(e,n,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ku(e,n,a){return a=fl(a),a.tag=3,a.payload={element:null},a.callback=function(){Ui(e,n)},a}function h2(e){return e=fl(e),e.tag=3,e}function g2(e,n,a,i){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;e.payload=function(){return d(p)},e.callback=function(){p2(n,a,i)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){p2(n,a,i),typeof d!="function"&&(yl===null?yl=new Set([this]):yl.add(this));var j=i.stack;this.componentDidCatch(i.value,{componentStack:j!==null?j:""})})}function Tg(e,n,a,i,d){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=a.alternate,n!==null&&ka(n,a,d,!0),a=Yt.current,a!==null){switch(a.tag){case 31:case 13:return on===null?ec():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,i===_i?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([i]):n.add(i),b1(e,i,d)),!1;case 22:return a.flags|=65536,i===_i?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([i]):a.add(i)),b1(e,i,d)),!1}throw Error(r(435,a.tag))}return b1(e,i,d),ec(),!1}if(_e)return n=Yt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,i!==hu&&(e=Error(r(422),{cause:i}),qo(tn(e,a)))):(i!==hu&&(n=Error(r(423),{cause:i}),qo(tn(n,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,i=tn(i,a),d=Ku(e.stateNode,i,d),Mu(e,d),tt!==4&&(tt=2)),!1;var p=Error(r(520),{cause:i});if(p=tn(p,a),ur===null?ur=[p]:ur.push(p),tt!==4&&(tt=2),n===null)return!0;i=tn(i,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Ku(a.stateNode,i,e),Mu(a,e),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(yl===null||!yl.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=h2(d),g2(d,e,a,i),Mu(a,d),!1}a=a.return}while(a!==null);return!1}var Fu=Error(r(461)),it=!1;function Ct(e,n,a,i){n.child=e===null?y9(n,null,a,i):ea(n,e.child,a,i)}function m2(e,n,a,i,d){a=a.render;var p=n.ref;if("ref"in i){var y={};for(var j in i)j!=="ref"&&(y[j]=i[j])}else y=i;return Fl(n),i=Lu(e,n,a,y,p,d),j=Ou(),e!==null&&!it?(Au(e,n,d),Yn(e,n,d)):(_e&&j&&fu(n),n.flags|=1,Ct(e,n,i,d),n.child)}function x2(e,n,a,i,d){if(e===null){var p=a.type;return typeof p=="function"&&!su(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,v2(e,n,p,i,d)):(e=Si(a.type,null,i,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!a1(e,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Uo,a(y,i)&&e.ref===n.ref)return Yn(e,n,d)}return n.flags|=1,e=Dn(p,i),e.ref=n.ref,e.return=n,n.child=e}function v2(e,n,a,i,d){if(e!==null){var p=e.memoizedProps;if(Uo(p,i)&&e.ref===n.ref)if(it=!1,n.pendingProps=i=p,a1(e,d))(e.flags&131072)!==0&&(it=!0);else return n.lanes=e.lanes,Yn(e,n,d)}return Ju(e,n,a,i,d)}function y2(e,n,a,i){var d=i.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,e!==null){for(i=n.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;i=d&~p}else i=0,n.child=null;return b2(e,n,p,a,i)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ti(n,p!==null?p.cachePool:null),p!==null?w9(n,p):Tu(),S9(n);else return i=n.lanes=536870912,b2(e,n,p!==null?p.baseLanes|a:a,a,i)}else p!==null?(Ti(n,p.cachePool),w9(n,p),gl(),n.memoizedState=null):(e!==null&&Ti(n,null),Tu(),gl());return Ct(e,n,d,a),n.child}function lr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function b2(e,n,a,i,d){var p=Cu();return p=p===null?null:{parent:ot._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},e!==null&&Ti(n,null),Tu(),S9(n),e!==null&&ka(e,n,i,!0),n.childLanes=d,null}function Pi(e,n){return n=qi({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function C2(e,n,a){return ea(n,e.child,null,a),e=Pi(n,n.pendingProps),e.flags|=2,qt(n),n.memoizedState=null,e}function Rg(e,n,a){var i=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(_e){if(i.mode==="hidden")return e=Pi(n,i),n.lanes=536870912,lr(null,e);if(_u(n),(e=Qe)?(e=A5(e,an),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:il!==null?{id:bn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=a9(e),a.return=n,n.child=a,yt=n,Qe=null)):e=null,e===null)throw sl(n);return n.lanes=536870912,null}return Pi(n,i)}var p=e.memoizedState;if(p!==null){var y=p.dehydrated;if(_u(n),d)if(n.flags&256)n.flags&=-257,n=C2(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(it||ka(e,n,a,!1),d=(a&e.childLanes)!==0,it||d){if(i=qe,i!==null&&(y=df(i,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,Xl(e,y),Dt(i,e,y),Fu;ec(),n=C2(e,n,a)}else e=p.treeContext,Qe=rn(y.nextSibling),yt=n,_e=!0,cl=null,an=!1,e!==null&&i9(n,e),n=Pi(n,i),n.flags|=4096;return n}return e=Dn(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Yi(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Ju(e,n,a,i,d){return Fl(n),a=Lu(e,n,a,i,void 0,d),i=Ou(),e!==null&&!it?(Au(e,n,d),Yn(e,n,d)):(_e&&i&&fu(n),n.flags|=1,Ct(e,n,a,d),n.child)}function w2(e,n,a,i,d,p){return Fl(n),n.updateQueue=null,a=M9(n,i,a,d),j9(e),i=Ou(),e!==null&&!it?(Au(e,n,p),Yn(e,n,p)):(_e&&i&&fu(n),n.flags|=1,Ct(e,n,a,p),n.child)}function S2(e,n,a,i,d){if(Fl(n),n.stateNode===null){var p=Aa,y=a.contextType;typeof y=="object"&&y!==null&&(p=bt(y)),p=new a(i,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Qu,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=i,p.state=n.memoizedState,p.refs={},Su(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?bt(y):Aa,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Gu(n,a,y,i),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Qu.enqueueReplaceState(p,p.state,null),Wo(n,i,p,d),Jo(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){p=n.stateNode;var j=n.memoizedProps,N=na(a,j);p.props=N;var B=p.context,q=a.contextType;y=Aa,typeof q=="object"&&q!==null&&(y=bt(q));var G=a.getDerivedStateFromProps;q=typeof G=="function"||typeof p.getSnapshotBeforeUpdate=="function",j=n.pendingProps!==j,q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(j||B!==y)&&s2(n,p,i,y),dl=!1;var U=n.memoizedState;p.state=U,Wo(n,i,p,d),Jo(),B=n.memoizedState,j||U!==B||dl?(typeof G=="function"&&(Gu(n,a,G,i),B=n.memoizedState),(N=dl||c2(n,a,N,i,U,B,y))?(q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=B),p.props=i,p.state=B,p.context=y,i=N):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{p=n.stateNode,ju(e,n),y=n.memoizedProps,q=na(a,y),p.props=q,G=n.pendingProps,U=p.context,B=a.contextType,N=Aa,typeof B=="object"&&B!==null&&(N=bt(B)),j=a.getDerivedStateFromProps,(B=typeof j=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==G||U!==N)&&s2(n,p,i,N),dl=!1,U=n.memoizedState,p.state=U,Wo(n,i,p,d),Jo();var P=n.memoizedState;y!==G||U!==P||dl||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof j=="function"&&(Gu(n,a,j,i),P=n.memoizedState),(q=dl||c2(n,a,q,i,U,P,N)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(B||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(i,P,N),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(i,P,N)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=P),p.props=i,p.state=P,p.context=N,i=q):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),i=!1)}return p=i,Yi(e,n),i=(n.flags&128)!==0,p||i?(p=n.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&i?(n.child=ea(n,e.child,null,d),n.child=ea(n,null,a,d)):Ct(e,n,a,d),n.memoizedState=p.state,e=n.child):e=Yn(e,n,d),e}function j2(e,n,a,i){return Ql(),n.flags|=256,Ct(e,n,a,i),n.child}var Wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Iu(e){return{baseLanes:e,cachePool:p9()}}function e1(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Gt),e}function M2(e,n,a){var i=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(_e){if(d?hl(n):gl(),(e=Qe)?(e=A5(e,an),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:il!==null?{id:bn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=a9(e),a.return=n,n.child=a,yt=n,Qe=null)):e=null,e===null)throw sl(n);return V1(e)?n.lanes=32:n.lanes=536870912,null}var j=i.children;return i=i.fallback,d?(gl(),d=n.mode,j=qi({mode:"hidden",children:j},d),i=Gl(i,d,a,null),j.return=n,i.return=n,j.sibling=i,n.child=j,i=n.child,i.memoizedState=Iu(a),i.childLanes=e1(e,y,a),n.memoizedState=Wu,lr(null,i)):(hl(n),t1(n,j))}var N=e.memoizedState;if(N!==null&&(j=N.dehydrated,j!==null)){if(p)n.flags&256?(hl(n),n.flags&=-257,n=n1(e,n,a)):n.memoizedState!==null?(gl(),n.child=e.child,n.flags|=128,n=null):(gl(),j=i.fallback,d=n.mode,i=qi({mode:"visible",children:i.children},d),j=Gl(j,d,a,null),j.flags|=2,i.return=n,j.return=n,i.sibling=j,n.child=i,ea(n,e.child,null,a),i=n.child,i.memoizedState=Iu(a),i.childLanes=e1(e,y,a),n.memoizedState=Wu,n=lr(null,i));else if(hl(n),V1(j)){if(y=j.nextSibling&&j.nextSibling.dataset,y)var B=y.dgst;y=B,i=Error(r(419)),i.stack="",i.digest=y,qo({value:i,source:null,stack:null}),n=n1(e,n,a)}else if(it||ka(e,n,a,!1),y=(a&e.childLanes)!==0,it||y){if(y=qe,y!==null&&(i=df(y,a),i!==0&&i!==N.retryLane))throw N.retryLane=i,Xl(e,i),Dt(y,e,i),Fu;H1(j)||ec(),n=n1(e,n,a)}else H1(j)?(n.flags|=192,n.child=e.child,n=null):(e=N.treeContext,Qe=rn(j.nextSibling),yt=n,_e=!0,cl=null,an=!1,e!==null&&i9(n,e),n=t1(n,i.children),n.flags|=4096);return n}return d?(gl(),j=i.fallback,d=n.mode,N=e.child,B=N.sibling,i=Dn(N,{mode:"hidden",children:i.children}),i.subtreeFlags=N.subtreeFlags&65011712,B!==null?j=Dn(B,j):(j=Gl(j,d,a,null),j.flags|=2),j.return=n,i.return=n,i.sibling=j,n.child=i,lr(null,i),i=n.child,j=e.child.memoizedState,j===null?j=Iu(a):(d=j.cachePool,d!==null?(N=ot._currentValue,d=d.parent!==N?{parent:N,pool:N}:d):d=p9(),j={baseLanes:j.baseLanes|a,cachePool:d}),i.memoizedState=j,i.childLanes=e1(e,y,a),n.memoizedState=Wu,lr(e.child,i)):(hl(n),a=e.child,e=a.sibling,a=Dn(a,{mode:"visible",children:i.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function t1(e,n){return n=qi({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function qi(e,n){return e=Pt(22,e,null,n),e.lanes=0,e}function n1(e,n,a){return ea(n,e.child,null,a),e=t1(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function E2(e,n,a){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),xu(e.return,n,a)}function l1(e,n,a,i,d,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function T2(e,n,a){var i=n.pendingProps,d=i.revealOrder,p=i.tail;i=i.children;var y=lt.current,j=(y&2)!==0;if(j?(y=y&1|2,n.flags|=128):y&=1,te(lt,y),Ct(e,n,i,a),i=_e?Yo:0,!j&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&E2(e,a,n);else if(e.tag===19)E2(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)e=a.alternate,e!==null&&Ai(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),l1(n,!1,d,a,p,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Ai(e)===null){n.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}l1(n,!0,a,null,p,i);break;case"together":l1(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function Yn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),vl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(ka(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Dn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Dn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function a1(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function _g(e,n,a){switch(n.tag){case 3:pe(n,n.stateNode.containerInfo),ul(n,ot,e.memoizedState.cache),Ql();break;case 27:case 5:Ne(n);break;case 4:pe(n,n.stateNode.containerInfo);break;case 10:ul(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,_u(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(hl(n),n.flags|=128,null):(a&n.child.childLanes)!==0?M2(e,n,a):(hl(n),e=Yn(e,n,a),e!==null?e.sibling:null);hl(n);break;case 19:var d=(e.flags&128)!==0;if(i=(a&n.childLanes)!==0,i||(ka(e,n,a,!1),i=(a&n.childLanes)!==0),d){if(i)return T2(e,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),te(lt,lt.current),i)break;return null;case 22:return n.lanes=0,y2(e,n,a,n.pendingProps);case 24:ul(n,ot,e.memoizedState.cache)}return Yn(e,n,a)}function R2(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)it=!0;else{if(!a1(e,a)&&(n.flags&128)===0)return it=!1,_g(e,n,a);it=(e.flags&131072)!==0}else it=!1,_e&&(n.flags&1048576)!==0&&r9(n,Yo,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Wl(n.elementType),n.type=e,typeof e=="function")su(e)?(i=na(e,i),n.tag=1,n=S2(null,n,e,i,a)):(n.tag=0,n=Ju(null,n,e,i,a));else{if(e!=null){var d=e.$$typeof;if(d===O){n.tag=11,n=m2(null,n,e,i,a);break e}else if(d===z){n.tag=14,n=x2(null,n,e,i,a);break e}}throw n=oe(e)||e,Error(r(306,n,""))}}return n;case 0:return Ju(e,n,n.type,n.pendingProps,a);case 1:return i=n.type,d=na(i,n.pendingProps),S2(e,n,i,d,a);case 3:e:{if(pe(n,n.stateNode.containerInfo),e===null)throw Error(r(387));i=n.pendingProps;var p=n.memoizedState;d=p.element,ju(e,n),Wo(n,i,null,a);var y=n.memoizedState;if(i=y.cache,ul(n,ot,i),i!==p.cache&&vu(n,[ot],a,!0),Jo(),i=y.element,p.isDehydrated)if(p={element:i,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=j2(e,n,i,a);break e}else if(i!==d){d=tn(Error(r(424)),n),qo(d),n=j2(e,n,i,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=rn(e.firstChild),yt=n,_e=!0,cl=null,an=!0,a=y9(n,null,i,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ql(),i===d){n=Yn(e,n,a);break e}Ct(e,n,i,a)}n=n.child}return n;case 26:return Yi(e,n),e===null?(a=$5(n.type,null,n.pendingProps,null))?n.memoizedState=a:_e||(a=n.type,e=n.pendingProps,i=ic(I.current).createElement(a),i[vt]=n,i[Ot]=e,wt(i,a,e),gt(i),n.stateNode=i):n.memoizedState=$5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ne(n),e===null&&_e&&(i=n.stateNode=V5(n.type,n.pendingProps,I.current),yt=n,an=!0,d=Qe,Sl(n.type)?(k1=d,Qe=rn(i.firstChild)):Qe=d),Ct(e,n,n.pendingProps.children,a),Yi(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&_e&&((d=i=Qe)&&(i=o6(i,n.type,n.pendingProps,an),i!==null?(n.stateNode=i,yt=n,Qe=rn(i.firstChild),an=!1,d=!0):d=!1),d||sl(n)),Ne(n),d=n.type,p=n.pendingProps,y=e!==null?e.memoizedProps:null,i=p.children,O1(d,p)?i=null:y!==null&&O1(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=Lu(e,n,bg,null,null,a),vr._currentValue=d),Yi(e,n),Ct(e,n,i,a),n.child;case 6:return e===null&&_e&&((e=a=Qe)&&(a=r6(a,n.pendingProps,an),a!==null?(n.stateNode=a,yt=n,Qe=null,e=!0):e=!1),e||sl(n)),null;case 13:return M2(e,n,a);case 4:return pe(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=ea(n,null,i,a):Ct(e,n,i,a),n.child;case 11:return m2(e,n,n.type,n.pendingProps,a);case 7:return Ct(e,n,n.pendingProps,a),n.child;case 8:return Ct(e,n,n.pendingProps.children,a),n.child;case 12:return Ct(e,n,n.pendingProps.children,a),n.child;case 10:return i=n.pendingProps,ul(n,n.type,i.value),Ct(e,n,i.children,a),n.child;case 9:return d=n.type._context,i=n.pendingProps.children,Fl(n),d=bt(d),i=i(d),n.flags|=1,Ct(e,n,i,a),n.child;case 14:return x2(e,n,n.type,n.pendingProps,a);case 15:return v2(e,n,n.type,n.pendingProps,a);case 19:return T2(e,n,a);case 31:return Rg(e,n,a);case 22:return y2(e,n,a,n.pendingProps);case 24:return Fl(n),i=bt(ot),e===null?(d=Cu(),d===null&&(d=qe,p=yu(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:i,cache:d},Su(n),ul(n,ot,d)):((e.lanes&a)!==0&&(ju(e,n),Wo(n,null,null,a),Jo()),d=e.memoizedState,p=n.memoizedState,d.parent!==i?(d={parent:i,cache:i},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),ul(n,ot,i)):(i=p.cache,ul(n,ot,i),i!==d.cache&&vu(n,[ot],a,!0))),Ct(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function qn(e){e.flags|=4}function o1(e,n,a,i,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(t5())e.flags|=8192;else throw Il=_i,wu}else e.flags&=-16777217}function _2(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Y5(n))if(t5())e.flags|=8192;else throw Il=_i,wu}function Xi(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?cf():536870912,e.lanes|=n,Ka|=n)}function ar(e,n){if(!_e)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ke(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(n)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,i|=d.subtreeFlags&65011712,i|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,i|=d.subtreeFlags,i|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=i,e.childLanes=a,n}function Ng(e,n,a){var i=n.pendingProps;switch(pu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return a=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Zn(ot),ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Va(n)?qn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,gu())),Ke(n),null;case 26:var d=n.type,p=n.memoizedState;return e===null?(qn(n),p!==null?(Ke(n),_2(n,p)):(Ke(n),o1(n,d,null,i,a))):p?p!==e.memoizedState?(qn(n),Ke(n),_2(n,p)):(Ke(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&qn(n),Ke(n),o1(n,d,e,i,a)),null;case 27:if(Re(n),a=I.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&qn(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ke(n),null}e=le.current,Va(n)?c9(n):(e=V5(d,i,a),n.stateNode=e,qn(n))}return Ke(n),null;case 5:if(Re(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&qn(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ke(n),null}if(p=le.current,Va(n))c9(n);else{var y=ic(I.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?p.multiple=!0:i.size&&(p.size=i.size);break;default:p=typeof i.is=="string"?y.createElement(d,{is:i.is}):y.createElement(d)}}p[vt]=n,p[Ot]=i;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;e:switch(wt(p,d,i),d){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&qn(n)}}return Ke(n),o1(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&qn(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(r(166));if(e=I.current,Va(n)){if(e=n.stateNode,a=n.memoizedProps,i=null,d=yt,d!==null)switch(d.tag){case 27:case 5:i=d.memoizedProps}e[vt]=n,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||M5(e.nodeValue,a)),e||sl(n,!0)}else e=ic(e).createTextNode(i),e[vt]=n,n.stateNode=e}return Ke(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(i=Va(n),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[vt]=n}else Ql(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),e=!1}else a=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(qt(n),n):(qt(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Ke(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Va(n),i!==null&&i.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[vt]=n}else Ql(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),d=!1}else d=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(qt(n),n):(qt(n),null)}return qt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=n.child,d=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(d=i.alternate.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==d&&(i.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),Xi(n,n.updateQueue),Ke(n),null);case 4:return ve(),e===null&&T1(n.stateNode.containerInfo),Ke(n),null;case 10:return Zn(n.type),Ke(n),null;case 19:if(Y(lt),i=n.memoizedState,i===null)return Ke(n),null;if(d=(n.flags&128)!==0,p=i.rendering,p===null)if(d)ar(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Ai(e),p!==null){for(n.flags|=128,ar(i,!1),e=p.updateQueue,n.updateQueue=e,Xi(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)l9(a,e),a=a.sibling;return te(lt,lt.current&1|2),_e&&$n(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&ut()>Ji&&(n.flags|=128,d=!0,ar(i,!1),n.lanes=4194304)}else{if(!d)if(e=Ai(p),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,Xi(n,e),ar(i,!0),i.tail===null&&i.tailMode==="hidden"&&!p.alternate&&!_e)return Ke(n),null}else 2*ut()-i.renderingStartTime>Ji&&a!==536870912&&(n.flags|=128,d=!0,ar(i,!1),n.lanes=4194304);i.isBackwards?(p.sibling=n.child,n.child=p):(e=i.last,e!==null?e.sibling=p:n.child=p,i.last=p)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ut(),e.sibling=null,a=lt.current,te(lt,d?a&1|2:a&1),_e&&$n(n,i.treeForkCount),e):(Ke(n),null);case 22:case 23:return qt(n),Ru(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(a&536870912)!==0&&(n.flags&128)===0&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),a=n.updateQueue,a!==null&&Xi(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048),e!==null&&Y(Jl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Zn(ot),Ke(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function Lg(e,n){switch(pu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Zn(ot),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Re(n),null;case 31:if(n.memoizedState!==null){if(qt(n),n.alternate===null)throw Error(r(340));Ql()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(qt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Ql()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(lt),null;case 4:return ve(),null;case 10:return Zn(n.type),null;case 22:case 23:return qt(n),Ru(),e!==null&&Y(Jl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Zn(ot),null;case 25:return null;default:return null}}function N2(e,n){switch(pu(n),n.tag){case 3:Zn(ot),ve();break;case 26:case 27:case 5:Re(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&qt(n);break;case 13:qt(n);break;case 19:Y(lt);break;case 10:Zn(n.type);break;case 22:case 23:qt(n),Ru(),e!==null&&Y(Jl);break;case 24:Zn(ot)}}function or(e,n){try{var a=n.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var d=i.next;a=d;do{if((a.tag&e)===e){i=void 0;var p=a.create,y=a.inst;i=p(),y.destroy=i}a=a.next}while(a!==d)}}catch(j){De(n,n.return,j)}}function ml(e,n,a){try{var i=n.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var p=d.next;i=p;do{if((i.tag&e)===e){var y=i.inst,j=y.destroy;if(j!==void 0){y.destroy=void 0,d=n;var N=a,B=j;try{B()}catch(q){De(d,N,q)}}}i=i.next}while(i!==p)}}catch(q){De(n,n.return,q)}}function L2(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{C9(n,a)}catch(i){De(e,e.return,i)}}}function O2(e,n,a){a.props=na(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){De(e,n,i)}}function rr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(d){De(e,n,d)}}function wn(e,n){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(d){De(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){De(e,n,d)}else a.current=null}function A2(e){var n=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(d){De(e,e.return,d)}}function r1(e,n,a){try{var i=e.stateNode;Ig(i,e.type,a,n),i[Ot]=n}catch(d){De(e,e.return,d)}}function z2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sl(e.type)||e.tag===4}function i1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z2(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.tag===27&&Sl(e.type)||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 c1(e,n,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Vn));else if(i!==4&&(i===27&&Sl(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(c1(e,n,a),e=e.sibling;e!==null;)c1(e,n,a),e=e.sibling}function Gi(e,n,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(i!==4&&(i===27&&Sl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Gi(e,n,a),e=e.sibling;e!==null;)Gi(e,n,a),e=e.sibling}function H2(e){var n=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);wt(n,i,a),n[vt]=e,n[Ot]=a}catch(p){De(e,e.return,p)}}var Xn=!1,ct=!1,s1=!1,V2=typeof WeakSet=="function"?WeakSet:Set,mt=null;function Og(e,n){if(e=e.containerInfo,N1=hc,e=Qf(e),nu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var d=i.anchorOffset,p=i.focusNode;i=i.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,j=-1,N=-1,B=0,q=0,G=e,U=null;t:for(;;){for(var P;G!==a||d!==0&&G.nodeType!==3||(j=y+d),G!==p||i!==0&&G.nodeType!==3||(N=y+i),G.nodeType===3&&(y+=G.nodeValue.length),(P=G.firstChild)!==null;)U=G,G=P;for(;;){if(G===e)break t;if(U===a&&++B===d&&(j=y),U===p&&++q===i&&(N=y),(P=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=P}a=j===-1||N===-1?null:{start:j,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(L1={focusedElem:e,selectionRange:a},hc=!1,mt=n;mt!==null;)if(n=mt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mt=e;else for(;mt!==null;){switch(n=mt,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,i=a.stateNode;try{var ue=na(a.type,d);e=i.getSnapshotBeforeUpdate(ue,p),i.__reactInternalSnapshotBeforeUpdate=e}catch(xe){De(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)z1(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":z1(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mt=e;break}mt=n.return}}function k2(e,n,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Qn(e,a),i&4&&or(5,a);break;case 1:if(Qn(e,a),i&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(y){De(a,a.return,y)}else{var d=na(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(a,a.return,y)}}i&64&&L2(a),i&512&&rr(a,a.return);break;case 3:if(Qn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{C9(e,n)}catch(y){De(a,a.return,y)}}break;case 27:n===null&&i&4&&H2(a);case 26:case 5:Qn(e,a),n===null&&i&4&&A2(a),i&512&&rr(a,a.return);break;case 12:Qn(e,a);break;case 31:Qn(e,a),i&4&&B2(e,a);break;case 13:Qn(e,a),i&4&&Z2(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Zg.bind(null,a),i6(e,a))));break;case 22:if(i=a.memoizedState!==null||Xn,!i){n=n!==null&&n.memoizedState!==null||ct,d=Xn;var p=ct;Xn=i,(ct=n)&&!p?Kn(e,a,(a.subtreeFlags&8772)!==0):Qn(e,a),Xn=d,ct=p}break;case 30:break;default:Qn(e,a)}}function D2(e){var n=e.alternate;n!==null&&(e.alternate=null,D2(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&$s(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,zt=!1;function Gn(e,n,a){for(a=a.child;a!==null;)$2(e,n,a),a=a.sibling}function $2(e,n,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(No,a)}catch{}switch(a.tag){case 26:ct||wn(a,n),Gn(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||wn(a,n);var i=Je,d=zt;Sl(a.type)&&(Je=a.stateNode,zt=!1),Gn(e,n,a),gr(a.stateNode),Je=i,zt=d;break;case 5:ct||wn(a,n);case 6:if(i=Je,d=zt,Je=null,Gn(e,n,a),Je=i,zt=d,Je!==null)if(zt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(p){De(a,n,p)}else try{Je.removeChild(a.stateNode)}catch(p){De(a,n,p)}break;case 18:Je!==null&&(zt?(e=Je,L5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),lo(e)):L5(Je,a.stateNode));break;case 4:i=Je,d=zt,Je=a.stateNode.containerInfo,zt=!0,Gn(e,n,a),Je=i,zt=d;break;case 0:case 11:case 14:case 15:ml(2,a,n),ct||ml(4,a,n),Gn(e,n,a);break;case 1:ct||(wn(a,n),i=a.stateNode,typeof i.componentWillUnmount=="function"&&O2(a,n,i)),Gn(e,n,a);break;case 21:Gn(e,n,a);break;case 22:ct=(i=ct)||a.memoizedState!==null,Gn(e,n,a),ct=i;break;default:Gn(e,n,a)}}function B2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{lo(e)}catch(a){De(n,n.return,a)}}}function Z2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{lo(e)}catch(a){De(n,n.return,a)}}function Ag(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new V2),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new V2),n;default:throw Error(r(435,e.tag))}}function Qi(e,n){var a=Ag(e);n.forEach(function(i){if(!a.has(i)){a.add(i);var d=Ug.bind(null,e,i);i.then(d,d)}})}function Ht(e,n){var a=n.deletions;if(a!==null)for(var i=0;i<a.length;i++){var d=a[i],p=e,y=n,j=y;e:for(;j!==null;){switch(j.tag){case 27:if(Sl(j.type)){Je=j.stateNode,zt=!1;break e}break;case 5:Je=j.stateNode,zt=!1;break e;case 3:case 4:Je=j.stateNode.containerInfo,zt=!0;break e}j=j.return}if(Je===null)throw Error(r(160));$2(p,y,d),Je=null,zt=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)U2(n,e),n=n.sibling}var hn=null;function U2(e,n){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(n,e),Vt(e),i&4&&(ml(3,e,e.return),or(3,e),ml(5,e,e.return));break;case 1:Ht(n,e),Vt(e),i&512&&(ct||a===null||wn(a,a.return)),i&64&&Xn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var d=hn;if(Ht(n,e),Vt(e),i&512&&(ct||a===null||wn(a,a.return)),i&4){var p=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,d=d.ownerDocument||d;t:switch(i){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ao]||p[vt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(i),d.head.insertBefore(p,d.querySelector("head > title"))),wt(p,i,a),p[vt]=e,gt(p),i=p;break e;case"link":var y=U5("link","href",d).get(i+(a.href||""));if(y){for(var j=0;j<y.length;j++)if(p=y[j],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(j,1);break t}}p=d.createElement(i),wt(p,i,a),d.head.appendChild(p);break;case"meta":if(y=U5("meta","content",d).get(i+(a.content||""))){for(j=0;j<y.length;j++)if(p=y[j],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(j,1);break t}}p=d.createElement(i),wt(p,i,a),d.head.appendChild(p);break;default:throw Error(r(468,i))}p[vt]=e,gt(p),i=p}e.stateNode=i}else P5(d,e.type,e.stateNode);else e.stateNode=Z5(d,i,e.memoizedProps);else p!==i?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,i===null?P5(d,e.type,e.stateNode):Z5(d,i,e.memoizedProps)):i===null&&e.stateNode!==null&&r1(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ht(n,e),Vt(e),i&512&&(ct||a===null||wn(a,a.return)),a!==null&&i&4&&r1(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ht(n,e),Vt(e),i&512&&(ct||a===null||wn(a,a.return)),e.flags&32){d=e.stateNode;try{Ea(d,"")}catch(ue){De(e,e.return,ue)}}i&4&&e.stateNode!=null&&(d=e.memoizedProps,r1(e,d,a!==null?a.memoizedProps:d)),i&1024&&(s1=!0);break;case 6:if(Ht(n,e),Vt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ue){De(e,e.return,ue)}}break;case 3:if(uc=null,d=hn,hn=cc(n.containerInfo),Ht(n,e),hn=d,Vt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{lo(n.containerInfo)}catch(ue){De(e,e.return,ue)}s1&&(s1=!1,P2(e));break;case 4:i=hn,hn=cc(e.stateNode.containerInfo),Ht(n,e),Vt(e),hn=i;break;case 12:Ht(n,e),Vt(e);break;case 31:Ht(n,e),Vt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qi(e,i)));break;case 13:Ht(n,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fi=ut()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qi(e,i)));break;case 22:d=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,B=Xn,q=ct;if(Xn=B||d,ct=q||N,Ht(n,e),ct=q,Xn=B,Vt(e),i&8192)e:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||N||Xn||ct||la(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){N=a=n;try{if(p=N.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{j=N.stateNode;var G=N.memoizedProps.style,U=G!=null&&G.hasOwnProperty("display")?G.display:null;j.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ue){De(N,N.return,ue)}}}else if(n.tag===6){if(a===null){N=n;try{N.stateNode.nodeValue=d?"":N.memoizedProps}catch(ue){De(N,N.return,ue)}}}else if(n.tag===18){if(a===null){N=n;try{var P=N.stateNode;d?O5(P,!0):O5(N.stateNode,!1)}catch(ue){De(N,N.return,ue)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Qi(e,a))));break;case 19:Ht(n,e),Vt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qi(e,i)));break;case 30:break;case 21:break;default:Ht(n,e),Vt(e)}}function Vt(e){var n=e.flags;if(n&2){try{for(var a,i=e.return;i!==null;){if(z2(i)){a=i;break}i=i.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=i1(e);Gi(e,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(Ea(y,""),a.flags&=-33);var j=i1(e);Gi(e,j,y);break;case 3:case 4:var N=a.stateNode.containerInfo,B=i1(e);c1(e,B,N);break;default:throw Error(r(161))}}catch(q){De(e,e.return,q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function P2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;P2(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Qn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)k2(e,n.alternate,n),n=n.sibling}function la(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ml(4,n,n.return),la(n);break;case 1:wn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&O2(n,n.return,a),la(n);break;case 27:gr(n.stateNode);case 26:case 5:wn(n,n.return),la(n);break;case 22:n.memoizedState===null&&la(n);break;case 30:la(n);break;default:la(n)}e=e.sibling}}function Kn(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,d=e,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:Kn(d,p,a),or(4,p);break;case 1:if(Kn(d,p,a),i=p,d=i.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(B){De(i,i.return,B)}if(i=p,d=i.updateQueue,d!==null){var j=i.stateNode;try{var N=d.shared.hiddenCallbacks;if(N!==null)for(d.shared.hiddenCallbacks=null,d=0;d<N.length;d++)b9(N[d],j)}catch(B){De(i,i.return,B)}}a&&y&64&&L2(p),rr(p,p.return);break;case 27:H2(p);case 26:case 5:Kn(d,p,a),a&&i===null&&y&4&&A2(p),rr(p,p.return);break;case 12:Kn(d,p,a);break;case 31:Kn(d,p,a),a&&y&4&&B2(d,p);break;case 13:Kn(d,p,a),a&&y&4&&Z2(d,p);break;case 22:p.memoizedState===null&&Kn(d,p,a),rr(p,p.return);break;case 30:break;default:Kn(d,p,a)}n=n.sibling}}function u1(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Xo(a))}function d1(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Xo(e))}function gn(e,n,a,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Y2(e,n,a,i),n=n.sibling}function Y2(e,n,a,i){var d=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n,a,i),d&2048&&or(9,n);break;case 1:gn(e,n,a,i);break;case 3:gn(e,n,a,i),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Xo(e)));break;case 12:if(d&2048){gn(e,n,a,i),e=n.stateNode;try{var p=n.memoizedProps,y=p.id,j=p.onPostCommit;typeof j=="function"&&j(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(n,n.return,N)}}else gn(e,n,a,i);break;case 31:gn(e,n,a,i);break;case 13:gn(e,n,a,i);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?gn(e,n,a,i):ir(e,n):p._visibility&2?gn(e,n,a,i):(p._visibility|=2,Xa(e,n,a,i,(n.subtreeFlags&10256)!==0||!1)),d&2048&&u1(y,n);break;case 24:gn(e,n,a,i),d&2048&&d1(n.alternate,n);break;default:gn(e,n,a,i)}}function Xa(e,n,a,i,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,y=n,j=a,N=i,B=y.flags;switch(y.tag){case 0:case 11:case 15:Xa(p,y,j,N,d),or(8,y);break;case 23:break;case 22:var q=y.stateNode;y.memoizedState!==null?q._visibility&2?Xa(p,y,j,N,d):ir(p,y):(q._visibility|=2,Xa(p,y,j,N,d)),d&&B&2048&&u1(y.alternate,y);break;case 24:Xa(p,y,j,N,d),d&&B&2048&&d1(y.alternate,y);break;default:Xa(p,y,j,N,d)}n=n.sibling}}function ir(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,i=n,d=i.flags;switch(i.tag){case 22:ir(a,i),d&2048&&u1(i.alternate,i);break;case 24:ir(a,i),d&2048&&d1(i.alternate,i);break;default:ir(a,i)}n=n.sibling}}var cr=8192;function Ga(e,n,a){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)q2(e,n,a),e=e.sibling}function q2(e,n,a){switch(e.tag){case 26:Ga(e,n,a),e.flags&cr&&e.memoizedState!==null&&y6(a,hn,e.memoizedState,e.memoizedProps);break;case 5:Ga(e,n,a);break;case 3:case 4:var i=hn;hn=cc(e.stateNode.containerInfo),Ga(e,n,a),hn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=cr,cr=16777216,Ga(e,n,a),cr=i):Ga(e,n,a));break;default:Ga(e,n,a)}}function X2(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function sr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];mt=i,Q2(i,e)}X2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)G2(e),e=e.sibling}function G2(e){switch(e.tag){case 0:case 11:case 15:sr(e),e.flags&2048&&ml(9,e,e.return);break;case 3:sr(e);break;case 12:sr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ki(e)):sr(e);break;default:sr(e)}}function Ki(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];mt=i,Q2(i,e)}X2(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ml(8,n,n.return),Ki(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Ki(n));break;default:Ki(n)}e=e.sibling}}function Q2(e,n){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:ml(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Xo(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,mt=i;else e:for(a=e;mt!==null;){i=mt;var d=i.sibling,p=i.return;if(D2(i),i===a){mt=null;break e}if(d!==null){d.return=p,mt=d;break e}mt=p}}}var zg={getCacheForType:function(e){var n=bt(ot),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return bt(ot).controller.signal}},Hg=typeof WeakMap=="function"?WeakMap:Map,He=0,qe=null,je=null,Ee=0,ke=0,Xt=null,xl=!1,Qa=!1,f1=!1,Fn=0,tt=0,vl=0,aa=0,p1=0,Gt=0,Ka=0,ur=null,kt=null,h1=!1,Fi=0,K2=0,Ji=1/0,Wi=null,yl=null,dt=0,bl=null,Fa=null,Jn=0,g1=0,m1=null,F2=null,dr=0,x1=null;function Qt(){return(He&2)!==0&&Ee!==0?Ee&-Ee:H.T!==null?S1():ff()}function J2(){if(Gt===0)if((Ee&536870912)===0||_e){var e=ri;ri<<=1,(ri&3932160)===0&&(ri=262144),Gt=e}else Gt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Gt}function Dt(e,n,a){(e===qe&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ja(e,0),Cl(e,Ee,Gt,!1)),Oo(e,a),((He&2)===0||e!==qe)&&(e===qe&&((He&2)===0&&(aa|=a),tt===4&&Cl(e,Ee,Gt,!1)),Sn(e))}function W2(e,n,a){if((He&6)!==0)throw Error(r(327));var i=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Lo(e,n),d=i?Dg(e,n):y1(e,n,!0),p=i;do{if(d===0){Qa&&!i&&Cl(e,n,0,!1);break}else{if(a=e.current.alternate,p&&!Vg(a)){d=y1(e,n,!1),p=!1;continue}if(d===2){if(p=n,e.errorRecoveryDisabledLanes&p)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var j=e;d=ur;var N=j.current.memoizedState.isDehydrated;if(N&&(Ja(j,y).flags|=256),y=y1(j,y,!1),y!==2){if(f1&&!N){j.errorRecoveryDisabledLanes|=p,aa|=p,d=4;break e}p=kt,kt=d,p!==null&&(kt===null?kt=p:kt.push.apply(kt,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){Ja(e,0),Cl(e,n,0,!0);break}e:{switch(i=e,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Cl(i,n,Gt,!xl);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(d=Fi+300-ut(),10<d)){if(Cl(i,n,Gt,!xl),ci(i,0,!0)!==0)break e;Jn=n,i.timeoutHandle=_5(I2.bind(null,i,a,kt,Wi,h1,n,Gt,aa,Ka,xl,p,"Throttled",-0,0),d);break e}I2(i,a,kt,Wi,h1,n,Gt,aa,Ka,xl,p,null,-0,0)}}break}while(!0);Sn(e)}function I2(e,n,a,i,d,p,y,j,N,B,q,G,U,P){if(e.timeoutHandle=-1,G=n.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vn},q2(n,p,G);var ue=(p&62914560)===p?Fi-ut():(p&4194048)===p?K2-ut():0;if(ue=b6(G,ue),ue!==null){Jn=p,e.cancelPendingCommit=ue(i5.bind(null,e,n,p,a,i,d,y,j,N,q,G,null,U,P)),Cl(e,p,y,!B);return}}i5(e,n,p,a,i,d,y,j,N)}function Vg(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var d=a[i],p=d.getSnapshot;d=d.value;try{if(!Ut(p(),d))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Cl(e,n,a,i){n&=~p1,n&=~aa,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var d=n;0<d;){var p=31-Zt(d),y=1<<p;i[p]=-1,d&=~y}a!==0&&sf(e,a,n)}function Ii(){return(He&6)===0?(fr(0),!1):!0}function v1(){if(je!==null){if(ke===0)var e=je.return;else e=je,Bn=Kl=null,zu(e),Za=null,Qo=0,e=je;for(;e!==null;)N2(e.alternate,e),e=e.return;je=null}}function Ja(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,n6(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jn=0,v1(),qe=e,je=a=Dn(e.current,null),Ee=n,ke=0,Xt=null,xl=!1,Qa=Lo(e,n),f1=!1,Ka=Gt=p1=aa=vl=tt=0,kt=ur=null,h1=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var d=31-Zt(i),p=1<<d;n|=e[d],i&=~p}return Fn=n,bi(),a}function e5(e,n){we=null,H.H=nr,n===Ba||n===Ri?(n=m9(),ke=3):n===wu?(n=m9(),ke=4):ke=n===Fu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Xt=n,je===null&&(tt=1,Ui(e,tn(n,e.current)))}function t5(){var e=Yt.current;return e===null?!0:(Ee&4194048)===Ee?on===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===on:!1}function n5(){var e=H.H;return H.H=nr,e===null?nr:e}function l5(){var e=H.A;return H.A=zg,e}function ec(){tt=4,xl||(Ee&4194048)!==Ee&&Yt.current!==null||(Qa=!0),(vl&134217727)===0&&(aa&134217727)===0||qe===null||Cl(qe,Ee,Gt,!1)}function y1(e,n,a){var i=He;He|=2;var d=n5(),p=l5();(qe!==e||Ee!==n)&&(Wi=null,Ja(e,n)),n=!1;var y=tt;e:do try{if(ke!==0&&je!==null){var j=je,N=Xt;switch(ke){case 8:v1(),y=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(n=!0);var B=ke;if(ke=0,Xt=null,Wa(e,j,N,B),a&&Qa){y=0;break e}break;default:B=ke,ke=0,Xt=null,Wa(e,j,N,B)}}kg(),y=tt;break}catch(q){e5(e,q)}while(!0);return n&&e.shellSuspendCounter++,Bn=Kl=null,He=i,H.H=d,H.A=p,je===null&&(qe=null,Ee=0,bi()),y}function kg(){for(;je!==null;)a5(je)}function Dg(e,n){var a=He;He|=2;var i=n5(),d=l5();qe!==e||Ee!==n?(Wi=null,Ji=ut()+500,Ja(e,n)):Qa=Lo(e,n);e:do try{if(ke!==0&&je!==null){n=je;var p=Xt;t:switch(ke){case 1:ke=0,Xt=null,Wa(e,n,p,1);break;case 2:case 9:if(h9(p)){ke=0,Xt=null,o5(n);break}n=function(){ke!==2&&ke!==9||qe!==e||(ke=7),Sn(e)},p.then(n,n);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:h9(p)?(ke=0,Xt=null,o5(n)):(ke=0,Xt=null,Wa(e,n,p,7));break;case 5:var y=null;switch(je.tag){case 26:y=je.memoizedState;case 5:case 27:var j=je;if(y?Y5(y):j.stateNode.complete){ke=0,Xt=null;var N=j.sibling;if(N!==null)je=N;else{var B=j.return;B!==null?(je=B,tc(B)):je=null}break t}}ke=0,Xt=null,Wa(e,n,p,5);break;case 6:ke=0,Xt=null,Wa(e,n,p,6);break;case 8:v1(),tt=6;break e;default:throw Error(r(462))}}$g();break}catch(q){e5(e,q)}while(!0);return Bn=Kl=null,H.H=i,H.A=d,He=a,je!==null?0:(qe=null,Ee=0,bi(),tt)}function $g(){for(;je!==null&&!be();)a5(je)}function a5(e){var n=R2(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,n===null?tc(e):je=n}function o5(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=w2(a,n,n.pendingProps,n.type,void 0,Ee);break;case 11:n=w2(a,n,n.pendingProps,n.type.render,n.ref,Ee);break;case 5:zu(n);default:N2(a,n),n=je=l9(n,Fn),n=R2(a,n,Fn)}e.memoizedProps=e.pendingProps,n===null?tc(e):je=n}function Wa(e,n,a,i){Bn=Kl=null,zu(n),Za=null,Qo=0;var d=n.return;try{if(Tg(e,d,n,a,Ee)){tt=1,Ui(e,tn(a,e.current)),je=null;return}}catch(p){if(d!==null)throw je=d,p;tt=1,Ui(e,tn(a,e.current)),je=null;return}n.flags&32768?(_e||i===1?e=!0:Qa||(Ee&536870912)!==0?e=!1:(xl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Yt.current,i!==null&&i.tag===13&&(i.flags|=16384))),r5(n,e)):tc(n)}function tc(e){var n=e;do{if((n.flags&32768)!==0){r5(n,xl);return}e=n.return;var a=Ng(n.alternate,n,Fn);if(a!==null){je=a;return}if(n=n.sibling,n!==null){je=n;return}je=n=e}while(n!==null);tt===0&&(tt=5)}function r5(e,n){do{var a=Lg(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);tt=6,je=null}function i5(e,n,a,i,d,p,y,j,N){e.cancelPendingCommit=null;do nc();while(dt!==0);if((He&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(p=n.lanes|n.childLanes,p|=iu,v8(e,a,p,y,j,N),e===qe&&(je=qe=null,Ee=0),Fa=n,bl=e,Jn=a,g1=p,m1=d,F2=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pg(ai,function(){return f5(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=H.T,H.T=null,d=D.p,D.p=2,y=He,He|=4;try{Og(e,n,a)}finally{He=y,D.p=d,H.T=i}}dt=1,c5(),s5(),u5()}}function c5(){if(dt===1){dt=0;var e=bl,n=Fa,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var i=D.p;D.p=2;var d=He;He|=4;try{U2(n,e);var p=L1,y=Qf(e.containerInfo),j=p.focusedElem,N=p.selectionRange;if(y!==j&&j&&j.ownerDocument&&Gf(j.ownerDocument.documentElement,j)){if(N!==null&&nu(j)){var B=N.start,q=N.end;if(q===void 0&&(q=B),"selectionStart"in j)j.selectionStart=B,j.selectionEnd=Math.min(q,j.value.length);else{var G=j.ownerDocument||document,U=G&&G.defaultView||window;if(U.getSelection){var P=U.getSelection(),ue=j.textContent.length,xe=Math.min(N.start,ue),Pe=N.end===void 0?xe:Math.min(N.end,ue);!P.extend&&xe>Pe&&(y=Pe,Pe=xe,xe=y);var V=Xf(j,xe),A=Xf(j,Pe);if(V&&A&&(P.rangeCount!==1||P.anchorNode!==V.node||P.anchorOffset!==V.offset||P.focusNode!==A.node||P.focusOffset!==A.offset)){var $=G.createRange();$.setStart(V.node,V.offset),P.removeAllRanges(),xe>Pe?(P.addRange($),P.extend(A.node,A.offset)):($.setEnd(A.node,A.offset),P.addRange($))}}}}for(G=[],P=j;P=P.parentNode;)P.nodeType===1&&G.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<G.length;j++){var X=G[j];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}hc=!!N1,L1=N1=null}finally{He=d,D.p=i,H.T=a}}e.current=n,dt=2}}function s5(){if(dt===2){dt=0;var e=bl,n=Fa,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var i=D.p;D.p=2;var d=He;He|=4;try{k2(e,n.alternate,n)}finally{He=d,D.p=i,H.T=a}}dt=3}}function u5(){if(dt===4||dt===3){dt=0,Lt();var e=bl,n=Fa,a=Jn,i=F2;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,Fa=bl=null,d5(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(yl=null),ks(a),n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(No,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=H.T,d=D.p,D.p=2,H.T=null;try{for(var p=e.onRecoverableError,y=0;y<i.length;y++){var j=i[y];p(j.value,{componentStack:j.stack})}}finally{H.T=n,D.p=d}}(Jn&3)!==0&&nc(),Sn(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===x1?dr++:(dr=0,x1=e):dr=0,fr(0)}}function d5(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Xo(n)))}function nc(){return c5(),s5(),u5(),f5()}function f5(){if(dt!==5)return!1;var e=bl,n=g1;g1=0;var a=ks(Jn),i=H.T,d=D.p;try{D.p=32>a?32:a,H.T=null,a=m1,m1=null;var p=bl,y=Jn;if(dt=0,Fa=bl=null,Jn=0,(He&6)!==0)throw Error(r(331));var j=He;if(He|=4,G2(p.current),Y2(p,p.current,y,a),He=j,fr(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(No,p)}catch{}return!0}finally{D.p=d,H.T=i,d5(e,n)}}function p5(e,n,a){n=tn(a,n),n=Ku(e.stateNode,n,2),e=pl(e,n,2),e!==null&&(Oo(e,2),Sn(e))}function De(e,n,a){if(e.tag===3)p5(e,e,a);else for(;n!==null;){if(n.tag===3){p5(n,e,a);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(yl===null||!yl.has(i))){e=tn(a,e),a=h2(2),i=pl(n,a,2),i!==null&&(g2(a,i,n,e),Oo(i,2),Sn(i));break}}n=n.return}}function b1(e,n,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Hg;var d=new Set;i.set(n,d)}else d=i.get(n),d===void 0&&(d=new Set,i.set(n,d));d.has(a)||(f1=!0,d.add(a),e=Bg.bind(null,e,n,a),n.then(e,e))}function Bg(e,n,a){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(Ee&a)===a&&(tt===4||tt===3&&(Ee&62914560)===Ee&&300>ut()-Fi?(He&2)===0&&Ja(e,0):p1|=a,Ka===Ee&&(Ka=0)),Sn(e)}function h5(e,n){n===0&&(n=cf()),e=Xl(e,n),e!==null&&(Oo(e,n),Sn(e))}function Zg(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),h5(e,a)}function Ug(e,n){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(n),h5(e,a)}function Pg(e,n){return _o(e,n)}var lc=null,Ia=null,C1=!1,ac=!1,w1=!1,wl=0;function Sn(e){e!==Ia&&e.next===null&&(Ia===null?lc=Ia=e:Ia=Ia.next=e),ac=!0,C1||(C1=!0,qg())}function fr(e,n){if(!w1&&ac){w1=!0;do for(var a=!1,i=lc;i!==null;){if(e!==0){var d=i.pendingLanes;if(d===0)var p=0;else{var y=i.suspendedLanes,j=i.pingedLanes;p=(1<<31-Zt(42|e)+1)-1,p&=d&~(y&~j),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,v5(i,p))}else p=Ee,p=ci(i,i===qe?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(p&3)===0||Lo(i,p)||(a=!0,v5(i,p));i=i.next}while(a);w1=!1}}function Yg(){g5()}function g5(){ac=C1=!1;var e=0;wl!==0&&t6()&&(e=wl);for(var n=ut(),a=null,i=lc;i!==null;){var d=i.next,p=m5(i,n);p===0?(i.next=null,a===null?lc=d:a.next=d,d===null&&(Ia=a)):(a=i,(e!==0||(p&3)!==0)&&(ac=!0)),i=d}dt!==0&&dt!==5||fr(e),wl!==0&&(wl=0)}function m5(e,n){for(var a=e.suspendedLanes,i=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var y=31-Zt(p),j=1<<y,N=d[y];N===-1?((j&a)===0||(j&i)!==0)&&(d[y]=x8(j,n)):N<=n&&(e.expiredLanes|=j),p&=~j}if(n=qe,a=Ee,a=ci(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===n&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ya(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Lo(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(i!==null&&ya(i),ks(a)){case 2:case 8:a=of;break;case 32:a=ai;break;case 268435456:a=rf;break;default:a=ai}return i=x5.bind(null,e),a=_o(a,i),e.callbackPriority=n,e.callbackNode=a,n}return i!==null&&i!==null&&ya(i),e.callbackPriority=2,e.callbackNode=null,2}function x5(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(nc()&&e.callbackNode!==a)return null;var i=Ee;return i=ci(e,e===qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(W2(e,i,n),m5(e,ut()),e.callbackNode!=null&&e.callbackNode===a?x5.bind(null,e):null)}function v5(e,n){if(nc())return null;W2(e,n,!0)}function qg(){l6(function(){(He&6)!==0?_o(af,Yg):g5()})}function S1(){if(wl===0){var e=Da;e===0&&(e=oi,oi<<=1,(oi&261888)===0&&(oi=256)),wl=e}return wl}function y5(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fi(""+e)}function b5(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function Xg(e,n,a,i,d){if(n==="submit"&&a&&a.stateNode===d){var p=y5((d[Ot]||null).action),y=i.submitter;y&&(n=(n=y[Ot]||null)?y5(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var j=new mi("action","action",null,i,d);e.push({event:j,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(wl!==0){var N=y?b5(d,y):new FormData(d);Pu(a,{pending:!0,data:N,method:d.method,action:p},null,N)}}else typeof p=="function"&&(j.preventDefault(),N=y?b5(d,y):new FormData(d),Pu(a,{pending:!0,data:N,method:d.method,action:p},p,N))},currentTarget:d}]})}}for(var j1=0;j1<ru.length;j1++){var M1=ru[j1],Gg=M1.toLowerCase(),Qg=M1[0].toUpperCase()+M1.slice(1);pn(Gg,"on"+Qg)}pn(Jf,"onAnimationEnd"),pn(Wf,"onAnimationIteration"),pn(If,"onAnimationStart"),pn("dblclick","onDoubleClick"),pn("focusin","onFocus"),pn("focusout","onBlur"),pn(ug,"onTransitionRun"),pn(dg,"onTransitionStart"),pn(fg,"onTransitionCancel"),pn(e9,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),Kg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pr));function C5(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],d=i.event;i=i.listeners;e:{var p=void 0;if(n)for(var y=i.length-1;0<=y;y--){var j=i[y],N=j.instance,B=j.currentTarget;if(j=j.listener,N!==p&&d.isPropagationStopped())break e;p=j,d.currentTarget=B;try{p(d)}catch(q){yi(q)}d.currentTarget=null,p=N}else for(y=0;y<i.length;y++){if(j=i[y],N=j.instance,B=j.currentTarget,j=j.listener,N!==p&&d.isPropagationStopped())break e;p=j,d.currentTarget=B;try{p(d)}catch(q){yi(q)}d.currentTarget=null,p=N}}}}function Me(e,n){var a=n[Ds];a===void 0&&(a=n[Ds]=new Set);var i=e+"__bubble";a.has(i)||(w5(n,e,2,!1),a.add(i))}function E1(e,n,a){var i=0;n&&(i|=4),w5(a,e,i,n)}var oc="_reactListening"+Math.random().toString(36).slice(2);function T1(e){if(!e[oc]){e[oc]=!0,gf.forEach(function(a){a!=="selectionchange"&&(Kg.has(a)||E1(a,!1,e),E1(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[oc]||(n[oc]=!0,E1("selectionchange",!1,n))}}function w5(e,n,a,i){switch(J5(n)){case 2:var d=S6;break;case 8:d=j6;break;default:d=U1}a=d.bind(null,n,a,e),d=void 0,!Gs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),i?d!==void 0?e.addEventListener(n,a,{capture:!0,passive:d}):e.addEventListener(n,a,!0):d!==void 0?e.addEventListener(n,a,{passive:d}):e.addEventListener(n,a,!1)}function R1(e,n,a,i,d){var p=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var j=i.stateNode.containerInfo;if(j===d)break;if(y===4)for(y=i.return;y!==null;){var N=y.tag;if((N===3||N===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;j!==null;){if(y=Ca(j),y===null)return;if(N=y.tag,N===5||N===6||N===26||N===27){i=p=y;continue e}j=j.parentNode}}i=i.return}Tf(function(){var B=p,q=qs(a),G=[];e:{var U=t9.get(e);if(U!==void 0){var P=mi,ue=e;switch(e){case"keypress":if(hi(a)===0)break e;case"keydown":case"keyup":P=U8;break;case"focusin":ue="focus",P=Js;break;case"focusout":ue="blur",P=Js;break;case"beforeblur":case"afterblur":P=Js;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=N8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=q8;break;case Jf:case Wf:case If:P=A8;break;case e9:P=G8;break;case"scroll":case"scrollend":P=R8;break;case"wheel":P=K8;break;case"copy":case"cut":case"paste":P=H8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Of;break;case"toggle":case"beforetoggle":P=J8}var xe=(n&4)!==0,Pe=!xe&&(e==="scroll"||e==="scrollend"),V=xe?U!==null?U+"Capture":null:U;xe=[];for(var A=B,$;A!==null;){var X=A;if($=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||$===null||V===null||(X=Ho(A,V),X!=null&&xe.push(hr(A,X,$))),Pe)break;A=A.return}0<xe.length&&(U=new P(U,ue,null,a,q),G.push({event:U,listeners:xe}))}}if((n&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",U&&a!==Ys&&(ue=a.relatedTarget||a.fromElement)&&(Ca(ue)||ue[ba]))break e;if((P||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,P?(ue=a.relatedTarget||a.toElement,P=B,ue=ue?Ca(ue):null,ue!==null&&(Pe=s(ue),xe=ue.tag,ue!==Pe||xe!==5&&xe!==27&&xe!==6)&&(ue=null)):(P=null,ue=B),P!==ue)){if(xe=Nf,X="onMouseLeave",V="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Of,X="onPointerLeave",V="onPointerEnter",A="pointer"),Pe=P==null?U:zo(P),$=ue==null?U:zo(ue),U=new xe(X,A+"leave",P,a,q),U.target=Pe,U.relatedTarget=$,X=null,Ca(q)===B&&(xe=new xe(V,A+"enter",ue,a,q),xe.target=$,xe.relatedTarget=Pe,X=xe),Pe=X,P&&ue)t:{for(xe=Fg,V=P,A=ue,$=0,X=V;X;X=xe(X))$++;X=0;for(var ge=A;ge;ge=xe(ge))X++;for(;0<$-X;)V=xe(V),$--;for(;0<X-$;)A=xe(A),X--;for(;$--;){if(V===A||A!==null&&V===A.alternate){xe=V;break t}V=xe(V),A=xe(A)}xe=null}else xe=null;P!==null&&S5(G,U,P,xe,!1),ue!==null&&Pe!==null&&S5(G,Pe,ue,xe,!0)}}e:{if(U=B?zo(B):window,P=U.nodeName&&U.nodeName.toLowerCase(),P==="select"||P==="input"&&U.type==="file")var Oe=Bf;else if(Df(U))if(Zf)Oe=ig;else{Oe=og;var de=ag}else P=U.nodeName,!P||P.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Ps(B.elementType)&&(Oe=Bf):Oe=rg;if(Oe&&(Oe=Oe(e,B))){$f(G,Oe,a,q);break e}de&&de(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Us(U,"number",U.value)}switch(de=B?zo(B):window,e){case"focusin":(Df(de)||de.contentEditable==="true")&&(Na=de,lu=B,Po=null);break;case"focusout":Po=lu=Na=null;break;case"mousedown":au=!0;break;case"contextmenu":case"mouseup":case"dragend":au=!1,Kf(G,a,q);break;case"selectionchange":if(sg)break;case"keydown":case"keyup":Kf(G,a,q)}var Se;if(Is)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else _a?Vf(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Af&&a.locale!=="ko"&&(_a||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&_a&&(Se=Rf()):(rl=q,Qs="value"in rl?rl.value:rl.textContent,_a=!0)),de=rc(B,Te),0<de.length&&(Te=new Lf(Te,e,null,a,q),G.push({event:Te,listeners:de}),Se?Te.data=Se:(Se=kf(a),Se!==null&&(Te.data=Se)))),(Se=I8?eg(e,a):tg(e,a))&&(Te=rc(B,"onBeforeInput"),0<Te.length&&(de=new Lf("onBeforeInput","beforeinput",null,a,q),G.push({event:de,listeners:Te}),de.data=Se)),Xg(G,e,B,a,q)}C5(G,n)})}function hr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function rc(e,n){for(var a=n+"Capture",i=[];e!==null;){var d=e,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Ho(e,a),d!=null&&i.unshift(hr(e,d,p)),d=Ho(e,n),d!=null&&i.push(hr(e,d,p))),e.tag===3)return i;e=e.return}return[]}function Fg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function S5(e,n,a,i,d){for(var p=n._reactName,y=[];a!==null&&a!==i;){var j=a,N=j.alternate,B=j.stateNode;if(j=j.tag,N!==null&&N===i)break;j!==5&&j!==26&&j!==27||B===null||(N=B,d?(B=Ho(a,p),B!=null&&y.unshift(hr(a,B,N))):d||(B=Ho(a,p),B!=null&&y.push(hr(a,B,N)))),a=a.return}y.length!==0&&e.push({event:n,listeners:y})}var Jg=/\r\n?/g,Wg=/\u0000|\uFFFD/g;function j5(e){return(typeof e=="string"?e:""+e).replace(Jg,`
|
|
49
|
+
`).replace(Wg,"")}function M5(e,n){return n=j5(n),j5(e)===n}function Ue(e,n,a,i,d,p){switch(a){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||Ea(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&Ea(e,""+i);break;case"className":ui(e,"class",i);break;case"tabIndex":ui(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ui(e,a,i);break;case"style":Mf(e,i,p);break;case"data":if(n!=="object"){ui(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=fi(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(n!=="input"&&Ue(e,n,"name",d.name,d,null),Ue(e,n,"formEncType",d.formEncType,d,null),Ue(e,n,"formMethod",d.formMethod,d,null),Ue(e,n,"formTarget",d.formTarget,d,null)):(Ue(e,n,"encType",d.encType,d,null),Ue(e,n,"method",d.method,d,null),Ue(e,n,"target",d.target,d,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=fi(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Vn);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(a=i.__html,a!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=fi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),si(e,"popover",i);break;case"xlinkActuate":Hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Hn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Hn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Hn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Hn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":si(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=E8.get(a)||a,si(e,a,i))}}function _1(e,n,a,i,d,p){switch(a){case"style":Mf(e,i,p);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(a=i.__html,a!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Ea(e,i):(typeof i=="number"||typeof i=="bigint")&&Ea(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=e[Ot]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(n,p,d),typeof i=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,i,d);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):si(e,a,i)}}}function wt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":i=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Ue(e,n,p,y,a,null)}}d&&Ue(e,n,"srcSet",a.srcSet,a,null),i&&Ue(e,n,"src",a.src,a,null);return;case"input":Me("invalid",e);var j=p=y=d=null,N=null,B=null;for(i in a)if(a.hasOwnProperty(i)){var q=a[i];if(q!=null)switch(i){case"name":d=q;break;case"type":y=q;break;case"checked":N=q;break;case"defaultChecked":B=q;break;case"value":p=q;break;case"defaultValue":j=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,n));break;default:Ue(e,n,i,q,a,null)}}Cf(e,p,j,N,B,y,d,!1);return;case"select":Me("invalid",e),i=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(j=a[d],j!=null))switch(d){case"value":p=j;break;case"defaultValue":y=j;break;case"multiple":i=j;default:Ue(e,n,d,j,a,null)}n=p,a=y,e.multiple=!!i,n!=null?Ma(e,!!i,n,!1):a!=null&&Ma(e,!!i,a,!0);return;case"textarea":Me("invalid",e),p=d=i=null;for(y in a)if(a.hasOwnProperty(y)&&(j=a[y],j!=null))switch(y){case"value":i=j;break;case"defaultValue":d=j;break;case"children":p=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:Ue(e,n,y,j,a,null)}Sf(e,i,d,p);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(i=a[N],i!=null))switch(N){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ue(e,n,N,i,a,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<pr.length;i++)Me(pr[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(i=a[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Ue(e,n,B,i,a,null)}return;default:if(Ps(n)){for(q in a)a.hasOwnProperty(q)&&(i=a[q],i!==void 0&&_1(e,n,q,i,a,void 0));return}}for(j in a)a.hasOwnProperty(j)&&(i=a[j],i!=null&&Ue(e,n,j,i,a,null))}function Ig(e,n,a,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,j=null,N=null,B=null,q=null;for(P in a){var G=a[P];if(a.hasOwnProperty(P)&&G!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":N=G;default:i.hasOwnProperty(P)||Ue(e,n,P,null,i,G)}}for(var U in i){var P=i[U];if(G=a[U],i.hasOwnProperty(U)&&(P!=null||G!=null))switch(U){case"type":p=P;break;case"name":d=P;break;case"checked":B=P;break;case"defaultChecked":q=P;break;case"value":y=P;break;case"defaultValue":j=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,n));break;default:P!==G&&Ue(e,n,U,P,i,G)}}Zs(e,y,j,N,B,q,p,d);return;case"select":P=y=j=U=null;for(p in a)if(N=a[p],a.hasOwnProperty(p)&&N!=null)switch(p){case"value":break;case"multiple":P=N;default:i.hasOwnProperty(p)||Ue(e,n,p,null,i,N)}for(d in i)if(p=i[d],N=a[d],i.hasOwnProperty(d)&&(p!=null||N!=null))switch(d){case"value":U=p;break;case"defaultValue":j=p;break;case"multiple":y=p;default:p!==N&&Ue(e,n,d,p,i,N)}n=j,a=y,i=P,U!=null?Ma(e,!!a,U,!1):!!i!=!!a&&(n!=null?Ma(e,!!a,n,!0):Ma(e,!!a,a?[]:"",!1));return;case"textarea":P=U=null;for(j in a)if(d=a[j],a.hasOwnProperty(j)&&d!=null&&!i.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Ue(e,n,j,null,i,d)}for(y in i)if(d=i[y],p=a[y],i.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":U=d;break;case"defaultValue":P=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&Ue(e,n,y,d,i,p)}wf(e,U,P);return;case"option":for(var ue in a)if(U=a[ue],a.hasOwnProperty(ue)&&U!=null&&!i.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Ue(e,n,ue,null,i,U)}for(N in i)if(U=i[N],P=a[N],i.hasOwnProperty(N)&&U!==P&&(U!=null||P!=null))switch(N){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ue(e,n,N,U,i,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)U=a[xe],a.hasOwnProperty(xe)&&U!=null&&!i.hasOwnProperty(xe)&&Ue(e,n,xe,null,i,U);for(B in i)if(U=i[B],P=a[B],i.hasOwnProperty(B)&&U!==P&&(U!=null||P!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,n));break;default:Ue(e,n,B,U,i,P)}return;default:if(Ps(n)){for(var Pe in a)U=a[Pe],a.hasOwnProperty(Pe)&&U!==void 0&&!i.hasOwnProperty(Pe)&&_1(e,n,Pe,void 0,i,U);for(q in i)U=i[q],P=a[q],!i.hasOwnProperty(q)||U===P||U===void 0&&P===void 0||_1(e,n,q,U,i,P);return}}for(var V in a)U=a[V],a.hasOwnProperty(V)&&U!=null&&!i.hasOwnProperty(V)&&Ue(e,n,V,null,i,U);for(G in i)U=i[G],P=a[G],!i.hasOwnProperty(G)||U===P||U==null&&P==null||Ue(e,n,G,U,i,P)}function E5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e6(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var d=a[i],p=d.transferSize,y=d.initiatorType,j=d.duration;if(p&&j&&E5(y)){for(y=0,j=d.responseEnd,i+=1;i<a.length;i++){var N=a[i],B=N.startTime;if(B>j)break;var q=N.transferSize,G=N.initiatorType;q&&E5(G)&&(N=N.responseEnd,y+=q*(N<j?1:(j-B)/(N-B)))}if(--i,n+=8*(p+y)/(d.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var N1=null,L1=null;function ic(e){return e.nodeType===9?e:e.ownerDocument}function T5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function R5(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function O1(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var A1=null;function t6(){var e=window.event;return e&&e.type==="popstate"?e===A1?!1:(A1=e,!0):(A1=null,!1)}var _5=typeof setTimeout=="function"?setTimeout:void 0,n6=typeof clearTimeout=="function"?clearTimeout:void 0,N5=typeof Promise=="function"?Promise:void 0,l6=typeof queueMicrotask=="function"?queueMicrotask:typeof N5<"u"?function(e){return N5.resolve(null).then(e).catch(a6)}:_5;function a6(e){setTimeout(function(){throw e})}function Sl(e){return e==="head"}function L5(e,n){var a=n,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(d),lo(n);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")gr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,gr(a);for(var p=a.firstChild;p;){var y=p.nextSibling,j=p.nodeName;p[Ao]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&gr(e.ownerDocument.body);a=d}while(a);lo(n)}function O5(e,n){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function z1(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":z1(a),$s(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function o6(e,n,a,i){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ao])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function r6(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=rn(e.nextSibling),e===null))return null;return e}function A5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=rn(e.nextSibling),e===null))return null;return e}function H1(e){return e.data==="$?"||e.data==="$~"}function V1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function i6(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var i=function(){n(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function rn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var k1=null;function z5(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return rn(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function H5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function V5(e,n,a){switch(n=ic(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function gr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);$s(e)}var cn=new Map,k5=new Set;function cc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wn=D.d;D.d={f:c6,r:s6,D:u6,C:d6,L:f6,m:p6,X:g6,S:h6,M:m6};function c6(){var e=Wn.f(),n=Ii();return e||n}function s6(e){var n=wa(e);n!==null&&n.tag===5&&n.type==="form"?e2(n):Wn.r(e)}var eo=typeof document>"u"?null:document;function D5(e,n,a){var i=eo;if(i&&typeof n=="string"&&n){var d=It(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),k5.has(d)||(k5.add(d),e={rel:e,crossOrigin:a,href:n},i.querySelector(d)===null&&(n=i.createElement("link"),wt(n,"link",e),gt(n),i.head.appendChild(n)))}}function u6(e){Wn.D(e),D5("dns-prefetch",e,null)}function d6(e,n){Wn.C(e,n),D5("preconnect",e,n)}function f6(e,n,a){Wn.L(e,n,a);var i=eo;if(i&&e&&n){var d='link[rel="preload"][as="'+It(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+It(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+It(a.imageSizes)+'"]')):d+='[href="'+It(e)+'"]';var p=d;switch(n){case"style":p=to(e);break;case"script":p=no(e)}cn.has(p)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),cn.set(p,e),i.querySelector(d)!==null||n==="style"&&i.querySelector(mr(p))||n==="script"&&i.querySelector(xr(p))||(n=i.createElement("link"),wt(n,"link",e),gt(n),i.head.appendChild(n)))}}function p6(e,n){Wn.m(e,n);var a=eo;if(a&&e){var i=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+It(i)+'"][href="'+It(e)+'"]',p=d;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=no(e)}if(!cn.has(p)&&(e=b({rel:"modulepreload",href:e},n),cn.set(p,e),a.querySelector(d)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xr(p)))return}i=a.createElement("link"),wt(i,"link",e),gt(i),a.head.appendChild(i)}}}function h6(e,n,a){Wn.S(e,n,a);var i=eo;if(i&&e){var d=Sa(i).hoistableStyles,p=to(e);n=n||"default";var y=d.get(p);if(!y){var j={loading:0,preload:null};if(y=i.querySelector(mr(p)))j.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=cn.get(p))&&D1(e,a);var N=y=i.createElement("link");gt(N),wt(N,"link",e),N._p=new Promise(function(B,q){N.onload=B,N.onerror=q}),N.addEventListener("load",function(){j.loading|=1}),N.addEventListener("error",function(){j.loading|=2}),j.loading|=4,sc(y,n,i)}y={type:"stylesheet",instance:y,count:1,state:j},d.set(p,y)}}}function g6(e,n){Wn.X(e,n);var a=eo;if(a&&e){var i=Sa(a).hoistableScripts,d=no(e),p=i.get(d);p||(p=a.querySelector(xr(d)),p||(e=b({src:e,async:!0},n),(n=cn.get(d))&&$1(e,n),p=a.createElement("script"),gt(p),wt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(d,p))}}function m6(e,n){Wn.M(e,n);var a=eo;if(a&&e){var i=Sa(a).hoistableScripts,d=no(e),p=i.get(d);p||(p=a.querySelector(xr(d)),p||(e=b({src:e,async:!0,type:"module"},n),(n=cn.get(d))&&$1(e,n),p=a.createElement("script"),gt(p),wt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(d,p))}}function $5(e,n,a,i){var d=(d=I.current)?cc(d):null;if(!d)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=to(a.href),a=Sa(d).hoistableStyles,i=a.get(n),i||(i={type:"style",instance:null,count:0,state:null},a.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=to(a.href);var p=Sa(d).hoistableStyles,y=p.get(e);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,y),(p=d.querySelector(mr(e)))&&!p._p&&(y.instance=p,y.state.loading=5),cn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cn.set(e,a),p||x6(d,e,a,y.state))),n&&i===null)throw Error(r(528,""));return y}if(n&&i!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=no(a),a=Sa(d).hoistableScripts,i=a.get(n),i||(i={type:"script",instance:null,count:0,state:null},a.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function to(e){return'href="'+It(e)+'"'}function mr(e){return'link[rel="stylesheet"]['+e+"]"}function B5(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function x6(e,n,a,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),wt(n,"link",a),gt(n),e.head.appendChild(n))}function no(e){return'[src="'+It(e)+'"]'}function xr(e){return"script[async]"+e}function Z5(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+It(a.href)+'"]');if(i)return n.instance=i,gt(i),i;var d=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),gt(i),wt(i,"style",d),sc(i,a.precedence,e),n.instance=i;case"stylesheet":d=to(a.href);var p=e.querySelector(mr(d));if(p)return n.state.loading|=4,n.instance=p,gt(p),p;i=B5(a),(d=cn.get(d))&&D1(i,d),p=(e.ownerDocument||e).createElement("link"),gt(p);var y=p;return y._p=new Promise(function(j,N){y.onload=j,y.onerror=N}),wt(p,"link",i),n.state.loading|=4,sc(p,a.precedence,e),n.instance=p;case"script":return p=no(a.src),(d=e.querySelector(xr(p)))?(n.instance=d,gt(d),d):(i=a,(d=cn.get(p))&&(i=b({},a),$1(i,d)),e=e.ownerDocument||e,d=e.createElement("script"),gt(d),wt(d,"link",i),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,sc(i,a.precedence,e));return n.instance}function sc(e,n,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=i.length?i[i.length-1]:null,p=d,y=0;y<i.length;y++){var j=i[y];if(j.dataset.precedence===n)p=j;else if(p!==d)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function D1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function $1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var uc=null;function U5(e,n,a){if(uc===null){var i=new Map,d=uc=new Map;d.set(a,i)}else d=uc,i=d.get(a),i||(i=new Map,d.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var p=a[d];if(!(p[Ao]||p[vt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=e+y;var j=i.get(y);j?j.push(p):i.set(y,[p])}}return i}function P5(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function v6(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Y5(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function y6(e,n,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=to(i.href),p=n.querySelector(mr(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=dc.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=p,gt(p);return}p=n.ownerDocument||n,i=B5(i),(d=cn.get(d))&&D1(i,d),p=p.createElement("link"),gt(p);var y=p;y._p=new Promise(function(j,N){y.onload=j,y.onerror=N}),wt(p,"link",i),a.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=dc.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var B1=0;function b6(e,n){return e.stylesheets&&e.count===0&&pc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&pc(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&B1===0&&(B1=62500*e6());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pc(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>B1?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(d)}}:null}function dc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fc=null;function pc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fc=new Map,n.forEach(C6,e),fc=null,dc.call(e))}function C6(e,n){if(!(n.state.loading&4)){var a=fc.get(e);if(a)var i=a.get(null);else{a=new Map,fc.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),i=y)}i&&a.set(null,i)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||i,p===i&&a.set(null,d),a.set(y,d),this.count++,i=dc.bind(this),d.addEventListener("load",i),d.addEventListener("error",i),p?p.parentNode.insertBefore(d,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var vr={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function w6(e,n,a,i,d,p,y,j,N){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.hiddenUpdates=Hs(null),this.identifierPrefix=i,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function q5(e,n,a,i,d,p,y,j,N,B,q,G){return e=new w6(e,n,a,y,N,B,q,G,j),n=1,p===!0&&(n|=24),p=Pt(3,null,null,n),e.current=p,p.stateNode=e,n=yu(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:i,isDehydrated:a,cache:n},Su(p),e}function X5(e){return e?(e=Aa,e):Aa}function G5(e,n,a,i,d,p){d=X5(d),i.context===null?i.context=d:i.pendingContext=d,i=fl(n),i.payload={element:a},p=p===void 0?null:p,p!==null&&(i.callback=p),a=pl(e,i,n),a!==null&&(Dt(a,e,n),Fo(a,e,n))}function Q5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Z1(e,n){Q5(e,n),(e=e.alternate)&&Q5(e,n)}function K5(e){if(e.tag===13||e.tag===31){var n=Xl(e,67108864);n!==null&&Dt(n,e,67108864),Z1(e,67108864)}}function F5(e){if(e.tag===13||e.tag===31){var n=Qt();n=Vs(n);var a=Xl(e,n);a!==null&&Dt(a,e,n),Z1(e,n)}}var hc=!0;function S6(e,n,a,i){var d=H.T;H.T=null;var p=D.p;try{D.p=2,U1(e,n,a,i)}finally{D.p=p,H.T=d}}function j6(e,n,a,i){var d=H.T;H.T=null;var p=D.p;try{D.p=8,U1(e,n,a,i)}finally{D.p=p,H.T=d}}function U1(e,n,a,i){if(hc){var d=P1(i);if(d===null)R1(e,n,i,gc,a),W5(e,i);else if(E6(d,e,n,a,i))i.stopPropagation();else if(W5(e,i),n&4&&-1<M6.indexOf(e)){for(;d!==null;){var p=wa(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=Zl(p.pendingLanes);if(y!==0){var j=p;for(j.pendingLanes|=2,j.entangledLanes|=2;y;){var N=1<<31-Zt(y);j.entanglements[1]|=N,y&=~N}Sn(p),(He&6)===0&&(Ji=ut()+500,fr(0))}}break;case 31:case 13:j=Xl(p,2),j!==null&&Dt(j,p,2),Ii(),Z1(p,2)}if(p=P1(i),p===null&&R1(e,n,i,gc,a),p===d)break;d=p}d!==null&&i.stopPropagation()}else R1(e,n,i,null,a)}}function P1(e){return e=qs(e),Y1(e)}var gc=null;function Y1(e){if(gc=null,e=Ca(e),e!==null){var n=s(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=f(n),e!==null)return e;e=null}else if(a===31){if(e=h(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return gc=e,null}function J5(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(li()){case af:return 2;case of:return 8;case ai:case d8:return 32;case rf:return 268435456;default:return 32}default:return 32}}var q1=!1,jl=null,Ml=null,El=null,yr=new Map,br=new Map,Tl=[],M6="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".split(" ");function W5(e,n){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":yr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":br.delete(n.pointerId)}}function Cr(e,n,a,i,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:a,eventSystemFlags:i,nativeEvent:p,targetContainers:[d]},n!==null&&(n=wa(n),n!==null&&K5(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function E6(e,n,a,i,d){switch(n){case"focusin":return jl=Cr(jl,e,n,a,i,d),!0;case"dragenter":return Ml=Cr(Ml,e,n,a,i,d),!0;case"mouseover":return El=Cr(El,e,n,a,i,d),!0;case"pointerover":var p=d.pointerId;return yr.set(p,Cr(yr.get(p)||null,e,n,a,i,d)),!0;case"gotpointercapture":return p=d.pointerId,br.set(p,Cr(br.get(p)||null,e,n,a,i,d)),!0}return!1}function I5(e){var n=Ca(e.target);if(n!==null){var a=s(n);if(a!==null){if(n=a.tag,n===13){if(n=f(a),n!==null){e.blockedOn=n,pf(e.priority,function(){F5(a)});return}}else if(n===31){if(n=h(a),n!==null){e.blockedOn=n,pf(e.priority,function(){F5(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=P1(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Ys=i,a.target.dispatchEvent(i),Ys=null}else return n=wa(a),n!==null&&K5(n),e.blockedOn=a,!1;n.shift()}return!0}function e3(e,n,a){mc(e)&&a.delete(n)}function T6(){q1=!1,jl!==null&&mc(jl)&&(jl=null),Ml!==null&&mc(Ml)&&(Ml=null),El!==null&&mc(El)&&(El=null),yr.forEach(e3),br.forEach(e3)}function xc(e,n){e.blockedOn===n&&(e.blockedOn=null,q1||(q1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,T6)))}var vc=null;function t3(e){vc!==e&&(vc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){vc===e&&(vc=null);for(var n=0;n<e.length;n+=3){var a=e[n],i=e[n+1],d=e[n+2];if(typeof i!="function"){if(Y1(i||a)===null)continue;break}var p=wa(a);p!==null&&(e.splice(n,3),n-=3,Pu(p,{pending:!0,data:d,method:a.method,action:i},i,d))}}))}function lo(e){function n(N){return xc(N,e)}jl!==null&&xc(jl,e),Ml!==null&&xc(Ml,e),El!==null&&xc(El,e),yr.forEach(n),br.forEach(n);for(var a=0;a<Tl.length;a++){var i=Tl[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Tl.length&&(a=Tl[0],a.blockedOn===null);)I5(a),a.blockedOn===null&&Tl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var d=a[i],p=a[i+1],y=d[Ot]||null;if(typeof p=="function")y||t3(a);else if(y){var j=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Ot]||null)j=y.formAction;else if(Y1(d)!==null)continue}else j=y.action;typeof j=="function"?a[i+1]=j:(a.splice(i,3),i-=3),t3(a)}}}function n3(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function X1(e){this._internalRoot=e}yc.prototype.render=X1.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,i=Qt();G5(a,i,e,n,null,null)},yc.prototype.unmount=X1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;G5(e.current,2,null,e,null,null),Ii(),n[ba]=null}};function yc(e){this._internalRoot=e}yc.prototype.unstable_scheduleHydration=function(e){if(e){var n=ff();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Tl.length&&n!==0&&n<Tl[a].priority;a++);Tl.splice(a,0,e),a===0&&I5(e)}};var l3=l.version;if(l3!=="19.2.4")throw Error(r(527,l3,"19.2.4"));D.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var R6={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bc.isDisabled&&bc.supportsFiber)try{No=bc.inject(R6),Bt=bc}catch{}}return Sr.createRoot=function(e,n){if(!c(e))throw Error(r(299));var a=!1,i="",d=u2,p=d2,y=f2;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=q5(e,1,!1,null,null,a,i,null,d,p,y,n3),e[ba]=n.current,T1(e),new X1(n)},Sr.hydrateRoot=function(e,n,a){if(!c(e))throw Error(r(299));var i=!1,d="",p=u2,y=d2,j=f2,N=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(j=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),n=q5(e,1,!0,n,a??null,i,d,N,p,y,j,n3),n.context=X5(null),a=n.current,i=Qt(),i=Vs(i),d=fl(i),d.callback=null,pl(a,d,i),a=i,n.current.lanes=a,Oo(n,a),Sn(n),e[ba]=n.current,T1(e),new yc(n)},Sr.version="19.2.4",Sr}var p3;function D6(){if(p3)return Q1.exports;p3=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Q1.exports=k6(),Q1.exports}var $6=D6(),g=gd();const $e=Pp(g),qp=N6({__proto__:null,default:$e},[g]);function ie(t,l){if(t==null)return{};var o={},r=Object.keys(t),c,s;for(s=0;s<r.length;s++)c=r[s],!(l.indexOf(c)>=0)&&(o[c]=t[c]);return o}var B6=["color"],Xp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,B6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M9 3C9 2.44772 8.55229 2 8 2H7C6.44772 2 6 2.44772 6 3L6 14H1.5C1.22386 14 1 14.2239 1 14.5C1 14.7761 1.22386 15 1.5 15L6 15H9H13.5C13.7761 15 14 14.7761 14 14.5C14 14.2239 13.7761 14 13.5 14H9V3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Z6=["color"],Gp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Z6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1.99988 6C1.44759 6 0.999877 6.44772 0.999877 7L0.999877 8C0.999877 8.55228 1.44759 9 1.99988 9L6.99988 9L6.99988 13.5C6.99988 13.7761 7.22374 14 7.49988 14C7.77602 14 7.99988 13.7761 7.99988 13.5L7.99988 9L12.9999 9C13.5522 9 13.9999 8.55228 13.9999 8L13.9999 7C13.9999 6.44772 13.5522 6 12.9999 6L7.99988 6L7.99988 1.5C7.99988 1.22386 7.77602 1 7.49988 1C7.22373 1 6.99988 1.22386 6.99988 1.5L6.99988 6L1.99988 6Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),U6=["color"],Qp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,U6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M6.99988 1C6.44759 1 5.99988 1.44772 5.99988 2V7H1.49988C1.22374 7 0.999878 7.22386 0.999878 7.5C0.999878 7.77614 1.22374 8 1.49988 8H5.99988V13C5.99988 13.5523 6.44759 14 6.99988 14H7.99988C8.55216 14 8.99988 13.5523 8.99988 13V8H13.4999C13.776 8 13.9999 7.77614 13.9999 7.5C13.9999 7.22386 13.776 7 13.4999 7H8.99988V2C8.99988 1.44772 8.55216 1 7.99988 1L6.99988 1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),P6=["color"],Kp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,P6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M0.499995 0.999995C0.223855 0.999995 -5.58458e-07 1.22385 -5.46388e-07 1.49999L-2.18554e-08 13.4999C-9.78492e-09 13.776 0.223855 13.9999 0.499995 13.9999C0.776136 13.9999 0.999991 13.776 0.999991 13.4999L0.999991 8.99993L12 8.99993C12.5523 8.99993 13 8.55222 13 7.99993L13 6.99994C13 6.44766 12.5523 5.99995 12 5.99995L0.999991 5.99995L0.999991 1.49999C0.999991 1.22385 0.776135 0.999995 0.499995 0.999995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Y6=["color"],Fp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Y6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14.4999 1C14.2237 1 13.9999 1.22386 13.9999 1.5L13.9999 6L2.99988 6C2.44759 6 1.99988 6.44772 1.99988 7L1.99988 8C1.99988 8.55228 2.44759 9 2.99988 9L13.9999 9L13.9999 13.5C13.9999 13.7761 14.2237 14 14.4999 14C14.776 14 14.9999 13.7761 14.9999 13.5L14.9999 9L14.9999 6L14.9999 1.5C14.9999 1.22386 14.776 1 14.4999 1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),q6=["color"],Jp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,q6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1.5 0C1.22386 0 1 0.223858 1 0.5C1 0.776142 1.22386 1 1.5 1H6V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V1H13.5C13.7761 1 14 0.776142 14 0.5C14 0.223858 13.7761 0 13.5 0H9H6H1.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X6=["color"],G6=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,X6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q6=["color"],K6=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Q6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),F6=["color"],Rr=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,F6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1 3H14V4H1V3ZM1 6H14V8H1V6ZM14 10.25H1V12.75H14V10.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),J6=["color"],Zc=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,J6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M12.5 2H2.5C2.22386 2 2 2.22386 2 2.5V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V2.5C13 2.22386 12.7761 2 12.5 2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W6=["color"],I6=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,W6);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1.99998 0.999976C1.44769 0.999976 0.999976 1.44769 0.999976 1.99998V13C0.999976 13.5523 1.44769 14 1.99998 14H13C13.5523 14 14 13.5523 14 13V1.99998C14 1.44769 13.5523 0.999976 13 0.999976H1.99998ZM1.99998 1.99998L13 1.99998V13H1.99998V1.99998ZM4.49996 3.99996C4.22382 3.99996 3.99996 4.22382 3.99996 4.49996V10.5C3.99996 10.7761 4.22382 11 4.49996 11H10.5C10.7761 11 11 10.7761 11 10.5V4.49996C11 4.22382 10.7761 3.99996 10.5 3.99996H4.49996ZM4.99996 9.99996V4.99996H9.99996V9.99996H4.99996Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),em=["color"],ua=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,em);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),tm=["color"],fn=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,tm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nm=["color"],Nn=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,nm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lm=["color"],am=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,lm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),om=["color"],jr=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,om);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M0.877075 7.49985C0.877075 3.84216 3.84222 0.877014 7.49991 0.877014C11.1576 0.877014 14.1227 3.84216 14.1227 7.49985C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49985ZM3.78135 3.21565C4.68298 2.43239 5.83429 1.92904 7.09998 1.84089V6.53429L3.78135 3.21565ZM3.21567 3.78134C2.43242 4.68298 1.92909 5.83428 1.84095 7.09997H6.5343L3.21567 3.78134ZM6.5343 7.89997H1.84097C1.92916 9.16562 2.43253 10.3169 3.21579 11.2185L6.5343 7.89997ZM3.78149 11.7842C4.6831 12.5673 5.83435 13.0707 7.09998 13.1588V8.46566L3.78149 11.7842ZM7.89998 8.46566V13.1588C9.16559 13.0706 10.3168 12.5673 11.2184 11.7841L7.89998 8.46566ZM11.7841 11.2184C12.5673 10.3168 13.0707 9.16558 13.1588 7.89997H8.46567L11.7841 11.2184ZM8.46567 7.09997H13.1589C13.0707 5.83432 12.5674 4.68305 11.7842 3.78143L8.46567 7.09997ZM11.2185 3.21573C10.3169 2.43246 9.16565 1.92909 7.89998 1.8409V6.53429L11.2185 3.21573Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rm=["color"],Or=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,rm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M8.00012 1.5C8.00012 1.22386 7.77626 1 7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5ZM3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818ZM12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),im=["color"],cm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,im);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.14998 14V1H0.849976V14H2.14998ZM6.14998 14V1H4.84998V14H6.14998ZM10.15 1V14H8.84998V1H10.15ZM14.15 14V1H12.85V14H14.15Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),sm=["color"],$r=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,sm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M4.67129 3.14634C4.47603 3.34161 4.47603 3.65819 4.67129 3.85345L7.14616 6.32833C7.34142 6.52359 7.65801 6.52359 7.85327 6.32833L10.3281 3.85345C10.5234 3.65819 10.5234 3.34161 10.3281 3.14634L7.85327 0.671471C7.65801 0.476209 7.34142 0.476209 7.14616 0.671471L4.67129 3.14634ZM7.49971 5.26766L5.73195 3.4999L7.49971 1.73213L9.26748 3.4999L7.49971 5.26766ZM8.67129 7.14634C8.47603 7.34161 8.47603 7.65819 8.67129 7.85345L11.1462 10.3283C11.3414 10.5236 11.658 10.5236 11.8533 10.3283L14.3281 7.85345C14.5234 7.65819 14.5234 7.34161 14.3281 7.14634L11.8533 4.67147C11.658 4.47621 11.3414 4.47621 11.1462 4.67147L8.67129 7.14634ZM11.4997 9.26766L9.73195 7.4999L11.4997 5.73213L13.2675 7.4999L11.4997 9.26766ZM4.67129 11.8535C4.47603 11.6582 4.47603 11.3416 4.67129 11.1463L7.14616 8.67147C7.34142 8.47621 7.65801 8.47621 7.85327 8.67147L10.3281 11.1463C10.5234 11.3416 10.5234 11.6582 10.3281 11.8535L7.85327 14.3283C7.65801 14.5236 7.34142 14.5236 7.14616 14.3283L4.67129 11.8535ZM5.73195 11.4999L7.49971 13.2677L9.26748 11.4999L7.49971 9.73213L5.73195 11.4999ZM0.671288 7.14649C0.476026 7.34175 0.476026 7.65834 0.671288 7.8536L3.14616 10.3285C3.34142 10.5237 3.65801 10.5237 3.85327 10.3285L6.32814 7.8536C6.5234 7.65834 6.5234 7.34175 6.32814 7.14649L3.85327 4.67162C3.65801 4.47636 3.34142 4.47636 3.14616 4.67162L0.671288 7.14649ZM3.49972 9.26781L1.73195 7.50005L3.49972 5.73228L5.26748 7.50005L3.49972 9.26781Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),um=["color"],Wp=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,um);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.1465 1.48959C7.34176 1.29432 7.65835 1.29432 7.85361 1.48959L13.5105 7.14644C13.7057 7.3417 13.7057 7.65829 13.5105 7.85355L7.85361 13.5104C7.65835 13.7057 7.34176 13.7057 7.1465 13.5104L1.48965 7.85355C1.29439 7.65829 1.29439 7.3417 1.48965 7.14644L7.1465 1.48959ZM7.50005 2.55025L2.55031 7.49999L7.50005 12.4497L12.4498 7.49999L7.50005 2.55025Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dm=["color"],Ip=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,dm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M9.87737 12H9.9H11.5C11.7761 12 12 11.7761 12 11.5C12 11.2239 11.7761 11 11.5 11H9.9C8.77164 11 7.95545 10.9996 7.31352 10.9472C6.67744 10.8952 6.25662 10.7946 5.91103 10.6185C5.25247 10.283 4.71703 9.74753 4.38148 9.08897C4.20539 8.74338 4.10481 8.32256 4.05284 7.68648C4.00039 7.04455 4 6.22836 4 5.1V3.5C4 3.22386 3.77614 3 3.5 3C3.22386 3 3 3.22386 3 3.5V5.1V5.12263C3 6.22359 3 7.08052 3.05616 7.76791C3.11318 8.46584 3.23058 9.0329 3.49047 9.54296C3.9219 10.3897 4.61031 11.0781 5.45704 11.5095C5.9671 11.7694 6.53416 11.8868 7.23209 11.9438C7.91948 12 8.77641 12 9.87737 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fm=["color"],eh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,fm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.12263 12H5.1H3.5C3.22386 12 3 11.7761 3 11.5C3 11.2239 3.22386 11 3.5 11H5.1C6.22836 11 7.04455 10.9996 7.68648 10.9472C8.32256 10.8952 8.74338 10.7946 9.08897 10.6185C9.74753 10.283 10.283 9.74753 10.6185 9.08897C10.7946 8.74338 10.8952 8.32256 10.9472 7.68648C10.9996 7.04455 11 6.22836 11 5.1V3.5C11 3.22386 11.2239 3 11.5 3C11.7761 3 12 3.22386 12 3.5V5.1V5.12263C12 6.22359 12 7.08052 11.9438 7.76791C11.8868 8.46584 11.7694 9.0329 11.5095 9.54296C11.0781 10.3897 10.3897 11.0781 9.54296 11.5095C9.0329 11.7694 8.46584 11.8868 7.76791 11.9438C7.08052 12 6.22359 12 5.12263 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pm=["color"],md=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,pm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M9.87737 3H9.9H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H9.9C8.77164 4 7.95545 4.00039 7.31352 4.05284C6.67744 4.10481 6.25662 4.20539 5.91103 4.38148C5.25247 4.71703 4.71703 5.25247 4.38148 5.91103C4.20539 6.25662 4.10481 6.67744 4.05284 7.31352C4.00039 7.95545 4 8.77164 4 9.9V11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5V9.9V9.87737C3 8.77641 3 7.91948 3.05616 7.23209C3.11318 6.53416 3.23058 5.9671 3.49047 5.45704C3.9219 4.61031 4.61031 3.9219 5.45704 3.49047C5.9671 3.23058 6.53416 3.11318 7.23209 3.05616C7.91948 3 8.77641 3 9.87737 3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hm=["color"],th=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,hm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.12263 3H5.1H3.5C3.22386 3 3 3.22386 3 3.5C3 3.77614 3.22386 4 3.5 4H5.1C6.22836 4 7.04455 4.00039 7.68648 4.05284C8.32256 4.10481 8.74338 4.20539 9.08897 4.38148C9.74753 4.71703 10.283 5.25247 10.6185 5.91103C10.7946 6.25662 10.8952 6.67744 10.9472 7.31352C10.9996 7.95545 11 8.77164 11 9.9V11.5C11 11.7761 11.2239 12 11.5 12C11.7761 12 12 11.7761 12 11.5V9.9V9.87737C12 8.77641 12 7.91948 11.9438 7.23209C11.8868 6.53416 11.7694 5.9671 11.5095 5.45704C11.0781 4.61031 10.3897 3.9219 9.54296 3.49047C9.0329 3.23058 8.46584 3.11318 7.76791 3.05616C7.08052 3 6.22359 3 5.12263 3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gm=["color"],V0=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,gm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.5 2L4.87935 2C4.47687 1.99999 4.14469 1.99999 3.87409 2.0221C3.59304 2.04506 3.33469 2.09434 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.09434 3.33469 2.04506 3.59304 2.0221 3.87409C1.99999 4.14468 1.99999 4.47686 2 4.87933V4.87935V5.5C2 5.77614 2.22386 6 2.5 6C2.77614 6 3 5.77614 3 5.5V4.9C3 4.47171 3.00039 4.18056 3.01878 3.95552C3.03669 3.73631 3.06915 3.62421 3.10899 3.54601C3.20487 3.35785 3.35785 3.20487 3.54601 3.10899C3.62421 3.06915 3.73631 3.03669 3.95552 3.01878C4.18056 3.00039 4.47171 3 4.9 3H5.5C5.77614 3 6 2.77614 6 2.5C6 2.22386 5.77614 2 5.5 2ZM13 9.5C13 9.22386 12.7761 9 12.5 9C12.2239 9 12 9.22386 12 9.5V10.1C12 10.5283 11.9996 10.8194 11.9812 11.0445C11.9633 11.2637 11.9309 11.3758 11.891 11.454C11.7951 11.6422 11.6422 11.7951 11.454 11.891C11.3758 11.9309 11.2637 11.9633 11.0445 11.9812C10.8194 11.9996 10.5283 12 10.1 12H9.5C9.22386 12 9 12.2239 9 12.5C9 12.7761 9.22386 13 9.5 13H10.1206C10.5231 13 10.8553 13 11.1259 12.9779C11.407 12.9549 11.6653 12.9057 11.908 12.782C12.2843 12.5903 12.5903 12.2843 12.782 11.908C12.9057 11.6653 12.9549 11.407 12.9779 11.1259C13 10.8553 13 10.5232 13 10.1207V10.1207V10.1207V10.1206V9.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V10.1C3 10.5283 3.00039 10.8194 3.01878 11.0445C3.03669 11.2637 3.06915 11.3758 3.10899 11.454C3.20487 11.6422 3.35785 11.7951 3.54601 11.891C3.62421 11.9309 3.73631 11.9633 3.95552 11.9812C4.18056 11.9996 4.47171 12 4.9 12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H4.87935C4.47687 13 4.14469 13 3.87409 12.9779C3.59304 12.9549 3.33469 12.9057 3.09202 12.782C2.7157 12.5903 2.40973 12.2843 2.21799 11.908C2.09434 11.6653 2.04506 11.407 2.0221 11.1259C1.99999 10.8553 1.99999 10.5231 2 10.1207V10.1206V10.1V9.5C2 9.22386 2.22386 9 2.5 9ZM10.1 3C10.5283 3 10.8194 3.00039 11.0445 3.01878C11.2637 3.03669 11.3758 3.06915 11.454 3.10899C11.6422 3.20487 11.7951 3.35785 11.891 3.54601C11.9309 3.62421 11.9633 3.73631 11.9812 3.95552C11.9996 4.18056 12 4.47171 12 4.9V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V4.87935V4.87934C13 4.47686 13 4.14468 12.9779 3.87409C12.9549 3.59304 12.9057 3.33469 12.782 3.09202C12.5903 2.7157 12.2843 2.40973 11.908 2.21799C11.6653 2.09434 11.407 2.04506 11.1259 2.0221C10.8553 1.99999 10.5231 1.99999 10.1206 2L10.1 2H9.5C9.22386 2 9 2.22386 9 2.5C9 2.77614 9.22386 3 9.5 3H10.1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mm=["color"],xd=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,mm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xm=["color"],vm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,xm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.29227 0.048984C3.47033 -0.032338 3.67946 -0.00228214 3.8274 0.125891L12.8587 7.95026C13.0134 8.08432 13.0708 8.29916 13.0035 8.49251C12.9362 8.68586 12.7578 8.81866 12.5533 8.82768L9.21887 8.97474L11.1504 13.2187C11.2648 13.47 11.1538 13.7664 10.9026 13.8808L8.75024 14.8613C8.499 14.9758 8.20255 14.8649 8.08802 14.6137L6.15339 10.3703L3.86279 12.7855C3.72196 12.934 3.50487 12.9817 3.31479 12.9059C3.1247 12.8301 3 12.6461 3 12.4414V0.503792C3 0.308048 3.11422 0.130306 3.29227 0.048984ZM4 1.59852V11.1877L5.93799 9.14425C6.05238 9.02363 6.21924 8.96776 6.38319 8.99516C6.54715 9.02256 6.68677 9.12965 6.75573 9.2809L8.79056 13.7441L10.0332 13.178L8.00195 8.71497C7.93313 8.56376 7.94391 8.38824 8.03072 8.24659C8.11753 8.10494 8.26903 8.01566 8.435 8.00834L11.2549 7.88397L4 1.59852Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ym=["color"],Ac=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,ym);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.00014 2.73895C3.00014 2.94698 2.76087 3.06401 2.59666 2.93628L1.00386 1.69744C0.875177 1.59735 0.875177 1.40286 1.00386 1.30277L2.59666 0.063928C2.76087 -0.0637944 3.00014 0.0532293 3.00014 0.261266V1.00012H9.00009V0.261296C9.00009 0.0532591 9.23936 -0.0637646 9.40358 0.0639578L10.9964 1.3028C11.1251 1.40289 11.1251 1.59738 10.9964 1.69747L9.40358 2.93631C9.23936 3.06404 9.00009 2.94701 9.00009 2.73898V2.00012H3.00014V2.73895ZM9.50002 4.99998H2.50002C2.22388 4.99998 2.00002 5.22384 2.00002 5.49998V12.5C2.00002 12.7761 2.22388 13 2.50002 13H9.50002C9.77616 13 10 12.7761 10 12.5V5.49998C10 5.22384 9.77616 4.99998 9.50002 4.99998ZM2.50002 3.99998C1.67159 3.99998 1.00002 4.67156 1.00002 5.49998V12.5C1.00002 13.3284 1.67159 14 2.50002 14H9.50002C10.3284 14 11 13.3284 11 12.5V5.49998C11 4.67156 10.3284 3.99998 9.50002 3.99998H2.50002ZM14.7389 6.00001H14V12H14.7389C14.9469 12 15.064 12.2393 14.9362 12.4035L13.6974 13.9963C13.5973 14.125 13.4028 14.125 13.3027 13.9963L12.0639 12.4035C11.9362 12.2393 12.0532 12 12.2612 12H13V6.00001H12.2612C12.0532 6.00001 11.9361 5.76074 12.0639 5.59653L13.3027 4.00373C13.4028 3.87505 13.5973 3.87505 13.6974 4.00374L14.9362 5.59653C15.0639 5.76074 14.9469 6.00001 14.7389 6.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bm=["color"],h3=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,bm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944 10.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Cm=["color"],wm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Cm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Sm=["color"],jm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Sm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Mm=["color"],vd=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Mm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.10505 12C4.70805 12 4.4236 11.912 4.25171 11.736C4.0839 11.5559 4 11.2715 4 10.8827V4.11733C4 3.72033 4.08595 3.43588 4.25784 3.26398C4.43383 3.08799 4.71623 3 5.10505 3C6.42741 3 8.25591 3 9.02852 3C10.1373 3 11.0539 3.98153 11.0539 5.1846C11.0539 6.08501 10.6037 6.81855 9.70327 7.23602C10.8657 7.44851 11.5176 8.62787 11.5176 9.48128C11.5176 10.5125 10.9902 12 9.27734 12C8.77742 12 6.42626 12 5.10505 12ZM8.37891 8.00341H5.8V10.631H8.37891C8.9 10.631 9.6296 10.1211 9.6296 9.29877C9.6296 8.47643 8.9 8.00341 8.37891 8.00341ZM5.8 4.36903V6.69577H8.17969C8.53906 6.69577 9.27734 6.35939 9.27734 5.50002C9.27734 4.64064 8.48047 4.36903 8.17969 4.36903H5.8Z",fill:r}))}),Em=["color"],nh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Em);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.5 4.5C2.5 3.09886 3.59886 2 5 2H12.499C12.7752 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3H8.69244L8.40509 3.85458C8.18869 4.49752 7.89401 5.37197 7.58091 6.29794C7.50259 6.52956 7.42308 6.76453 7.34332 7H8.5C8.77614 7 9 7.22386 9 7.5C9 7.77614 8.77614 8 8.5 8H7.00407C6.56724 9.28543 6.16435 10.4613 5.95799 11.0386C5.63627 11.9386 5.20712 12.4857 4.66741 12.7778C4.16335 13.0507 3.64154 13.0503 3.28378 13.05L3.25 13.05C2.94624 13.05 2.7 12.8037 2.7 12.5C2.7 12.1962 2.94624 11.95 3.25 11.95C3.64182 11.95 3.9035 11.9405 4.14374 11.8105C4.36443 11.691 4.65532 11.4148 4.92217 10.6683C5.10695 10.1514 5.45375 9.14134 5.8422 8H4.5C4.22386 8 4 7.77614 4 7.5C4 7.22386 4.22386 7 4.5 7H6.18187C6.30127 6.64785 6.42132 6.29323 6.53887 5.94559C6.85175 5.02025 7.14627 4.14631 7.36256 3.50368L7.53192 3H5C4.15114 3 3.5 3.65114 3.5 4.5C3.5 4.77614 3.27614 5 3 5C2.72386 5 2.5 4.77614 2.5 4.5Z",fill:r}))}),Tm=["color"],Br=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Tm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Rm=["color"],_m=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Rm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.49996 1.80002C4.35194 1.80002 1.79996 4.352 1.79996 7.50002C1.79996 10.648 4.35194 13.2 7.49996 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.352 10.648 1.80002 7.49996 1.80002ZM0.899963 7.50002C0.899963 3.85494 3.85488 0.900024 7.49996 0.900024C11.145 0.900024 14.1 3.85494 14.1 7.50002C14.1 11.1451 11.145 14.1 7.49996 14.1C3.85488 14.1 0.899963 11.1451 0.899963 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M13.4999 7.89998H1.49994V7.09998H13.4999V7.89998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M7.09991 13.5V1.5H7.89991V13.5H7.09991zM10.375 7.49998C10.375 5.32724 9.59364 3.17778 8.06183 1.75656L8.53793 1.24341C10.2396 2.82218 11.075 5.17273 11.075 7.49998 11.075 9.82724 10.2396 12.1778 8.53793 13.7566L8.06183 13.2434C9.59364 11.8222 10.375 9.67273 10.375 7.49998zM3.99969 7.5C3.99969 5.17611 4.80786 2.82678 6.45768 1.24719L6.94177 1.75281C5.4582 3.17323 4.69969 5.32389 4.69969 7.5 4.6997 9.67611 5.45822 11.8268 6.94179 13.2472L6.45769 13.7528C4.80788 12.1732 3.9997 9.8239 3.99969 7.5z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M7.49996 3.95801C9.66928 3.95801 11.8753 4.35915 13.3706 5.19448 13.5394 5.28875 13.5998 5.50197 13.5055 5.67073 13.4113 5.83948 13.198 5.89987 13.0293 5.8056 11.6794 5.05155 9.60799 4.65801 7.49996 4.65801 5.39192 4.65801 3.32052 5.05155 1.97064 5.8056 1.80188 5.89987 1.58866 5.83948 1.49439 5.67073 1.40013 5.50197 1.46051 5.28875 1.62927 5.19448 3.12466 4.35915 5.33063 3.95801 7.49996 3.95801zM7.49996 10.85C9.66928 10.85 11.8753 10.4488 13.3706 9.6135 13.5394 9.51924 13.5998 9.30601 13.5055 9.13726 13.4113 8.9685 13.198 8.90812 13.0293 9.00238 11.6794 9.75643 9.60799 10.15 7.49996 10.15 5.39192 10.15 3.32052 9.75643 1.97064 9.00239 1.80188 8.90812 1.58866 8.9685 1.49439 9.13726 1.40013 9.30601 1.46051 9.51924 1.62927 9.6135 3.12466 10.4488 5.33063 10.85 7.49996 10.85z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Nm=["color"],lh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Nm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M12.5 2H8V7H13V2.5C13 2.22386 12.7761 2 12.5 2ZM13 8H8V13H12.5C12.7761 13 13 12.7761 13 12.5V8ZM7 7V2H2.5C2.22386 2 2 2.22386 2 2.5V7H7ZM2 8V12.5C2 12.7761 2.22386 13 2.5 13H7V8H2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Lm=["color"],co=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Lm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Om=["color"],Am=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Om);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),zm=["color"],Ar=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,zm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Hm=["color"],Vm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Hm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M9 2H6V13H9V2ZM10 2V13H12.5C12.7761 13 13 12.7761 13 12.5V2.5C13 2.22386 12.7761 2 12.5 2H10ZM2.5 2H5V13H2.5C2.22386 13 2 12.7761 2 12.5V2.5C2 2.22386 2.22386 2 2.5 2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),km=["color"],Dm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,km);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$m=["color"],Bm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,$m);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Zm=["color"],ah=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Zm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Um=["color"],oh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Um);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Pm=["color"],rh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Pm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ym=["color"],ra=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Ym);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qm=["color"],Mr=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,qm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Xm=["color"],I1=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Xm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5 1.5C5 1.22386 4.77614 1 4.5 1C4.22386 1 4 1.22386 4 1.5L4 7C4 7.01671 4.00082 7.03323 4.00242 7.04952C2.86009 7.28022 2 8.28967 2 9.5C2 10.7103 2.86009 11.7198 4.00242 11.9505C4.00082 11.9668 4 11.9833 4 12V13.5C4 13.7761 4.22386 14 4.5 14C4.77614 14 5 13.7761 5 13.5V12C5 11.9833 4.99918 11.9668 4.99758 11.9505C6.1399 11.7198 7 10.7103 7 9.5C7 8.28967 6.1399 7.28022 4.99758 7.04952C4.99918 7.03323 5 7.01671 5 7L5 1.5ZM11 1.5C11 1.22386 10.7761 1 10.5 1C10.2239 1 10 1.22386 10 1.5V3C10 3.01671 10.0008 3.03323 10.0024 3.04952C8.8601 3.28022 8 4.28967 8 5.5C8 6.71033 8.8601 7.71978 10.0024 7.95048C10.0008 7.96677 10 7.98329 10 8V13.5C10 13.7761 10.2239 14 10.5 14C10.7761 14 11 13.7761 11 13.5V8C11 7.98329 10.9992 7.96677 10.9976 7.95048C12.1399 7.71978 13 6.71033 13 5.5C13 4.28967 12.1399 3.28022 10.9976 3.04952C10.9992 3.03323 11 3.01671 11 3V1.5ZM4.5 8C3.67157 8 3 8.67157 3 9.5C3 10.3284 3.67157 11 4.5 11C5.32843 11 6 10.3284 6 9.5C6 8.67157 5.32843 8 4.5 8ZM9 5.5C9 4.67157 9.67157 4 10.5 4C11.3284 4 12 4.67157 12 5.5C12 6.32843 11.3284 7 10.5 7C9.67157 7 9 6.32843 9 5.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gm=["color"],Qm=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Gm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Km=["color"],Cc=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Km);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.81819 0.93179C7.64245 0.756054 7.35753 0.756054 7.18179 0.93179L5.43179 2.68179C5.25605 2.85753 5.25605 3.14245 5.43179 3.31819C5.60753 3.49392 5.89245 3.49392 6.06819 3.31819L6.99999 2.38638V5.49999C6.99999 5.77613 7.22385 5.99999 7.49999 5.99999C7.77613 5.99999 7.99999 5.77613 7.99999 5.49999V2.38638L8.93179 3.31819C9.10753 3.49392 9.39245 3.49392 9.56819 3.31819C9.74392 3.14245 9.74392 2.85753 9.56819 2.68179L7.81819 0.93179ZM7.99999 9.49999C7.99999 9.22385 7.77613 8.99999 7.49999 8.99999C7.22385 8.99999 6.99999 9.22385 6.99999 9.49999V12.6136L6.06819 11.6818C5.89245 11.5061 5.60753 11.5061 5.43179 11.6818C5.25605 11.8575 5.25605 12.1424 5.43179 12.3182L7.18179 14.0682C7.35753 14.2439 7.64245 14.2439 7.81819 14.0682L9.56819 12.3182C9.74392 12.1424 9.74392 11.8575 9.56819 11.6818C9.39245 11.5061 9.10753 11.5061 8.93179 11.6818L7.99999 12.6136V9.49999ZM8.99999 7.49999C8.99999 7.22385 9.22385 6.99999 9.49999 6.99999H12.6136L11.6818 6.06819C11.5061 5.89245 11.5061 5.60753 11.6818 5.43179C11.8575 5.25605 12.1424 5.25605 12.3182 5.43179L14.0682 7.18179C14.2439 7.35753 14.2439 7.64245 14.0682 7.81819L12.3182 9.56819C12.1424 9.74392 11.8575 9.74392 11.6818 9.56819C11.5061 9.39245 11.5061 9.10753 11.6818 8.93179L12.6136 7.99999H9.49999C9.22385 7.99999 8.99999 7.77613 8.99999 7.49999ZM3.31819 6.06819L2.38638 6.99999H5.49999C5.77613 6.99999 5.99999 7.22385 5.99999 7.49999C5.99999 7.77613 5.77613 7.99999 5.49999 7.99999H2.38638L3.31819 8.93179C3.49392 9.10753 3.49392 9.39245 3.31819 9.56819C3.14245 9.74392 2.85753 9.74392 2.68179 9.56819L0.93179 7.81819C0.756054 7.64245 0.756054 7.35753 0.93179 7.18179L2.68179 5.43179C2.85753 5.25605 3.14245 5.25605 3.31819 5.43179C3.49392 5.60753 3.49392 5.89245 3.31819 6.06819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Fm=["color"],yd=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Fm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.5 1.5C4.5 4.25 3 6.5 3 9C3 11.4853 5.01472 13.5 7.5 13.5C9.98528 13.5 12 11.4853 12 9C12 6.5 10.5 4.25 7.5 1.5ZM11 9C11 7.11203 9.97315 5.27195 7.5 2.87357C5.02686 5.27195 4 7.11203 4 9C4 10.933 5.567 12.5 7.5 12.5C9.433 12.5 11 10.933 11 9Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Jm=["color"],Nl=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Jm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.85714 2H12.1429C12.6162 2 13 2.38376 13 2.85714V12.1429C13 12.6162 12.6162 13 12.1429 13H2.85714C2.38376 13 2 12.6162 2 12.1429V2.85714C2 2.38376 2.38376 2 2.85714 2ZM1 2.85714C1 1.83147 1.83147 1 2.85714 1H12.1429C13.1685 1 14 1.83147 14 2.85714V12.1429C14 13.1685 13.1685 14 12.1429 14H2.85714C1.83147 14 1 13.1685 1 12.1429V2.85714ZM7.49988 5.00012C7.77602 5.00012 7.99988 4.77626 7.99988 4.50012C7.99988 4.22398 7.77602 4.00012 7.49988 4.00012C7.22374 4.00012 6.99988 4.22398 6.99988 4.50012C6.99988 4.77626 7.22374 5.00012 7.49988 5.00012ZM4.49988 11.0001C4.77602 11.0001 4.99988 10.7763 4.99988 10.5001C4.99988 10.224 4.77602 10.0001 4.49988 10.0001C4.22374 10.0001 3.99988 10.224 3.99988 10.5001C3.99988 10.7763 4.22374 11.0001 4.49988 11.0001ZM4.99988 7.50012C4.99988 7.77626 4.77602 8.00012 4.49988 8.00012C4.22374 8.00012 3.99988 7.77626 3.99988 7.50012C3.99988 7.22398 4.22374 7.00012 4.49988 7.00012C4.77602 7.00012 4.99988 7.22398 4.99988 7.50012ZM4.49988 5.00012C4.77602 5.00012 4.99988 4.77626 4.99988 4.50012C4.99988 4.22398 4.77602 4.00012 4.49988 4.00012C4.22374 4.00012 3.99988 4.22398 3.99988 4.50012C3.99988 4.77626 4.22374 5.00012 4.49988 5.00012ZM10.9999 10.5001C10.9999 10.7763 10.776 11.0001 10.4999 11.0001C10.2237 11.0001 9.99988 10.7763 9.99988 10.5001C9.99988 10.224 10.2237 10.0001 10.4999 10.0001C10.776 10.0001 10.9999 10.224 10.9999 10.5001ZM10.4999 8.00012C10.776 8.00012 10.9999 7.77626 10.9999 7.50012C10.9999 7.22398 10.776 7.00012 10.4999 7.00012C10.2237 7.00012 9.99988 7.22398 9.99988 7.50012C9.99988 7.77626 10.2237 8.00012 10.4999 8.00012ZM10.9999 4.50012C10.9999 4.77626 10.776 5.00012 10.4999 5.00012C10.2237 5.00012 9.99988 4.77626 9.99988 4.50012C9.99988 4.22398 10.2237 4.00012 10.4999 4.00012C10.776 4.00012 10.9999 4.22398 10.9999 4.50012ZM7.49988 11.0001C7.77602 11.0001 7.99988 10.7763 7.99988 10.5001C7.99988 10.224 7.77602 10.0001 7.49988 10.0001C7.22374 10.0001 6.99988 10.224 6.99988 10.5001C6.99988 10.7763 7.22374 11.0001 7.49988 11.0001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Wm=["color"],ih=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Wm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Im=["color"],os=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Im);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ex=["color"],zc=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,ex);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 14.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),tx=["color"],nx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,tx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lx=["color"],ax=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,lx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.81832 0.68179C7.64258 0.506054 7.35766 0.506054 7.18192 0.68179L5.18192 2.68179C5.00619 2.85753 5.00619 3.14245 5.18192 3.31819C5.35766 3.49392 5.64258 3.49392 5.81832 3.31819L7.05012 2.08638L7.05012 5.50023C7.05012 5.74876 7.25159 5.95023 7.50012 5.95023C7.74865 5.95023 7.95012 5.74876 7.95012 5.50023L7.95012 2.08638L9.18192 3.31819C9.35766 3.49392 9.64258 3.49392 9.81832 3.31819C9.99406 3.14245 9.99406 2.85753 9.81832 2.68179L7.81832 0.68179ZM7.95012 12.9136V9.50023C7.95012 9.2517 7.74865 9.05023 7.50012 9.05023C7.25159 9.05023 7.05012 9.2517 7.05012 9.50023V12.9136L5.81832 11.6818C5.64258 11.5061 5.35766 11.5061 5.18192 11.6818C5.00619 11.8575 5.00619 12.1424 5.18192 12.3182L7.18192 14.3182C7.26632 14.4026 7.38077 14.45 7.50012 14.45C7.61947 14.45 7.73393 14.4026 7.81832 14.3182L9.81832 12.3182C9.99406 12.1424 9.99406 11.8575 9.81832 11.6818C9.64258 11.5061 9.35766 11.5061 9.18192 11.6818L7.95012 12.9136ZM1.49994 7.00017C1.2238 7.00017 0.999939 7.22403 0.999939 7.50017C0.999939 7.77631 1.2238 8.00017 1.49994 8.00017L13.4999 8.00017C13.7761 8.00017 13.9999 7.77631 13.9999 7.50017C13.9999 7.22403 13.7761 7.00017 13.4999 7.00017L1.49994 7.00017Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ox=["color"],rx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,ox);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14 12.85L1 12.85L1 14.15L14 14.15L14 12.85ZM14 8.85002L1 8.85002L1 10.15L14 10.15L14 8.85002ZM1 4.85003L14 4.85003L14 6.15003L1 6.15002L1 4.85003ZM14 0.850025L1 0.850025L1 2.15002L14 2.15002L14 0.850025Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ix=["color"],ch=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,ix);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cx=["color"],sx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,cx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ux=["color"],Uc=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,ux);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14.4999 0.999994C14.2237 0.999994 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L9.99992 5.99995C9.44764 5.99995 8.99993 6.44766 8.99993 6.99994L8.99993 7.99994C8.99993 8.55222 9.44764 8.99993 9.99992 8.99993L13.9999 8.99993L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999994 14.4999 0.999994ZM4.99996 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999994 0.499996 0.999994C0.223856 0.999994 -9.7852e-09 1.22385 -2.18557e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99993L4.99996 8.99993C5.55224 8.99993 5.99995 8.55222 5.99995 7.99993L5.99995 6.99994C5.99995 6.44766 5.55224 5.99995 4.99996 5.99995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dx=["color"],fx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,dx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992ZM0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992ZM1.99998 6.99994C1.99998 6.44766 2.44769 5.99995 2.99998 5.99995L5.99995 5.99995C6.55223 5.99995 6.99994 6.44766 6.99994 6.99994L6.99994 7.99993C6.99994 8.55221 6.55223 8.99992 5.99995 8.99992L2.99998 8.99992C2.4477 8.99992 1.99998 8.55221 1.99998 7.99993L1.99998 6.99994ZM8.99993 5.99995C8.44765 5.99995 7.99993 6.44766 7.99993 6.99994L7.99993 7.99993C7.99993 8.55221 8.44765 8.99992 8.99993 8.99992L11.9999 8.99992C12.5522 8.99992 12.9999 8.55221 12.9999 7.99993L12.9999 6.99994C12.9999 6.44766 12.5522 5.99995 11.9999 5.99995L8.99993 5.99995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),px=["color"],e0=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,px);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M1 1H1.5H13.5H14V1.5V13.5V14H13.5H1.5H1V13.5V1.5V1ZM2 2V13H13V2H2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hx=["color"],gx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,hx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99992L13.9999 8.99992L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mx=["color"],xx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,mx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),vx=["color"],yx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,vx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bx=["color"],zr=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,bx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Cx=["color"],sh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Cx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wx=["color"],Pc=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,wx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Sx=["color"],uh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Sx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),jx=["color"],dh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,jx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L11.9291 2.36383C11.9159 2.32246 11.897 2.28368 11.8732 2.24845C11.7923 2.12875 11.6554 2.05005 11.5001 2.05005H3.50005C3.29909 2.05005 3.1289 2.18178 3.07111 2.3636C3.05743 2.40665 3.05005 2.45249 3.05005 2.50007V4.50001C3.05005 4.74854 3.25152 4.95001 3.50005 4.95001C3.74858 4.95001 3.95005 4.74854 3.95005 4.50001V2.95005H6.95006V7.34284L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L6.95006 8.75705V12.0501H5.7544C5.50587 12.0501 5.3044 12.2515 5.3044 12.5001C5.3044 12.7486 5.50587 12.9501 5.7544 12.9501H9.2544C9.50293 12.9501 9.7044 12.7486 9.7044 12.5001C9.7044 12.2515 9.50293 12.0501 9.2544 12.0501H8.05006V7.65705L13.3536 2.35355ZM8.05006 6.24284L11.0501 3.24283V2.95005H8.05006V6.24284Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Mx=["color"],fh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Mx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M4.5 2C3.11929 2 2 3.11929 2 4.5C2 5.88072 3.11929 7 4.5 7C5.88072 7 7 5.88072 7 4.5C7 3.11929 5.88072 2 4.5 2ZM3 4.5C3 3.67157 3.67157 3 4.5 3C5.32843 3 6 3.67157 6 4.5C6 5.32843 5.32843 6 4.5 6C3.67157 6 3 5.32843 3 4.5ZM10.5 2C9.11929 2 8 3.11929 8 4.5C8 5.88072 9.11929 7 10.5 7C11.8807 7 13 5.88072 13 4.5C13 3.11929 11.8807 2 10.5 2ZM9 4.5C9 3.67157 9.67157 3 10.5 3C11.3284 3 12 3.67157 12 4.5C12 5.32843 11.3284 6 10.5 6C9.67157 6 9 5.32843 9 4.5ZM2 10.5C2 9.11929 3.11929 8 4.5 8C5.88072 8 7 9.11929 7 10.5C7 11.8807 5.88072 13 4.5 13C3.11929 13 2 11.8807 2 10.5ZM4.5 9C3.67157 9 3 9.67157 3 10.5C3 11.3284 3.67157 12 4.5 12C5.32843 12 6 11.3284 6 10.5C6 9.67157 5.32843 9 4.5 9ZM10.5 8C9.11929 8 8 9.11929 8 10.5C8 11.8807 9.11929 13 10.5 13C11.8807 13 13 11.8807 13 10.5C13 9.11929 11.8807 8 10.5 8ZM9 10.5C9 9.67157 9.67157 9 10.5 9C11.3284 9 12 9.67157 12 10.5C12 11.3284 11.3284 12 10.5 12C9.67157 12 9 11.3284 9 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ex=["color"],Tx=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Ex);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M0.849976 1.74998C0.849976 1.25292 1.25292 0.849976 1.74998 0.849976H3.24998C3.74703 0.849976 4.14998 1.25292 4.14998 1.74998V2.04998H10.85V1.74998C10.85 1.25292 11.2529 0.849976 11.75 0.849976H13.25C13.747 0.849976 14.15 1.25292 14.15 1.74998V3.24998C14.15 3.74703 13.747 4.14998 13.25 4.14998H12.95V10.85H13.25C13.747 10.85 14.15 11.2529 14.15 11.75V13.25C14.15 13.747 13.747 14.15 13.25 14.15H11.75C11.2529 14.15 10.85 13.747 10.85 13.25V12.95H4.14998V13.25C4.14998 13.747 3.74703 14.15 3.24998 14.15H1.74998C1.25292 14.15 0.849976 13.747 0.849976 13.25V11.75C0.849976 11.2529 1.25292 10.85 1.74998 10.85H2.04998V4.14998H1.74998C1.25292 4.14998 0.849976 3.74703 0.849976 3.24998V1.74998ZM2.94998 4.14998V10.85H3.24998C3.74703 10.85 4.14998 11.2529 4.14998 11.75V12.05H10.85V11.75C10.85 11.2529 11.2529 10.85 11.75 10.85H12.05V4.14998H11.75C11.2529 4.14998 10.85 3.74703 10.85 3.24998V2.94998H4.14998V3.24998C4.14998 3.74703 3.74703 4.14998 3.24998 4.14998H2.94998ZM2.34998 1.74998H1.74998V2.34998V2.64998V3.24998H2.34998H2.64998H3.24998V2.64998V2.34998V1.74998H2.64998H2.34998ZM5.09998 5.99998C5.09998 5.50292 5.50292 5.09998 5.99998 5.09998H6.99998C7.49703 5.09998 7.89998 5.50292 7.89998 5.99998V6.99998C7.89998 7.03591 7.89787 7.07134 7.89378 7.10618C7.92861 7.10208 7.96405 7.09998 7.99998 7.09998H8.99998C9.49703 7.09998 9.89998 7.50292 9.89998 7.99998V8.99998C9.89998 9.49703 9.49703 9.89998 8.99998 9.89998H7.99998C7.50292 9.89998 7.09998 9.49703 7.09998 8.99998V7.99998C7.09998 7.96405 7.10208 7.92861 7.10618 7.89378C7.07134 7.89787 7.03591 7.89998 6.99998 7.89998H5.99998C5.50292 7.89998 5.09998 7.49703 5.09998 6.99998V5.99998ZM6.09998 5.99998H5.99998V6.09998V6.89998V6.99998H6.09998H6.89998H6.99998V6.89998V6.09998V5.99998H6.89998H6.09998ZM7.99998 7.99998H8.09998H8.89998H8.99998V8.09998V8.89998V8.99998H8.89998H8.09998H7.99998V8.89998V8.09998V7.99998ZM2.64998 11.75H2.34998H1.74998V12.35V12.65V13.25H2.34998H2.64998H3.24998V12.65V12.35V11.75H2.64998ZM11.75 1.74998H12.35H12.65H13.25V2.34998V2.64998V3.24998H12.65H12.35H11.75V2.64998V2.34998V1.74998ZM12.65 11.75H12.35H11.75V12.35V12.65V13.25H12.35H12.65H13.25V12.65V12.35V11.75H12.65Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Rx=["color"],ph=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Rx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_x=["color"],hh=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,_x);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Nx=["color"],ia=g.forwardRef(function(t,l){var o=t.color,r=o===void 0?"currentColor":o,c=ie(t,Nx);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:l}),g.createElement("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
|
|
50
|
+
* @license lucide-react v0.575.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const gh=(...t)=>t.filter((l,o,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===o).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.575.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const Lx=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
60
|
+
* @license lucide-react v0.575.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const Ox=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,r)=>r?r.toUpperCase():o.toLowerCase());/**
|
|
65
|
+
* @license lucide-react v0.575.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const g3=t=>{const l=Ox(t);return l.charAt(0).toUpperCase()+l.slice(1)};/**
|
|
70
|
+
* @license lucide-react v0.575.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var Ax={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
75
|
+
* @license lucide-react v0.575.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const zx=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};/**
|
|
80
|
+
* @license lucide-react v0.575.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Hx=g.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:s,iconNode:f,...h},x)=>g.createElement("svg",{ref:x,...Ax,width:l,height:l,stroke:t,strokeWidth:r?Number(o)*24/Number(l):o,className:gh("lucide",c),...!s&&!zx(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,v])=>g.createElement(m,v)),...Array.isArray(s)?s:[s]]));/**
|
|
85
|
+
* @license lucide-react v0.575.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Be=(t,l)=>{const o=g.forwardRef(({className:r,...c},s)=>g.createElement(Hx,{ref:s,iconNode:l,className:gh(`lucide-${Lx(g3(t))}`,`lucide-${t}`,r),...c}));return o.displayName=g3(t),o};/**
|
|
90
|
+
* @license lucide-react v0.575.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Vx=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kx=Be("activity",Vx);/**
|
|
95
|
+
* @license lucide-react v0.575.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Dx=[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]],$x=Be("arrow-right-to-line",Dx);/**
|
|
100
|
+
* @license lucide-react v0.575.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Bx=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Zx=Be("bold",Bx);/**
|
|
105
|
+
* @license lucide-react v0.575.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const Ux=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Px=Be("chevron-down",Ux);/**
|
|
110
|
+
* @license lucide-react v0.575.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Yx=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],qx=Be("chevrons-down-up",Yx);/**
|
|
115
|
+
* @license lucide-react v0.575.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Xx=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Gx=Be("chevrons-up-down",Xx);/**
|
|
120
|
+
* @license lucide-react v0.575.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Qx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Kx=Be("circle",Qx);/**
|
|
125
|
+
* @license lucide-react v0.575.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Fx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Jx=Be("columns-3",Fx);/**
|
|
130
|
+
* @license lucide-react v0.575.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],Ix=Be("crosshair",Wx);/**
|
|
135
|
+
* @license lucide-react v0.575.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const ev=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tv=Be("layers",ev);/**
|
|
140
|
+
* @license lucide-react v0.575.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const nv=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],lv=Be("maximize",nv);/**
|
|
145
|
+
* @license lucide-react v0.575.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const av=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],ov=Be("monitor",av);/**
|
|
150
|
+
* @license lucide-react v0.575.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const rv=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],iv=Be("palette",rv);/**
|
|
155
|
+
* @license lucide-react v0.575.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const cv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 15h1",key:"171nev"}],["path",{d:"M19 15h2",key:"1vnucp"}],["path",{d:"M3 15h2",key:"8bym0q"}],["path",{d:"M9 15h1",key:"1tg3ks"}]],sv=Be("panel-bottom-dashed",cv);/**
|
|
160
|
+
* @license lucide-react v0.575.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const uv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 14v1",key:"askpd8"}],["path",{d:"M9 19v2",key:"16tejx"}],["path",{d:"M9 3v2",key:"1noubl"}],["path",{d:"M9 9v1",key:"19ebxg"}]],dv=Be("panel-left-dashed",uv);/**
|
|
165
|
+
* @license lucide-react v0.575.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const fv=[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M15 15v-1",key:"6a4afx"}],["path",{d:"M15 21v-2",key:"1qshmc"}],["path",{d:"M15 5V3",key:"1fk0mb"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 15v-1",key:"9lx740"}],["path",{d:"M9 21v-2",key:"1fwk0n"}],["path",{d:"M9 5V3",key:"2q8zi6"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],pv=Be("panel-left-right-dashed",fv);/**
|
|
170
|
+
* @license lucide-react v0.575.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const hv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],m3=Be("panel-left",hv);/**
|
|
175
|
+
* @license lucide-react v0.575.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const gv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 14v1",key:"ilsfch"}],["path",{d:"M15 19v2",key:"1fst2f"}],["path",{d:"M15 3v2",key:"z204g4"}],["path",{d:"M15 9v1",key:"z2a8b1"}]],mv=Be("panel-right-dashed",gv);/**
|
|
180
|
+
* @license lucide-react v0.575.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const xv=[["path",{d:"M14 15h1",key:"171nev"}],["path",{d:"M14 9h1",key:"l0svgy"}],["path",{d:"M19 15h2",key:"1vnucp"}],["path",{d:"M19 9h2",key:"te2zfg"}],["path",{d:"M3 15h2",key:"8bym0q"}],["path",{d:"M3 9h2",key:"1h4ldw"}],["path",{d:"M9 15h1",key:"1tg3ks"}],["path",{d:"M9 9h1",key:"15jzuz"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],vv=Be("panel-top-bottom-dashed",xv);/**
|
|
185
|
+
* @license lucide-react v0.575.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const yv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 9h1",key:"l0svgy"}],["path",{d:"M19 9h2",key:"te2zfg"}],["path",{d:"M3 9h2",key:"1h4ldw"}],["path",{d:"M9 9h1",key:"15jzuz"}]],bv=Be("panel-top-dashed",yv);/**
|
|
190
|
+
* @license lucide-react v0.575.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const Cv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],wv=Be("panel-top",Cv);/**
|
|
195
|
+
* @license lucide-react v0.575.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const Sv=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],jv=Be("pin",Sv);/**
|
|
200
|
+
* @license lucide-react v0.575.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Mv=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ev=Be("sparkles",Mv);/**
|
|
205
|
+
* @license lucide-react v0.575.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Tv=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"m17 16 4-4-4-4",key:"iin4zf"}],["path",{d:"M21 6.344V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.344",key:"1ojbhp"}]],Rv=Be("square-arrow-right-exit",Tv);/**
|
|
210
|
+
* @license lucide-react v0.575.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const _v=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],x3=Be("text-align-start",_v);/**
|
|
215
|
+
* @license lucide-react v0.575.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Nv=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],v3=Be("toggle-left",Nv);/**
|
|
220
|
+
* @license lucide-react v0.575.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const Lv=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Ov=Be("type",Lv);/**
|
|
225
|
+
* @license lucide-react v0.575.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const Av=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],zv=Be("zoom-in",Av);/**
|
|
230
|
+
* @license lucide-react v0.575.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const Hv=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Vv=Be("zoom-out",Hv);function kv(t){if("source"in t)return t;const l=t;return{tag:l.tag,className:l.className,computed:l.computedStyles,parentComputed:l.parentComputedStyles,boundingRect:l.boundingRect,textContent:l.textContent,attributes:l.attributes,domPath:l.domPath||null,source:l.sourceFile!=null?{file:l.sourceFile,line:l.sourceLine,col:l.sourceCol}:null,instanceSource:l.instanceSourceFile!=null?{file:l.instanceSourceFile,line:l.instanceSourceLine,col:l.instanceSourceCol}:null,componentName:l.componentName||null,fiberProps:l.fiberProps||null}}function Dv(t,l){var o;(o=t.contentWindow)==null||o.postMessage(l,"*")}function $v(t){const l=o=>{var c;const r=o.data;if((c=r==null?void 0:r.type)!=null&&c.startsWith("tool:")){if(r.type==="tool:elementSelected"&&r.data){t({type:"tool:elementSelected",data:kv(r.data)});return}t(r)}};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)}function Bv(t,l){const o=g.useRef(l);return o.current=l,g.useEffect(()=>$v(c=>{o.current(c)}),[]),{send:g.useCallback(c=>{t.current&&Dv(t.current,c)},[t])}}function ze(t,l,{checkForDefaultPrevented:o=!0}={}){return function(c){if(t==null||t(c),o===!1||!c.defaultPrevented)return l==null?void 0:l(c)}}function y3(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}function mh(...t){return l=>{let o=!1;const r=t.map(c=>{const s=y3(c,l);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let c=0;c<r.length;c++){const s=r[c];typeof s=="function"?s():y3(t[c],null)}}}}function We(...t){return g.useCallback(mh(...t),t)}function bo(t,l=[]){let o=[];function r(s,f){const h=g.createContext(f),x=o.length;o=[...o,f];const m=b=>{var R;const{scope:C,children:S,...M}=b,w=((R=C==null?void 0:C[t])==null?void 0:R[x])||h,E=g.useMemo(()=>M,Object.values(M));return u.jsx(w.Provider,{value:E,children:S})};m.displayName=s+"Provider";function v(b,C){var w;const S=((w=C==null?void 0:C[t])==null?void 0:w[x])||h,M=g.useContext(S);if(M)return M;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${s}\``)}return[m,v]}const c=()=>{const s=o.map(f=>g.createContext(f));return function(h){const x=(h==null?void 0:h[t])||s;return g.useMemo(()=>({[`__scope${t}`]:{...h,[t]:x}}),[h,x])}};return c.scopeName=t,[r,Zv(c,...l)]}function Zv(...t){const l=t[0];if(t.length===1)return l;const o=()=>{const r=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(s){const f=r.reduce((h,{useScope:x,scopeName:m})=>{const b=x(s)[`__scope${m}`];return{...h,...b}},{});return g.useMemo(()=>({[`__scope${l.scopeName}`]:f}),[f])}};return o.scopeName=l.scopeName,o}var Gr=Yp();const Uv=Pp(Gr);function Zr(t){const l=Pv(t),o=g.forwardRef((r,c)=>{const{children:s,...f}=r,h=g.Children.toArray(s),x=h.find(qv);if(x){const m=x.props.children,v=h.map(b=>b===x?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:b);return u.jsx(l,{...f,ref:c,children:g.isValidElement(m)?g.cloneElement(m,void 0,v):null})}return u.jsx(l,{...f,ref:c,children:s})});return o.displayName=`${t}.Slot`,o}function Pv(t){const l=g.forwardRef((o,r)=>{const{children:c,...s}=o;if(g.isValidElement(c)){const f=Gv(c),h=Xv(s,c.props);return c.type!==g.Fragment&&(h.ref=r?mh(r,f):f),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return l.displayName=`${t}.SlotClone`,l}var xh=Symbol("radix.slottable");function Yv(t){const l=({children:o})=>u.jsx(u.Fragment,{children:o});return l.displayName=`${t}.Slottable`,l.__radixId=xh,l}function qv(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===xh}function Xv(t,l){const o={...l};for(const r in l){const c=t[r],s=l[r];/^on[A-Z]/.test(r)?c&&s?o[r]=(...h)=>{const x=s(...h);return c(...h),x}:c&&(o[r]=c):r==="style"?o[r]={...c,...s}:r==="className"&&(o[r]=[c,s].filter(Boolean).join(" "))}return{...t,...o}}function Gv(t){var r,c;let l=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?t.ref:(l=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Qv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=Qv.reduce((t,l)=>{const o=Zr(`Primitive.${l}`),r=g.forwardRef((c,s)=>{const{asChild:f,...h}=c,x=f?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(x,{...h,ref:s})});return r.displayName=`Primitive.${l}`,{...t,[l]:r}},{});function Kv(t,l){t&&Gr.flushSync(()=>t.dispatchEvent(l))}function da(t){const l=g.useRef(t);return g.useEffect(()=>{l.current=t}),g.useMemo(()=>(...o)=>{var r;return(r=l.current)==null?void 0:r.call(l,...o)},[])}function Fv(t,l=globalThis==null?void 0:globalThis.document){const o=da(t);g.useEffect(()=>{const r=c=>{c.key==="Escape"&&o(c)};return l.addEventListener("keydown",r,{capture:!0}),()=>l.removeEventListener("keydown",r,{capture:!0})},[o,l])}var Jv="DismissableLayer",k0="dismissableLayer.update",Wv="dismissableLayer.pointerDownOutside",Iv="dismissableLayer.focusOutside",b3,vh=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=g.forwardRef((t,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:f,onDismiss:h,...x}=t,m=g.useContext(vh),[v,b]=g.useState(null),C=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=g.useState({}),M=We(l,z=>b(z)),w=Array.from(m.layers),[E]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),R=w.indexOf(E),T=v?w.indexOf(v):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,O=T>=R,k=ny(z=>{const J=z.target,F=[...m.branches].some(ce=>ce.contains(J));!O||F||(c==null||c(z),f==null||f(z),z.defaultPrevented||h==null||h())},C),Z=ly(z=>{const J=z.target;[...m.branches].some(ce=>ce.contains(J))||(s==null||s(z),f==null||f(z),z.defaultPrevented||h==null||h())},C);return Fv(z=>{T===m.layers.size-1&&(r==null||r(z),!z.defaultPrevented&&h&&(z.preventDefault(),h()))},C),g.useEffect(()=>{if(v)return o&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(b3=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),C3(),()=>{o&&m.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=b3)}},[v,C,o,m]),g.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),C3())},[v,m]),g.useEffect(()=>{const z=()=>S({});return document.addEventListener(k0,z),()=>document.removeEventListener(k0,z)},[]),u.jsx(Ge.div,{...x,ref:M,style:{pointerEvents:_?O?"auto":"none":void 0,...t.style},onFocusCapture:ze(t.onFocusCapture,Z.onFocusCapture),onBlurCapture:ze(t.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:ze(t.onPointerDownCapture,k.onPointerDownCapture)})});rs.displayName=Jv;var ey="DismissableLayerBranch",ty=g.forwardRef((t,l)=>{const o=g.useContext(vh),r=g.useRef(null),c=We(l,r);return g.useEffect(()=>{const s=r.current;if(s)return o.branches.add(s),()=>{o.branches.delete(s)}},[o.branches]),u.jsx(Ge.div,{...t,ref:c})});ty.displayName=ey;function ny(t,l=globalThis==null?void 0:globalThis.document){const o=da(t),r=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const s=h=>{if(h.target&&!r.current){let x=function(){yh(Wv,o,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",c.current),c.current=x,l.addEventListener("click",c.current,{once:!0})):x()}else l.removeEventListener("click",c.current);r.current=!1},f=window.setTimeout(()=>{l.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(f),l.removeEventListener("pointerdown",s),l.removeEventListener("click",c.current)}},[l,o]),{onPointerDownCapture:()=>r.current=!0}}function ly(t,l=globalThis==null?void 0:globalThis.document){const o=da(t),r=g.useRef(!1);return g.useEffect(()=>{const c=s=>{s.target&&!r.current&&yh(Iv,o,{originalEvent:s},{discrete:!1})};return l.addEventListener("focusin",c),()=>l.removeEventListener("focusin",c)},[l,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function C3(){const t=new CustomEvent(k0);document.dispatchEvent(t)}function yh(t,l,o,{discrete:r}){const c=o.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});l&&c.addEventListener(t,l,{once:!0}),r?Kv(c,s):c.dispatchEvent(s)}var t0=0;function bh(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??w3()),document.body.insertAdjacentElement("beforeend",t[1]??w3()),t0++,()=>{t0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),t0--}},[])}function w3(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var n0="focusScope.autoFocusOnMount",l0="focusScope.autoFocusOnUnmount",S3={bubbles:!1,cancelable:!0},ay="FocusScope",bd=g.forwardRef((t,l)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:s,...f}=t,[h,x]=g.useState(null),m=da(c),v=da(s),b=g.useRef(null),C=We(l,w=>x(w)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let w=function(_){if(S.paused||!h)return;const O=_.target;h.contains(O)?b.current=O:_l(b.current,{select:!0})},E=function(_){if(S.paused||!h)return;const O=_.relatedTarget;O!==null&&(h.contains(O)||_l(b.current,{select:!0}))},R=function(_){if(document.activeElement===document.body)for(const k of _)k.removedNodes.length>0&&_l(h)};document.addEventListener("focusin",w),document.addEventListener("focusout",E);const T=new MutationObserver(R);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",E),T.disconnect()}}},[r,h,S.paused]),g.useEffect(()=>{if(h){M3.add(S);const w=document.activeElement;if(!h.contains(w)){const R=new CustomEvent(n0,S3);h.addEventListener(n0,m),h.dispatchEvent(R),R.defaultPrevented||(oy(uy(Ch(h)),{select:!0}),document.activeElement===w&&_l(h))}return()=>{h.removeEventListener(n0,m),setTimeout(()=>{const R=new CustomEvent(l0,S3);h.addEventListener(l0,v),h.dispatchEvent(R),R.defaultPrevented||_l(w??document.body,{select:!0}),h.removeEventListener(l0,v),M3.remove(S)},0)}}},[h,m,v,S]);const M=g.useCallback(w=>{if(!o&&!r||S.paused)return;const E=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,R=document.activeElement;if(E&&R){const T=w.currentTarget,[_,O]=ry(T);_&&O?!w.shiftKey&&R===O?(w.preventDefault(),o&&_l(_,{select:!0})):w.shiftKey&&R===_&&(w.preventDefault(),o&&_l(O,{select:!0})):R===T&&w.preventDefault()}},[o,r,S.paused]);return u.jsx(Ge.div,{tabIndex:-1,...f,ref:C,onKeyDown:M})});bd.displayName=ay;function oy(t,{select:l=!1}={}){const o=document.activeElement;for(const r of t)if(_l(r,{select:l}),document.activeElement!==o)return}function ry(t){const l=Ch(t),o=j3(l,t),r=j3(l.reverse(),t);return[o,r]}function Ch(t){const l=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function j3(t,l){for(const o of t)if(!iy(o,{upTo:l}))return o}function iy(t,{upTo:l}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(l!==void 0&&t===l)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function cy(t){return t instanceof HTMLInputElement&&"select"in t}function _l(t,{select:l=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&cy(t)&&l&&t.select()}}var M3=sy();function sy(){let t=[];return{add(l){const o=t[0];l!==o&&(o==null||o.pause()),t=E3(t,l),t.unshift(l)},remove(l){var o;t=E3(t,l),(o=t[0])==null||o.resume()}}}function E3(t,l){const o=[...t],r=o.indexOf(l);return r!==-1&&o.splice(r,1),o}function uy(t){return t.filter(l=>l.tagName!=="A")}var Tt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},dy=qp[" useId ".trim().toString()]||(()=>{}),fy=0;function Qr(t){const[l,o]=g.useState(dy());return Tt(()=>{o(r=>r??String(fy++))},[t]),t||(l?`radix-${l}`:"")}const py=["top","right","bottom","left"],zl=Math.min,Kt=Math.max,Yc=Math.round,wc=Math.floor,Rn=t=>({x:t,y:t}),hy={left:"right",right:"left",bottom:"top",top:"bottom"},gy={start:"end",end:"start"};function D0(t,l,o){return Kt(t,zl(l,o))}function el(t,l){return typeof t=="function"?t(l):t}function tl(t){return t.split("-")[0]}function Co(t){return t.split("-")[1]}function Cd(t){return t==="x"?"y":"x"}function wd(t){return t==="y"?"height":"width"}const my=new Set(["top","bottom"]);function Tn(t){return my.has(tl(t))?"y":"x"}function Sd(t){return Cd(Tn(t))}function xy(t,l,o){o===void 0&&(o=!1);const r=Co(t),c=Sd(t),s=wd(c);let f=c==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return l.reference[s]>l.floating[s]&&(f=qc(f)),[f,qc(f)]}function vy(t){const l=qc(t);return[$0(t),l,$0(l)]}function $0(t){return t.replace(/start|end/g,l=>gy[l])}const T3=["left","right"],R3=["right","left"],yy=["top","bottom"],by=["bottom","top"];function Cy(t,l,o){switch(t){case"top":case"bottom":return o?l?R3:T3:l?T3:R3;case"left":case"right":return l?yy:by;default:return[]}}function wy(t,l,o,r){const c=Co(t);let s=Cy(tl(t),o==="start",r);return c&&(s=s.map(f=>f+"-"+c),l&&(s=s.concat(s.map($0)))),s}function qc(t){return t.replace(/left|right|bottom|top/g,l=>hy[l])}function Sy(t){return{top:0,right:0,bottom:0,left:0,...t}}function wh(t){return typeof t!="number"?Sy(t):{top:t,right:t,bottom:t,left:t}}function Xc(t){const{x:l,y:o,width:r,height:c}=t;return{width:r,height:c,top:o,left:l,right:l+r,bottom:o+c,x:l,y:o}}function _3(t,l,o){let{reference:r,floating:c}=t;const s=Tn(l),f=Sd(l),h=wd(f),x=tl(l),m=s==="y",v=r.x+r.width/2-c.width/2,b=r.y+r.height/2-c.height/2,C=r[h]/2-c[h]/2;let S;switch(x){case"top":S={x:v,y:r.y-c.height};break;case"bottom":S={x:v,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:b};break;case"left":S={x:r.x-c.width,y:b};break;default:S={x:r.x,y:r.y}}switch(Co(l)){case"start":S[f]-=C*(o&&m?-1:1);break;case"end":S[f]+=C*(o&&m?-1:1);break}return S}async function jy(t,l){var o;l===void 0&&(l={});const{x:r,y:c,platform:s,rects:f,elements:h,strategy:x}=t,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:C=!1,padding:S=0}=el(l,t),M=wh(S),E=h[C?b==="floating"?"reference":"floating":b],R=Xc(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(E)))==null||o?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(h.floating)),boundary:m,rootBoundary:v,strategy:x})),T=b==="floating"?{x:r,y:c,width:f.floating.width,height:f.floating.height}:f.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h.floating)),O=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},k=Xc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:T,offsetParent:_,strategy:x}):T);return{top:(R.top-k.top+M.top)/O.y,bottom:(k.bottom-R.bottom+M.bottom)/O.y,left:(R.left-k.left+M.left)/O.x,right:(k.right-R.right+M.right)/O.x}}const My=async(t,l,o)=>{const{placement:r="bottom",strategy:c="absolute",middleware:s=[],platform:f}=o,h=s.filter(Boolean),x=await(f.isRTL==null?void 0:f.isRTL(l));let m=await f.getElementRects({reference:t,floating:l,strategy:c}),{x:v,y:b}=_3(m,r,x),C=r,S={},M=0;for(let E=0;E<h.length;E++){var w;const{name:R,fn:T}=h[E],{x:_,y:O,data:k,reset:Z}=await T({x:v,y:b,initialPlacement:r,placement:C,strategy:c,middlewareData:S,rects:m,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:jy},elements:{reference:t,floating:l}});v=_??v,b=O??b,S={...S,[R]:{...S[R],...k}},Z&&M<=50&&(M++,typeof Z=="object"&&(Z.placement&&(C=Z.placement),Z.rects&&(m=Z.rects===!0?await f.getElementRects({reference:t,floating:l,strategy:c}):Z.rects),{x:v,y:b}=_3(m,C,x)),E=-1)}return{x:v,y:b,placement:C,strategy:c,middlewareData:S}},Ey=t=>({name:"arrow",options:t,async fn(l){const{x:o,y:r,placement:c,rects:s,platform:f,elements:h,middlewareData:x}=l,{element:m,padding:v=0}=el(t,l)||{};if(m==null)return{};const b=wh(v),C={x:o,y:r},S=Sd(c),M=wd(S),w=await f.getDimensions(m),E=S==="y",R=E?"top":"left",T=E?"bottom":"right",_=E?"clientHeight":"clientWidth",O=s.reference[M]+s.reference[S]-C[S]-s.floating[M],k=C[S]-s.reference[S],Z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let z=Z?Z[_]:0;(!z||!await(f.isElement==null?void 0:f.isElement(Z)))&&(z=h.floating[_]||s.floating[M]);const J=O/2-k/2,F=z/2-w[M]/2-1,ce=zl(b[R],F),ne=zl(b[T],F),W=ce,ae=z-w[M]-ne,oe=z/2-w[M]/2+J,me=D0(W,oe,ae),H=!x.arrow&&Co(c)!=null&&oe!==me&&s.reference[M]/2-(oe<W?ce:ne)-w[M]/2<0,D=H?oe<W?oe-W:oe-ae:0;return{[S]:C[S]+D,data:{[S]:me,centerOffset:oe-me-D,...H&&{alignmentOffset:D}},reset:H}}}),Ty=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(l){var o,r;const{placement:c,middlewareData:s,rects:f,initialPlacement:h,platform:x,elements:m}=l,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:w=!0,...E}=el(t,l);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const R=tl(c),T=Tn(h),_=tl(h)===h,O=await(x.isRTL==null?void 0:x.isRTL(m.floating)),k=C||(_||!w?[qc(h)]:vy(h)),Z=M!=="none";!C&&Z&&k.push(...wy(h,w,M,O));const z=[h,...k],J=await x.detectOverflow(l,E),F=[];let ce=((r=s.flip)==null?void 0:r.overflows)||[];if(v&&F.push(J[R]),b){const oe=xy(c,f,O);F.push(J[oe[0]],J[oe[1]])}if(ce=[...ce,{placement:c,overflows:F}],!F.every(oe=>oe<=0)){var ne,W;const oe=(((ne=s.flip)==null?void 0:ne.index)||0)+1,me=z[oe];if(me&&(!(b==="alignment"?T!==Tn(me):!1)||ce.every(K=>Tn(K.placement)===T?K.overflows[0]>0:!0)))return{data:{index:oe,overflows:ce},reset:{placement:me}};let H=(W=ce.filter(D=>D.overflows[0]<=0).sort((D,K)=>D.overflows[1]-K.overflows[1])[0])==null?void 0:W.placement;if(!H)switch(S){case"bestFit":{var ae;const D=(ae=ce.filter(K=>{if(Z){const se=Tn(K.placement);return se===T||se==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(se=>se>0).reduce((se,he)=>se+he,0)]).sort((K,se)=>K[1]-se[1])[0])==null?void 0:ae[0];D&&(H=D);break}case"initialPlacement":H=h;break}if(c!==H)return{reset:{placement:H}}}return{}}}};function N3(t,l){return{top:t.top-l.height,right:t.right-l.width,bottom:t.bottom-l.height,left:t.left-l.width}}function L3(t){return py.some(l=>t[l]>=0)}const Ry=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(l){const{rects:o,platform:r}=l,{strategy:c="referenceHidden",...s}=el(t,l);switch(c){case"referenceHidden":{const f=await r.detectOverflow(l,{...s,elementContext:"reference"}),h=N3(f,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:L3(h)}}}case"escaped":{const f=await r.detectOverflow(l,{...s,altBoundary:!0}),h=N3(f,o.floating);return{data:{escapedOffsets:h,escaped:L3(h)}}}default:return{}}}}},Sh=new Set(["left","top"]);async function _y(t,l){const{placement:o,platform:r,elements:c}=t,s=await(r.isRTL==null?void 0:r.isRTL(c.floating)),f=tl(o),h=Co(o),x=Tn(o)==="y",m=Sh.has(f)?-1:1,v=s&&x?-1:1,b=el(l,t);let{mainAxis:C,crossAxis:S,alignmentAxis:M}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof M=="number"&&(S=h==="end"?M*-1:M),x?{x:S*v,y:C*m}:{x:C*m,y:S*v}}const Ny=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(l){var o,r;const{x:c,y:s,placement:f,middlewareData:h}=l,x=await _y(l,t);return f===((o=h.offset)==null?void 0:o.placement)&&(r=h.arrow)!=null&&r.alignmentOffset?{}:{x:c+x.x,y:s+x.y,data:{...x,placement:f}}}}},Ly=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(l){const{x:o,y:r,placement:c,platform:s}=l,{mainAxis:f=!0,crossAxis:h=!1,limiter:x={fn:R=>{let{x:T,y:_}=R;return{x:T,y:_}}},...m}=el(t,l),v={x:o,y:r},b=await s.detectOverflow(l,m),C=Tn(tl(c)),S=Cd(C);let M=v[S],w=v[C];if(f){const R=S==="y"?"top":"left",T=S==="y"?"bottom":"right",_=M+b[R],O=M-b[T];M=D0(_,M,O)}if(h){const R=C==="y"?"top":"left",T=C==="y"?"bottom":"right",_=w+b[R],O=w-b[T];w=D0(_,w,O)}const E=x.fn({...l,[S]:M,[C]:w});return{...E,data:{x:E.x-o,y:E.y-r,enabled:{[S]:f,[C]:h}}}}}},Oy=function(t){return t===void 0&&(t={}),{options:t,fn(l){const{x:o,y:r,placement:c,rects:s,middlewareData:f}=l,{offset:h=0,mainAxis:x=!0,crossAxis:m=!0}=el(t,l),v={x:o,y:r},b=Tn(c),C=Cd(b);let S=v[C],M=v[b];const w=el(h,l),E=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(x){const _=C==="y"?"height":"width",O=s.reference[C]-s.floating[_]+E.mainAxis,k=s.reference[C]+s.reference[_]-E.mainAxis;S<O?S=O:S>k&&(S=k)}if(m){var R,T;const _=C==="y"?"width":"height",O=Sh.has(tl(c)),k=s.reference[b]-s.floating[_]+(O&&((R=f.offset)==null?void 0:R[b])||0)+(O?0:E.crossAxis),Z=s.reference[b]+s.reference[_]+(O?0:((T=f.offset)==null?void 0:T[b])||0)-(O?E.crossAxis:0);M<k?M=k:M>Z&&(M=Z)}return{[C]:S,[b]:M}}}},Ay=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(l){var o,r;const{placement:c,rects:s,platform:f,elements:h}=l,{apply:x=()=>{},...m}=el(t,l),v=await f.detectOverflow(l,m),b=tl(c),C=Co(c),S=Tn(c)==="y",{width:M,height:w}=s.floating;let E,R;b==="top"||b==="bottom"?(E=b,R=C===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(R=b,E=C==="end"?"top":"bottom");const T=w-v.top-v.bottom,_=M-v.left-v.right,O=zl(w-v[E],T),k=zl(M-v[R],_),Z=!l.middlewareData.shift;let z=O,J=k;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(J=_),(r=l.middlewareData.shift)!=null&&r.enabled.y&&(z=T),Z&&!C){const ce=Kt(v.left,0),ne=Kt(v.right,0),W=Kt(v.top,0),ae=Kt(v.bottom,0);S?J=M-2*(ce!==0||ne!==0?ce+ne:Kt(v.left,v.right)):z=w-2*(W!==0||ae!==0?W+ae:Kt(v.top,v.bottom))}await x({...l,availableWidth:J,availableHeight:z});const F=await f.getDimensions(h.floating);return M!==F.width||w!==F.height?{reset:{rects:!0}}:{}}}};function is(){return typeof window<"u"}function wo(t){return jh(t)?(t.nodeName||"").toLowerCase():"#document"}function Ft(t){var l;return(t==null||(l=t.ownerDocument)==null?void 0:l.defaultView)||window}function On(t){var l;return(l=(jh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:l.documentElement}function jh(t){return is()?t instanceof Node||t instanceof Ft(t).Node:!1}function xn(t){return is()?t instanceof Element||t instanceof Ft(t).Element:!1}function Ln(t){return is()?t instanceof HTMLElement||t instanceof Ft(t).HTMLElement:!1}function O3(t){return!is()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ft(t).ShadowRoot}const zy=new Set(["inline","contents"]);function Kr(t){const{overflow:l,overflowX:o,overflowY:r,display:c}=vn(t);return/auto|scroll|overlay|hidden|clip/.test(l+r+o)&&!zy.has(c)}const Hy=new Set(["table","td","th"]);function Vy(t){return Hy.has(wo(t))}const ky=[":popover-open",":modal"];function cs(t){return ky.some(l=>{try{return t.matches(l)}catch{return!1}})}const Dy=["transform","translate","scale","rotate","perspective"],$y=["transform","translate","scale","rotate","perspective","filter"],By=["paint","layout","strict","content"];function jd(t){const l=Md(),o=xn(t)?vn(t):t;return Dy.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!l&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!l&&(o.filter?o.filter!=="none":!1)||$y.some(r=>(o.willChange||"").includes(r))||By.some(r=>(o.contain||"").includes(r))}function Zy(t){let l=Hl(t);for(;Ln(l)&&!go(l);){if(jd(l))return l;if(cs(l))return null;l=Hl(l)}return null}function Md(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Uy=new Set(["html","body","#document"]);function go(t){return Uy.has(wo(t))}function vn(t){return Ft(t).getComputedStyle(t)}function ss(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Hl(t){if(wo(t)==="html")return t;const l=t.assignedSlot||t.parentNode||O3(t)&&t.host||On(t);return O3(l)?l.host:l}function Mh(t){const l=Hl(t);return go(l)?t.ownerDocument?t.ownerDocument.body:t.body:Ln(l)&&Kr(l)?l:Mh(l)}function Ur(t,l,o){var r;l===void 0&&(l=[]),o===void 0&&(o=!0);const c=Mh(t),s=c===((r=t.ownerDocument)==null?void 0:r.body),f=Ft(c);if(s){const h=B0(f);return l.concat(f,f.visualViewport||[],Kr(c)?c:[],h&&o?Ur(h):[])}return l.concat(c,Ur(c,[],o))}function B0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Eh(t){const l=vn(t);let o=parseFloat(l.width)||0,r=parseFloat(l.height)||0;const c=Ln(t),s=c?t.offsetWidth:o,f=c?t.offsetHeight:r,h=Yc(o)!==s||Yc(r)!==f;return h&&(o=s,r=f),{width:o,height:r,$:h}}function Ed(t){return xn(t)?t:t.contextElement}function so(t){const l=Ed(t);if(!Ln(l))return Rn(1);const o=l.getBoundingClientRect(),{width:r,height:c,$:s}=Eh(l);let f=(s?Yc(o.width):o.width)/r,h=(s?Yc(o.height):o.height)/c;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const Py=Rn(0);function Th(t){const l=Ft(t);return!Md()||!l.visualViewport?Py:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function Yy(t,l,o){return l===void 0&&(l=!1),!o||l&&o!==Ft(t)?!1:l}function fa(t,l,o,r){l===void 0&&(l=!1),o===void 0&&(o=!1);const c=t.getBoundingClientRect(),s=Ed(t);let f=Rn(1);l&&(r?xn(r)&&(f=so(r)):f=so(t));const h=Yy(s,o,r)?Th(s):Rn(0);let x=(c.left+h.x)/f.x,m=(c.top+h.y)/f.y,v=c.width/f.x,b=c.height/f.y;if(s){const C=Ft(s),S=r&&xn(r)?Ft(r):r;let M=C,w=B0(M);for(;w&&r&&S!==M;){const E=so(w),R=w.getBoundingClientRect(),T=vn(w),_=R.left+(w.clientLeft+parseFloat(T.paddingLeft))*E.x,O=R.top+(w.clientTop+parseFloat(T.paddingTop))*E.y;x*=E.x,m*=E.y,v*=E.x,b*=E.y,x+=_,m+=O,M=Ft(w),w=B0(M)}}return Xc({width:v,height:b,x,y:m})}function us(t,l){const o=ss(t).scrollLeft;return l?l.left+o:fa(On(t)).left+o}function Rh(t,l){const o=t.getBoundingClientRect(),r=o.left+l.scrollLeft-us(t,o),c=o.top+l.scrollTop;return{x:r,y:c}}function qy(t){let{elements:l,rect:o,offsetParent:r,strategy:c}=t;const s=c==="fixed",f=On(r),h=l?cs(l.floating):!1;if(r===f||h&&s)return o;let x={scrollLeft:0,scrollTop:0},m=Rn(1);const v=Rn(0),b=Ln(r);if((b||!b&&!s)&&((wo(r)!=="body"||Kr(f))&&(x=ss(r)),Ln(r))){const S=fa(r);m=so(r),v.x=S.x+r.clientLeft,v.y=S.y+r.clientTop}const C=f&&!b&&!s?Rh(f,x):Rn(0);return{width:o.width*m.x,height:o.height*m.y,x:o.x*m.x-x.scrollLeft*m.x+v.x+C.x,y:o.y*m.y-x.scrollTop*m.y+v.y+C.y}}function Xy(t){return Array.from(t.getClientRects())}function Gy(t){const l=On(t),o=ss(t),r=t.ownerDocument.body,c=Kt(l.scrollWidth,l.clientWidth,r.scrollWidth,r.clientWidth),s=Kt(l.scrollHeight,l.clientHeight,r.scrollHeight,r.clientHeight);let f=-o.scrollLeft+us(t);const h=-o.scrollTop;return vn(r).direction==="rtl"&&(f+=Kt(l.clientWidth,r.clientWidth)-c),{width:c,height:s,x:f,y:h}}const A3=25;function Qy(t,l){const o=Ft(t),r=On(t),c=o.visualViewport;let s=r.clientWidth,f=r.clientHeight,h=0,x=0;if(c){s=c.width,f=c.height;const v=Md();(!v||v&&l==="fixed")&&(h=c.offsetLeft,x=c.offsetTop)}const m=us(r);if(m<=0){const v=r.ownerDocument,b=v.body,C=getComputedStyle(b),S=v.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,M=Math.abs(r.clientWidth-b.clientWidth-S);M<=A3&&(s-=M)}else m<=A3&&(s+=m);return{width:s,height:f,x:h,y:x}}const Ky=new Set(["absolute","fixed"]);function Fy(t,l){const o=fa(t,!0,l==="fixed"),r=o.top+t.clientTop,c=o.left+t.clientLeft,s=Ln(t)?so(t):Rn(1),f=t.clientWidth*s.x,h=t.clientHeight*s.y,x=c*s.x,m=r*s.y;return{width:f,height:h,x,y:m}}function z3(t,l,o){let r;if(l==="viewport")r=Qy(t,o);else if(l==="document")r=Gy(On(t));else if(xn(l))r=Fy(l,o);else{const c=Th(t);r={x:l.x-c.x,y:l.y-c.y,width:l.width,height:l.height}}return Xc(r)}function _h(t,l){const o=Hl(t);return o===l||!xn(o)||go(o)?!1:vn(o).position==="fixed"||_h(o,l)}function Jy(t,l){const o=l.get(t);if(o)return o;let r=Ur(t,[],!1).filter(h=>xn(h)&&wo(h)!=="body"),c=null;const s=vn(t).position==="fixed";let f=s?Hl(t):t;for(;xn(f)&&!go(f);){const h=vn(f),x=jd(f);!x&&h.position==="fixed"&&(c=null),(s?!x&&!c:!x&&h.position==="static"&&!!c&&Ky.has(c.position)||Kr(f)&&!x&&_h(t,f))?r=r.filter(v=>v!==f):c=h,f=Hl(f)}return l.set(t,r),r}function Wy(t){let{element:l,boundary:o,rootBoundary:r,strategy:c}=t;const f=[...o==="clippingAncestors"?cs(l)?[]:Jy(l,this._c):[].concat(o),r],h=f[0],x=f.reduce((m,v)=>{const b=z3(l,v,c);return m.top=Kt(b.top,m.top),m.right=zl(b.right,m.right),m.bottom=zl(b.bottom,m.bottom),m.left=Kt(b.left,m.left),m},z3(l,h,c));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function Iy(t){const{width:l,height:o}=Eh(t);return{width:l,height:o}}function eb(t,l,o){const r=Ln(l),c=On(l),s=o==="fixed",f=fa(t,!0,s,l);let h={scrollLeft:0,scrollTop:0};const x=Rn(0);function m(){x.x=us(c)}if(r||!r&&!s)if((wo(l)!=="body"||Kr(c))&&(h=ss(l)),r){const S=fa(l,!0,s,l);x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}else c&&m();s&&!r&&c&&m();const v=c&&!r&&!s?Rh(c,h):Rn(0),b=f.left+h.scrollLeft-x.x-v.x,C=f.top+h.scrollTop-x.y-v.y;return{x:b,y:C,width:f.width,height:f.height}}function a0(t){return vn(t).position==="static"}function H3(t,l){if(!Ln(t)||vn(t).position==="fixed")return null;if(l)return l(t);let o=t.offsetParent;return On(t)===o&&(o=o.ownerDocument.body),o}function Nh(t,l){const o=Ft(t);if(cs(t))return o;if(!Ln(t)){let c=Hl(t);for(;c&&!go(c);){if(xn(c)&&!a0(c))return c;c=Hl(c)}return o}let r=H3(t,l);for(;r&&Vy(r)&&a0(r);)r=H3(r,l);return r&&go(r)&&a0(r)&&!jd(r)?o:r||Zy(t)||o}const tb=async function(t){const l=this.getOffsetParent||Nh,o=this.getDimensions,r=await o(t.floating);return{reference:eb(t.reference,await l(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nb(t){return vn(t).direction==="rtl"}const lb={convertOffsetParentRelativeRectToViewportRelativeRect:qy,getDocumentElement:On,getClippingRect:Wy,getOffsetParent:Nh,getElementRects:tb,getClientRects:Xy,getDimensions:Iy,getScale:so,isElement:xn,isRTL:nb};function Lh(t,l){return t.x===l.x&&t.y===l.y&&t.width===l.width&&t.height===l.height}function ab(t,l){let o=null,r;const c=On(t);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function f(h,x){h===void 0&&(h=!1),x===void 0&&(x=1),s();const m=t.getBoundingClientRect(),{left:v,top:b,width:C,height:S}=m;if(h||l(),!C||!S)return;const M=wc(b),w=wc(c.clientWidth-(v+C)),E=wc(c.clientHeight-(b+S)),R=wc(v),_={rootMargin:-M+"px "+-w+"px "+-E+"px "+-R+"px",threshold:Kt(0,zl(1,x))||1};let O=!0;function k(Z){const z=Z[0].intersectionRatio;if(z!==x){if(!O)return f();z?f(!1,z):r=setTimeout(()=>{f(!1,1e-7)},1e3)}z===1&&!Lh(m,t.getBoundingClientRect())&&f(),O=!1}try{o=new IntersectionObserver(k,{..._,root:c.ownerDocument})}catch{o=new IntersectionObserver(k,_)}o.observe(t)}return f(!0),s}function ob(t,l,o,r){r===void 0&&(r={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,m=Ed(t),v=c||s?[...m?Ur(m):[],...Ur(l)]:[];v.forEach(R=>{c&&R.addEventListener("scroll",o,{passive:!0}),s&&R.addEventListener("resize",o)});const b=m&&h?ab(m,o):null;let C=-1,S=null;f&&(S=new ResizeObserver(R=>{let[T]=R;T&&T.target===m&&S&&(S.unobserve(l),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var _;(_=S)==null||_.observe(l)})),o()}),m&&!x&&S.observe(m),S.observe(l));let M,w=x?fa(t):null;x&&E();function E(){const R=fa(t);w&&!Lh(w,R)&&o(),w=R,M=requestAnimationFrame(E)}return o(),()=>{var R;v.forEach(T=>{c&&T.removeEventListener("scroll",o),s&&T.removeEventListener("resize",o)}),b==null||b(),(R=S)==null||R.disconnect(),S=null,x&&cancelAnimationFrame(M)}}const rb=Ny,ib=Ly,cb=Ty,sb=Ay,ub=Ry,V3=Ey,db=Oy,fb=(t,l,o)=>{const r=new Map,c={platform:lb,...o},s={...c.platform,_c:r};return My(t,l,{...c,platform:s})};var pb=typeof document<"u",hb=function(){},Hc=pb?g.useLayoutEffect:hb;function Gc(t,l){if(t===l)return!0;if(typeof t!=typeof l)return!1;if(typeof t=="function"&&t.toString()===l.toString())return!0;let o,r,c;if(t&&l&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==l.length)return!1;for(r=o;r--!==0;)if(!Gc(t[r],l[r]))return!1;return!0}if(c=Object.keys(t),o=c.length,o!==Object.keys(l).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(l,c[r]))return!1;for(r=o;r--!==0;){const s=c[r];if(!(s==="_owner"&&t.$$typeof)&&!Gc(t[s],l[s]))return!1}return!0}return t!==t&&l!==l}function Oh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function k3(t,l){const o=Oh(t);return Math.round(l*o)/o}function o0(t){const l=g.useRef(t);return Hc(()=>{l.current=t}),l}function gb(t){t===void 0&&(t={});const{placement:l="bottom",strategy:o="absolute",middleware:r=[],platform:c,elements:{reference:s,floating:f}={},transform:h=!0,whileElementsMounted:x,open:m}=t,[v,b]=g.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[C,S]=g.useState(r);Gc(C,r)||S(r);const[M,w]=g.useState(null),[E,R]=g.useState(null),T=g.useCallback(K=>{K!==Z.current&&(Z.current=K,w(K))},[]),_=g.useCallback(K=>{K!==z.current&&(z.current=K,R(K))},[]),O=s||M,k=f||E,Z=g.useRef(null),z=g.useRef(null),J=g.useRef(v),F=x!=null,ce=o0(x),ne=o0(c),W=o0(m),ae=g.useCallback(()=>{if(!Z.current||!z.current)return;const K={placement:l,strategy:o,middleware:C};ne.current&&(K.platform=ne.current),fb(Z.current,z.current,K).then(se=>{const he={...se,isPositioned:W.current!==!1};oe.current&&!Gc(J.current,he)&&(J.current=he,Gr.flushSync(()=>{b(he)}))})},[C,l,o,ne,W]);Hc(()=>{m===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,b(K=>({...K,isPositioned:!1})))},[m]);const oe=g.useRef(!1);Hc(()=>(oe.current=!0,()=>{oe.current=!1}),[]),Hc(()=>{if(O&&(Z.current=O),k&&(z.current=k),O&&k){if(ce.current)return ce.current(O,k,ae);ae()}},[O,k,ae,ce,F]);const me=g.useMemo(()=>({reference:Z,floating:z,setReference:T,setFloating:_}),[T,_]),H=g.useMemo(()=>({reference:O,floating:k}),[O,k]),D=g.useMemo(()=>{const K={position:o,left:0,top:0};if(!H.floating)return K;const se=k3(H.floating,v.x),he=k3(H.floating,v.y);return h?{...K,transform:"translate("+se+"px, "+he+"px)",...Oh(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:se,top:he}},[o,h,H.floating,v.x,v.y]);return g.useMemo(()=>({...v,update:ae,refs:me,elements:H,floatingStyles:D}),[v,ae,me,H,D])}const mb=t=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:r,padding:c}=typeof t=="function"?t(o):t;return r&&l(r)?r.current!=null?V3({element:r.current,padding:c}).fn(o):{}:r?V3({element:r,padding:c}).fn(o):{}}}},xb=(t,l)=>({...rb(t),options:[t,l]}),vb=(t,l)=>({...ib(t),options:[t,l]}),yb=(t,l)=>({...db(t),options:[t,l]}),bb=(t,l)=>({...cb(t),options:[t,l]}),Cb=(t,l)=>({...sb(t),options:[t,l]}),wb=(t,l)=>({...ub(t),options:[t,l]}),Sb=(t,l)=>({...mb(t),options:[t,l]});var jb="Arrow",Ah=g.forwardRef((t,l)=>{const{children:o,width:r=10,height:c=5,...s}=t;return u.jsx(Ge.svg,{...s,ref:l,width:r,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ah.displayName=jb;var Mb=Ah;function zh(t){const[l,o]=g.useState(void 0);return Tt(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const s=c[0];let f,h;if("borderBoxSize"in s){const x=s.borderBoxSize,m=Array.isArray(x)?x[0]:x;f=m.inlineSize,h=m.blockSize}else f=t.offsetWidth,h=t.offsetHeight;o({width:f,height:h})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else o(void 0)},[t]),l}var Td="Popper",[Hh,So]=bo(Td),[Eb,Vh]=Hh(Td),kh=t=>{const{__scopePopper:l,children:o}=t,[r,c]=g.useState(null);return u.jsx(Eb,{scope:l,anchor:r,onAnchorChange:c,children:o})};kh.displayName=Td;var Dh="PopperAnchor",$h=g.forwardRef((t,l)=>{const{__scopePopper:o,virtualRef:r,...c}=t,s=Vh(Dh,o),f=g.useRef(null),h=We(l,f),x=g.useRef(null);return g.useEffect(()=>{const m=x.current;x.current=(r==null?void 0:r.current)||f.current,m!==x.current&&s.onAnchorChange(x.current)}),r?null:u.jsx(Ge.div,{...c,ref:h})});$h.displayName=Dh;var Rd="PopperContent",[Tb,Rb]=Hh(Rd),Bh=g.forwardRef((t,l)=>{var Q,pe,ve,Ne,Re,Le;const{__scopePopper:o,side:r="bottom",sideOffset:c=0,align:s="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:M,...w}=t,E=Vh(Rd,o),[R,T]=g.useState(null),_=We(l,ht=>T(ht)),[O,k]=g.useState(null),Z=zh(O),z=(Z==null?void 0:Z.width)??0,J=(Z==null?void 0:Z.height)??0,F=r+(s!=="center"?"-"+s:""),ce=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ne=Array.isArray(m)?m:[m],W=ne.length>0,ae={padding:ce,boundary:ne.filter(Nb),altBoundary:W},{refs:oe,floatingStyles:me,placement:H,isPositioned:D,middlewareData:K}=gb({strategy:"fixed",placement:F,whileElementsMounted:(...ht)=>ob(...ht,{animationFrame:S==="always"}),elements:{reference:E.anchor},middleware:[xb({mainAxis:c+J,alignmentAxis:f}),x&&vb({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?yb():void 0,...ae}),x&&bb({...ae}),Cb({...ae,apply:({elements:ht,rects:nt,availableWidth:$t,availableHeight:Jt})=>{const{width:zn,height:va}=nt.reference,yn=ht.floating.style;yn.setProperty("--radix-popper-available-width",`${$t}px`),yn.setProperty("--radix-popper-available-height",`${Jt}px`),yn.setProperty("--radix-popper-anchor-width",`${zn}px`),yn.setProperty("--radix-popper-anchor-height",`${va}px`)}}),O&&Sb({element:O,padding:h}),Lb({arrowWidth:z,arrowHeight:J}),C&&wb({strategy:"referenceHidden",...ae})]}),[se,he]=Ph(H),L=da(M);Tt(()=>{D&&(L==null||L())},[D,L]);const Y=(Q=K.arrow)==null?void 0:Q.x,te=(pe=K.arrow)==null?void 0:pe.y,le=((ve=K.arrow)==null?void 0:ve.centerOffset)!==0,[fe,I]=g.useState();return Tt(()=>{R&&I(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:D?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(Ne=K.transformOrigin)==null?void 0:Ne.x,(Re=K.transformOrigin)==null?void 0:Re.y].join(" "),...((Le=K.hide)==null?void 0:Le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(Tb,{scope:o,placedSide:se,onArrowChange:k,arrowX:Y,arrowY:te,shouldHideArrow:le,children:u.jsx(Ge.div,{"data-side":se,"data-align":he,...w,ref:_,style:{...w.style,animation:D?void 0:"none"}})})})});Bh.displayName=Rd;var Zh="PopperArrow",_b={top:"bottom",right:"left",bottom:"top",left:"right"},Uh=g.forwardRef(function(l,o){const{__scopePopper:r,...c}=l,s=Rb(Zh,r),f=_b[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Mb,{...c,ref:o,style:{...c.style,display:"block"}})})});Uh.displayName=Zh;function Nb(t){return t!==null}var Lb=t=>({name:"transformOrigin",options:t,fn(l){var E,R,T;const{placement:o,rects:r,middlewareData:c}=l,f=((E=c.arrow)==null?void 0:E.centerOffset)!==0,h=f?0:t.arrowWidth,x=f?0:t.arrowHeight,[m,v]=Ph(o),b={start:"0%",center:"50%",end:"100%"}[v],C=(((R=c.arrow)==null?void 0:R.x)??0)+h/2,S=(((T=c.arrow)==null?void 0:T.y)??0)+x/2;let M="",w="";return m==="bottom"?(M=f?b:`${C}px`,w=`${-x}px`):m==="top"?(M=f?b:`${C}px`,w=`${r.floating.height+x}px`):m==="right"?(M=`${-x}px`,w=f?b:`${S}px`):m==="left"&&(M=`${r.floating.width+x}px`,w=f?b:`${S}px`),{data:{x:M,y:w}}}});function Ph(t){const[l,o="center"]=t.split("-");return[l,o]}var _d=kh,ds=$h,Nd=Bh,Ld=Uh,Ob="Portal",fs=g.forwardRef((t,l)=>{var h;const{container:o,...r}=t,[c,s]=g.useState(!1);Tt(()=>s(!0),[]);const f=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?Uv.createPortal(u.jsx(Ge.div,{...r,ref:l}),f):null});fs.displayName=Ob;function Ab(t,l){return g.useReducer((o,r)=>l[o][r]??o,t)}var Fr=t=>{const{present:l,children:o}=t,r=zb(l),c=typeof o=="function"?o({present:r.isPresent}):g.Children.only(o),s=We(r.ref,Hb(c));return typeof o=="function"||r.isPresent?g.cloneElement(c,{ref:s}):null};Fr.displayName="Presence";function zb(t){const[l,o]=g.useState(),r=g.useRef(null),c=g.useRef(t),s=g.useRef("none"),f=t?"mounted":"unmounted",[h,x]=Ab(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const m=Sc(r.current);s.current=h==="mounted"?m:"none"},[h]),Tt(()=>{const m=r.current,v=c.current;if(v!==t){const C=s.current,S=Sc(m);t?x("MOUNT"):S==="none"||(m==null?void 0:m.display)==="none"?x("UNMOUNT"):x(v&&C!==S?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,x]),Tt(()=>{if(l){let m;const v=l.ownerDocument.defaultView??window,b=S=>{const w=Sc(r.current).includes(CSS.escape(S.animationName));if(S.target===l&&w&&(x("ANIMATION_END"),!c.current)){const E=l.style.animationFillMode;l.style.animationFillMode="forwards",m=v.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=E)})}},C=S=>{S.target===l&&(s.current=Sc(r.current))};return l.addEventListener("animationstart",C),l.addEventListener("animationcancel",b),l.addEventListener("animationend",b),()=>{v.clearTimeout(m),l.removeEventListener("animationstart",C),l.removeEventListener("animationcancel",b),l.removeEventListener("animationend",b)}}else x("ANIMATION_END")},[l,x]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(m=>{r.current=m?getComputedStyle(m):null,o(m)},[])}}function Sc(t){return(t==null?void 0:t.animationName)||"none"}function Hb(t){var r,c;let l=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?t.ref:(l=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Vb=qp[" useInsertionEffect ".trim().toString()]||Tt;function Pr({prop:t,defaultProp:l,onChange:o=()=>{},caller:r}){const[c,s,f]=kb({defaultProp:l,onChange:o}),h=t!==void 0,x=h?t:c;{const v=g.useRef(t!==void 0);g.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,r])}const m=g.useCallback(v=>{var b;if(h){const C=Db(v)?v(t):v;C!==t&&((b=f.current)==null||b.call(f,C))}else s(v)},[h,t,s,f]);return[x,m]}function kb({defaultProp:t,onChange:l}){const[o,r]=g.useState(t),c=g.useRef(o),s=g.useRef(l);return Vb(()=>{s.current=l},[l]),g.useEffect(()=>{var f;c.current!==o&&((f=s.current)==null||f.call(s,o),c.current=o)},[o,c]),[o,r,s]}function Db(t){return typeof t=="function"}var $b=function(t){if(typeof document>"u")return null;var l=Array.isArray(t)?t[0]:t;return l.ownerDocument.body},ao=new WeakMap,jc=new WeakMap,Mc={},r0=0,Yh=function(t){return t&&(t.host||Yh(t.parentNode))},Bb=function(t,l){return l.map(function(o){if(t.contains(o))return o;var r=Yh(o);return r&&t.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},Zb=function(t,l,o,r){var c=Bb(l,Array.isArray(t)?t:[t]);Mc[o]||(Mc[o]=new WeakMap);var s=Mc[o],f=[],h=new Set,x=new Set(c),m=function(b){!b||h.has(b)||(h.add(b),m(b.parentNode))};c.forEach(m);var v=function(b){!b||x.has(b)||Array.prototype.forEach.call(b.children,function(C){if(h.has(C))v(C);else try{var S=C.getAttribute(r),M=S!==null&&S!=="false",w=(ao.get(C)||0)+1,E=(s.get(C)||0)+1;ao.set(C,w),s.set(C,E),f.push(C),w===1&&M&&jc.set(C,!0),E===1&&C.setAttribute(o,"true"),M||C.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",C,R)}})};return v(l),h.clear(),r0++,function(){f.forEach(function(b){var C=ao.get(b)-1,S=s.get(b)-1;ao.set(b,C),s.set(b,S),C||(jc.has(b)||b.removeAttribute(r),jc.delete(b)),S||b.removeAttribute(o)}),r0--,r0||(ao=new WeakMap,ao=new WeakMap,jc=new WeakMap,Mc={})}},qh=function(t,l,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),c=$b(t);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),Zb(r,c,o,"aria-hidden")):function(){return null}},Mn=function(){return Mn=Object.assign||function(l){for(var o,r=1,c=arguments.length;r<c;r++){o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(l[s]=o[s])}return l},Mn.apply(this,arguments)};function Xh(t,l){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(t);c<r.length;c++)l.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(t,r[c])&&(o[r[c]]=t[r[c]]);return o}function Ub(t,l,o){if(o||arguments.length===2)for(var r=0,c=l.length,s;r<c;r++)(s||!(r in l))&&(s||(s=Array.prototype.slice.call(l,0,r)),s[r]=l[r]);return t.concat(s||Array.prototype.slice.call(l))}var Vc="right-scroll-bar-position",kc="width-before-scroll-bar",Pb="with-scroll-bars-hidden",Yb="--removed-body-scroll-bar-size";function i0(t,l){return typeof t=="function"?t(l):t&&(t.current=l),t}function qb(t,l){var o=g.useState(function(){return{value:t,callback:l,facade:{get current(){return o.value},set current(r){var c=o.value;c!==r&&(o.value=r,o.callback(r,c))}}}})[0];return o.callback=l,o.facade}var Xb=typeof window<"u"?g.useLayoutEffect:g.useEffect,D3=new WeakMap;function Gb(t,l){var o=qb(null,function(r){return t.forEach(function(c){return i0(c,r)})});return Xb(function(){var r=D3.get(o);if(r){var c=new Set(r),s=new Set(t),f=o.current;c.forEach(function(h){s.has(h)||i0(h,null)}),s.forEach(function(h){c.has(h)||i0(h,f)})}D3.set(o,t)},[t]),o}function Qb(t){return t}function Kb(t,l){l===void 0&&(l=Qb);var o=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(s){var f=l(s,r);return o.push(f),function(){o=o.filter(function(h){return h!==f})}},assignSyncMedium:function(s){for(r=!0;o.length;){var f=o;o=[],f.forEach(s)}o={push:function(h){return s(h)},filter:function(){return o}}},assignMedium:function(s){r=!0;var f=[];if(o.length){var h=o;o=[],h.forEach(s),f=o}var x=function(){var v=f;f=[],v.forEach(s)},m=function(){return Promise.resolve().then(x)};m(),o={push:function(v){f.push(v),m()},filter:function(v){return f=f.filter(v),o}}}};return c}function Fb(t){t===void 0&&(t={});var l=Kb(null);return l.options=Mn({async:!0,ssr:!1},t),l}var Gh=function(t){var l=t.sideCar,o=Xh(t,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=l.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Mn({},o))};Gh.isSideCarExport=!0;function Jb(t,l){return t.useMedium(l),Gh}var Qh=Fb(),c0=function(){},ps=g.forwardRef(function(t,l){var o=g.useRef(null),r=g.useState({onScrollCapture:c0,onWheelCapture:c0,onTouchMoveCapture:c0}),c=r[0],s=r[1],f=t.forwardProps,h=t.children,x=t.className,m=t.removeScrollBar,v=t.enabled,b=t.shards,C=t.sideCar,S=t.noRelative,M=t.noIsolation,w=t.inert,E=t.allowPinchZoom,R=t.as,T=R===void 0?"div":R,_=t.gapMode,O=Xh(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=C,Z=Gb([o,l]),z=Mn(Mn({},O),c);return g.createElement(g.Fragment,null,v&&g.createElement(k,{sideCar:Qh,removeScrollBar:m,shards:b,noRelative:S,noIsolation:M,inert:w,setCallbacks:s,allowPinchZoom:!!E,lockRef:o,gapMode:_}),f?g.cloneElement(g.Children.only(h),Mn(Mn({},z),{ref:Z})):g.createElement(T,Mn({},z,{className:x,ref:Z}),h))});ps.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ps.classNames={fullWidth:kc,zeroRight:Vc};var Wb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ib(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var l=Wb();return l&&t.setAttribute("nonce",l),t}function eC(t,l){t.styleSheet?t.styleSheet.cssText=l:t.appendChild(document.createTextNode(l))}function tC(t){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(t)}var nC=function(){var t=0,l=null;return{add:function(o){t==0&&(l=Ib())&&(eC(l,o),tC(l)),t++},remove:function(){t--,!t&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},lC=function(){var t=nC();return function(l,o){g.useEffect(function(){return t.add(l),function(){t.remove()}},[l&&o])}},Kh=function(){var t=lC(),l=function(o){var r=o.styles,c=o.dynamic;return t(r,c),null};return l},aC={left:0,top:0,right:0,gap:0},s0=function(t){return parseInt(t||"",10)||0},oC=function(t){var l=window.getComputedStyle(document.body),o=l[t==="padding"?"paddingLeft":"marginLeft"],r=l[t==="padding"?"paddingTop":"marginTop"],c=l[t==="padding"?"paddingRight":"marginRight"];return[s0(o),s0(r),s0(c)]},rC=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return aC;var l=oC(t),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,r-o+l[2]-l[0])}},iC=Kh(),uo="data-scroll-locked",cC=function(t,l,o,r){var c=t.left,s=t.top,f=t.right,h=t.gap;return o===void 0&&(o="margin"),`
|
|
235
|
+
.`.concat(Pb,` {
|
|
236
|
+
overflow: hidden `).concat(r,`;
|
|
237
|
+
padding-right: `).concat(h,"px ").concat(r,`;
|
|
238
|
+
}
|
|
239
|
+
body[`).concat(uo,`] {
|
|
240
|
+
overflow: hidden `).concat(r,`;
|
|
241
|
+
overscroll-behavior: contain;
|
|
242
|
+
`).concat([l&&"position: relative ".concat(r,";"),o==="margin"&&`
|
|
243
|
+
padding-left: `.concat(c,`px;
|
|
244
|
+
padding-top: `).concat(s,`px;
|
|
245
|
+
padding-right: `).concat(f,`px;
|
|
246
|
+
margin-left:0;
|
|
247
|
+
margin-top:0;
|
|
248
|
+
margin-right: `).concat(h,"px ").concat(r,`;
|
|
249
|
+
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.`).concat(Vc,` {
|
|
253
|
+
right: `).concat(h,"px ").concat(r,`;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.`).concat(kc,` {
|
|
257
|
+
margin-right: `).concat(h,"px ").concat(r,`;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.`).concat(Vc," .").concat(Vc,` {
|
|
261
|
+
right: 0 `).concat(r,`;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.`).concat(kc," .").concat(kc,` {
|
|
265
|
+
margin-right: 0 `).concat(r,`;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
body[`).concat(uo,`] {
|
|
269
|
+
`).concat(Yb,": ").concat(h,`px;
|
|
270
|
+
}
|
|
271
|
+
`)},$3=function(){var t=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(t)?t:0},sC=function(){g.useEffect(function(){return document.body.setAttribute(uo,($3()+1).toString()),function(){var t=$3()-1;t<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,t.toString())}},[])},uC=function(t){var l=t.noRelative,o=t.noImportant,r=t.gapMode,c=r===void 0?"margin":r;sC();var s=g.useMemo(function(){return rC(c)},[c]);return g.createElement(iC,{styles:cC(s,!l,c,o?"":"!important")})},Z0=!1;if(typeof window<"u")try{var Ec=Object.defineProperty({},"passive",{get:function(){return Z0=!0,!0}});window.addEventListener("test",Ec,Ec),window.removeEventListener("test",Ec,Ec)}catch{Z0=!1}var oo=Z0?{passive:!1}:!1,dC=function(t){return t.tagName==="TEXTAREA"},Fh=function(t,l){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!dC(t)&&o[l]==="visible")},fC=function(t){return Fh(t,"overflowY")},pC=function(t){return Fh(t,"overflowX")},B3=function(t,l){var o=l.ownerDocument,r=l;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=Jh(t,r);if(c){var s=Wh(t,r),f=s[1],h=s[2];if(f>h)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},hC=function(t){var l=t.scrollTop,o=t.scrollHeight,r=t.clientHeight;return[l,o,r]},gC=function(t){var l=t.scrollLeft,o=t.scrollWidth,r=t.clientWidth;return[l,o,r]},Jh=function(t,l){return t==="v"?fC(l):pC(l)},Wh=function(t,l){return t==="v"?hC(l):gC(l)},mC=function(t,l){return t==="h"&&l==="rtl"?-1:1},xC=function(t,l,o,r,c){var s=mC(t,window.getComputedStyle(l).direction),f=s*r,h=o.target,x=l.contains(h),m=!1,v=f>0,b=0,C=0;do{if(!h)break;var S=Wh(t,h),M=S[0],w=S[1],E=S[2],R=w-E-s*M;(M||R)&&Jh(t,h)&&(b+=R,C+=M);var T=h.parentNode;h=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!x&&h!==document.body||x&&(l.contains(h)||l===h));return(v&&Math.abs(b)<1||!v&&Math.abs(C)<1)&&(m=!0),m},Tc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Z3=function(t){return[t.deltaX,t.deltaY]},U3=function(t){return t&&"current"in t?t.current:t},vC=function(t,l){return t[0]===l[0]&&t[1]===l[1]},yC=function(t){return`
|
|
272
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
273
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
274
|
+
`)},bC=0,ro=[];function CC(t){var l=g.useRef([]),o=g.useRef([0,0]),r=g.useRef(),c=g.useState(bC++)[0],s=g.useState(Kh)[0],f=g.useRef(t);g.useEffect(function(){f.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var w=Ub([t.lockRef.current],(t.shards||[]).map(U3),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=g.useCallback(function(w,E){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var R=Tc(w),T=o.current,_="deltaX"in w?w.deltaX:T[0]-R[0],O="deltaY"in w?w.deltaY:T[1]-R[1],k,Z=w.target,z=Math.abs(_)>Math.abs(O)?"h":"v";if("touches"in w&&z==="h"&&Z.type==="range")return!1;var J=window.getSelection(),F=J&&J.anchorNode,ce=F?F===Z||F.contains(Z):!1;if(ce)return!1;var ne=B3(z,Z);if(!ne)return!0;if(ne?k=z:(k=z==="v"?"h":"v",ne=B3(z,Z)),!ne)return!1;if(!r.current&&"changedTouches"in w&&(_||O)&&(r.current=k),!k)return!0;var W=r.current||k;return xC(W,E,w,W==="h"?_:O)},[]),x=g.useCallback(function(w){var E=w;if(!(!ro.length||ro[ro.length-1]!==s)){var R="deltaY"in E?Z3(E):Tc(E),T=l.current.filter(function(k){return k.name===E.type&&(k.target===E.target||E.target===k.shadowParent)&&vC(k.delta,R)})[0];if(T&&T.should){E.cancelable&&E.preventDefault();return}if(!T){var _=(f.current.shards||[]).map(U3).filter(Boolean).filter(function(k){return k.contains(E.target)}),O=_.length>0?h(E,_[0]):!f.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),m=g.useCallback(function(w,E,R,T){var _={name:w,delta:E,target:R,should:T,shadowParent:wC(R)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(O){return O!==_})},1)},[]),v=g.useCallback(function(w){o.current=Tc(w),r.current=void 0},[]),b=g.useCallback(function(w){m(w.type,Z3(w),w.target,h(w,t.lockRef.current))},[]),C=g.useCallback(function(w){m(w.type,Tc(w),w.target,h(w,t.lockRef.current))},[]);g.useEffect(function(){return ro.push(s),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",x,oo),document.addEventListener("touchmove",x,oo),document.addEventListener("touchstart",v,oo),function(){ro=ro.filter(function(w){return w!==s}),document.removeEventListener("wheel",x,oo),document.removeEventListener("touchmove",x,oo),document.removeEventListener("touchstart",v,oo)}},[]);var S=t.removeScrollBar,M=t.inert;return g.createElement(g.Fragment,null,M?g.createElement(s,{styles:yC(c)}):null,S?g.createElement(uC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function wC(t){for(var l=null;t!==null;)t instanceof ShadowRoot&&(l=t.host,t=t.host),t=t.parentNode;return l}const SC=Jb(Qh,CC);var Od=g.forwardRef(function(t,l){return g.createElement(ps,Mn({},t,{ref:l,sideCar:SC}))});Od.classNames=ps.classNames;var hs="Popover",[Ih]=bo(hs,[So]),Jr=So(),[jC,Dl]=Ih(hs),e4=t=>{const{__scopePopover:l,children:o,open:r,defaultOpen:c,onOpenChange:s,modal:f=!1}=t,h=Jr(l),x=g.useRef(null),[m,v]=g.useState(!1),[b,C]=Pr({prop:r,defaultProp:c??!1,onChange:s,caller:hs});return u.jsx(_d,{...h,children:u.jsx(jC,{scope:l,contentId:Qr(),triggerRef:x,open:b,onOpenChange:C,onOpenToggle:g.useCallback(()=>C(S=>!S),[C]),hasCustomAnchor:m,onCustomAnchorAdd:g.useCallback(()=>v(!0),[]),onCustomAnchorRemove:g.useCallback(()=>v(!1),[]),modal:f,children:o})})};e4.displayName=hs;var t4="PopoverAnchor",MC=g.forwardRef((t,l)=>{const{__scopePopover:o,...r}=t,c=Dl(t4,o),s=Jr(o),{onCustomAnchorAdd:f,onCustomAnchorRemove:h}=c;return g.useEffect(()=>(f(),()=>h()),[f,h]),u.jsx(ds,{...s,...r,ref:l})});MC.displayName=t4;var n4="PopoverTrigger",l4=g.forwardRef((t,l)=>{const{__scopePopover:o,...r}=t,c=Dl(n4,o),s=Jr(o),f=We(l,c.triggerRef),h=u.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":c4(c.open),...r,ref:f,onClick:ze(t.onClick,c.onOpenToggle)});return c.hasCustomAnchor?h:u.jsx(ds,{asChild:!0,...s,children:h})});l4.displayName=n4;var Ad="PopoverPortal",[EC,TC]=Ih(Ad,{forceMount:void 0}),a4=t=>{const{__scopePopover:l,forceMount:o,children:r,container:c}=t,s=Dl(Ad,l);return u.jsx(EC,{scope:l,forceMount:o,children:u.jsx(Fr,{present:o||s.open,children:u.jsx(fs,{asChild:!0,container:c,children:r})})})};a4.displayName=Ad;var mo="PopoverContent",o4=g.forwardRef((t,l)=>{const o=TC(mo,t.__scopePopover),{forceMount:r=o.forceMount,...c}=t,s=Dl(mo,t.__scopePopover);return u.jsx(Fr,{present:r||s.open,children:s.modal?u.jsx(_C,{...c,ref:l}):u.jsx(NC,{...c,ref:l})})});o4.displayName=mo;var RC=Zr("PopoverContent.RemoveScroll"),_C=g.forwardRef((t,l)=>{const o=Dl(mo,t.__scopePopover),r=g.useRef(null),c=We(l,r),s=g.useRef(!1);return g.useEffect(()=>{const f=r.current;if(f)return qh(f)},[]),u.jsx(Od,{as:RC,allowPinchZoom:!0,children:u.jsx(r4,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(t.onCloseAutoFocus,f=>{var h;f.preventDefault(),s.current||(h=o.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ze(t.onPointerDownOutside,f=>{const h=f.detail.originalEvent,x=h.button===0&&h.ctrlKey===!0,m=h.button===2||x;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:ze(t.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),NC=g.forwardRef((t,l)=>{const o=Dl(mo,t.__scopePopover),r=g.useRef(!1),c=g.useRef(!1);return u.jsx(r4,{...t,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var f,h;(f=t.onCloseAutoFocus)==null||f.call(t,s),s.defaultPrevented||(r.current||(h=o.triggerRef.current)==null||h.focus(),s.preventDefault()),r.current=!1,c.current=!1},onInteractOutside:s=>{var x,m;(x=t.onInteractOutside)==null||x.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=s.target;((m=o.triggerRef.current)==null?void 0:m.contains(f))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})}),r4=g.forwardRef((t,l)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:s,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:x,onFocusOutside:m,onInteractOutside:v,...b}=t,C=Dl(mo,o),S=Jr(o);return bh(),u.jsx(bd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:s,children:u.jsx(rs,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:x,onFocusOutside:m,onDismiss:()=>C.onOpenChange(!1),children:u.jsx(Nd,{"data-state":c4(C.open),role:"dialog",id:C.contentId,...S,...b,ref:l,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),i4="PopoverClose",LC=g.forwardRef((t,l)=>{const{__scopePopover:o,...r}=t,c=Dl(i4,o);return u.jsx(Ge.button,{type:"button",...r,ref:l,onClick:ze(t.onClick,()=>c.onOpenChange(!1))})});LC.displayName=i4;var OC="PopoverArrow",AC=g.forwardRef((t,l)=>{const{__scopePopover:o,...r}=t,c=Jr(o);return u.jsx(Ld,{...c,...r,ref:l})});AC.displayName=OC;function c4(t){return t?"open":"closed"}var zd=e4,Hd=l4,Vd=a4,kd=o4;function zC({viewportWidth:t,onViewportWidthChange:l,zoom:o,iframePath:r,targetUrl:c,iframeRef:s}){const f=g.useRef(null),[h,x]=g.useState(!1),m=g.useCallback(_=>{var F;_.preventDefault(),x(!0);const O=_.clientX,k=(F=f.current)==null?void 0:F.getBoundingClientRect();if(!k)return;const Z=t==="fill"?k.width:t,z=ce=>{const ne=ce.clientX-O,W=Math.max(320,Math.round(Z+ne*2));l(W)},J=()=>{x(!1),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",J)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",J)},[t,l]),v=`${c}${r.startsWith("/")?r:"/"+r}`,[b,C]=g.useState(0),[S,M]=g.useState(0),w=g.useCallback(()=>{f.current&&(C(f.current.clientWidth),M(f.current.clientHeight))},[]);g.useEffect(()=>{w();const _=new ResizeObserver(w);return f.current&&_.observe(f.current),()=>_.disconnect()},[w]);const E=t==="fill"?b||1280:t,R=E*o,T=S*o;return u.jsx("div",{className:"flex-1 flex items-center justify-center overflow-auto",ref:f,style:{background:"var(--studio-canvas)",backgroundImage:"radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px)",backgroundSize:"6px 6px"},children:u.jsx("div",{style:{width:R,height:T,flexShrink:0,position:"relative"},children:u.jsxs("div",{className:"relative overflow-hidden",style:{width:E,height:S||"100%",transform:`scale(${o})`,transformOrigin:"top left",borderRadius:6,border:"1px solid rgba(255,255,255,0.08)",boxShadow:"0 0 0 1px rgba(0,0,0,0.5), 0 8px 40px rgba(0,0,0,0.4), inset 0 0.5px 0 rgba(255,255,255,0.06)"},children:[u.jsx("iframe",{ref:s,src:v,className:"w-full h-full border-0",style:{background:"white"},title:"Preview"},v),t!=="fill"&&u.jsx("div",{onMouseDown:m,className:"absolute top-0 right-0 w-1.5 h-full cursor-ew-resize",style:{background:h?"var(--studio-accent)":"transparent",opacity:h?.4:1,transition:"background 0.15s"},children:u.jsx("div",{className:"absolute top-1/2 right-0 w-1 h-8 rounded-full -translate-y-1/2",style:{background:h?"var(--studio-accent)":"var(--studio-border)",transition:"background 0.15s"}})})]})})})}var s4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),HC="VisuallyHidden",u4=g.forwardRef((t,l)=>u.jsx(Ge.span,{...t,ref:l,style:{...s4,...t.style}}));u4.displayName=HC;var VC=u4,[gs]=bo("Tooltip",[So]),ms=So(),d4="TooltipProvider",kC=700,U0="tooltip.open",[DC,Dd]=gs(d4),f4=t=>{const{__scopeTooltip:l,delayDuration:o=kC,skipDelayDuration:r=300,disableHoverableContent:c=!1,children:s}=t,f=g.useRef(!0),h=g.useRef(!1),x=g.useRef(0);return g.useEffect(()=>{const m=x.current;return()=>window.clearTimeout(m)},[]),u.jsx(DC,{scope:l,isOpenDelayedRef:f,delayDuration:o,onOpen:g.useCallback(()=>{window.clearTimeout(x.current),f.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>f.current=!0,r)},[r]),isPointerInTransitRef:h,onPointerInTransitChange:g.useCallback(m=>{h.current=m},[]),disableHoverableContent:c,children:s})};f4.displayName=d4;var Yr="Tooltip",[$C,Wr]=gs(Yr),p4=t=>{const{__scopeTooltip:l,children:o,open:r,defaultOpen:c,onOpenChange:s,disableHoverableContent:f,delayDuration:h}=t,x=Dd(Yr,t.__scopeTooltip),m=ms(l),[v,b]=g.useState(null),C=Qr(),S=g.useRef(0),M=f??x.disableHoverableContent,w=h??x.delayDuration,E=g.useRef(!1),[R,T]=Pr({prop:r,defaultProp:c??!1,onChange:z=>{z?(x.onOpen(),document.dispatchEvent(new CustomEvent(U0))):x.onClose(),s==null||s(z)},caller:Yr}),_=g.useMemo(()=>R?E.current?"delayed-open":"instant-open":"closed",[R]),O=g.useCallback(()=>{window.clearTimeout(S.current),S.current=0,E.current=!1,T(!0)},[T]),k=g.useCallback(()=>{window.clearTimeout(S.current),S.current=0,T(!1)},[T]),Z=g.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{E.current=!0,T(!0),S.current=0},w)},[w,T]);return g.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),u.jsx(_d,{...m,children:u.jsx($C,{scope:l,contentId:C,open:R,stateAttribute:_,trigger:v,onTriggerChange:b,onTriggerEnter:g.useCallback(()=>{x.isOpenDelayedRef.current?Z():O()},[x.isOpenDelayedRef,Z,O]),onTriggerLeave:g.useCallback(()=>{M?k():(window.clearTimeout(S.current),S.current=0)},[k,M]),onOpen:O,onClose:k,disableHoverableContent:M,children:o})})};p4.displayName=Yr;var P0="TooltipTrigger",h4=g.forwardRef((t,l)=>{const{__scopeTooltip:o,...r}=t,c=Wr(P0,o),s=Dd(P0,o),f=ms(o),h=g.useRef(null),x=We(l,h,c.onTriggerChange),m=g.useRef(!1),v=g.useRef(!1),b=g.useCallback(()=>m.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),u.jsx(ds,{asChild:!0,...f,children:u.jsx(Ge.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...r,ref:x,onPointerMove:ze(t.onPointerMove,C=>{C.pointerType!=="touch"&&!v.current&&!s.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:ze(t.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:ze(t.onPointerDown,()=>{c.open&&c.onClose(),m.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ze(t.onFocus,()=>{m.current||c.onOpen()}),onBlur:ze(t.onBlur,c.onClose),onClick:ze(t.onClick,c.onClose)})})});h4.displayName=P0;var $d="TooltipPortal",[BC,ZC]=gs($d,{forceMount:void 0}),g4=t=>{const{__scopeTooltip:l,forceMount:o,children:r,container:c}=t,s=Wr($d,l);return u.jsx(BC,{scope:l,forceMount:o,children:u.jsx(Fr,{present:o||s.open,children:u.jsx(fs,{asChild:!0,container:c,children:r})})})};g4.displayName=$d;var xo="TooltipContent",m4=g.forwardRef((t,l)=>{const o=ZC(xo,t.__scopeTooltip),{forceMount:r=o.forceMount,side:c="top",...s}=t,f=Wr(xo,t.__scopeTooltip);return u.jsx(Fr,{present:r||f.open,children:f.disableHoverableContent?u.jsx(x4,{side:c,...s,ref:l}):u.jsx(UC,{side:c,...s,ref:l})})}),UC=g.forwardRef((t,l)=>{const o=Wr(xo,t.__scopeTooltip),r=Dd(xo,t.__scopeTooltip),c=g.useRef(null),s=We(l,c),[f,h]=g.useState(null),{trigger:x,onClose:m}=o,v=c.current,{onPointerInTransitChange:b}=r,C=g.useCallback(()=>{h(null),b(!1)},[b]),S=g.useCallback((M,w)=>{const E=M.currentTarget,R={x:M.clientX,y:M.clientY},T=XC(R,E.getBoundingClientRect()),_=GC(R,T),O=QC(w.getBoundingClientRect()),k=FC([..._,...O]);h(k),b(!0)},[b]);return g.useEffect(()=>()=>C(),[C]),g.useEffect(()=>{if(x&&v){const M=E=>S(E,v),w=E=>S(E,x);return x.addEventListener("pointerleave",M),v.addEventListener("pointerleave",w),()=>{x.removeEventListener("pointerleave",M),v.removeEventListener("pointerleave",w)}}},[x,v,S,C]),g.useEffect(()=>{if(f){const M=w=>{const E=w.target,R={x:w.clientX,y:w.clientY},T=(x==null?void 0:x.contains(E))||(v==null?void 0:v.contains(E)),_=!KC(R,f);T?C():_&&(C(),m())};return document.addEventListener("pointermove",M),()=>document.removeEventListener("pointermove",M)}},[x,v,f,m,C]),u.jsx(x4,{...t,ref:s})}),[PC,YC]=gs(Yr,{isInside:!1}),qC=Yv("TooltipContent"),x4=g.forwardRef((t,l)=>{const{__scopeTooltip:o,children:r,"aria-label":c,onEscapeKeyDown:s,onPointerDownOutside:f,...h}=t,x=Wr(xo,o),m=ms(o),{onClose:v}=x;return g.useEffect(()=>(document.addEventListener(U0,v),()=>document.removeEventListener(U0,v)),[v]),g.useEffect(()=>{if(x.trigger){const b=C=>{const S=C.target;S!=null&&S.contains(x.trigger)&&v()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[x.trigger,v]),u.jsx(rs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:b=>b.preventDefault(),onDismiss:v,children:u.jsxs(Nd,{"data-state":x.stateAttribute,...m,...h,ref:l,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(qC,{children:r}),u.jsx(PC,{scope:o,isInside:!0,children:u.jsx(VC,{id:x.contentId,role:"tooltip",children:c||r})})]})})});m4.displayName=xo;var v4="TooltipArrow",y4=g.forwardRef((t,l)=>{const{__scopeTooltip:o,...r}=t,c=ms(o);return YC(v4,o).isInside?null:u.jsx(Ld,{...c,...r,ref:l})});y4.displayName=v4;function XC(t,l){const o=Math.abs(l.top-t.y),r=Math.abs(l.bottom-t.y),c=Math.abs(l.right-t.x),s=Math.abs(l.left-t.x);switch(Math.min(o,r,c,s)){case s:return"left";case c:return"right";case o:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function GC(t,l,o=5){const r=[];switch(l){case"top":r.push({x:t.x-o,y:t.y+o},{x:t.x+o,y:t.y+o});break;case"bottom":r.push({x:t.x-o,y:t.y-o},{x:t.x+o,y:t.y-o});break;case"left":r.push({x:t.x+o,y:t.y-o},{x:t.x+o,y:t.y+o});break;case"right":r.push({x:t.x-o,y:t.y-o},{x:t.x-o,y:t.y+o});break}return r}function QC(t){const{top:l,right:o,bottom:r,left:c}=t;return[{x:c,y:l},{x:o,y:l},{x:o,y:r},{x:c,y:r}]}function KC(t,l){const{x:o,y:r}=t;let c=!1;for(let s=0,f=l.length-1;s<l.length;f=s++){const h=l[s],x=l[f],m=h.x,v=h.y,b=x.x,C=x.y;v>r!=C>r&&o<(b-m)*(r-v)/(C-v)+m&&(c=!c)}return c}function FC(t){const l=t.slice();return l.sort((o,r)=>o.x<r.x?-1:o.x>r.x?1:o.y<r.y?-1:o.y>r.y?1:0),JC(l)}function JC(t){if(t.length<=1)return t.slice();const l=[];for(let r=0;r<t.length;r++){const c=t[r];for(;l.length>=2;){const s=l[l.length-1],f=l[l.length-2];if((s.x-f.x)*(c.y-f.y)>=(s.y-f.y)*(c.x-f.x))l.pop();else break}l.push(c)}l.pop();const o=[];for(let r=t.length-1;r>=0;r--){const c=t[r];for(;o.length>=2;){const s=o[o.length-1],f=o[o.length-2];if((s.x-f.x)*(c.y-f.y)>=(s.y-f.y)*(c.x-f.x))o.pop();else break}o.push(c)}return o.pop(),l.length===1&&o.length===1&&l[0].x===o[0].x&&l[0].y===o[0].y?l:l.concat(o)}var WC=f4,IC=p4,ew=h4,tw=g4,nw=m4,lw=y4;function aw({children:t,className:l=""}){return u.jsx("div",{className:`studio-tab-explainer ${l}`,children:u.jsx("span",{className:"text-[12px]",style:{color:"var(--studio-text-dimmed)",lineHeight:1.5},children:t})})}function ow({children:t}){return u.jsx(WC,{delayDuration:300,skipDelayDuration:100,children:t})}function ft({content:t,children:l,side:o="top",align:r="center",delayDuration:c}){return t?u.jsxs(IC,{delayDuration:c,children:[u.jsx(ew,{asChild:!0,children:l}),u.jsx(tw,{children:u.jsxs(nw,{className:"studio-tooltip",side:o,align:r,sideOffset:4,children:[t,u.jsx(lw,{className:"studio-tooltip-arrow"})]})})]}):u.jsx(u.Fragment,{children:l})}function P3(t){const l=new Map;for(const o of t.tokens)l.set(o.name,o);return{...t,byName:l}}function Y3(t){const l=new Map;for(const o of t.components)l.set(o.dataSlot,o);return{...t,byDataSlot:l}}function rw(){let t={framework:null,tokens:null,components:null,shadows:null,borders:null,gradients:null,spacing:null,styling:null,usages:null};const l=new Set;function o(){for(const h of l)h()}function r(){return t}function c(h){return l.add(h),()=>l.delete(h)}function s(h){t={framework:h.framework,tokens:P3(h.tokens),components:Y3(h.components),shadows:h.shadows,borders:h.borders,gradients:h.gradients,spacing:h.spacing,styling:h.styling,usages:h.usages},o()}function f(h,x){h==="tokens"?t={...t,tokens:P3(x)}:h==="components"?t={...t,components:Y3(x)}:t={...t,[h]:x},o()}return{getSnapshot:r,subscribe:c,setAll:s,patch:f}}const Nt=rw();async function iw(){await jo("/scan/rescan",{});const t=await Ll("all");Nt.setAll(t)}async function Ll(t){return(await fetch(`/scan/${t}`)).json()}async function jo(t,l){return(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})).json()}async function Y0(t,l,o,r){try{const c=await jo("/api/tokens",{filePath:t,token:l,value:o,selector:r});if(!c.ok){console.error("Token save failed:",c.error);return}c.tokens&&Nt.patch("tokens",c.tokens)}catch(c){console.error("Token save error:",c);try{const s=await Ll("tokens");Nt.patch("tokens",s)}catch{}}}async function q3(t,l){try{const o=await jo(t,l);if(!o.ok){console.error("Shadow save failed:",o.error);return}o.shadows&&Nt.patch("shadows",o.shadows)}catch(o){console.error("Shadow save error:",o);try{const r=await Ll("shadows");Nt.patch("shadows",r)}catch{}}}async function X3(t,l){try{const o=await jo(t,l);if(!o.ok){console.error("Gradient save failed:",o.error);return}o.gradients&&Nt.patch("gradients",o.gradients)}catch(o){console.error("Gradient save error:",o);try{const r=await Ll("gradients");Nt.patch("gradients",r)}catch{}}}async function G3(t,l,o,r){try{const c=await jo("/api/tokens",{filePath:t,token:l,value:o,selector:r});if(!c.ok){console.error("Spacing save failed:",c.error);return}try{const s=await Ll("spacing");Nt.patch("spacing",s)}catch{}try{const s=await Ll("tokens");Nt.patch("tokens",s)}catch{}}catch(c){console.error("Spacing save error:",c);try{const s=await Ll("spacing");Nt.patch("spacing",s)}catch{}}}async function b4(t,l){try{const o=await jo(t,l);if(!o.ok){console.error("Border save failed:",o.error);return}o.borders&&Nt.patch("borders",o.borders)}catch(o){console.error("Border save error:",o);try{const r=await Ll("borders");Nt.patch("borders",r)}catch{}}}const cw=[{label:"375px",value:375},{label:"768px",value:768},{label:"1024px",value:1024},{label:"1280px",value:1280},{label:"Fill",value:"fill"}];function sw({toolName:t,toolIcon:l,editorPanel:o,leftPanel:r,showSelectionMode:c=!0,selectionMode:s,onToggleSelectionMode:f,theme:h,onToggleTheme:x,viewportWidth:m,onViewportWidthChange:v,zoom:b,onZoomChange:C,iframePath:S,onIframePathChange:M,targetUrl:w,iframeRef:E}){const[R,T]=g.useState(S),[_,O]=g.useState(!1);g.useEffect(()=>{T(S)},[S]);const k=g.useCallback(async()=>{O(!0);try{await iw(),await new Promise(z=>setTimeout(z,800))}catch(z){console.error("Rescan failed:",z)}finally{O(!1)}},[]),Z=z=>{z.preventDefault(),M(R)};return u.jsxs("div",{className:"flex flex-col h-screen",children:[u.jsxs("div",{className:"flex items-center h-11 px-4 gap-3 border-b shrink-0",style:{background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[u.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[u.jsx("span",{style:{color:"var(--studio-text-muted)",display:"inline-flex",alignItems:"center"},children:l}),u.jsx("span",{className:"text-[11px] font-semibold tracking-wide",style:{color:"var(--studio-text-muted)"},children:t})]}),u.jsx("div",{className:"flex-1 flex justify-center",children:u.jsxs("form",{onSubmit:Z,className:"studio-address-bar",children:[u.jsx("span",{className:"studio-address-icon",children:u.jsx(_m,{})}),u.jsx("input",{type:"text",value:R,onChange:z=>T(z.target.value),className:"studio-address-input",placeholder:"/"}),u.jsx("div",{className:"studio-address-sep"}),u.jsx(fw,{value:m,options:cw,onChange:v}),u.jsx("div",{className:"studio-address-sep"}),u.jsx(uw,{zoom:b,onChange:C})]})}),u.jsxs("div",{className:"studio-toolbar-group shrink-0",children:[c&&u.jsx(ft,{content:s?"Selection mode on":"Selection mode off",side:"bottom",children:u.jsx("button",{onClick:f,className:`studio-toolbar-btn ${s?"active":""}`,children:u.jsx(vm,{})})}),u.jsx(ft,{content:"Re-scan tokens, components, and styles from source files",side:"bottom",children:u.jsx("button",{onClick:k,className:"studio-toolbar-btn",disabled:_,children:u.jsx(zc,{})})}),u.jsx(ft,{content:`Switch to ${h==="light"?"dark":"light"} mode`,side:"bottom",children:u.jsx("button",{onClick:x,className:"studio-toolbar-btn",children:h==="light"?u.jsx(yx,{}):u.jsx(Qm,{})})})]})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[r,u.jsx(zC,{viewportWidth:m,onViewportWidthChange:v,zoom:b,iframePath:S,targetUrl:w,iframeRef:E}),o]}),_&&u.jsx(dw,{})]})}function uw({zoom:t,onChange:l}){const o=Math.round(t*100),r=t>.2+.001,c=t<1-.001;return u.jsxs("div",{className:"studio-zoom-control",children:[u.jsx("button",{type:"button",className:"studio-zoom-btn",disabled:!r,onClick:()=>l(Math.max(.2,Math.round((t-.2)*100)/100)),children:u.jsx(Vv,{size:12,strokeWidth:1.5})}),u.jsxs("span",{className:"studio-zoom-label",children:[o,"%"]}),u.jsx("button",{type:"button",className:"studio-zoom-btn",disabled:!c,onClick:()=>l(Math.min(1,Math.round((t+.2)*100)/100)),children:u.jsx(zv,{size:12,strokeWidth:1.5})})]})}const Q3=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function dw(){const[t,l]=g.useState(0);return g.useEffect(()=>{const o=setInterval(()=>l(r=>(r+1)%Q3.length),80);return()=>clearInterval(o)},[]),u.jsx("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(2px)"},children:u.jsxs("div",{style:{background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,padding:"24px 32px",display:"flex",flexDirection:"column",alignItems:"center",gap:12,boxShadow:"0 8px 32px rgba(0,0,0,0.4)",minWidth:200},children:[u.jsx("span",{style:{fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:20,color:"var(--studio-accent)"},children:Q3[t]}),u.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--studio-text)",letterSpacing:"0.02em"},children:"Rescanning source files"}),u.jsxs("span",{style:{fontSize:11,color:"var(--studio-text-dimmed)",textAlign:"center",lineHeight:1.5},children:["Picking up changes to tokens, components,",u.jsx("br",{}),"shadows, and styles made outside the editor."]})]})})}function fw({value:t,options:l,onChange:o}){const[r,c]=g.useState(!1),s=l.find(h=>h.value===t),f=(s==null?void 0:s.label)??`${t}px`;return u.jsxs(zd,{open:r,onOpenChange:c,children:[u.jsx(Hd,{asChild:!0,children:u.jsxs("button",{className:"studio-bp-trigger",type:"button",children:[u.jsx(ov,{size:12,strokeWidth:1.5}),u.jsx("span",{children:f}),u.jsx(Px,{size:10,strokeWidth:2,style:{opacity:.5}})]})}),u.jsx(Vd,{children:u.jsxs(kd,{className:"studio-bp-dropdown",align:"end",sideOffset:8,onOpenAutoFocus:h=>h.preventDefault(),children:[l.map(h=>{const x=h.value===t;return u.jsxs("button",{className:`studio-bp-option ${x?"active":""}`,onClick:()=>{o(h.value),c(!1)},type:"button",children:[u.jsx("span",{className:"studio-bp-option-check",children:x&&u.jsx(ua,{})}),h.label]},String(h.value))}),typeof t=="number"&&!l.some(h=>h.value===t)&&u.jsxs("button",{className:"studio-bp-option active",onClick:()=>c(!1),type:"button",children:[u.jsx("span",{className:"studio-bp-option-check",children:u.jsx(ua,{})}),t,"px"]})]})})]})}function K3(t,[l,o]){return Math.min(o,Math.max(l,t))}function pw(t){const l=t+"CollectionProvider",[o,r]=bo(l),[c,s]=o(l,{collectionRef:{current:null},itemMap:new Map}),f=w=>{const{scope:E,children:R}=w,T=$e.useRef(null),_=$e.useRef(new Map).current;return u.jsx(c,{scope:E,itemMap:_,collectionRef:T,children:R})};f.displayName=l;const h=t+"CollectionSlot",x=Zr(h),m=$e.forwardRef((w,E)=>{const{scope:R,children:T}=w,_=s(h,R),O=We(E,_.collectionRef);return u.jsx(x,{ref:O,children:T})});m.displayName=h;const v=t+"CollectionItemSlot",b="data-radix-collection-item",C=Zr(v),S=$e.forwardRef((w,E)=>{const{scope:R,children:T,..._}=w,O=$e.useRef(null),k=We(E,O),Z=s(v,R);return $e.useEffect(()=>(Z.itemMap.set(O,{ref:O,..._}),()=>void Z.itemMap.delete(O))),u.jsx(C,{[b]:"",ref:k,children:T})});S.displayName=v;function M(w){const E=s(t+"CollectionConsumer",w);return $e.useCallback(()=>{const T=E.collectionRef.current;if(!T)return[];const _=Array.from(T.querySelectorAll(`[${b}]`));return Array.from(E.itemMap.values()).sort((Z,z)=>_.indexOf(Z.ref.current)-_.indexOf(z.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:f,Slot:m,ItemSlot:S},M,r]}var hw=g.createContext(void 0);function gw(t){const l=g.useContext(hw);return t||l||"ltr"}function C4(t){const l=g.useRef({value:t,previous:t});return g.useMemo(()=>(l.current.value!==t&&(l.current.previous=l.current.value,l.current.value=t),l.current.previous),[t])}var mw=[" ","Enter","ArrowUp","ArrowDown"],xw=[" ","Enter"],pa="Select",[xs,vs,vw]=pw(pa),[Mo]=bo(pa,[vw,So]),ys=So(),[yw,$l]=Mo(pa),[bw,Cw]=Mo(pa),w4=t=>{const{__scopeSelect:l,children:o,open:r,defaultOpen:c,onOpenChange:s,value:f,defaultValue:h,onValueChange:x,dir:m,name:v,autoComplete:b,disabled:C,required:S,form:M}=t,w=ys(l),[E,R]=g.useState(null),[T,_]=g.useState(null),[O,k]=g.useState(!1),Z=gw(m),[z,J]=Pr({prop:r,defaultProp:c??!1,onChange:s,caller:pa}),[F,ce]=Pr({prop:f,defaultProp:h,onChange:x,caller:pa}),ne=g.useRef(null),W=E?M||!!E.closest("form"):!0,[ae,oe]=g.useState(new Set),me=Array.from(ae).map(H=>H.props.value).join(";");return u.jsx(_d,{...w,children:u.jsxs(yw,{required:S,scope:l,trigger:E,onTriggerChange:R,valueNode:T,onValueNodeChange:_,valueNodeHasChildren:O,onValueNodeHasChildrenChange:k,contentId:Qr(),value:F,onValueChange:ce,open:z,onOpenChange:J,dir:Z,triggerPointerDownPosRef:ne,disabled:C,children:[u.jsx(xs.Provider,{scope:l,children:u.jsx(bw,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(H=>{oe(D=>new Set(D).add(H))},[]),onNativeOptionRemove:g.useCallback(H=>{oe(D=>{const K=new Set(D);return K.delete(H),K})},[]),children:o})}),W?u.jsxs(q4,{"aria-hidden":!0,required:S,tabIndex:-1,name:v,autoComplete:b,value:F,onChange:H=>ce(H.target.value),disabled:C,form:M,children:[F===void 0?u.jsx("option",{value:""}):null,Array.from(ae)]},me):null]})})};w4.displayName=pa;var S4="SelectTrigger",j4=g.forwardRef((t,l)=>{const{__scopeSelect:o,disabled:r=!1,...c}=t,s=ys(o),f=$l(S4,o),h=f.disabled||r,x=We(l,f.onTriggerChange),m=vs(o),v=g.useRef("touch"),[b,C,S]=G4(w=>{const E=m().filter(_=>!_.disabled),R=E.find(_=>_.value===f.value),T=Q4(E,w,R);T!==void 0&&f.onValueChange(T.value)}),M=w=>{h||(f.onOpenChange(!0),S()),w&&(f.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(ds,{asChild:!0,...s,children:u.jsx(Ge.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":X4(f.value)?"":void 0,...c,ref:x,onClick:ze(c.onClick,w=>{w.currentTarget.focus(),v.current!=="mouse"&&M(w)}),onPointerDown:ze(c.onPointerDown,w=>{v.current=w.pointerType;const E=w.target;E.hasPointerCapture(w.pointerId)&&E.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(M(w),w.preventDefault())}),onKeyDown:ze(c.onKeyDown,w=>{const E=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(E&&w.key===" ")&&mw.includes(w.key)&&(M(),w.preventDefault())})})})});j4.displayName=S4;var M4="SelectValue",E4=g.forwardRef((t,l)=>{const{__scopeSelect:o,className:r,style:c,children:s,placeholder:f="",...h}=t,x=$l(M4,o),{onValueNodeHasChildrenChange:m}=x,v=s!==void 0,b=We(l,x.onValueNodeChange);return Tt(()=>{m(v)},[m,v]),u.jsx(Ge.span,{...h,ref:b,style:{pointerEvents:"none"},children:X4(x.value)?u.jsx(u.Fragment,{children:f}):s})});E4.displayName=M4;var ww="SelectIcon",T4=g.forwardRef((t,l)=>{const{__scopeSelect:o,children:r,...c}=t;return u.jsx(Ge.span,{"aria-hidden":!0,...c,ref:l,children:r||"▼"})});T4.displayName=ww;var Sw="SelectPortal",R4=t=>u.jsx(fs,{asChild:!0,...t});R4.displayName=Sw;var ha="SelectContent",_4=g.forwardRef((t,l)=>{const o=$l(ha,t.__scopeSelect),[r,c]=g.useState();if(Tt(()=>{c(new DocumentFragment)},[]),!o.open){const s=r;return s?Gr.createPortal(u.jsx(N4,{scope:t.__scopeSelect,children:u.jsx(xs.Slot,{scope:t.__scopeSelect,children:u.jsx("div",{children:t.children})})}),s):null}return u.jsx(L4,{...t,ref:l})});_4.displayName=ha;var mn=10,[N4,Bl]=Mo(ha),jw="SelectContentImpl",Mw=Zr("SelectContent.RemoveScroll"),L4=g.forwardRef((t,l)=>{const{__scopeSelect:o,position:r="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:s,onPointerDownOutside:f,side:h,sideOffset:x,align:m,alignOffset:v,arrowPadding:b,collisionBoundary:C,collisionPadding:S,sticky:M,hideWhenDetached:w,avoidCollisions:E,...R}=t,T=$l(ha,o),[_,O]=g.useState(null),[k,Z]=g.useState(null),z=We(l,Q=>O(Q)),[J,F]=g.useState(null),[ce,ne]=g.useState(null),W=vs(o),[ae,oe]=g.useState(!1),me=g.useRef(!1);g.useEffect(()=>{if(_)return qh(_)},[_]),bh();const H=g.useCallback(Q=>{const[pe,...ve]=W().map(Le=>Le.ref.current),[Ne]=ve.slice(-1),Re=document.activeElement;for(const Le of Q)if(Le===Re||(Le==null||Le.scrollIntoView({block:"nearest"}),Le===pe&&k&&(k.scrollTop=0),Le===Ne&&k&&(k.scrollTop=k.scrollHeight),Le==null||Le.focus(),document.activeElement!==Re))return},[W,k]),D=g.useCallback(()=>H([J,_]),[H,J,_]);g.useEffect(()=>{ae&&D()},[ae,D]);const{onOpenChange:K,triggerPointerDownPosRef:se}=T;g.useEffect(()=>{if(_){let Q={x:0,y:0};const pe=Ne=>{var Re,Le;Q={x:Math.abs(Math.round(Ne.pageX)-(((Re=se.current)==null?void 0:Re.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Le=se.current)==null?void 0:Le.y)??0))}},ve=Ne=>{Q.x<=10&&Q.y<=10?Ne.preventDefault():_.contains(Ne.target)||K(!1),document.removeEventListener("pointermove",pe),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",ve,{capture:!0})}}},[_,K,se]),g.useEffect(()=>{const Q=()=>K(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[K]);const[he,L]=G4(Q=>{const pe=W().filter(Re=>!Re.disabled),ve=pe.find(Re=>Re.ref.current===document.activeElement),Ne=Q4(pe,Q,ve);Ne&&setTimeout(()=>Ne.ref.current.focus())}),Y=g.useCallback((Q,pe,ve)=>{const Ne=!me.current&&!ve;(T.value!==void 0&&T.value===pe||Ne)&&(F(Q),Ne&&(me.current=!0))},[T.value]),te=g.useCallback(()=>_==null?void 0:_.focus(),[_]),le=g.useCallback((Q,pe,ve)=>{const Ne=!me.current&&!ve;(T.value!==void 0&&T.value===pe||Ne)&&ne(Q)},[T.value]),fe=r==="popper"?q0:O4,I=fe===q0?{side:h,sideOffset:x,align:m,alignOffset:v,arrowPadding:b,collisionBoundary:C,collisionPadding:S,sticky:M,hideWhenDetached:w,avoidCollisions:E}:{};return u.jsx(N4,{scope:o,content:_,viewport:k,onViewportChange:Z,itemRefCallback:Y,selectedItem:J,onItemLeave:te,itemTextRefCallback:le,focusSelectedItem:D,selectedItemText:ce,position:r,isPositioned:ae,searchRef:he,children:u.jsx(Od,{as:Mw,allowPinchZoom:!0,children:u.jsx(bd,{asChild:!0,trapped:T.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:ze(c,Q=>{var pe;(pe=T.trigger)==null||pe.focus({preventScroll:!0}),Q.preventDefault()}),children:u.jsx(rs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Q=>Q.preventDefault(),...R,...I,onPlaced:()=>oe(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ze(R.onKeyDown,Q=>{const pe=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!pe&&Q.key.length===1&&L(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ne=W().filter(Re=>!Re.disabled).map(Re=>Re.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Re=Q.target,Le=Ne.indexOf(Re);Ne=Ne.slice(Le+1)}setTimeout(()=>H(Ne)),Q.preventDefault()}})})})})})})});L4.displayName=jw;var Ew="SelectItemAlignedPosition",O4=g.forwardRef((t,l)=>{const{__scopeSelect:o,onPlaced:r,...c}=t,s=$l(ha,o),f=Bl(ha,o),[h,x]=g.useState(null),[m,v]=g.useState(null),b=We(l,z=>v(z)),C=vs(o),S=g.useRef(!1),M=g.useRef(!0),{viewport:w,selectedItem:E,selectedItemText:R,focusSelectedItem:T}=f,_=g.useCallback(()=>{if(s.trigger&&s.valueNode&&h&&m&&w&&E&&R){const z=s.trigger.getBoundingClientRect(),J=m.getBoundingClientRect(),F=s.valueNode.getBoundingClientRect(),ce=R.getBoundingClientRect();if(s.dir!=="rtl"){const Re=ce.left-J.left,Le=F.left-Re,ht=z.left-Le,nt=z.width+ht,$t=Math.max(nt,J.width),Jt=window.innerWidth-mn,zn=K3(Le,[mn,Math.max(mn,Jt-$t)]);h.style.minWidth=nt+"px",h.style.left=zn+"px"}else{const Re=J.right-ce.right,Le=window.innerWidth-F.right-Re,ht=window.innerWidth-z.right-Le,nt=z.width+ht,$t=Math.max(nt,J.width),Jt=window.innerWidth-mn,zn=K3(Le,[mn,Math.max(mn,Jt-$t)]);h.style.minWidth=nt+"px",h.style.right=zn+"px"}const ne=C(),W=window.innerHeight-mn*2,ae=w.scrollHeight,oe=window.getComputedStyle(m),me=parseInt(oe.borderTopWidth,10),H=parseInt(oe.paddingTop,10),D=parseInt(oe.borderBottomWidth,10),K=parseInt(oe.paddingBottom,10),se=me+H+ae+K+D,he=Math.min(E.offsetHeight*5,se),L=window.getComputedStyle(w),Y=parseInt(L.paddingTop,10),te=parseInt(L.paddingBottom,10),le=z.top+z.height/2-mn,fe=W-le,I=E.offsetHeight/2,Q=E.offsetTop+I,pe=me+H+Q,ve=se-pe;if(pe<=le){const Re=ne.length>0&&E===ne[ne.length-1].ref.current;h.style.bottom="0px";const Le=m.clientHeight-w.offsetTop-w.offsetHeight,ht=Math.max(fe,I+(Re?te:0)+Le+D),nt=pe+ht;h.style.height=nt+"px"}else{const Re=ne.length>0&&E===ne[0].ref.current;h.style.top="0px";const ht=Math.max(le,me+w.offsetTop+(Re?Y:0)+I)+ve;h.style.height=ht+"px",w.scrollTop=pe-le+w.offsetTop}h.style.margin=`${mn}px 0`,h.style.minHeight=he+"px",h.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>S.current=!0)}},[C,s.trigger,s.valueNode,h,m,w,E,R,s.dir,r]);Tt(()=>_(),[_]);const[O,k]=g.useState();Tt(()=>{m&&k(window.getComputedStyle(m).zIndex)},[m]);const Z=g.useCallback(z=>{z&&M.current===!0&&(_(),T==null||T(),M.current=!1)},[_,T]);return u.jsx(Rw,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:S,onScrollButtonChange:Z,children:u.jsx("div",{ref:x,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(Ge.div,{...c,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});O4.displayName=Ew;var Tw="SelectPopperPosition",q0=g.forwardRef((t,l)=>{const{__scopeSelect:o,align:r="start",collisionPadding:c=mn,...s}=t,f=ys(o);return u.jsx(Nd,{...f,...s,ref:l,align:r,collisionPadding:c,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});q0.displayName=Tw;var[Rw,Bd]=Mo(ha,{}),X0="SelectViewport",A4=g.forwardRef((t,l)=>{const{__scopeSelect:o,nonce:r,...c}=t,s=Bl(X0,o),f=Bd(X0,o),h=We(l,s.onViewportChange),x=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(xs.Slot,{scope:o,children:u.jsx(Ge.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:ze(c.onScroll,m=>{const v=m.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=f;if(C!=null&&C.current&&b){const S=Math.abs(x.current-v.scrollTop);if(S>0){const M=window.innerHeight-mn*2,w=parseFloat(b.style.minHeight),E=parseFloat(b.style.height),R=Math.max(w,E);if(R<M){const T=R+S,_=Math.min(M,T),O=T-_;b.style.height=_+"px",b.style.bottom==="0px"&&(v.scrollTop=O>0?O:0,b.style.justifyContent="flex-end")}}}x.current=v.scrollTop})})})]})});A4.displayName=X0;var z4="SelectGroup",[_w,Nw]=Mo(z4),H4=g.forwardRef((t,l)=>{const{__scopeSelect:o,...r}=t,c=Qr();return u.jsx(_w,{scope:o,id:c,children:u.jsx(Ge.div,{role:"group","aria-labelledby":c,...r,ref:l})})});H4.displayName=z4;var V4="SelectLabel",k4=g.forwardRef((t,l)=>{const{__scopeSelect:o,...r}=t,c=Nw(V4,o);return u.jsx(Ge.div,{id:c.id,...r,ref:l})});k4.displayName=V4;var Qc="SelectItem",[Lw,D4]=Mo(Qc),$4=g.forwardRef((t,l)=>{const{__scopeSelect:o,value:r,disabled:c=!1,textValue:s,...f}=t,h=$l(Qc,o),x=Bl(Qc,o),m=h.value===r,[v,b]=g.useState(s??""),[C,S]=g.useState(!1),M=We(l,T=>{var _;return(_=x.itemRefCallback)==null?void 0:_.call(x,T,r,c)}),w=Qr(),E=g.useRef("touch"),R=()=>{c||(h.onValueChange(r),h.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Lw,{scope:o,value:r,disabled:c,textId:w,isSelected:m,onItemTextChange:g.useCallback(T=>{b(_=>_||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(xs.ItemSlot,{scope:o,value:r,disabled:c,textValue:v,children:u.jsx(Ge.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...f,ref:M,onFocus:ze(f.onFocus,()=>S(!0)),onBlur:ze(f.onBlur,()=>S(!1)),onClick:ze(f.onClick,()=>{E.current!=="mouse"&&R()}),onPointerUp:ze(f.onPointerUp,()=>{E.current==="mouse"&&R()}),onPointerDown:ze(f.onPointerDown,T=>{E.current=T.pointerType}),onPointerMove:ze(f.onPointerMove,T=>{var _;E.current=T.pointerType,c?(_=x.onItemLeave)==null||_.call(x):E.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(f.onPointerLeave,T=>{var _;T.currentTarget===document.activeElement&&((_=x.onItemLeave)==null||_.call(x))}),onKeyDown:ze(f.onKeyDown,T=>{var O;((O=x.searchRef)==null?void 0:O.current)!==""&&T.key===" "||(xw.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})})})})});$4.displayName=Qc;var _r="SelectItemText",B4=g.forwardRef((t,l)=>{const{__scopeSelect:o,className:r,style:c,...s}=t,f=$l(_r,o),h=Bl(_r,o),x=D4(_r,o),m=Cw(_r,o),[v,b]=g.useState(null),C=We(l,R=>b(R),x.onItemTextChange,R=>{var T;return(T=h.itemTextRefCallback)==null?void 0:T.call(h,R,x.value,x.disabled)}),S=v==null?void 0:v.textContent,M=g.useMemo(()=>u.jsx("option",{value:x.value,disabled:x.disabled,children:S},x.value),[x.disabled,x.value,S]),{onNativeOptionAdd:w,onNativeOptionRemove:E}=m;return Tt(()=>(w(M),()=>E(M)),[w,E,M]),u.jsxs(u.Fragment,{children:[u.jsx(Ge.span,{id:x.textId,...s,ref:C}),x.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Gr.createPortal(s.children,f.valueNode):null]})});B4.displayName=_r;var Z4="SelectItemIndicator",U4=g.forwardRef((t,l)=>{const{__scopeSelect:o,...r}=t;return D4(Z4,o).isSelected?u.jsx(Ge.span,{"aria-hidden":!0,...r,ref:l}):null});U4.displayName=Z4;var G0="SelectScrollUpButton",Ow=g.forwardRef((t,l)=>{const o=Bl(G0,t.__scopeSelect),r=Bd(G0,t.__scopeSelect),[c,s]=g.useState(!1),f=We(l,r.onScrollButtonChange);return Tt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const m=x.scrollTop>0;s(m)};const x=o.viewport;return h(),x.addEventListener("scroll",h),()=>x.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?u.jsx(P4,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:x}=o;h&&x&&(h.scrollTop=h.scrollTop-x.offsetHeight)}}):null});Ow.displayName=G0;var Q0="SelectScrollDownButton",Aw=g.forwardRef((t,l)=>{const o=Bl(Q0,t.__scopeSelect),r=Bd(Q0,t.__scopeSelect),[c,s]=g.useState(!1),f=We(l,r.onScrollButtonChange);return Tt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const m=x.scrollHeight-x.clientHeight,v=Math.ceil(x.scrollTop)<m;s(v)};const x=o.viewport;return h(),x.addEventListener("scroll",h),()=>x.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?u.jsx(P4,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:x}=o;h&&x&&(h.scrollTop=h.scrollTop+x.offsetHeight)}}):null});Aw.displayName=Q0;var P4=g.forwardRef((t,l)=>{const{__scopeSelect:o,onAutoScroll:r,...c}=t,s=Bl("SelectScrollButton",o),f=g.useRef(null),h=vs(o),x=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>x(),[x]),Tt(()=>{var v;const m=h().find(b=>b.ref.current===document.activeElement);(v=m==null?void 0:m.ref.current)==null||v.scrollIntoView({block:"nearest"})},[h]),u.jsx(Ge.div,{"aria-hidden":!0,...c,ref:l,style:{flexShrink:0,...c.style},onPointerDown:ze(c.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(r,50))}),onPointerMove:ze(c.onPointerMove,()=>{var m;(m=s.onItemLeave)==null||m.call(s),f.current===null&&(f.current=window.setInterval(r,50))}),onPointerLeave:ze(c.onPointerLeave,()=>{x()})})}),zw="SelectSeparator",Y4=g.forwardRef((t,l)=>{const{__scopeSelect:o,...r}=t;return u.jsx(Ge.div,{"aria-hidden":!0,...r,ref:l})});Y4.displayName=zw;var K0="SelectArrow",Hw=g.forwardRef((t,l)=>{const{__scopeSelect:o,...r}=t,c=ys(o),s=$l(K0,o),f=Bl(K0,o);return s.open&&f.position==="popper"?u.jsx(Ld,{...c,...r,ref:l}):null});Hw.displayName=K0;var Vw="SelectBubbleInput",q4=g.forwardRef(({__scopeSelect:t,value:l,...o},r)=>{const c=g.useRef(null),s=We(r,c),f=C4(l);return g.useEffect(()=>{const h=c.current;if(!h)return;const x=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(x,"value").set;if(f!==l&&v){const b=new Event("change",{bubbles:!0});v.call(h,l),h.dispatchEvent(b)}},[f,l]),u.jsx(Ge.select,{...o,style:{...s4,...o.style},ref:s,defaultValue:l})});q4.displayName=Vw;function X4(t){return t===""||t===void 0}function G4(t){const l=da(t),o=g.useRef(""),r=g.useRef(0),c=g.useCallback(f=>{const h=o.current+f;l(h),(function x(m){o.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>x(""),1e3))})(h)},[l]),s=g.useCallback(()=>{o.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[o,c,s]}function Q4(t,l,o){const c=l.length>1&&Array.from(l).every(m=>m===l[0])?l[0]:l,s=o?t.indexOf(o):-1;let f=kw(t,Math.max(s,0));c.length===1&&(f=f.filter(m=>m!==o));const x=f.find(m=>m.textValue.toLowerCase().startsWith(c.toLowerCase()));return x!==o?x:void 0}function kw(t,l){return t.map((o,r)=>t[(l+r)%t.length])}var F0=w4,K4=j4,F4=E4,J4=T4,W4=R4,I4=_4,e7=A4,Dw=H4,$w=k4,t7=$4,n7=B4,l7=U4,a7=Y4;function Ol({value:t,onChange:l,options:o,groups:r,placeholder:c,className:s,icon:f,tooltip:h}){const x=u.jsxs(K4,{className:f?"studio-select":s||"studio-select",asChild:!1,children:[u.jsx("span",{className:"studio-prop-select-value",children:u.jsx(F4,{placeholder:c})}),u.jsx(J4,{asChild:!0,children:u.jsx(fn,{style:{width:10,height:10,flexShrink:0}})})]}),m=u.jsx(W4,{children:u.jsx(I4,{className:"studio-prop-select-content",position:"popper",sideOffset:4,collisionPadding:12,children:u.jsxs(e7,{children:[o==null?void 0:o.map(v=>u.jsx(F3,{value:v.value,children:v.label??v.value},v.value)),r==null?void 0:r.map((v,b)=>u.jsxs(Dw,{children:[(b>0||o&&o.length>0)&&u.jsx(a7,{className:"studio-prop-select-separator"}),u.jsx($w,{className:"studio-prop-select-group-label",children:v.label}),v.options.map(C=>u.jsx(F3,{value:C.value,children:C.label??C.value},C.value))]},v.label))]})})});return f?u.jsxs("div",{className:"studio-scrub-input",style:{gap:0},children:[u.jsx(ft,{content:h||"",side:"left",children:u.jsx("div",{className:"studio-scrub-icon no-scrub",children:u.jsx(f,{style:{width:12,height:12}})})}),u.jsxs(F0,{value:t,onValueChange:l,children:[x,m]})]}):u.jsxs(F0,{value:t,onValueChange:l,children:[x,m]})}function F3({value:t,children:l}){return u.jsxs(t7,{value:t,className:"studio-prop-select-item",children:[u.jsx(n7,{children:l}),u.jsx(l7,{className:"studio-prop-select-check",children:u.jsx(ua,{style:{width:10,height:10}})})]})}function Kc(t){const l=t.match(/^(-?[\d.]+)\s*(px|rem|em|%|vh|vw|pt)$/);if(l)return{num:parseFloat(l[1]),unit:l[2]};const o=parseFloat(t);return!isNaN(o)&&String(o)===t.trim()?{num:o,unit:""}:null}function o7(t){return t==="rem"||t==="em"?.0625:1}function ca({icon:t,label:l,value:o,tooltip:r,onPreview:c,onCommit:s,step:f,min:h,maxDecimals:x}){const[m,v]=g.useState(o),[b,C]=g.useState(!1),[S,M]=g.useState(!1),w=g.useRef(null),E=g.useRef(m);E.current=m;const R=g.useRef(null),T=g.useRef(null);g.useEffect(()=>{!b&&!S&&v(o),T.current!==null&&(T.current=null)},[o,b,S]);const _=b||S?m:T.current||o,O=Kc(_)!==null,k=z=>{const J=Kc(_);if(!J)return;z.preventDefault(),w.current={startX:z.clientX,startVal:J.num,unit:J.unit},M(!0);const F=f??o7(J.unit),ce=x??4,ne=ae=>{if(!w.current)return;const oe=ae.shiftKey?10:1,me=Math.round((ae.clientX-w.current.startX)/2);let H=w.current.startVal+me*F*oe;h!==void 0&&H<h&&(H=h);const D=w.current.unit?`${parseFloat(H.toFixed(ce))}${w.current.unit}`:`${Math.round(H)}`;v(D),E.current=D,c==null||c(D)},W=()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",W),w.current&&(T.current=E.current,s(E.current),w.current=null),M(!1)};document.addEventListener("pointermove",ne),document.addEventListener("pointerup",W)},Z=r||l||"";return u.jsxs("div",{className:"studio-scrub-input",children:[t&&u.jsx(ft,{content:Z,side:"left",children:u.jsx("div",{className:O?"studio-scrub-icon":"studio-scrub-icon no-scrub",onPointerDown:O?k:void 0,children:u.jsx(t,{style:{width:12,height:12}})})}),!t&&l&&u.jsx(ft,{content:Z,side:"left",children:u.jsx("div",{className:O?"studio-scrub-label":"studio-scrub-label no-scrub",onPointerDown:O?k:void 0,children:l})}),u.jsx("input",{ref:R,type:"text",value:_,onChange:z=>{v(z.target.value)},onFocus:()=>{v(o),C(!0)},onBlur:()=>{C(!1);const z=m.trim();z&&z!==o&&(T.current=z,s(z))},onKeyDown:z=>{z.key==="Enter"&&z.target.blur(),z.key==="Escape"&&(v(o),C(!1))},className:"studio-scrub-value"})]})}function un({options:t,value:l,onChange:o}){const[r,c]=g.useState(l);return g.useEffect(()=>{c(l)},[l]),u.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:t.map(s=>u.jsx(ft,{content:s.tooltip||s.label||s.value,side:"bottom",children:u.jsx("button",{onClick:()=>{c(s.value),o(s.value)},className:r===s.value?"active":"",style:{flex:1,cursor:"pointer"},children:s.icon?u.jsx(s.icon,{style:{width:14,height:14}}):u.jsx("span",{style:{fontSize:10},children:s.label||s.value})})},s.value))})}function J0({value:t,min:l,max:o,step:r=1,unit:c="",icon:s,tooltip:f,onChange:h,onCommit:x}){const[m,v]=g.useState(t),[b,C]=g.useState(!1),S=g.useRef(null);g.useEffect(()=>{v(t)},[t]);const M=Z=>Math.min(o,Math.max(l,Z)),w=Z=>Math.round(Z/r)*r,E=(m-l)/(o-l)*100,R=g.useCallback(Z=>{var F;const z=(F=S.current)==null?void 0:F.getBoundingClientRect();if(!z)return m;const J=Math.max(0,Math.min(1,(Z-z.left)/z.width));return w(M(l+J*(o-l)))},[l,o,r,m]),T=Z=>{Z.preventDefault(),Z.target.setPointerCapture(Z.pointerId),C(!0);const z=R(Z.clientX);v(z),h(z)},_=Z=>{if(!b)return;const z=R(Z.clientX);v(z),h(z)},O=()=>{b&&(C(!1),x==null||x(m))},k=Z=>{let z=m;if(Z.key==="ArrowRight"||Z.key==="ArrowUp")z=M(m+r);else if(Z.key==="ArrowLeft"||Z.key==="ArrowDown")z=M(m-r);else return;Z.preventDefault(),v(z),h(z),x==null||x(z)};return u.jsxs("div",{className:"studio-scrub-input",style:{gap:0},children:[s&&u.jsx(ft,{content:f||"",side:"left",children:u.jsx("div",{className:"studio-scrub-icon no-scrub",children:u.jsx(s,{style:{width:12,height:12}})})}),u.jsxs("div",{ref:S,className:"studio-slider-track",style:{"--slider-pct":`${E}`},onPointerDown:T,onPointerMove:_,onPointerUp:O,onKeyDown:k,tabIndex:0,role:"slider","aria-valuemin":l,"aria-valuemax":o,"aria-valuenow":m,children:[u.jsx("div",{className:"studio-slider-fill"}),u.jsx("div",{className:"studio-slider-thumb"})]}),u.jsxs("span",{className:"studio-slider-readout",children:[m,c]})]})}const r7=(t,l)=>{if(typeof t=="number"){if(l===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(l===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(l===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(l===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},Bw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zw=t=>r7(Bw[t.toLowerCase()],6),Uw=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Pw=t=>{let l;return(l=t.match(Uw))?r7(parseInt(l[1],16),l[1].length):void 0},Al="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Hr=`${Al}%`,Zd=`(?:${Al}%|${Al})`,Yw=`(?:${Al}(deg|grad|rad|turn)|${Al})`,vo="\\s*,\\s*",qw=new RegExp(`^rgba?\\(\\s*${Al}${vo}${Al}${vo}${Al}\\s*(?:,\\s*${Zd}\\s*)?\\)$`),Xw=new RegExp(`^rgba?\\(\\s*${Hr}${vo}${Hr}${vo}${Hr}\\s*(?:,\\s*${Zd}\\s*)?\\)$`),Gw=t=>{let l={mode:"rgb"},o;if(o=t.match(qw))o[1]!==void 0&&(l.r=o[1]/255),o[2]!==void 0&&(l.g=o[2]/255),o[3]!==void 0&&(l.b=o[3]/255);else if(o=t.match(Xw))o[1]!==void 0&&(l.r=o[1]/100),o[2]!==void 0&&(l.g=o[2]/100),o[3]!==void 0&&(l.b=o[3]/100);else return;return o[4]!==void 0?l.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(l.alpha=Math.max(0,Math.min(1,+o[5]))),l},Qw=(t,l)=>t===void 0?void 0:typeof t!="object"?aS(t):t.mode!==void 0?t:l?{...t,mode:l}:void 0,ga=(t="rgb")=>l=>(l=Qw(l,t))!==void 0?l.mode===t?l:En[l.mode][t]?En[l.mode][t](l):t==="rgb"?En[l.mode].rgb(l):En.rgb[t](En[l.mode].rgb(l)):void 0,En={},i7={},Fc=[],c7={},Kw=t=>t,Ve=t=>(En[t.mode]={...En[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(l=>{En[l]||(En[l]={}),En[l][t.mode]=t.fromMode[l]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(l=>{if(t.ranges[l]===void 0&&(t.ranges[l]=[0,1]),!t.interpolate[l])throw new Error(`Missing interpolator for: ${l}`);typeof t.interpolate[l]=="function"&&(t.interpolate[l]={use:t.interpolate[l]}),t.interpolate[l].fixup||(t.interpolate[l].fixup=Kw)}),i7[t.mode]=t,(t.parse||[]).forEach(l=>{Jw(l,t.mode)}),ga(t.mode)),Fw=t=>i7[t],Jw=(t,l)=>{if(typeof t=="string"){if(!l)throw new Error("'mode' required when 'parser' is a string");c7[t]=l}else typeof t=="function"&&Fc.indexOf(t)<0&&Fc.push(t)},W0=/[^\x00-\x7F]|[a-zA-Z_]/,Ww=/[^\x00-\x7F]|[-\w]/,ee={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let ye=0;function Rc(t){let l=t[ye],o=t[ye+1];return l==="-"||l==="+"?/\d/.test(o)||o==="."&&/\d/.test(t[ye+2]):l==="."?/\d/.test(o):/\d/.test(l)}function I0(t){if(ye>=t.length)return!1;let l=t[ye];if(W0.test(l))return!0;if(l==="-"){if(t.length-ye<2)return!1;let o=t[ye+1];return!!(o==="-"||W0.test(o))}return!1}const Iw={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Er(t){let l="";if((t[ye]==="-"||t[ye]==="+")&&(l+=t[ye++]),l+=_c(t),t[ye]==="."&&/\d/.test(t[ye+1])&&(l+=t[ye++]+_c(t)),(t[ye]==="e"||t[ye]==="E")&&((t[ye+1]==="-"||t[ye+1]==="+")&&/\d/.test(t[ye+2])?l+=t[ye++]+t[ye++]+_c(t):/\d/.test(t[ye+1])&&(l+=t[ye++]+_c(t))),I0(t)){let o=Jc(t);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:ee.Hue,value:l*Iw[o]}:void 0}return t[ye]==="%"?(ye++,{type:ee.Percentage,value:+l}):{type:ee.Number,value:+l}}function _c(t){let l="";for(;/\d/.test(t[ye]);)l+=t[ye++];return l}function Jc(t){let l="";for(;ye<t.length&&Ww.test(t[ye]);)l+=t[ye++];return l}function eS(t){let l=Jc(t);return t[ye]==="("?(ye++,{type:ee.Function,value:l}):l==="none"?{type:ee.None,value:void 0}:{type:ee.Ident,value:l}}function tS(t=""){let l=t.trim(),o=[],r;for(ye=0;ye<l.length;){if(r=l[ye++],r===`
|
|
275
|
+
`||r===" "||r===" "){for(;ye<l.length&&(l[ye]===`
|
|
276
|
+
`||l[ye]===" "||l[ye]===" ");)ye++;continue}if(r===",")return;if(r===")"){o.push({type:ee.ParenClose});continue}if(r==="+"){if(ye--,Rc(l)){o.push(Er(l));continue}return}if(r==="-"){if(ye--,Rc(l)){o.push(Er(l));continue}if(I0(l)){o.push({type:ee.Ident,value:Jc(l)});continue}return}if(r==="."){if(ye--,Rc(l)){o.push(Er(l));continue}return}if(r==="/"){for(;ye<l.length&&(l[ye]===`
|
|
277
|
+
`||l[ye]===" "||l[ye]===" ");)ye++;let c;if(Rc(l)&&(c=Er(l),c.type!==ee.Hue)){o.push({type:ee.Alpha,value:c});continue}if(I0(l)&&Jc(l)==="none"){o.push({type:ee.Alpha,value:{type:ee.None,value:void 0}});continue}return}if(/\d/.test(r)){ye--,o.push(Er(l));continue}if(W0.test(r)){ye--,o.push(eS(l));continue}return}return o}function nS(t){t._i=0;let l=t[t._i++];if(!l||l.type!==ee.Function||l.value!=="color"||(l=t[t._i++],l.type!==ee.Ident))return;const o=c7[l.value];if(!o)return;const r={mode:o},c=s7(t,!1);if(!c)return;const s=Fw(o).channels;for(let f=0,h,x;f<s.length;f++)h=c[f],x=s[f],h.type!==ee.None&&(r[x]=h.type===ee.Number?h.value:h.value/100,x==="alpha"&&(r[x]=Math.max(0,Math.min(1,r[x]))));return r}function s7(t,l){const o=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===ee.None||r.type===ee.Number||r.type===ee.Alpha||r.type===ee.Percentage||l&&r.type===ee.Hue){o.push(r);continue}if(r.type===ee.ParenClose){if(t._i<t.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==ee.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:ee.None,value:void 0}),o.every(c=>c.type!==ee.Alpha)?o:void 0}}function lS(t,l){t._i=0;let o=t[t._i++];if(!o||o.type!==ee.Function)return;let r=s7(t,l);if(r)return r.unshift(o.value),r}const aS=t=>{if(typeof t!="string")return;const l=tS(t),o=l?lS(l,!0):void 0;let r,c=0,s=Fc.length;for(;c<s;)if((r=Fc[c++](t,o))!==void 0)return r;return l?nS(l):void 0};function oS(t,l){if(!l||l[0]!=="rgb"&&l[0]!=="rgba")return;const o={mode:"rgb"},[,r,c,s,f]=l;if(!(r.type===ee.Hue||c.type===ee.Hue||s.type===ee.Hue))return r.type!==ee.None&&(o.r=r.type===ee.Number?r.value/255:r.value/100),c.type!==ee.None&&(o.g=c.type===ee.Number?c.value/255:c.value/100),s.type!==ee.None&&(o.b=s.type===ee.Number?s.value/255:s.value/100),f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const rS=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,iS=(t,l,o)=>t+o*(l-t),cS=t=>{let l=[];for(let o=0;o<t.length-1;o++){let r=t[o],c=t[o+1];r===void 0&&c===void 0?l.push(void 0):r!==void 0&&c!==void 0?l.push([r,c]):l.push(r!==void 0?[r,r]:[c,c])}return l},sS=t=>l=>{let o=cS(l);return r=>{let c=r*o.length,s=r>=1?o.length-1:Math.max(Math.floor(c),0),f=o[s];return f===void 0?void 0:t(f[0],f[1],c-s)}},re=sS(iS),pt=t=>{let l=!1,o=t.map(r=>r!==void 0?(l=!0,r):1);return l?o:t},Eo={mode:"rgb",channels:["r","g","b","alpha"],parse:[oS,Pw,Gw,Zw,rS,"srgb"],serialize:"srgb",interpolate:{r:re,g:re,b:re,alpha:{use:re,fixup:pt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},u0=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),J3=t=>{let l=u0(t.r),o=u0(t.g),r=u0(t.b),c={mode:"xyz65",x:.5766690429101305*l+.1855582379065463*o+.1882286462349947*r,y:.297344975250536*l+.6273635662554661*o+.0752914584939979*r,z:.0270313613864123*l+.0706888525358272*o+.9913375368376386*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},d0=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),W3=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c={mode:"a98",r:d0(t*2.0415879038107465-l*.5650069742788597-.3447313507783297*o),g:d0(t*-.9692436362808798+l*1.8759675015077206+.0415550574071756*o),b:d0(t*.0134442806320312-l*.1183623922310184+1.0151749943912058*o)};return r!==void 0&&(c.alpha=r),c},f0=(t=0)=>{const l=Math.abs(t);return l<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((l+.055)/1.055,2.4)},To=({r:t,g:l,b:o,alpha:r})=>{let c={mode:"lrgb",r:f0(t),g:f0(l),b:f0(o)};return r!==void 0&&(c.alpha=r),c},ma=t=>{let{r:l,g:o,b:r,alpha:c}=To(t),s={mode:"xyz65",x:.4123907992659593*l+.357584339383878*o+.1804807884018343*r,y:.2126390058715102*l+.715168678767756*o+.0721923153607337*r,z:.0193308187155918*l+.119194779794626*o+.9505321522496607*r};return c!==void 0&&(s.alpha=c),s},p0=(t=0)=>{const l=Math.abs(t);return l>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(l,1/2.4)-.055):t*12.92},Ro=({r:t,g:l,b:o,alpha:r},c="rgb")=>{let s={mode:c,r:p0(t),g:p0(l),b:p0(o)};return r!==void 0&&(s.alpha=r),s},xa=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Ro({r:t*3.2409699419045226-l*1.537383177570094-.4986107602930034*o,g:t*-.9692436362808796+l*1.8759675015077204+.0415550574071756*o,b:t*.0556300796969936-l*.2039769588889765+1.0569715142428784*o});return r!==void 0&&(c.alpha=r),c},uS={...Eo,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>W3(ma(t)),xyz65:W3},toMode:{rgb:t=>xa(J3(t)),xyz65:J3}},jt=t=>(t=t%360)<0?t+360:t,dS=(t,l)=>t.map((o,r,c)=>{if(o===void 0)return o;let s=jt(o);return r===0||t[r-1]===void 0?s:l(s-jt(c[r-1]))}).reduce((o,r)=>!o.length||r===void 0||o[o.length-1]===void 0?(o.push(r),o):(o.push(r+o[o.length-1]),o),[]),nl=t=>dS(t,l=>Math.abs(l)<=180?l:l-360*Math.sign(l)),xt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],fS=Math.PI/180,pS=180/Math.PI;let I3=xt[3]*xt[4],ep=xt[1]*xt[4],tp=xt[1]*xt[2]-xt[0]*xt[3];const hS=({r:t,g:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=(tp*o+t*I3-l*ep)/(tp+I3-ep),s=o-c,f=(xt[4]*(l-c)-xt[2]*s)/xt[3],h={mode:"cubehelix",l:c,s:c===0||c===1?void 0:Math.sqrt(s*s+f*f)/(xt[4]*c*(1-c))};return h.s&&(h.h=Math.atan2(f,s)*pS-120),r!==void 0&&(h.alpha=r),h},gS=({h:t,s:l,l:o,alpha:r})=>{let c={mode:"rgb"};t=(t===void 0?0:t+120)*fS,o===void 0&&(o=0);let s=l===void 0?0:l*o*(1-o),f=Math.cos(t),h=Math.sin(t);return c.r=o+s*(xt[0]*f+xt[1]*h),c.g=o+s*(xt[2]*f+xt[3]*h),c.b=o+s*(xt[4]*f+xt[5]*h),r!==void 0&&(c.alpha=r),c},bs=(t,l)=>{if(t.h===void 0||l.h===void 0||!t.s||!l.s)return 0;let o=jt(t.h),r=jt(l.h),c=Math.sin((r-o+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*l.s)*c},mS=(t,l)=>{if(t.h===void 0||l.h===void 0)return 0;let o=jt(t.h),r=jt(l.h);return Math.abs(r-o)>180?o-(r-360*Math.sign(r-o)):r-o},Cs=(t,l)=>{if(t.h===void 0||l.h===void 0||!t.c||!l.c)return 0;let o=jt(t.h),r=jt(l.h),c=Math.sin((r-o+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*l.c)*c},ll=t=>{let l=t.reduce((r,c)=>{if(c!==void 0){let s=c*Math.PI/180;r.sin+=Math.sin(s),r.cos+=Math.cos(s)}return r},{sin:0,cos:0}),o=Math.atan2(l.sin,l.cos)*180/Math.PI;return o<0?360+o:o},xS={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:hS},toMode:{rgb:gS},interpolate:{h:{use:re,fixup:nl},s:re,l:re,alpha:{use:re,fixup:pt}},difference:{h:bs},average:{h:ll}},Vl=({l:t,a:l,b:o,alpha:r},c="lch")=>{l===void 0&&(l=0),o===void 0&&(o=0);let s=Math.sqrt(l*l+o*o),f={mode:c,l:t,c:s};return s&&(f.h=jt(Math.atan2(o,l)*180/Math.PI)),r!==void 0&&(f.alpha=r),f},kl=({l:t,c:l,h:o,alpha:r},c="lab")=>{o===void 0&&(o=0);let s={mode:c,l:t,a:l?l*Math.cos(o/180*Math.PI):0,b:l?l*Math.sin(o/180*Math.PI):0};return r!==void 0&&(s.alpha=r),s},u7=Math.pow(29,3)/Math.pow(3,3),d7=Math.pow(6,3)/Math.pow(29,3),st={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},fo={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let h0=t=>Math.pow(t,3)>d7?Math.pow(t,3):(116*t-16)/u7;const f7=({l:t,a:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=(t+16)/116,s=l/500+c,f=c-o/200,h={mode:"xyz65",x:h0(s)*fo.X,y:h0(c)*fo.Y,z:h0(f)*fo.Z};return r!==void 0&&(h.alpha=r),h},ws=t=>xa(f7(t)),g0=t=>t>d7?Math.cbrt(t):(u7*t+16)/116,p7=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=g0(t/fo.X),s=g0(l/fo.Y),f=g0(o/fo.Z),h={mode:"lab65",l:116*s-16,a:500*(c-s),b:200*(s-f)};return r!==void 0&&(h.alpha=r),h},Ss=t=>{let l=p7(ma(t));return t.r===t.b&&t.b===t.g&&(l.a=l.b=0),l},Wc=1,h7=1,qr=26/180*Math.PI,Ic=Math.cos(qr),es=Math.sin(qr),g7=100/Math.log(139/100),ed=({l:t,c:l,h:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c={mode:"lab65",l:(Math.exp(t*Wc/g7)-1)/.0039},s=(Math.exp(.0435*l*h7*Wc)-1)/.075,f=s*Math.cos(o/180*Math.PI-qr),h=s*Math.sin(o/180*Math.PI-qr);return c.a=f*Ic-h/.83*es,c.b=f*es+h/.83*Ic,r!==void 0&&(c.alpha=r),c},td=({l:t,a:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=l*Ic+o*es,s=.83*(o*Ic-l*es),f=Math.sqrt(c*c+s*s),h={mode:"dlch",l:g7/Wc*Math.log(1+.0039*t),c:Math.log(1+.075*f)/(.0435*h7*Wc)};return h.c&&(h.h=jt((Math.atan2(s,c)+qr)/Math.PI*180)),r!==void 0&&(h.alpha=r),h},np=t=>ed(Vl(t,"dlch")),lp=t=>kl(td(t),"dlab"),vS={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:np,rgb:t=>ws(np(t))},fromMode:{lab65:lp,rgb:t=>lp(Ss(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:re,a:re,b:re,alpha:{use:re,fixup:pt}}},yS={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ed,dlab:t=>kl(t,"dlab"),rgb:t=>ws(ed(t))},fromMode:{lab65:td,dlab:t=>Vl(t,"dlch"),rgb:t=>td(Ss(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:re,c:re,h:{use:re,fixup:nl},alpha:{use:re,fixup:pt}},difference:{h:Cs},average:{h:ll}};function bS({h:t,s:l,i:o,alpha:r}){t=jt(t!==void 0?t:0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:o*(1+l*(3/(2-c)-1)),g:o*(1+l*(3*(1-c)/(2-c)-1)),b:o*(1-l)};break;case 1:s={r:o*(1+l*(3*(1-c)/(2-c)-1)),g:o*(1+l*(3/(2-c)-1)),b:o*(1-l)};break;case 2:s={r:o*(1-l),g:o*(1+l*(3/(2-c)-1)),b:o*(1+l*(3*(1-c)/(2-c)-1))};break;case 3:s={r:o*(1-l),g:o*(1+l*(3*(1-c)/(2-c)-1)),b:o*(1+l*(3/(2-c)-1))};break;case 4:s={r:o*(1+l*(3*(1-c)/(2-c)-1)),g:o*(1-l),b:o*(1+l*(3/(2-c)-1))};break;case 5:s={r:o*(1+l*(3/(2-c)-1)),g:o*(1-l),b:o*(1+l*(3*(1-c)/(2-c)-1))};break;default:s={r:o*(1-l),g:o*(1-l),b:o*(1-l)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function CS({r:t,g:l,b:o,alpha:r}){t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.max(t,l,o),s=Math.min(t,l,o),f={mode:"hsi",s:t+l+o===0?0:1-3*s/(t+l+o),i:(t+l+o)/3};return c-s!==0&&(f.h=(c===t?(l-o)/(c-s)+(l<o)*6:c===l?(o-t)/(c-s)+2:(t-l)/(c-s)+4)*60),r!==void 0&&(f.alpha=r),f}const wS={mode:"hsi",toMode:{rgb:bS},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:CS},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:re,fixup:nl},s:re,i:re,alpha:{use:re,fixup:pt}},difference:{h:bs},average:{h:ll}};function SS({h:t,s:l,l:o,alpha:r}){t=jt(t!==void 0?t:0),l===void 0&&(l=0),o===void 0&&(o=0);let c=o+l*(o<.5?o:1-o),s=c-(c-o)*2*Math.abs(t/60%2-1),f;switch(Math.floor(t/60)){case 0:f={r:c,g:s,b:2*o-c};break;case 1:f={r:s,g:c,b:2*o-c};break;case 2:f={r:2*o-c,g:c,b:s};break;case 3:f={r:2*o-c,g:s,b:c};break;case 4:f={r:s,g:2*o-c,b:c};break;case 5:f={r:c,g:2*o-c,b:s};break;default:f={r:2*o-c,g:2*o-c,b:2*o-c}}return f.mode="rgb",r!==void 0&&(f.alpha=r),f}function jS({r:t,g:l,b:o,alpha:r}){t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.max(t,l,o),s=Math.min(t,l,o),f={mode:"hsl",s:c===s?0:(c-s)/(1-Math.abs(c+s-1)),l:.5*(c+s)};return c-s!==0&&(f.h=(c===t?(l-o)/(c-s)+(l<o)*6:c===l?(o-t)/(c-s)+2:(t-l)/(c-s)+4)*60),r!==void 0&&(f.alpha=r),f}const MS=(t,l)=>{switch(l){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},ES=new RegExp(`^hsla?\\(\\s*${Yw}${vo}${Hr}${vo}${Hr}\\s*(?:,\\s*${Zd}\\s*)?\\)$`),TS=t=>{let l=t.match(ES);if(!l)return;let o={mode:"hsl"};return l[3]!==void 0?o.h=+l[3]:l[1]!==void 0&&l[2]!==void 0&&(o.h=MS(l[1],l[2])),l[4]!==void 0&&(o.s=Math.min(Math.max(0,l[4]/100),1)),l[5]!==void 0&&(o.l=Math.min(Math.max(0,l[5]/100),1)),l[6]!==void 0?o.alpha=Math.max(0,Math.min(1,l[6]/100)):l[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+l[7]))),o};function RS(t,l){if(!l||l[0]!=="hsl"&&l[0]!=="hsla")return;const o={mode:"hsl"},[,r,c,s,f]=l;if(r.type!==ee.None){if(r.type===ee.Percentage)return;o.h=r.value}if(c.type!==ee.None){if(c.type===ee.Hue)return;o.s=c.value/100}if(s.type!==ee.None){if(s.type===ee.Hue)return;o.l=s.value/100}return f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const m7={mode:"hsl",toMode:{rgb:SS},fromMode:{rgb:jS},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[RS,TS],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:re,fixup:nl},s:re,l:re,alpha:{use:re,fixup:pt}},difference:{h:bs},average:{h:ll}};function x7({h:t,s:l,v:o,alpha:r}){t=jt(t!==void 0?t:0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:o,g:o*(1-l*c),b:o*(1-l)};break;case 1:s={r:o*(1-l*c),g:o,b:o*(1-l)};break;case 2:s={r:o*(1-l),g:o,b:o*(1-l*c)};break;case 3:s={r:o*(1-l),g:o*(1-l*c),b:o};break;case 4:s={r:o*(1-l*c),g:o*(1-l),b:o};break;case 5:s={r:o,g:o*(1-l),b:o*(1-l*c)};break;default:s={r:o*(1-l),g:o*(1-l),b:o*(1-l)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function v7({r:t,g:l,b:o,alpha:r}){t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.max(t,l,o),s=Math.min(t,l,o),f={mode:"hsv",s:c===0?0:1-s/c,v:c};return c-s!==0&&(f.h=(c===t?(l-o)/(c-s)+(l<o)*6:c===l?(o-t)/(c-s)+2:(t-l)/(c-s)+4)*60),r!==void 0&&(f.alpha=r),f}const y7={mode:"hsv",toMode:{rgb:x7},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:v7},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:re,fixup:nl},s:re,v:re,alpha:{use:re,fixup:pt}},difference:{h:bs},average:{h:ll}};function _S({h:t,w:l,b:o,alpha:r}){if(l===void 0&&(l=0),o===void 0&&(o=0),l+o>1){let c=l+o;l/=c,o/=c}return x7({h:t,s:o===1?1:1-l/(1-o),v:1-o,alpha:r})}function NS(t){let l=v7(t);if(l===void 0)return;let o=l.s!==void 0?l.s:0,r=l.v!==void 0?l.v:0,c={mode:"hwb",w:(1-o)*r,b:1-r};return l.h!==void 0&&(c.h=l.h),l.alpha!==void 0&&(c.alpha=l.alpha),c}function LS(t,l){if(!l||l[0]!=="hwb")return;const o={mode:"hwb"},[,r,c,s,f]=l;if(r.type!==ee.None){if(r.type===ee.Percentage)return;o.h=r.value}if(c.type!==ee.None){if(c.type===ee.Hue)return;o.w=c.value/100}if(s.type!==ee.None){if(s.type===ee.Hue)return;o.b=s.value/100}return f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const OS={mode:"hwb",toMode:{rgb:_S},fromMode:{rgb:NS},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[LS],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:re,fixup:nl},w:re,b:re,alpha:{use:re,fixup:pt}},difference:{h:mS},average:{h:ll}},b7=203,js=.1593017578125,C7=78.84375,Ms=.8359375,Es=18.8515625,Ts=18.6875;function m0(t){if(t<0)return 0;const l=Math.pow(t,1/C7);return 1e4*Math.pow(Math.max(0,l-Ms)/(Es-Ts*l),1/js)}function x0(t){if(t<0)return 0;const l=Math.pow(t/1e4,js);return Math.pow((Ms+Es*l)/(1+Ts*l),C7)}const v0=t=>Math.max(t/b7,0),ap=({i:t,t:l,p:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);const c=m0(t+.008609037037932761*l+.11102962500302593*o),s=m0(t-.00860903703793275*l-.11102962500302599*o),f=m0(t+.5600313357106791*l-.32062717498731885*o),h={mode:"xyz65",x:v0(2.070152218389422*c-1.3263473389671556*s+.2066510476294051*f),y:v0(.3647385209748074*c+.680566024947227*s-.0453045459220346*f),z:v0(-.049747207535812*c-.0492609666966138*s+1.1880659249923042*f)};return r!==void 0&&(h.alpha=r),h},y0=(t=0)=>Math.max(t*b7,0),op=({x:t,y:l,z:o,alpha:r})=>{const c=y0(t),s=y0(l),f=y0(o),h=x0(.3592832590121217*c+.6976051147779502*s-.0358915932320289*f),x=x0(-.1920808463704995*c+1.1004767970374323*s+.0753748658519118*f),m=x0(.0070797844607477*c+.0748396662186366*s+.8433265453898765*f),v=.5*h+.5*x,b=1.61376953125*h-3.323486328125*x+1.709716796875*m,C=4.378173828125*h-4.24560546875*x-.132568359375*m,S={mode:"itp",i:v,t:b,p:C};return r!==void 0&&(S.alpha=r),S},AS={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:ap,rgb:t=>xa(ap(t))},fromMode:{xyz65:op,rgb:t=>op(ma(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:re,t:re,p:re,alpha:{use:re,fixup:pt}}},zS=134.03437499999998,HS=16295499532821565e-27,b0=t=>{if(t<0)return 0;let l=Math.pow(t/1e4,js);return Math.pow((Ms+Es*l)/(1+Ts*l),zS)},C0=(t=0)=>Math.max(t*203,0),w7=({x:t,y:l,z:o,alpha:r})=>{t=C0(t),l=C0(l),o=C0(o);let c=1.15*t-.15*o,s=.66*l+.34*t,f=b0(.41478972*c+.579999*s+.014648*o),h=b0(-.20151*c+1.120649*s+.0531008*o),x=b0(-.0166008*c+.2648*s+.6684799*o),m=(f+h)/2,v={mode:"jab",j:.44*m/(1-.56*m)-HS,a:3.524*f-4.066708*h+.542708*x,b:.199076*f+1.096799*h-1.295875*x};return r!==void 0&&(v.alpha=r),v},VS=134.03437499999998,rp=16295499532821565e-27,w0=t=>{if(t<0)return 0;let l=Math.pow(t,1/VS);return 1e4*Math.pow((Ms-l)/(Ts*l-Es),1/js)},S0=t=>t/203,S7=({j:t,a:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=(t+rp)/(.44+.56*(t+rp)),s=w0(c+.13860504*l+.058047316*o),f=w0(c-.13860504*l-.058047316*o),h=w0(c-.096019242*l-.8118919*o),x={mode:"xyz65",x:S0(1.661373024652174*s-.914523081304348*f+.23136208173913045*h),y:S0(-.3250758611844533*s+1.571847026732543*f-.21825383453227928*h),z:S0(-.090982811*s-.31272829*f+1.5227666*h)};return r!==void 0&&(x.alpha=r),x},j7=t=>{let l=w7(ma(t));return t.r===t.b&&t.b===t.g&&(l.a=l.b=0),l},M7=t=>xa(S7(t)),kS={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:j7,xyz65:w7},toMode:{rgb:M7,xyz65:S7},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:re,a:re,b:re,alpha:{use:re,fixup:pt}}},ip=({j:t,a:l,b:o,alpha:r})=>{l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.sqrt(l*l+o*o),s={mode:"jch",j:t,c};return c&&(s.h=jt(Math.atan2(o,l)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},cp=({j:t,c:l,h:o,alpha:r})=>{o===void 0&&(o=0);let c={mode:"jab",j:t,a:l?l*Math.cos(o/180*Math.PI):0,b:l?l*Math.sin(o/180*Math.PI):0};return r!==void 0&&(c.alpha=r),c},DS={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:cp,rgb:t=>M7(cp(t))},fromMode:{rgb:t=>ip(j7(t)),jab:ip},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:re,fixup:nl},c:re,j:re,alpha:{use:re,fixup:pt}},difference:{h:Cs},average:{h:ll}},Rs=Math.pow(29,3)/Math.pow(3,3),Ud=Math.pow(6,3)/Math.pow(29,3);let j0=t=>Math.pow(t,3)>Ud?Math.pow(t,3):(116*t-16)/Rs;const Pd=({l:t,a:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=(t+16)/116,s=l/500+c,f=c-o/200,h={mode:"xyz50",x:j0(s)*st.X,y:j0(c)*st.Y,z:j0(f)*st.Z};return r!==void 0&&(h.alpha=r),h},Ir=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Ro({r:t*3.1341359569958707-l*1.6173863321612538-.4906619460083532*o,g:t*-.978795502912089+l*1.916254567259524+.03344273116131949*o,b:t*.07195537988411677-l*.2289768264158322+1.405386058324125*o});return r!==void 0&&(c.alpha=r),c},E7=t=>Ir(Pd(t)),ei=t=>{let{r:l,g:o,b:r,alpha:c}=To(t),s={mode:"xyz50",x:.436065742824811*l+.3851514688337912*o+.14307845442264197*r,y:.22249319175623702*l+.7168870538238823*o+.06061979053616537*r,z:.013923904500943465*l+.09708128566574634*o+.7140993584005155*r};return c!==void 0&&(s.alpha=c),s},M0=t=>t>Ud?Math.cbrt(t):(Rs*t+16)/116,Yd=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=M0(t/st.X),s=M0(l/st.Y),f=M0(o/st.Z),h={mode:"lab",l:116*s-16,a:500*(c-s),b:200*(s-f)};return r!==void 0&&(h.alpha=r),h},T7=t=>{let l=Yd(ei(t));return t.r===t.b&&t.b===t.g&&(l.a=l.b=0),l};function $S(t,l){if(!l||l[0]!=="lab")return;const o={mode:"lab"},[,r,c,s,f]=l;if(!(r.type===ee.Hue||c.type===ee.Hue||s.type===ee.Hue))return r.type!==ee.None&&(o.l=Math.min(Math.max(0,r.value),100)),c.type!==ee.None&&(o.a=c.type===ee.Number?c.value:c.value*125/100),s.type!==ee.None&&(o.b=s.type===ee.Number?s.value:s.value*125/100),f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const qd={mode:"lab",toMode:{xyz50:Pd,rgb:E7},fromMode:{xyz50:Yd,rgb:T7},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[$S],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:re,a:re,b:re,alpha:{use:re,fixup:pt}}},BS={...qd,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:f7,rgb:ws},fromMode:{xyz65:p7,rgb:Ss},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function ZS(t,l){if(!l||l[0]!=="lch")return;const o={mode:"lch"},[,r,c,s,f]=l;if(r.type!==ee.None){if(r.type===ee.Hue)return;o.l=Math.min(Math.max(0,r.value),100)}if(c.type!==ee.None&&(o.c=Math.max(0,c.type===ee.Number?c.value:c.value*150/100)),s.type!==ee.None){if(s.type===ee.Percentage)return;o.h=s.value}return f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const Xd={mode:"lch",toMode:{lab:kl,rgb:t=>E7(kl(t))},fromMode:{rgb:t=>Vl(T7(t)),lab:Vl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[ZS],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:re,fixup:nl},c:re,l:re,alpha:{use:re,fixup:pt}},difference:{h:Cs},average:{h:ll}},US={...Xd,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>kl(t,"lab65"),rgb:t=>ws(kl(t,"lab65"))},fromMode:{rgb:t=>Vl(Ss(t),"lch65"),lab65:t=>Vl(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},R7=({l:t,u:l,v:o,alpha:r})=>{l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.sqrt(l*l+o*o),s={mode:"lchuv",l:t,c};return c&&(s.h=jt(Math.atan2(o,l)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},_7=({l:t,c:l,h:o,alpha:r})=>{o===void 0&&(o=0);let c={mode:"luv",l:t,u:l?l*Math.cos(o/180*Math.PI):0,v:l?l*Math.sin(o/180*Math.PI):0};return r!==void 0&&(c.alpha=r),c},N7=(t,l,o)=>4*t/(t+15*l+3*o),L7=(t,l,o)=>9*l/(t+15*l+3*o),PS=N7(st.X,st.Y,st.Z),YS=L7(st.X,st.Y,st.Z),qS=t=>t<=Ud?Rs*t:116*Math.cbrt(t)-16,nd=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=qS(l/st.Y),s=N7(t,l,o),f=L7(t,l,o);!isFinite(s)||!isFinite(f)?c=s=f=0:(s=13*c*(s-PS),f=13*c*(f-YS));let h={mode:"luv",l:c,u:s,v:f};return r!==void 0&&(h.alpha=r),h},XS=(t,l,o)=>4*t/(t+15*l+3*o),GS=(t,l,o)=>9*l/(t+15*l+3*o),QS=XS(st.X,st.Y,st.Z),KS=GS(st.X,st.Y,st.Z),ld=({l:t,u:l,v:o,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};l===void 0&&(l=0),o===void 0&&(o=0);let c=l/(13*t)+QS,s=o/(13*t)+KS,f=st.Y*(t<=8?t/Rs:Math.pow((t+16)/116,3)),h=f*(9*c)/(4*s),x=f*(12-3*c-20*s)/(4*s),m={mode:"xyz50",x:h,y:f,z:x};return r!==void 0&&(m.alpha=r),m},FS=t=>R7(nd(ei(t))),JS=t=>Ir(ld(_7(t))),WS={mode:"lchuv",toMode:{luv:_7,rgb:JS},fromMode:{rgb:FS,luv:R7},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:re,fixup:nl},c:re,l:re,alpha:{use:re,fixup:pt}},difference:{h:Cs},average:{h:ll}},IS={...Eo,mode:"lrgb",toMode:{rgb:Ro},fromMode:{rgb:To},parse:["srgb-linear"],serialize:"srgb-linear"},ej={mode:"luv",toMode:{xyz50:ld,rgb:t=>Ir(ld(t))},fromMode:{xyz50:nd,rgb:t=>nd(ei(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:re,u:re,v:re,alpha:{use:re,fixup:pt}}},O7=({r:t,g:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.cbrt(.412221469470763*t+.5363325372617348*l+.0514459932675022*o),s=Math.cbrt(.2119034958178252*t+.6806995506452344*l+.1073969535369406*o),f=Math.cbrt(.0883024591900564*t+.2817188391361215*l+.6299787016738222*o),h={mode:"oklab",l:.210454268309314*c+.7936177747023054*s-.0040720430116193*f,a:1.9779985324311684*c-2.42859224204858*s+.450593709617411*f,b:.0259040424655478*c+.7827717124575296*s-.8086757549230774*f};return r!==void 0&&(h.alpha=r),h},_s=t=>{let l=O7(To(t));return t.r===t.b&&t.b===t.g&&(l.a=l.b=0),l},ti=({l:t,a:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Math.pow(t+.3963377773761749*l+.2158037573099136*o,3),s=Math.pow(t-.1055613458156586*l-.0638541728258133*o,3),f=Math.pow(t-.0894841775298119*l-1.2914855480194092*o,3),h={mode:"lrgb",r:4.076741636075957*c-3.3077115392580616*s+.2309699031821044*f,g:-1.2684379732850317*c+2.6097573492876887*s-.3413193760026573*f,b:-.0041960761386756*c-.7034186179359362*s+1.7076146940746117*f};return r!==void 0&&(h.alpha=r),h},Ns=t=>Ro(ti(t));function ad(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function ts(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function tj(t,l){let o,r,c,s,f,h,x,m;-1.88170328*t-.80936493*l>1?(o=1.19086277,r=1.76576728,c=.59662641,s=.75515197,f=.56771245,h=4.0767416621,x=-3.3077115913,m=.2309699292):1.81444104*t-1.19445276*l>1?(o=.73956515,r=-.45954404,c=.08285427,s=.1254107,f=.14503204,h=-1.2684380046,x=2.6097574011,m=-.3413193965):(o=1.35733652,r=-.00915799,c=-1.1513021,s=-.50559606,f=.00692167,h=-.0041960863,x=-.7034186147,m=1.707614701);let v=o+r*t+c*l+s*t*t+f*t*l,b=.3963377774*t+.2158037573*l,C=-.1055613458*t-.0638541728*l,S=-.0894841775*t-1.291485548*l;{let M=1+v*b,w=1+v*C,E=1+v*S,R=M*M*M,T=w*w*w,_=E*E*E,O=3*b*M*M,k=3*C*w*w,Z=3*S*E*E,z=6*b*b*M,J=6*C*C*w,F=6*S*S*E,ce=h*R+x*T+m*_,ne=h*O+x*k+m*Z,W=h*z+x*J+m*F;v=v-ce*ne/(ne*ne-.5*ce*W)}return v}function Gd(t,l){let o=tj(t,l),r=ti({l:1,a:o*t,b:o*l}),c=Math.cbrt(1/Math.max(r.r,r.g,r.b)),s=c*o;return[c,s]}function nj(t,l,o,r,c,s=null){s||(s=Gd(t,l));let f;if((o-c)*s[1]-(s[0]-c)*r<=0)f=s[1]*c/(r*s[0]+s[1]*(c-o));else{f=s[1]*(c-1)/(r*(s[0]-1)+s[1]*(c-o));{let h=o-c,x=r,m=.3963377774*t+.2158037573*l,v=-.1055613458*t-.0638541728*l,b=-.0894841775*t-1.291485548*l,C=h+x*m,S=h+x*v,M=h+x*b;{let w=c*(1-f)+f*o,E=f*r,R=w+E*m,T=w+E*v,_=w+E*b,O=R*R*R,k=T*T*T,Z=_*_*_,z=3*C*R*R,J=3*S*T*T,F=3*M*_*_,ce=6*C*C*R,ne=6*S*S*T,W=6*M*M*_,ae=4.0767416621*O-3.3077115913*k+.2309699292*Z-1,oe=4.0767416621*z-3.3077115913*J+.2309699292*F,me=4.0767416621*ce-3.3077115913*ne+.2309699292*W,H=oe/(oe*oe-.5*ae*me),D=-ae*H,K=-1.2684380046*O+2.6097574011*k-.3413193965*Z-1,se=-1.2684380046*z+2.6097574011*J-.3413193965*F,he=-1.2684380046*ce+2.6097574011*ne-.3413193965*W,L=se/(se*se-.5*K*he),Y=-K*L,te=-.0041960863*O-.7034186147*k+1.707614701*Z-1,le=-.0041960863*z-.7034186147*J+1.707614701*F,fe=-.0041960863*ce-.7034186147*ne+1.707614701*W,I=le/(le*le-.5*te*fe),Q=-te*I;D=H>=0?D:1e6,Y=L>=0?Y:1e6,Q=I>=0?Q:1e6,f+=Math.min(D,Math.min(Y,Q))}}}return f}function Qd(t,l,o=null){o||(o=Gd(t,l));let r=o[0],c=o[1];return[c/r,c/(1-r)]}function A7(t,l,o){let r=Gd(l,o),c=nj(l,o,t,1,t,r),s=Qd(l,o,r),f=.11516993+1/(7.4477897+4.1590124*o+l*(-2.19557347+1.75198401*o+l*(-2.13704948-10.02301043*o+l*(-4.24894561+5.38770819*o+4.69891013*l)))),h=.11239642+1/(1.6132032-.68124379*o+l*(.40370612+.90148123*o+l*(-.27087943+.6122399*o+l*(.00299215-.45399568*o-.14661872*l)))),x=c/Math.min(t*s[0],(1-t)*s[1]),m=t*f,v=(1-t)*h,b=.9*x*Math.sqrt(Math.sqrt(1/(1/(m*m*m*m)+1/(v*v*v*v))));return m=t*.4,v=(1-t)*.8,[Math.sqrt(1/(1/(m*m)+1/(v*v))),b,c]}function sp(t){const l=t.l!==void 0?t.l:0,o=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,c={mode:"okhsl",l:ad(l)};t.alpha!==void 0&&(c.alpha=t.alpha);let s=Math.sqrt(o*o+r*r);if(!s)return c.s=0,c;let[f,h,x]=A7(l,o/s,r/s),m;if(s<h){let v=0,b=.8*f,C=1-b/h;m=(s-v)/(b+C*(s-v))*.8}else{let v=h,b=.2*h*h*1.25*1.25/f,C=1-b/(x-h);m=.8+.2*((s-v)/(b+C*(s-v)))}return m&&(c.s=m,c.h=jt(Math.atan2(r,o)*180/Math.PI)),c}function up(t){let l=t.h!==void 0?t.h:0,o=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const c={mode:"oklab",l:ts(r)};if(t.alpha!==void 0&&(c.alpha=t.alpha),!o||r===1)return c.a=c.b=0,c;let s=Math.cos(l/180*Math.PI),f=Math.sin(l/180*Math.PI),[h,x,m]=A7(c.l,s,f),v,b,C,S;o<.8?(v=1.25*o,b=0,C=.8*h,S=1-C/x):(v=5*(o-.8),b=x,C=.2*x*x*1.25*1.25/h,S=1-C/(m-x));let M=b+v*C/(1-S*v);return c.a=M*s,c.b=M*f,c}const lj={...m7,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:sp,rgb:t=>sp(_s(t))},toMode:{oklab:up,rgb:t=>Ns(up(t))}};function dp(t){let l=t.l!==void 0?t.l:0,o=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,c=Math.sqrt(o*o+r*r),s=c?o/c:1,f=c?r/c:1,[h,x]=Qd(s,f),m=.5,v=1-m/h,b=x/(c+l*x),C=b*l,S=b*c,M=ts(C),w=S*M/C,E=ti({l:M,a:s*w,b:f*w}),R=Math.cbrt(1/Math.max(E.r,E.g,E.b,0));l=l/R,c=c/R*ad(l)/l,l=ad(l);const T={mode:"okhsv",s:c?(m+x)*S/(x*m+x*v*S):0,v:l?l/C:0};return T.s&&(T.h=jt(Math.atan2(r,o)*180/Math.PI)),t.alpha!==void 0&&(T.alpha=t.alpha),T}function fp(t){const l={mode:"oklab"};t.alpha!==void 0&&(l.alpha=t.alpha);const o=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,c=t.v!==void 0?t.v:0,s=Math.cos(o/180*Math.PI),f=Math.sin(o/180*Math.PI),[h,x]=Qd(s,f),m=.5,v=1-m/h,b=1-r*m/(m+x-x*v*r),C=r*x*m/(m+x-x*v*r),S=ts(b),M=C*S/b,w=ti({l:S,a:s*M,b:f*M}),E=Math.cbrt(1/Math.max(w.r,w.g,w.b,0)),R=ts(c*b),T=C*R/b;return l.l=R*E,l.a=T*s*E,l.b=T*f*E,l}const aj={...y7,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:dp,rgb:t=>dp(_s(t))},toMode:{oklab:fp,rgb:t=>Ns(fp(t))}};function oj(t,l){if(!l||l[0]!=="oklab")return;const o={mode:"oklab"},[,r,c,s,f]=l;if(!(r.type===ee.Hue||c.type===ee.Hue||s.type===ee.Hue))return r.type!==ee.None&&(o.l=Math.min(Math.max(0,r.type===ee.Number?r.value:r.value/100),1)),c.type!==ee.None&&(o.a=c.type===ee.Number?c.value:c.value*.4/100),s.type!==ee.None&&(o.b=s.type===ee.Number?s.value:s.value*.4/100),f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const rj={...qd,mode:"oklab",toMode:{lrgb:ti,rgb:Ns},fromMode:{lrgb:O7,rgb:_s},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[oj],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`};function ij(t,l){if(!l||l[0]!=="oklch")return;const o={mode:"oklch"},[,r,c,s,f]=l;if(r.type!==ee.None){if(r.type===ee.Hue)return;o.l=Math.min(Math.max(0,r.type===ee.Number?r.value:r.value/100),1)}if(c.type!==ee.None&&(o.c=Math.max(0,c.type===ee.Number?c.value:c.value*.4/100)),s.type!==ee.None){if(s.type===ee.Percentage)return;o.h=s.value}return f.type!==ee.None&&(o.alpha=Math.min(1,Math.max(0,f.type===ee.Number?f.value:f.value/100))),o}const cj={...Xd,mode:"oklch",toMode:{oklab:t=>kl(t,"oklab"),rgb:t=>Ns(kl(t,"oklab"))},fromMode:{rgb:t=>Vl(_s(t),"oklch"),oklab:t=>Vl(t,"oklch")},parse:[ij],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},pp=t=>{let{r:l,g:o,b:r,alpha:c}=To(t),s={mode:"xyz65",x:.486570948648216*l+.265667693169093*o+.1982172852343625*r,y:.2289745640697487*l+.6917385218365062*o+.079286914093745*r,z:0*l+.0451133818589026*o+1.043944368900976*r};return c!==void 0&&(s.alpha=c),s},hp=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c=Ro({r:t*2.4934969119414263-l*.9313836179191242-.402710784450717*o,g:t*-.8294889695615749+l*1.7626640603183465+.0236246858419436*o,b:t*.0358458302437845-l*.0761723892680418+.9568845240076871*o},"p3");return r!==void 0&&(c.alpha=r),c},sj={...Eo,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>hp(ma(t)),xyz65:hp},toMode:{rgb:t=>xa(pp(t)),xyz65:pp}},E0=t=>{let l=Math.abs(t);return l>=1/512?Math.sign(t)*Math.pow(l,1/1.8):16*t},gp=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c={mode:"prophoto",r:E0(t*1.3457868816471585-l*.2555720873797946-.0511018649755453*o),g:E0(t*-.5446307051249019+l*1.5082477428451466+.0205274474364214*o),b:E0(t*0+l*0+1.2119675456389452*o)};return r!==void 0&&(c.alpha=r),c},T0=(t=0)=>{let l=Math.abs(t);return l>=16/512?Math.sign(t)*Math.pow(l,1.8):t/16},mp=t=>{let l=T0(t.r),o=T0(t.g),r=T0(t.b),c={mode:"xyz50",x:.7977666449006423*l+.1351812974005331*o+.0313477341283922*r,y:.2880748288194013*l+.7118352342418731*o+899369387256e-16*r,z:0*l+0*o+.8251046025104602*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},uj={...Eo,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:gp,rgb:t=>gp(ei(t))},toMode:{xyz50:mp,rgb:t=>Ir(mp(t))}},xp=1.09929682680944,dj=.018053968510807,R0=t=>{const l=Math.abs(t);return l>dj?(Math.sign(t)||1)*(xp*Math.pow(l,.45)-(xp-1)):4.5*t},vp=({x:t,y:l,z:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);let c={mode:"rec2020",r:R0(t*1.7166511879712683-l*.3556707837763925-.2533662813736599*o),g:R0(t*-.6666843518324893+l*1.6164812366349395+.0157685458139111*o),b:R0(t*.0176398574453108-l*.0427706132578085+.9421031212354739*o)};return r!==void 0&&(c.alpha=r),c},yp=1.09929682680944,fj=.018053968510807,_0=(t=0)=>{let l=Math.abs(t);return l<fj*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((l+yp-1)/yp,1/.45)},bp=t=>{let l=_0(t.r),o=_0(t.g),r=_0(t.b),c={mode:"xyz65",x:.6369580483012911*l+.1446169035862083*o+.1688809751641721*r,y:.262700212011267*l+.6779980715188708*o+.059301716469862*r,z:0*l+.0280726930490874*o+1.0609850577107909*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},pj={...Eo,mode:"rec2020",fromMode:{xyz65:vp,rgb:t=>vp(ma(t))},toMode:{xyz65:bp,rgb:t=>xa(bp(t))},parse:["rec2020"],serialize:"rec2020"},sa=.0037930732552754493,z7=Math.cbrt(sa),N0=t=>Math.cbrt(t)-z7,hj=t=>{const{r:l,g:o,b:r,alpha:c}=To(t),s=N0(.3*l+.622*o+.078*r+sa),f=N0(.23*l+.692*o+.078*r+sa),h=N0(.2434226892454782*l+.2047674442449682*o+.5518098665095535*r+sa),x={mode:"xyb",x:(s-f)/2,y:(s+f)/2,b:h-(s+f)/2};return c!==void 0&&(x.alpha=c),x},L0=t=>Math.pow(t+z7,3),gj=({x:t,y:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);const c=L0(t+l)-sa,s=L0(l-t)-sa,f=L0(o+l)-sa,h=Ro({r:11.031566904639861*c-9.866943908131562*s-.16462299650829934*f,g:-3.2541473810744237*c+4.418770377582723*s-.16462299650829934*f,b:-3.6588512867136815*c+2.7129230459360922*s+1.9459282407775895*f});return r!==void 0&&(h.alpha=r),h},mj={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:gj},fromMode:{rgb:hj},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:re,y:re,b:re,alpha:{use:re,fixup:pt}}},xj={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Ir,lab:Yd},fromMode:{rgb:ei,lab:Pd},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:re,y:re,z:re,alpha:{use:re,fixup:pt}}},vj=t=>{let{x:l,y:o,z:r,alpha:c}=t;l===void 0&&(l=0),o===void 0&&(o=0),r===void 0&&(r=0);let s={mode:"xyz50",x:1.0479298208405488*l+.0229467933410191*o-.0501922295431356*r,y:.0296278156881593*l+.990434484573249*o-.0170738250293851*r,z:-.0092430581525912*l+.0150551448965779*o+.7518742899580008*r};return c!==void 0&&(s.alpha=c),s},yj=t=>{let{x:l,y:o,z:r,alpha:c}=t;l===void 0&&(l=0),o===void 0&&(o=0),r===void 0&&(r=0);let s={mode:"xyz65",x:.9554734527042182*l-.0230985368742614*o+.0632593086610217*r,y:-.0283697069632081*l+1.0099954580058226*o+.021041398966943*r,z:.0123140016883199*l-.0205076964334779*o+1.3303659366080753*r};return c!==void 0&&(s.alpha=c),s},bj={mode:"xyz65",toMode:{rgb:xa,xyz50:vj},fromMode:{rgb:ma,xyz50:yj},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:re,y:re,z:re,alpha:{use:re,fixup:pt}}},Cj=({r:t,g:l,b:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);const c={mode:"yiq",y:.29889531*t+.58662247*l+.11448223*o,i:.59597799*t-.2741761*l-.32180189*o,q:.21147017*t-.52261711*l+.31114694*o};return r!==void 0&&(c.alpha=r),c},wj=({y:t,i:l,q:o,alpha:r})=>{t===void 0&&(t=0),l===void 0&&(l=0),o===void 0&&(o=0);const c={mode:"rgb",r:t+.95608445*l+.6208885*o,g:t-.27137664*l-.6486059*o,b:t-1.10561724*l+1.70250126*o};return r!==void 0&&(c.alpha=r),c},Sj={mode:"yiq",toMode:{rgb:wj},fromMode:{rgb:Cj},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:re,i:re,q:re,alpha:{use:re,fixup:pt}}},jj=t=>Math.max(0,Math.min(1,t||0)),O0=t=>Math.round(jj(t)*255),Mj=ga("rgb"),Ej=t=>{if(t===void 0)return;let l=O0(t.r),o=O0(t.g),r=O0(t.b);return"#"+(1<<24|l<<16|o<<8|r).toString(16).slice(1)},Tj=t=>Ej(Mj(t));Ve(uS);Ve(xS);Ve(vS);Ve(yS);Ve(wS);Ve(m7);Ve(y7);Ve(OS);Ve(AS);Ve(kS);Ve(DS);Ve(qd);Ve(BS);Ve(Xd);Ve(US);Ve(WS);Ve(IS);Ve(ej);Ve(lj);Ve(aj);Ve(rj);Ve(cj);Ve(sj);Ve(uj);Ve(pj);Ve(Eo);Ve(mj);Ve(xj);Ve(bj);Ve(Sj);const Rj=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"hsl",label:"HSL"},{value:"oklch",label:"OKLCH"}],Dc=ga("rgb"),_j=ga("hsl"),Nj=ga("oklch");function Fe(t,l,o){return Math.min(o,Math.max(l,t))}function H7(t){const l=t.match(/rgba?\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*(?:\/\s*([\d.]+%?))?\s*\)/);if(l){const c=l[4]?l[4].endsWith("%")?parseFloat(l[4])/100:parseFloat(l[4]):1;return{r:Fe(Math.round(parseFloat(l[1])),0,255),g:Fe(Math.round(parseFloat(l[2])),0,255),b:Fe(Math.round(parseFloat(l[3])),0,255),a:Fe(c,0,1)}}const o=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(o)return{r:Fe(Math.round(parseFloat(o[1])),0,255),g:Fe(Math.round(parseFloat(o[2])),0,255),b:Fe(Math.round(parseFloat(o[3])),0,255),a:Fe(parseFloat(o[4]??"1"),0,1)};const r=Dc(t);return r?{r:Math.round((r.r??0)*255),g:Math.round((r.g??0)*255),b:Math.round((r.b??0)*255),a:r.alpha??1}:{r:0,g:0,b:0,a:1}}function $c(t){if(t.a>=1)return`rgb(${t.r} ${t.g} ${t.b})`;const l=Math.round(t.a*100)/100;return`rgb(${t.r} ${t.g} ${t.b} / ${l})`}function V7(t){return{mode:"rgb",r:t.r/255,g:t.g/255,b:t.b/255,alpha:t.a}}function Cp(t){return Tj(V7(t))??"#000000"}function jn({label:t,value:l,onChange:o,min:r=0,max:c=255,suffix:s}){return u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[u.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:t}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("input",{type:"text",inputMode:"decimal",value:l,onChange:f=>o(f.target.value),onBlur:f=>{const h=parseFloat(f.target.value);isNaN(h)||o(String(Fe(h,r,c)))},className:"studio-input",style:{width:"100%",fontSize:10,paddingRight:s?16:void 0}}),s&&u.jsx("span",{style:{position:"absolute",right:5,top:"50%",transform:"translateY(-50%)",fontSize:9,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:s})]})]})}function Nc({color:t,onChange:l}){return u.jsx(jn,{label:"A",value:String(Math.round(t.a*100)),onChange:o=>{const r=parseInt(o);isNaN(r)||l({...t,a:Fe(r,0,100)/100})},max:100,suffix:"%"})}function k7({color:t,onChange:l,mode:o}){const[r,c]=g.useState(Cp(t).replace("#",""));g.useEffect(()=>{c(Cp(t).replace("#",""))},[t.r,t.g,t.b]);const s=V7(t),f=C=>{const S=C.replace(/[^0-9a-fA-F]/g,"").slice(0,6);if(c(S),S.length===6||S.length===3){const M=Dc(`#${S}`);M&&l({r:Math.round((M.r??0)*255),g:Math.round((M.g??0)*255),b:Math.round((M.b??0)*255),a:t.a})}};if(o==="hex")return u.jsxs("div",{style:{display:"flex",gap:6,alignItems:"flex-end"},children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[u.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:"Hex"}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("span",{style:{position:"absolute",left:6,top:"50%",transform:"translateY(-50%)",fontSize:10,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:"#"}),u.jsx("input",{type:"text",value:r,onChange:C=>f(C.target.value),onBlur:()=>f(r),className:"studio-input",style:{width:"100%",fontSize:10,paddingLeft:14,textTransform:"uppercase"},maxLength:6})]})]}),u.jsx(Nc,{color:t,onChange:l})]});if(o==="rgb")return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(jn,{label:"R",value:String(t.r),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||l({...t,r:Fe(S,0,255)})}}),u.jsx(jn,{label:"G",value:String(t.g),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||l({...t,g:Fe(S,0,255)})}}),u.jsx(jn,{label:"B",value:String(t.b),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||l({...t,b:Fe(S,0,255)})}}),u.jsx(Nc,{color:t,onChange:l})]});if(o==="hsl"){const C=_j(s),S=Math.round((C==null?void 0:C.h)??0),M=Math.round(((C==null?void 0:C.s)??0)*100),w=Math.round(((C==null?void 0:C.l)??0)*100),E=(R,T)=>{const _=parseFloat(T);if(isNaN(_))return;const O=R==="h"?Fe(_,0,360):(C==null?void 0:C.h)??0,k=R==="s"?Fe(_,0,100)/100:(C==null?void 0:C.s)??0,Z=R==="l"?Fe(_,0,100)/100:(C==null?void 0:C.l)??0,z=Dc({mode:"hsl",h:O,s:k,l:Z});z&&l({r:Math.round((z.r??0)*255),g:Math.round((z.g??0)*255),b:Math.round((z.b??0)*255),a:t.a})};return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(jn,{label:"H",value:String(S),max:360,suffix:"°",onChange:R=>E("h",R)}),u.jsx(jn,{label:"S",value:String(M),max:100,suffix:"%",onChange:R=>E("s",R)}),u.jsx(jn,{label:"L",value:String(w),max:100,suffix:"%",onChange:R=>E("l",R)}),u.jsx(Nc,{color:t,onChange:l})]})}const h=Nj(s),x=Math.round(((h==null?void 0:h.l)??0)*100),m=(h==null?void 0:h.c)??0,v=Math.round((h==null?void 0:h.h)??0),b=(C,S)=>{const M=parseFloat(S);if(isNaN(M))return;const w=C==="l"?Fe(M,0,100)/100:(h==null?void 0:h.l)??0,E=C==="c"?Fe(M,0,.4):(h==null?void 0:h.c)??0,R=C==="h"?Fe(M,0,360):(h==null?void 0:h.h)??0,T=Dc({mode:"oklch",l:w,c:E,h:R});T&&l({r:Fe(Math.round((T.r??0)*255),0,255),g:Fe(Math.round((T.g??0)*255),0,255),b:Fe(Math.round((T.b??0)*255),0,255),a:t.a})};return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(jn,{label:"L",value:String(x),max:100,suffix:"%",onChange:C=>b("l",C)}),u.jsx(jn,{label:"C",value:m.toFixed(3),min:0,max:.4,step:.001,onChange:C=>b("c",C)}),u.jsx(jn,{label:"H",value:String(v),max:360,suffix:"°",onChange:C=>b("h",C)}),u.jsx(Nc,{color:t,onChange:l})]})}function D7({mode:t,onChange:l}){return u.jsx("div",{style:{display:"flex",borderRadius:4,background:"var(--studio-input-bg)",padding:2},children:Rj.map(o=>u.jsx("button",{type:"button",onClick:()=>l(o.value),style:{flex:1,padding:"2px 4px",fontSize:9,fontWeight:500,borderRadius:3,border:"none",cursor:"pointer",transition:"background 0.1s, color 0.1s",background:t===o.value?"var(--studio-surface-hover)":"transparent",color:t===o.value?"var(--studio-text)":"var(--studio-text-dimmed)",boxShadow:t===o.value?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:o.label},o.value))})}function Ls(){return(Ls=Object.assign||function(t){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function $7(t,l){if(t==null)return{};var o,r,c={},s=Object.keys(t);for(r=0;r<s.length;r++)l.indexOf(o=s[r])>=0||(c[o]=t[o]);return c}function od(t){var l=g.useRef(t),o=g.useRef(function(r){l.current&&l.current(r)});return l.current=t,o.current}var yo=function(t,l,o){return l===void 0&&(l=0),o===void 0&&(o=1),t>o?o:t<l?l:t},Vr=function(t){return"touches"in t},rd=function(t){return t&&t.ownerDocument.defaultView||self},wp=function(t,l,o){var r=t.getBoundingClientRect(),c=Vr(l)?(function(s,f){for(var h=0;h<s.length;h++)if(s[h].identifier===f)return s[h];return s[0]})(l.touches,o):l;return{left:yo((c.pageX-(r.left+rd(t).pageXOffset))/r.width),top:yo((c.pageY-(r.top+rd(t).pageYOffset))/r.height)}},Sp=function(t){!Vr(t)&&t.preventDefault()},Kd=$e.memo(function(t){var l=t.onMove,o=t.onKey,r=$7(t,["onMove","onKey"]),c=g.useRef(null),s=od(l),f=od(o),h=g.useRef(null),x=g.useRef(!1),m=g.useMemo(function(){var S=function(E){Sp(E),(Vr(E)?E.touches.length>0:E.buttons>0)&&c.current?s(wp(c.current,E,h.current)):w(!1)},M=function(){return w(!1)};function w(E){var R=x.current,T=rd(c.current),_=E?T.addEventListener:T.removeEventListener;_(R?"touchmove":"mousemove",S),_(R?"touchend":"mouseup",M)}return[function(E){var R=E.nativeEvent,T=c.current;if(T&&(Sp(R),!(function(O,k){return k&&!Vr(O)})(R,x.current)&&T)){if(Vr(R)){x.current=!0;var _=R.changedTouches||[];_.length&&(h.current=_[0].identifier)}T.focus(),s(wp(T,R,h.current)),w(!0)}},function(E){var R=E.which||E.keyCode;R<37||R>40||(E.preventDefault(),f({left:R===39?.05:R===37?-.05:0,top:R===40?.05:R===38?-.05:0}))},w]},[f,s]),v=m[0],b=m[1],C=m[2];return g.useEffect(function(){return C},[C]),$e.createElement("div",Ls({},r,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:c,onKeyDown:b,tabIndex:0,role:"slider"}))}),Os=function(t){return t.filter(Boolean).join(" ")},Fd=function(t){var l=t.color,o=t.left,r=t.top,c=r===void 0?.5:r,s=Os(["react-colorful__pointer",t.className]);return $e.createElement("div",{className:s,style:{top:100*c+"%",left:100*o+"%"}},$e.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},_t=function(t,l,o){return l===void 0&&(l=0),o===void 0&&(o=Math.pow(10,l)),Math.round(o*t)/o},B7=function(t){var l=t.s,o=t.v,r=t.a,c=(200-l)*o/100;return{h:_t(t.h),s:_t(c>0&&c<200?l*o/100/(c<=100?c:200-c)*100:0),l:_t(c/2),a:_t(r,2)}},id=function(t){var l=B7(t);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},A0=function(t){var l=B7(t);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},Lj=function(t){var l=t.h,o=t.s,r=t.v,c=t.a;l=l/360*6,o/=100,r/=100;var s=Math.floor(l),f=r*(1-o),h=r*(1-(l-s)*o),x=r*(1-(1-l+s)*o),m=s%6;return{r:_t(255*[r,h,f,f,x,r][m]),g:_t(255*[x,r,r,h,f,f][m]),b:_t(255*[f,f,x,r,r,h][m]),a:_t(c,2)}},Oj=function(t){var l=t.r,o=t.g,r=t.b,c=t.a,s=Math.max(l,o,r),f=s-Math.min(l,o,r),h=f?s===l?(o-r)/f:s===o?2+(r-l)/f:4+(l-o)/f:0;return{h:_t(60*(h<0?h+6:h)),s:_t(s?f/s*100:0),v:_t(s/255*100),a:c}},Aj=$e.memo(function(t){var l=t.hue,o=t.onChange,r=Os(["react-colorful__hue",t.className]);return $e.createElement("div",{className:r},$e.createElement(Kd,{onMove:function(c){o({h:360*c.left})},onKey:function(c){o({h:yo(l+360*c.left,0,360)})},"aria-label":"Hue","aria-valuenow":_t(l),"aria-valuemax":"360","aria-valuemin":"0"},$e.createElement(Fd,{className:"react-colorful__hue-pointer",left:l/360,color:id({h:l,s:100,v:100,a:1})})))}),zj=$e.memo(function(t){var l=t.hsva,o=t.onChange,r={backgroundColor:id({h:l.h,s:100,v:100,a:1})};return $e.createElement("div",{className:"react-colorful__saturation",style:r},$e.createElement(Kd,{onMove:function(c){o({s:100*c.left,v:100-100*c.top})},onKey:function(c){o({s:yo(l.s+100*c.left,0,100),v:yo(l.v-100*c.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+_t(l.s)+"%, Brightness "+_t(l.v)+"%"},$e.createElement(Fd,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:id(l)})))}),Z7=function(t,l){if(t===l)return!0;for(var o in t)if(t[o]!==l[o])return!1;return!0};function Hj(t,l,o){var r=od(o),c=g.useState(function(){return t.toHsva(l)}),s=c[0],f=c[1],h=g.useRef({color:l,hsva:s});g.useEffect(function(){if(!t.equal(l,h.current.color)){var m=t.toHsva(l);h.current={hsva:m,color:l},f(m)}},[l,t]),g.useEffect(function(){var m;Z7(s,h.current.hsva)||t.equal(m=t.fromHsva(s),h.current.color)||(h.current={hsva:s,color:m},r(m))},[s,t,r]);var x=g.useCallback(function(m){f(function(v){return Object.assign({},v,m)})},[]);return[s,x]}var Vj=typeof window<"u"?g.useLayoutEffect:g.useEffect,kj=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},jp=new Map,Dj=function(t){Vj(function(){var l=t.current?t.current.ownerDocument:document;if(l!==void 0&&!jp.has(l)){var o=l.createElement("style");o.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,jp.set(l,o);var r=kj();r&&o.setAttribute("nonce",r),l.head.appendChild(o)}},[])},$j=function(t){var l=t.className,o=t.hsva,r=t.onChange,c={backgroundImage:"linear-gradient(90deg, "+A0(Object.assign({},o,{a:0}))+", "+A0(Object.assign({},o,{a:1}))+")"},s=Os(["react-colorful__alpha",l]),f=_t(100*o.a);return $e.createElement("div",{className:s},$e.createElement("div",{className:"react-colorful__alpha-gradient",style:c}),$e.createElement(Kd,{onMove:function(h){r({a:h.left})},onKey:function(h){r({a:yo(o.a+h.left)})},"aria-label":"Alpha","aria-valuetext":f+"%","aria-valuenow":f,"aria-valuemin":"0","aria-valuemax":"100"},$e.createElement(Fd,{className:"react-colorful__alpha-pointer",left:o.a,color:A0(o)})))},Bj=function(t){var l=t.className,o=t.colorModel,r=t.color,c=r===void 0?o.defaultColor:r,s=t.onChange,f=$7(t,["className","colorModel","color","onChange"]),h=g.useRef(null);Dj(h);var x=Hj(o,c,s),m=x[0],v=x[1],b=Os(["react-colorful",l]);return $e.createElement("div",Ls({},f,{ref:h,className:b}),$e.createElement(zj,{hsva:m,onChange:v}),$e.createElement(Aj,{hue:m.h,onChange:v}),$e.createElement($j,{hsva:m,onChange:v,className:"react-colorful__last-control"}))},Zj={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Oj,fromHsva:Lj,equal:Z7},U7=function(t){return $e.createElement(Bj,Ls({},t,{colorModel:Zj}))};const Uj=ga("rgb"),Mp=ga("oklch");function cd(t){const l=t.match(/oklch\(\s*([\d.]+)(%?)\s+([\d.]+)\s+([\d.]+)\s*\)/);return l?{l:l[2]==="%"?parseFloat(l[1])/100:parseFloat(l[1]),c:parseFloat(l[3]),h:parseFloat(l[4])}:{l:.5,c:.1,h:250}}function ns(t){return`oklch(${t.l.toFixed(3)} ${t.c.toFixed(3)} ${t.h.toFixed(1)})`}function Pj(t,l){try{const o=cd(t).l,r=cd(l).l,c=Math.max(o,r),s=Math.min(o,r);return(c+.05)/(s+.05)}catch{return null}}function Yj({color:t,label:l}){return u.jsxs("button",{type:"button",className:"studio-scrub-input",style:{cursor:"pointer"},children:[u.jsx("div",{style:{width:18,height:18,borderRadius:4,margin:6,marginRight:0,alignSelf:"stretch",flexShrink:0,background:t||"transparent",backgroundImage:t?`linear-gradient(${t}, ${t}), linear-gradient(45deg, #1a1a24 25%, transparent 25%), linear-gradient(-45deg, #1a1a24 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1a1a24 75%), linear-gradient(-45deg, transparent 75%, #1a1a24 75%)`:void 0,backgroundSize:t?"cover, 6px 6px, 6px 6px, 6px 6px, 6px 6px":void 0,backgroundPosition:t?"0 0, 0 0, 0 3px, 3px -3px, -3px 0":void 0}}),u.jsx("span",{className:"studio-scrub-value",style:{color:"var(--studio-text)",userSelect:"none",textAlign:"left"},children:l||t})]})}function qj({tokens:t,activeToken:l,onSelect:o}){const[r,c]=g.useState(""),s=g.useMemo(()=>{if(!r)return t;const f=r.toLowerCase();return t.filter(h=>h.name.toLowerCase().includes(f))},[t,r]);return u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[u.jsx("input",{type:"text",value:r,onChange:f=>c(f.target.value),placeholder:"Search tokens...",className:"studio-input-sm",style:{fontSize:11},autoFocus:!0}),u.jsxs("div",{className:"studio-popover-list",children:[s.map(f=>u.jsxs("button",{className:`studio-popover-item ${f.name===l?"active":""}`,onClick:()=>o(f.name),children:[u.jsx("div",{className:"studio-swatch",style:{"--swatch-color":f.value}}),u.jsx("span",{className:"truncate",children:f.name})]},f.name)),s.length===0&&u.jsx("div",{style:{fontSize:10,color:"var(--studio-text-dimmed)",padding:"8px 8px",textAlign:"center"},children:"No matching tokens"})]})]})}function Xj({rgba:t,onPickerChange:l,onFieldsChange:o,tokenName:r,contrastToken:c,currentOklch:s,onSave:f}){const[h,x]=g.useState("hex"),m=c&&s?Pj(c.value,ns(s)):null;return u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[r&&u.jsxs("div",{className:"flex items-center justify-between px-1",children:[u.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:r.replace(/^--/,"")}),m!==null&&u.jsxs("span",{className:"text-[9px] font-mono px-1.5 py-0.5 rounded",style:{color:m>=7?"var(--studio-success)":m>=4.5?"var(--studio-warning)":"var(--studio-danger)",background:"var(--studio-input-bg)"},children:[m.toFixed(1),":1"]})]}),u.jsx("div",{className:"studio-color-picker",children:u.jsx(U7,{color:t,onChange:l})}),u.jsx(D7,{mode:h,onChange:x}),u.jsx(k7,{color:t,onChange:o,mode:h}),f&&s&&u.jsx("button",{onClick:()=>f(ns(s)),className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save"})]})}function Gj({activeTab:t,onChange:l}){return u.jsx("div",{style:{display:"flex",borderRadius:4,background:"var(--studio-input-bg)",padding:2,marginBottom:8},children:["tokens","custom"].map(o=>u.jsx("button",{type:"button",onClick:()=>l(o),style:{flex:1,padding:"3px 4px",fontSize:10,fontWeight:500,borderRadius:3,border:"none",cursor:"pointer",transition:"background 0.1s, color 0.1s",background:t===o?"var(--studio-surface-hover)":"transparent",color:t===o?"var(--studio-text)":"var(--studio-text-dimmed)",boxShadow:t===o?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:o==="custom"?"Custom":"Tokens"},o))})}function In({color:t,label:l,onChange:o,onCommit:r,tabs:c="custom",defaultTab:s,tokens:f,activeToken:h,onSelectToken:x,tokenName:m,contrastToken:v,onSave:b}){const C=s||(c==="custom"?"custom":"tokens"),[S,M]=g.useState(C),[w,E]=g.useState(!1),[R,T]=g.useState(null),_=g.useRef(null),O=g.useRef(!1),k=(()=>{if(_.current)return _.current;if(R){const W=Uj({mode:"oklch",l:R.l,c:R.c,h:R.h});if(W)return{r:Fe(Math.round((W.r??0)*255),0,255),g:Fe(Math.round((W.g??0)*255),0,255),b:Fe(Math.round((W.b??0)*255),0,255),a:1}}return H7(t)})(),Z=g.useCallback(W=>{if(_.current=W,b){const ae=Mp({mode:"rgb",r:W.r/255,g:W.g/255,b:W.b/255});if(ae){const oe={l:ae.l??.5,c:ae.c??.1,h:ae.h??0};T(oe),o==null||o(ns(oe))}}else o==null||o($c(W))},[o,b]),z=g.useCallback(W=>{if(_.current=null,b){const ae=Mp({mode:"rgb",r:W.r/255,g:W.g/255,b:W.b/255});if(ae){const oe={l:ae.l??.5,c:ae.c??.1,h:ae.h??0};T(oe),o==null||o(ns(oe))}}else{const ae=$c(W);o==null||o(ae),r==null||r(ae)}},[o,r,b]),J=g.useCallback(W=>{if(W)O.current=!1,_.current=null,b&&T(cd(t)),M(C);else if(!O.current&&_.current&&!b){const ae=$c(_.current);r==null||r(ae)}E(W)},[t,C,b,r]),F=g.useCallback(W=>{O.current=!0,b==null||b(W),E(!1)},[b]),ce=g.useCallback(W=>{x==null||x(W),E(!1)},[x]),ne=c==="both";return u.jsxs(zd,{open:w,onOpenChange:J,children:[u.jsx(Hd,{asChild:!0,children:u.jsx("div",{children:u.jsx(Yj,{color:t,label:l})})}),u.jsx(Vd,{children:u.jsxs(kd,{side:"left",sideOffset:8,collisionPadding:12,style:{width:260,padding:10,background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3)",zIndex:1e4,display:"flex",flexDirection:"column"},children:[ne&&u.jsx(Gj,{activeTab:S,onChange:M}),S==="custom"&&u.jsx(Xj,{rgba:k,onPickerChange:Z,onFieldsChange:z,tokenName:m,contrastToken:v,currentOklch:R,onSave:b?F:void 0}),S==="tokens"&&f&&u.jsx(qj,{tokens:f,activeToken:h,onSelect:ce})]})})]})}function P7({color:t,onChange:l}){const o=H7(t),[r,c]=g.useState("hex"),s=g.useCallback(f=>l($c(f)),[l]);return u.jsxs(zd,{children:[u.jsx(Hd,{asChild:!0,children:u.jsx("button",{type:"button",style:{width:24,height:24,borderRadius:4,border:"1px solid var(--studio-border-subtle)",background:t,cursor:"pointer",padding:0,flexShrink:0}})}),u.jsx(Vd,{children:u.jsxs(kd,{side:"left",sideOffset:8,collisionPadding:12,style:{width:232,padding:12,background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3)",zIndex:1e4,display:"flex",flexDirection:"column",gap:10},children:[u.jsx("div",{className:"studio-color-picker",children:u.jsx(U7,{color:o,onChange:s})}),u.jsx(D7,{mode:r,onChange:c}),u.jsx(k7,{color:o,onChange:s,mode:r})]})})]})}function Xe({label:t,inherited:l,noMargin:o}){return u.jsxs("div",{className:`text-[10px] font-medium ${o?"":"mb-1.5"}`,style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[t,l&&u.jsx("span",{className:"ml-1 text-[10px] italic",style:{color:"var(--studio-text-dimmed)"},children:"inherited"})]})}function Y7({label:t,expanded:l,onToggle:o,tooltip:r,icon:c}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Xe,{label:t,noMargin:!0}),u.jsx(ft,{content:l?r.expanded:r.collapsed,children:u.jsx("button",{onClick:o,className:"studio-icon-btn",style:{width:20,height:20},children:l?c.expanded:c.collapsed})})]})}function Qj({label:t}){return u.jsx("div",{className:"text-[10px] font-medium tracking-wide mt-1 mb-1",style:{color:"var(--studio-text-muted)"},children:t})}function Kj({style:t}){return g.createElement(Rv,{style:t,strokeWidth:1.5,size:12})}const Fj={width:ia,height:co,"min-width":ia,"min-height":co,"max-width":ia,"max-height":co,"padding-top":Nl,"padding-right":Nl,"padding-bottom":Nl,"padding-left":Nl,"margin-top":ra,"margin-right":ra,"margin-bottom":ra,"margin-left":ra,gap:Or,"row-gap":ax,"column-gap":Or,"font-family":nh,"font-size":Br,"font-weight":vd,"line-height":rh,"letter-spacing":oh,"text-align":Pc,"text-decoration":hh,"text-transform":ah,"border-top-width":Rr,"border-right-width":Rr,"border-bottom-width":Rr,"border-left-width":Rr,"border-top-left-radius":md,"border-top-right-radius":th,"border-bottom-left-radius":Ip,"border-bottom-right-radius":eh,opacity:yd,"box-shadow":ch,overflow:Kj,"z-index":Ar,top:Cc,right:Cc,bottom:Cc,left:Cc};function Nr(t){return Fj[t]}const Jj={"font-size":{"12px":"text-xs","0.75rem":"text-xs","14px":"text-sm","0.875rem":"text-sm","16px":"text-base","1rem":"text-base","18px":"text-lg","1.125rem":"text-lg","20px":"text-xl","1.25rem":"text-xl","24px":"text-2xl","1.5rem":"text-2xl","30px":"text-3xl","1.875rem":"text-3xl","36px":"text-4xl","2.25rem":"text-4xl","48px":"text-5xl","3rem":"text-5xl","60px":"text-6xl","3.75rem":"text-6xl","72px":"text-7xl","4.5rem":"text-7xl","96px":"text-8xl","6rem":"text-8xl","128px":"text-9xl","8rem":"text-9xl"},"font-weight":{100:"font-thin",200:"font-extralight",300:"font-light",400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold",800:"font-extrabold",900:"font-black"},"line-height":{1:"leading-none","1.25":"leading-tight","1.375":"leading-snug","1.5":"leading-normal","1.625":"leading-relaxed",2:"leading-loose"},"letter-spacing":{"-0.05em":"tracking-tighter","-0.025em":"tracking-tight","0em":"tracking-normal","0px":"tracking-normal","0.025em":"tracking-wide","0.05em":"tracking-wider","0.1em":"tracking-widest"},"text-align":{left:"text-left",start:"text-left",center:"text-center",right:"text-right",end:"text-right",justify:"text-justify"},"text-transform":{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",none:"hidden"},position:{static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"},"flex-direction":{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},"flex-wrap":{wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"},"justify-content":{"flex-start":"justify-start",start:"justify-start","flex-end":"justify-end",end:"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},"align-items":{"flex-start":"items-start",start:"items-start","flex-end":"items-end",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},"align-self":{auto:"self-auto","flex-start":"self-start",start:"self-start","flex-end":"self-end",end:"self-end",center:"self-center",stretch:"self-stretch"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-scroll",auto:"overflow-auto"},opacity:{0:"opacity-0","0.05":"opacity-5","0.1":"opacity-10","0.15":"opacity-15","0.2":"opacity-20","0.25":"opacity-25","0.3":"opacity-30","0.35":"opacity-35","0.4":"opacity-40","0.45":"opacity-45","0.5":"opacity-50","0.55":"opacity-55","0.6":"opacity-60","0.65":"opacity-65","0.7":"opacity-70","0.75":"opacity-75","0.8":"opacity-80","0.85":"opacity-85","0.9":"opacity-90","0.95":"opacity-95",1:"opacity-100"}},ls={"0px":"0","1px":"px","2px":"0.5","4px":"1","6px":"1.5","8px":"2","10px":"2.5","12px":"3","14px":"3.5","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10","44px":"11","48px":"12","56px":"14","64px":"16","80px":"20","96px":"24","112px":"28","128px":"32","144px":"36","160px":"40","176px":"44","192px":"48","208px":"52","224px":"56","240px":"60","256px":"64","288px":"72","320px":"80","384px":"96"},Wj={"0px":"rounded-none","2px":"rounded-sm","0.125rem":"rounded-sm","4px":"rounded","0.25rem":"rounded","6px":"rounded-md","0.375rem":"rounded-md","8px":"rounded-lg","0.5rem":"rounded-lg","12px":"rounded-xl","0.75rem":"rounded-xl","16px":"rounded-2xl","1rem":"rounded-2xl","24px":"rounded-3xl","1.5rem":"rounded-3xl","9999px":"rounded-full"},Lc={"padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","min-width":"min-w","min-height":"min-h","max-width":"max-w","max-height":"max-h",top:"top",right:"right",bottom:"bottom",left:"left","border-top-width":"border-t","border-right-width":"border-r","border-bottom-width":"border-b","border-left-width":"border-l","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl","font-size":"text","font-weight":"font","line-height":"leading","letter-spacing":"tracking",opacity:"opacity",color:"text","background-color":"bg","border-color":"border"},Ij=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","gap","row-gap","column-gap","top","right","bottom","left","width","height","min-width","min-height","max-width","max-height"]),eM=new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"]);function _n(t,l){const o=Jj[t];if(o!=null&&o[l])return{tailwindClass:o[l],exact:!0};if(Ij.has(t)){const c=ls[l],s=Lc[t];if(c&&s)return{tailwindClass:`${s}-${c}`,exact:!0};if(s&&l!=="auto"&&l!=="none")return{tailwindClass:`${s}-[${l}]`,exact:!1}}if(eM.has(t)){const c=Wj[l];if(c){const f=Lc[t];if(f){const h=c.replace("rounded","");return{tailwindClass:`${f}${h||""}`,exact:!0}}return{tailwindClass:c,exact:!0}}const s=Lc[t];if(s&&l!=="0px")return{tailwindClass:`${s}-[${l}]`,exact:!1}}const r=Lc[t];return r?{tailwindClass:`${r}-[${l}]`,exact:!1}:null}function Ep(t,l){const o=t==="padding"?"p":"m",r=ls[l];return r?{tailwindClass:`${o}-${r}`,exact:!0}:l!=="0px"&&l!=="auto"?{tailwindClass:`${o}-[${l}]`,exact:!1}:null}function Tp(t,l,o){const r=t==="padding"?"px":"mx",c=t==="padding"?"py":"my",s=ls[l],f=ls[o];return{xClass:s?{tailwindClass:`${r}-${s}`,exact:!0}:l!=="0px"?{tailwindClass:`${r}-[${l}]`,exact:!1}:null,yClass:f?{tailwindClass:`${c}-${f}`,exact:!0}:o!=="0px"?{tailwindClass:`${c}-[${o}]`,exact:!1}:null}}const tM={"font-size":"typography","font-weight":"typography","line-height":"typography","letter-spacing":"typography","padding-top":"spacing","padding-right":"spacing","padding-bottom":"spacing","padding-left":"spacing","margin-top":"spacing","margin-right":"spacing","margin-bottom":"spacing","margin-left":"spacing",gap:"spacing","row-gap":"spacing","column-gap":"spacing",width:"spacing",height:"spacing","border-top-left-radius":"radius","border-top-right-radius":"radius","border-bottom-right-radius":"radius","border-bottom-left-radius":"radius",color:"color","background-color":"color","border-color":"color","box-shadow":"shadow"};function nM(t,l,o){if(!l||l==="none"||l==="auto")return null;const r=tM[t];if(!r)return null;if(r==="color"){const s=_p(l);if(!s)return null;for(const[,f]of Object.entries(o))for(const h of f)if(h.category==="color"){const x=_p(h.lightValue||"");if(x&&x===s){const m=f.filter(v=>v.category==="color").map(v=>({name:v.name.replace(/^--/,""),value:v.lightValue||""}));return{tokenName:h.name.replace(/^--/,""),tokenVar:h.name,category:"color",groupTokens:m}}}return null}const c=Rp(l);for(const[,s]of Object.entries(o))for(const f of s)if(f.category===r){const h=Rp(f.lightValue||"");if(h&&h===c){const x=s.filter(m=>m.category===r).map(m=>({name:m.name.replace(/^--/,""),value:m.lightValue||""}));return{tokenName:f.name.replace(/^--/,""),tokenVar:f.name,category:r,groupTokens:x}}}return null}function Rp(t){return t?t.trim().toLowerCase():null}function _p(t){if(!t||t==="transparent"||t==="rgba(0, 0, 0, 0)")return null;const l=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(l){const[,o,r,c,s]=l;return s!==void 0&&parseFloat(s)!==1?`rgba(${o},${r},${c},${s})`:`rgb(${o},${r},${c})`}return t.trim().toLowerCase()}function lM(t){switch(t){case"display":return["block","inline-block","inline","flex","inline-flex","grid","inline-grid","none"];case"position":return["static","relative","absolute","fixed","sticky"];case"flex-direction":return["row","row-reverse","column","column-reverse"];case"flex-wrap":return["nowrap","wrap","wrap-reverse"];case"justify-content":return["flex-start","flex-end","center","space-between","space-around","space-evenly"];case"align-items":return["flex-start","flex-end","center","baseline","stretch"];case"align-self":return["auto","flex-start","flex-end","center","stretch"];case"overflow":return["visible","hidden","scroll","auto"];case"text-align":return["left","center","right","justify"];case"text-transform":return["none","uppercase","lowercase","capitalize"];case"text-decoration":return["none","underline","overline","line-through"];case"white-space":return["normal","nowrap","pre","pre-wrap","pre-line"];default:return[]}}function sd({prop:t,onPreviewInlineStyle:l,onCommitClass:o}){const r=lM(t.cssProperty),c=Nr(t.cssProperty);return r.length===0?u.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.computedValue}):u.jsx(Ol,{icon:c,tooltip:t.cssProperty,value:t.computedValue,onChange:s=>{l(t.cssProperty,s);const f=_n(t.cssProperty,s);f&&o(f.tailwindClass)},options:[...r.includes(t.computedValue)?[]:[{value:t.computedValue}],...r.map(s=>({value:s}))]})}const z0=["none","2xs","xs","sm","","md","lg","xl","2xl"];function ud({prop:t,shadows:l,elementClassName:o,onPreviewInlineStyle:r,onCommitClass:c}){const s=t.computedValue,f=!s||s==="none",h=(()=>{if(t.tailwindValue)return{name:t.tailwindValue,cls:t.fullClass||void 0};if(f)return{name:"none",cls:void 0};const b=o.split(/\s+/).filter(Boolean);for(const C of b){const S=C.match(/^shadow-\[var\((--[\w-]+)\)\]$/);if(S){const w=S[1],E=l==null?void 0:l.find(R=>R.cssVariable===w);if(E)return{name:E.name,cls:C}}const M=C.match(/^shadow(?:-(2xs|xs|sm|md|lg|xl|2xl|none))?$/);if(M)return{name:M[1]||"",cls:C}}return null})(),x=(h==null?void 0:h.name)??null,m=h==null?void 0:h.cls,v=b=>{const C=m||t.fullClass||void 0;if(b==="none"){r("box-shadow","none"),c("shadow-none",C);return}if(z0.includes(b)){const M=b===""?"shadow":`shadow-${b}`,w=l==null?void 0:l.find(E=>E.name===`shadow-${b}`||E.name===b);w&&r("box-shadow",w.value),c(M,C);return}const S=l==null?void 0:l.find(M=>M.name===b);if(S)if(r("box-shadow",S.value),S.cssVariable)c(`shadow-[var(${S.cssVariable})]`,C);else{const M=b.startsWith("shadow-")?b:`shadow-${b}`;c(M,C)}};return u.jsx(Ol,{icon:ch,tooltip:"box-shadow",value:x===null?"__current__":x||"__default__",onChange:b=>v(b==="__default__"?"":b),options:[...x===null?[{value:"__current__",label:s.length>30?s.slice(0,30)+"...":s}]:[],{value:"none"}],groups:[{label:"Scale",options:z0.filter(b=>b!=="none").map(b=>({value:b||"__default__",label:b===""?"shadow (default)":b}))},...l&&l.length>0?[{label:"Project Shadows",options:l.filter(b=>!z0.includes(b.name.replace(/^shadow-?/,""))).map(b=>({value:b.name}))}]:[]]})}function aM({style:t}){const l={width:12,height:12,...t};return u.jsx("div",{style:{...l,borderRadius:2,background:"linear-gradient(135deg, var(--studio-accent), transparent)"}})}function as({prop:t,gradients:l,elementClassName:o,onPreviewInlineStyle:r,onCommitClass:c}){const s=(t==null?void 0:t.computedValue)||"none",f=s!=="none"&&s.includes("gradient"),h=(()=>{if(t!=null&&t.fullClass)return{name:null,cls:t.fullClass};const b=o.split(/\s+/).filter(Boolean);for(const C of b){const S=C.match(/^bg-\[(?:image:)?var\((--[\w-]+)\)\]$/);if(S){const M=S[1],w=l==null?void 0:l.find(E=>E.cssVariable===M);if(w)return{name:w.name,cls:C}}}return null})(),x=(h==null?void 0:h.cls)||(t==null?void 0:t.fullClass)||void 0,m=h==null?void 0:h.name,v=b=>{if(b==="none"){r("background-image","none"),c("bg-none",x);return}const C=l==null?void 0:l.find(S=>S.name===b);C&&(r("background-image",C.value),c(`bg-[image:var(${C.cssVariable})]`,x))};return u.jsx(Ol,{icon:aM,tooltip:"background-image (gradient)",value:m||(f?"__current__":"none"),onChange:v,options:[{value:"none"},...f&&!m?[{value:"__current__",label:s.length>30?s.slice(0,30)+"...":s}]:[]],groups:l&&l.length>0?[{label:"Project Gradients",options:l.map(b=>({value:b.name}))}]:void 0})}function St({icon:t,label:l,value:o,computedValue:r,currentClass:c,scale:s,prefix:f,cssProp:h,onPreview:x,onCommitClass:m,onCommitValue:v}){const b=o.startsWith(f+"-")?o.slice(f.length+1):o,C=s.includes(b),S=b==="—"||b==="",[M,w]=g.useState(!C&&!S&&b!=="0"&&b!=="0px"),[E,R]=g.useState(M?r:b),[T,_]=g.useState(!1),O=g.useRef(c),k=g.useRef(null);g.useEffect(()=>{O.current=c},[c]),g.useEffect(()=>{k.current!==null&&(k.current=null)},[r]),g.useEffect(()=>{T||R(M?r:b)},[b,r,T,M]);const Z=()=>O.current||c||void 0,z=H=>{if(H==="__custom__"){w(!0),R(r);return}const D=`${f}-${H}`,K=Z();m(D,K),O.current=D},J=H=>{const D=H.trim();if(!D)return;const K=Z();if(k.current=D,s.includes(D)){const L=`${f}-${D}`;m(L,K),O.current=L;return}const se=_n(h,D);if(se&&se.exact){m(se.tailwindClass,K),O.current=se.tailwindClass;return}const he=se?se.tailwindClass:`${f}-[${D}]`;m(he,K),O.current=he},F=g.useRef(null),[ce,ne]=g.useState(!1),W=g.useRef(E);W.current=E;const ae=M?T?E:k.current||r:null,oe=M&&ae!==null&&Kc(ae)!==null,me=H=>{if(!ae)return;const D=Kc(ae);if(!D)return;H.preventDefault(),F.current={startX:H.clientX,startVal:D.num,unit:D.unit},ne(!0);const K=o7(D.unit),se=L=>{if(!F.current)return;const Y=L.shiftKey?10:1,te=Math.round((L.clientX-F.current.startX)/2),le=F.current.startVal+te*K*Y,fe=F.current.unit?`${parseFloat(le.toFixed(4))}${F.current.unit}`:`${Math.round(le)}`;R(fe),W.current=fe,x&&x(fe)},he=()=>{if(document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",he),F.current){const L=W.current;v?v(L):J(L),F.current=null}ne(!1)};document.addEventListener("pointermove",se),document.addEventListener("pointerup",he)};return u.jsxs("div",{className:"studio-scale-input",style:M?{borderLeft:"2px solid var(--studio-accent)"}:void 0,children:[t&&u.jsx(ft,{content:l||h,side:"left",children:u.jsx("div",{className:oe?"studio-scrub-icon":"studio-scale-icon",onPointerDown:oe?me:void 0,children:u.jsx(t,{style:{width:12,height:12}})})}),!t&&l&&u.jsx(ft,{content:h,side:"left",children:u.jsx("div",{className:oe?"studio-scrub-label":"studio-scale-label",onPointerDown:oe?me:void 0,children:l})}),M?u.jsx("input",{type:"text",value:T||ce?E:k.current||r,placeholder:"e.g. 16px",onChange:H=>{R(H.target.value)},onFocus:()=>{R(r),_(!0)},onBlur:()=>{_(!1);const H=E.trim();H&&H!==r&&(v?v(H):J(H))},onKeyDown:H=>{H.key==="Enter"&&H.target.blur(),H.key==="Escape"&&(R(r),_(!1))},style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none"}}):u.jsx(Ol,{value:C?b:"__custom__",onChange:z,options:[...C?[]:[{value:"__custom__",label:b||"—"}],...s.map(H=>({value:H}))]}),u.jsx(ft,{content:M?"Custom CSS value — click to use token scale":"Token scale — click to enter custom CSS value",side:"bottom",children:u.jsx("button",{onClick:()=>{w(!M),M||R(r)},className:`studio-scale-toggle${M?" active":""}`,children:M?u.jsx(am,{style:{width:12,height:12}}):u.jsx(fh,{style:{width:12,height:12}})})})]})}const oM=[{regex:/^bg-([\w-]+(?:\/\d+)?)$/,category:"color",property:"backgroundColor",label:"Background",extractValue:t=>t[1]},{regex:/^text-([\w-]+(?:\/\d+)?)$/,category:"color",property:"textColor",label:"Text",extractValue:t=>t[1]},{regex:/^border-([\w-]+(?:\/\d+)?)$/,category:"color",property:"borderColor",label:"Border",extractValue:t=>t[1]},{regex:/^ring-([\w-]+(?:\/\d+)?)$/,category:"color",property:"ringColor",label:"Ring",extractValue:t=>t[1]},{regex:/^outline-([\w-]+(?:\/\d+)?)$/,category:"color",property:"outlineColor",label:"Outline",extractValue:t=>t[1]},{regex:/^p-([\d.]+|px)$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>t[1]},{regex:/^px-([\d.]+|px)$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>t[1]},{regex:/^py-([\d.]+|px)$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>t[1]},{regex:/^pt-([\d.]+|px)$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>t[1]},{regex:/^pr-([\d.]+|px)$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>t[1]},{regex:/^pb-([\d.]+|px)$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>t[1]},{regex:/^pl-([\d.]+|px)$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>t[1]},{regex:/^m-([\d.]+|px|auto)$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>t[1]},{regex:/^mx-([\d.]+|px|auto)$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>t[1]},{regex:/^my-([\d.]+|px|auto)$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>t[1]},{regex:/^mt-([\d.]+|px|auto)$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>t[1]},{regex:/^mr-([\d.]+|px|auto)$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>t[1]},{regex:/^mb-([\d.]+|px|auto)$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>t[1]},{regex:/^ml-([\d.]+|px|auto)$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>t[1]},{regex:/^gap-([\d.]+|px)$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>t[1]},{regex:/^gap-x-([\d.]+|px)$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>t[1]},{regex:/^gap-y-([\d.]+|px)$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>t[1]},{regex:/^space-x-([\d.]+)$/,category:"spacing",property:"spaceX",label:"Space X",extractValue:t=>t[1]},{regex:/^space-y-([\d.]+)$/,category:"spacing",property:"spaceY",label:"Space Y",extractValue:t=>t[1]},{regex:/^rounded$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:()=>"DEFAULT"},{regex:/^rounded-(none|sm|md|lg|xl|2xl|3xl|full)$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>t[1]},{regex:/^border$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:()=>"1"},{regex:/^border-(0|2|4|8)$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:t=>t[1]},{regex:/^text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>t[1]},{regex:/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>t[1]},{regex:/^leading-(none|tight|snug|normal|relaxed|loose)$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>t[1]},{regex:/^tracking-(tighter|tight|normal|wide|wider|widest)$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>t[1]},{regex:/^font-(sans|serif|mono)$/,category:"typography",property:"fontFamily",label:"Font Family",extractValue:t=>t[1]},{regex:/^text-(left|center|right|justify)$/,category:"typography",property:"textAlign",label:"Text Align",extractValue:t=>t[1]},{regex:/^(uppercase|lowercase|capitalize|normal-case)$/,category:"typography",property:"textTransform",label:"Text Transform",extractValue:t=>t[1]},{regex:/^(underline|overline|line-through|no-underline)$/,category:"typography",property:"textDecoration",label:"Text Decoration",extractValue:t=>t[1]},{regex:/^(truncate|whitespace-nowrap|whitespace-normal)$/,category:"typography",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^(flex|inline-flex|grid|inline-grid|block|inline-block|inline|hidden)$/,category:"layout",property:"display",label:"Display",extractValue:t=>t[1]},{regex:/^(flex-row|flex-col|flex-row-reverse|flex-col-reverse)$/,category:"layout",property:"flexDirection",label:"Direction",extractValue:t=>t[1]},{regex:/^(flex-wrap|flex-nowrap|flex-wrap-reverse)$/,category:"layout",property:"flexWrap",label:"Wrap",extractValue:t=>t[1]},{regex:/^items-(start|end|center|baseline|stretch)$/,category:"layout",property:"alignItems",label:"Align Items",extractValue:t=>t[1]},{regex:/^justify-(start|end|center|between|around|evenly)$/,category:"layout",property:"justifyContent",label:"Justify",extractValue:t=>t[1]},{regex:/^(self-auto|self-start|self-end|self-center|self-stretch)$/,category:"layout",property:"alignSelf",label:"Align Self",extractValue:t=>t[1]},{regex:/^grid-cols-(\d+|none)$/,category:"layout",property:"gridCols",label:"Grid Columns",extractValue:t=>t[1]},{regex:/^grid-rows-(\d+|none)$/,category:"layout",property:"gridRows",label:"Grid Rows",extractValue:t=>t[1]},{regex:/^col-span-(\d+|full)$/,category:"layout",property:"colSpan",label:"Column Span",extractValue:t=>t[1]},{regex:/^row-span-(\d+)$/,category:"layout",property:"rowSpan",label:"Row Span",extractValue:t=>t[1]},{regex:/^(relative|absolute|fixed|sticky)$/,category:"layout",property:"position",label:"Position",extractValue:t=>t[1]},{regex:/^(overflow-hidden|overflow-auto|overflow-scroll|overflow-visible)$/,category:"layout",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^w-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"width",label:"Width",extractValue:t=>t[1]},{regex:/^h-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"height",label:"Height",extractValue:t=>t[1]},{regex:/^min-w-([\d.]+|full|min|max|fit|0)$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>t[1]},{regex:/^min-h-([\d.]+|full|screen|min|max|fit|0)$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>t[1]},{regex:/^max-w-([\w.]+)$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>t[1]},{regex:/^max-h-([\w.]+)$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>t[1]},{regex:/^size-([\d.]+|full|auto|px)$/,category:"size",property:"size",label:"Size",extractValue:t=>t[1]},{regex:/^(flex-1|flex-auto|flex-initial|flex-none)$/,category:"size",property:"flex",label:"Flex",extractValue:t=>t[1]},{regex:/^(grow|grow-0|shrink|shrink-0)$/,category:"size",property:"flexGrowShrink",label:"Grow/Shrink",extractValue:t=>t[1]},{regex:/^text-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>`[${t[1]}]`},{regex:/^leading-\[(-?[\w.%]+)\]$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>`[${t[1]}]`},{regex:/^tracking-\[(-?[\w.%]+)\]$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>`[${t[1]}]`},{regex:/^font-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>`[${t[1]}]`},{regex:/^p-\[(-?[\w.%]+)\]$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>`[${t[1]}]`},{regex:/^px-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>`[${t[1]}]`},{regex:/^py-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>`[${t[1]}]`},{regex:/^pt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>`[${t[1]}]`},{regex:/^pr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>`[${t[1]}]`},{regex:/^pb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^pl-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>`[${t[1]}]`},{regex:/^m-\[(-?[\w.%]+)\]$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>`[${t[1]}]`},{regex:/^mx-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>`[${t[1]}]`},{regex:/^my-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>`[${t[1]}]`},{regex:/^mt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>`[${t[1]}]`},{regex:/^mr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>`[${t[1]}]`},{regex:/^mb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^ml-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>`[${t[1]}]`},{regex:/^gap-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>`[${t[1]}]`},{regex:/^gap-x-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>`[${t[1]}]`},{regex:/^gap-y-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>`[${t[1]}]`},{regex:/^w-\[(-?[\w.%]+)\]$/,category:"size",property:"width",label:"Width",extractValue:t=>`[${t[1]}]`},{regex:/^h-\[(-?[\w.%]+)\]$/,category:"size",property:"height",label:"Height",extractValue:t=>`[${t[1]}]`},{regex:/^min-w-\[(-?[\w.%]+)\]$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>`[${t[1]}]`},{regex:/^min-h-\[(-?[\w.%]+)\]$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>`[${t[1]}]`},{regex:/^max-w-\[(-?[\w.%]+)\]$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>`[${t[1]}]`},{regex:/^max-h-\[(-?[\w.%]+)\]$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>`[${t[1]}]`},{regex:/^rounded-\[(-?[\w.%]+)\]$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>`[${t[1]}]`}];function rM(t){const l=t.split(":");if(l.length===1)return{prefix:void 0,core:t};const o=l.pop();return{prefix:l.join(":")+":",core:o}}function q7(t){const l={color:[],spacing:[],shape:[],typography:[],layout:[],size:[],other:[]},o=t.split(/\s+/).filter(Boolean);for(const r of o){const{prefix:c,core:s}=rM(r);let f=!1;for(const h of oM){const x=s.match(h.regex);if(x){if(h.property==="textColor"&&(["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(x[1])||["left","center","right","justify"].includes(x[1]))||h.property==="borderColor"&&["0","2","4","8"].includes(x[1]))continue;l[h.category].push({category:h.category,property:h.property,label:h.label,value:h.extractValue(x),fullClass:r,prefix:c}),f=!0;break}}f||l.other.push({category:"other",property:"unknown",label:r,value:r,fullClass:r,prefix:c})}return l}function kr(t,l,o){const c={backgroundColor:f=>`bg-${f}`,textColor:f=>`text-${f}`,borderColor:f=>`border-${f}`,ringColor:f=>`ring-${f}`,padding:f=>`p-${f}`,paddingX:f=>`px-${f}`,paddingY:f=>`py-${f}`,paddingTop:f=>`pt-${f}`,paddingRight:f=>`pr-${f}`,paddingBottom:f=>`pb-${f}`,paddingLeft:f=>`pl-${f}`,margin:f=>`m-${f}`,marginX:f=>`mx-${f}`,marginY:f=>`my-${f}`,marginTop:f=>`mt-${f}`,marginRight:f=>`mr-${f}`,marginBottom:f=>`mb-${f}`,marginLeft:f=>`ml-${f}`,gap:f=>`gap-${f}`,gapX:f=>`gap-x-${f}`,gapY:f=>`gap-y-${f}`,borderRadius:f=>f==="DEFAULT"?"rounded":`rounded-${f}`,borderWidth:f=>f==="1"?"border":`border-${f}`,fontSize:f=>`text-${f}`,fontWeight:f=>`font-${f}`,lineHeight:f=>`leading-${f}`,letterSpacing:f=>`tracking-${f}`,fontFamily:f=>`font-${f}`,textAlign:f=>`text-${f}`,display:f=>f,flexDirection:f=>f,alignItems:f=>`items-${f}`,justifyContent:f=>`justify-${f}`,gridCols:f=>`grid-cols-${f}`,gridRows:f=>`grid-rows-${f}`,width:f=>`w-${f}`,height:f=>`h-${f}`,size:f=>`size-${f}`}[t];if(!c)return l;const s=c(l);return o?`${o}${s}`:s}function Jd(t){return t.startsWith("[")&&t.endsWith("]")}function iM(t){return Jd(t)?t.slice(1,-1):t}function cM(t){return Jd(t)?t:`[${t}]`}const Ye=["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"],Np=["none","sm","DEFAULT","md","lg","xl","2xl","3xl","full"],Wd=["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"],Id=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],X7=["none","tight","snug","normal","relaxed","loose"],G7=["tighter","tight","normal","wide","wider","widest"],sM=["0","1","2","4","8"],uM=["0","5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"];function ef({value:t,onPreview:l,onCommitClass:o}){const r=s=>{const f=parseFloat(s);return isNaN(f)?100:f<=1&&s!=="100"?Math.round(f*100):Math.round(f)},c=s=>{const f=uM.reduce((h,x)=>Math.abs(parseInt(x)-s)<Math.abs(parseInt(h)-s)?x:h);o(`opacity-${f}`)};return u.jsx(J0,{value:r(t),min:0,max:100,step:5,icon:yd,tooltip:"Opacity",unit:"%",onChange:s=>l(`${s/100}`),onCommit:c})}const dM=[{property:"display",label:"Display",category:"layout",controlType:"keyword",alwaysShow:!0},{property:"position",label:"Position",category:"layout",controlType:"keyword"},{property:"top",label:"Top",category:"layout",controlType:"length"},{property:"right",label:"Right",category:"layout",controlType:"length"},{property:"bottom",label:"Bottom",category:"layout",controlType:"length"},{property:"left",label:"Left",category:"layout",controlType:"length"},{property:"z-index",label:"Z-Index",category:"layout",controlType:"text"},{property:"overflow",label:"Overflow",category:"layout",controlType:"keyword"},{property:"flex-direction",label:"Direction",category:"layout",controlType:"keyword"},{property:"flex-wrap",label:"Wrap",category:"layout",controlType:"keyword"},{property:"justify-content",label:"Justify",category:"layout",controlType:"keyword"},{property:"align-items",label:"Align Items",category:"layout",controlType:"keyword"},{property:"align-self",label:"Align Self",category:"layout",controlType:"keyword"},{property:"gap",label:"Gap",category:"layout",controlType:"length"},{property:"row-gap",label:"Row Gap",category:"layout",controlType:"length"},{property:"column-gap",label:"Column Gap",category:"layout",controlType:"length"},{property:"width",label:"Width",category:"size",controlType:"length"},{property:"height",label:"Height",category:"size",controlType:"length"},{property:"min-width",label:"Min W",category:"size",controlType:"length"},{property:"min-height",label:"Min H",category:"size",controlType:"length"},{property:"max-width",label:"Max W",category:"size",controlType:"length"},{property:"max-height",label:"Max H",category:"size",controlType:"length"},{property:"padding-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"font-family",label:"Font",category:"typography",controlType:"text",alwaysShow:!0},{property:"font-size",label:"Size",category:"typography",controlType:"length",alwaysShow:!0},{property:"font-weight",label:"Weight",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"line-height",label:"Leading",category:"typography",controlType:"length",alwaysShow:!0},{property:"letter-spacing",label:"Tracking",category:"typography",controlType:"length",alwaysShow:!0},{property:"text-align",label:"Align",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-decoration",label:"Decoration",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-transform",label:"Transform",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"color",label:"Text",category:"color",controlType:"color",alwaysShow:!0},{property:"background-color",label:"Background",category:"color",controlType:"color",alwaysShow:!0},{property:"border-top-width",label:"Top",category:"border",controlType:"length"},{property:"border-right-width",label:"Right",category:"border",controlType:"length"},{property:"border-bottom-width",label:"Bottom",category:"border",controlType:"length"},{property:"border-left-width",label:"Left",category:"border",controlType:"length"},{property:"border-color",label:"Color",category:"border",controlType:"color",alwaysShow:!0},{property:"border-top-left-radius",label:"TL",category:"border",controlType:"length",alwaysShow:!0},{property:"border-top-right-radius",label:"TR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-right-radius",label:"BR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-left-radius",label:"BL",category:"border",controlType:"length",alwaysShow:!0},{property:"opacity",label:"Opacity",category:"effects",controlType:"text",alwaysShow:!0},{property:"box-shadow",label:"Shadow",category:"effects",controlType:"text",alwaysShow:!0},{property:"background-image",label:"Gradient",category:"effects",controlType:"text"},{property:"transform",label:"Transform",category:"effects",controlType:"readonly"}],fM={top:["auto"],right:["auto"],bottom:["auto"],left:["auto"],"z-index":["auto"],position:["static"],overflow:["visible"],"padding-top":["0px"],"padding-right":["0px"],"padding-bottom":["0px"],"padding-left":["0px"],"margin-top":["0px"],"margin-right":["0px"],"margin-bottom":["0px"],"margin-left":["0px"],"min-width":["0px"],"min-height":["0px"],"max-width":["none"],"max-height":["none"],"border-top-width":["0px"],"border-right-width":["0px"],"border-bottom-width":["0px"],"border-left-width":["0px"],"background-image":["none"],transform:["none"],"align-self":["auto"]},pM=new Set(["color","font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-transform","white-space","text-decoration"]),hM=new Set(["flex-direction","flex-wrap","justify-content","align-items","gap","row-gap","column-gap"]);function gM(t,l){const o=fM[t];return o?o.some(r=>l===r||l.startsWith(r)):!1}const mM={display:"block","font-family":"sans-serif","font-size":"16px","font-weight":"400","line-height":"normal","letter-spacing":"normal","text-align":"left","text-decoration":"none","text-transform":"none",color:"rgb(0, 0, 0)","background-color":"transparent","border-color":"rgb(0, 0, 0)","border-top-left-radius":"0px","border-top-right-radius":"0px","border-bottom-right-radius":"0px","border-bottom-left-radius":"0px",opacity:"1","padding-top":"0px","padding-right":"0px","padding-bottom":"0px","padding-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};function xM(t){return mM[t]||""}function tf(t,l){let o,r,c,s;return l==="border-width"?(o=t["border-top-width"]||"0px",r=t["border-right-width"]||"0px",c=t["border-bottom-width"]||"0px",s=t["border-left-width"]||"0px"):l==="border-radius"?(o=t["border-top-left-radius"]||"0px",r=t["border-top-right-radius"]||"0px",c=t["border-bottom-right-radius"]||"0px",s=t["border-bottom-left-radius"]||"0px"):(o=t[`${l}-top`]||"0px",r=t[`${l}-right`]||"0px",c=t[`${l}-bottom`]||"0px",s=t[`${l}-left`]||"0px"),o===r&&r===c&&c===s?o:null}function vM(t,l){const o=t[`${l}-top`]||"0px",r=t[`${l}-right`]||"0px",c=t[`${l}-bottom`]||"0px",s=t[`${l}-left`]||"0px";return o===c&&s===r?{x:s,y:o}:null}const yM={backgroundColor:"background-color",textColor:"color",borderColor:"border-color",ringColor:"outline-color",outlineColor:"outline-color",paddingTop:"padding-top",paddingRight:"padding-right",paddingBottom:"padding-bottom",paddingLeft:"padding-left",marginTop:"margin-top",marginRight:"margin-right",marginBottom:"margin-bottom",marginLeft:"margin-left",padding:["padding-top","padding-right","padding-bottom","padding-left"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],margin:["margin-top","margin-right","margin-bottom","margin-left"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],gap:"gap",gapX:"column-gap",gapY:"row-gap",borderRadius:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],borderWidth:["border-top-width","border-right-width","border-bottom-width","border-left-width"],fontSize:"font-size",fontWeight:"font-weight",lineHeight:"line-height",letterSpacing:"letter-spacing",fontFamily:"font-family",textAlign:"text-align",textTransform:"text-transform",textDecoration:"text-decoration",display:"display",position:"position",flexDirection:"flex-direction",flexWrap:"flex-wrap",alignItems:"align-items",justifyContent:"justify-content",alignSelf:"align-self",overflow:"overflow",boxShadow:"box-shadow",backgroundImage:"background-image",width:"width",height:"height",minWidth:"min-width",minHeight:"min-height",maxWidth:"max-width",maxHeight:"max-height"},Lp=new Set(["h1","h2","h3","h4","h5","h6","p","span","a","label","strong","em","b","i","small","blockquote","li","dt","dd","figcaption","caption","th","td","legend","summary"]),bM=new Set(["div","section","article","aside","nav","header","footer","main","form","fieldset","figure","details","dialog","ul","ol"]),CM=new Set(["font-size","font-weight","line-height","letter-spacing","text-align","color"]),Op=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-bottom","width","height","background-color"]);function wM(t,l){return!!(Lp.has(t)&&CM.has(l)||bM.has(t)&&Op.has(l)||Lp.has(t)&&Op.has(l))}function SM(t,l,o,r,c){const s={layout:[],spacing:[],size:[],typography:[],color:[],border:[],effects:[]},f=q7(l||""),h=new Map,x=[...f.color,...f.spacing,...f.shape,...f.typography,...f.layout,...f.size,...f.other];for(const m of x){const v=yM[m.property];if(v)if(Array.isArray(v))for(const b of v)h.has(b)||h.set(b,m);else h.has(v)||h.set(v,m)}for(const m of dM){const v=hM.has(m.property),b=h.get(m.property),C=o[m.property]||"",S=!C||gM(m.property,C),M=pM.has(m.property)&&!!r[m.property]&&r[m.property]===C,w=C?nM(m.property,C,c):null,E=m.category==="size",R=h.get("display"),T=R&&(R.value.includes("flex")||R.value.includes("grid")),_=m.category==="layout";let O;if(b)O={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"class",tailwindValue:b.value,fullClass:b.fullClass,computedValue:C,inherited:M,tokenMatch:w,hasValue:!0,flexGridOnly:v};else{if(E)continue;if(_&&!m.alwaysShow)if(T&&v)O={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:!0};else continue;else if(m.alwaysShow){const k=C||xM(m.property),Z=k?_n(m.property,k):null,z=k==="0px"||k==="0"||k==="0%";O={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:C?"computed":"none",tailwindValue:Z!=null&&Z.exact&&!z?Z.tailwindClass:null,fullClass:null,computedValue:k,inherited:M,tokenMatch:w,hasValue:!0,flexGridOnly:v}}else if(S)if(wM(t,m.property))O={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:v};else continue;else{if(!C)continue;const k=_n(m.property,C);O={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"computed",tailwindValue:k!=null&&k.exact?k.tailwindClass:null,fullClass:null,computedValue:C,inherited:M,tokenMatch:w,hasValue:!0,flexGridOnly:v}}}s[m.category].push(O)}return s}const io=t=>function({style:o}){return u.jsx(t,{style:o,strokeWidth:1,size:15})},jM={top:io(bv),right:io(mv),bottom:io(sv),left:io(dv)},MM=io(pv),EM=io(vv),TM=["top","right","bottom","left"];function Xr({box:t,icon:l,activeProps:o,allProperties:r,computedStyles:c,onPreviewInlineStyle:s,onCommitClass:f}){var E,R;const[h,x]=g.useState(!1),m=t==="padding"?"p":"m",v=tf(c,t),b=v?null:vM(c,t),C=T=>{const _=T.computedValue;return!T.tailwindValue&&(_==="0px"||_==="0")?"—":_},S=v?null:b?`${b.y} ${b.x}`:o.length>0?o.map(C).join(" "):null,M=T=>r.find(_=>_.cssProperty===T),w=t.charAt(0).toUpperCase()+t.slice(1);return u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Y7,{label:w,expanded:h,onToggle:()=>x(!h),tooltip:{collapsed:"Expand individual sides",expanded:"Collapse to shorthand"},icon:{collapsed:u.jsx(l,{style:{width:12,height:12}}),expanded:u.jsx(I6,{style:{width:12,height:12}})}}),h?u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:TM.map(T=>{const _=`${t}-${T}`,O=M(_),k=T[0].toUpperCase(),Z=`${m}${T[0]}`,z=(O==null?void 0:O.computedValue)||"0";return u.jsx(St,{icon:jM[T],label:k,value:(O==null?void 0:O.tailwindValue)||(z==="0px"||z==="0"?"—":z),computedValue:z,currentClass:(O==null?void 0:O.fullClass)||null,scale:Ye,prefix:Z,cssProp:_,onPreview:J=>s(_,J),onCommitClass:f},_)})}):v?u.jsx(St,{icon:l,value:((E=o[0])==null?void 0:E.tailwindValue)||(v==="0px"||v==="0"?"—":v),computedValue:v||"0",currentClass:((R=o[0])==null?void 0:R.fullClass)||null,scale:Ye,prefix:m,cssProp:t,onPreview:T=>s(t,T),onCommitClass:f,onCommitValue:T=>{const _=Ep(t,T);if(_)f(_.tailwindClass);else{const O=_n(t,T);f(O?O.tailwindClass:`${m}-[${T.trim()}]`)}}}):b?(()=>{const T=M(`${t}-left`),_=M(`${t}-top`),O=T==null?void 0:T.tailwindValue,k=_==null?void 0:_.tailwindValue,Z=b.x==="0px"||b.x==="0",z=b.y==="0px"||b.y==="0";return u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[u.jsx(St,{icon:MM,label:"X",value:O||(Z?"—":b.x),computedValue:b.x,currentClass:(T==null?void 0:T.fullClass)||null,scale:Ye,prefix:`${m}x`,cssProp:`${t}-left`,onPreview:J=>{s(`${t}-left`,J),s(`${t}-right`,J)},onCommitClass:f,onCommitValue:J=>{const{xClass:F}=Tp(t,J,b.y);if(F)f(F.tailwindClass);else{const ce=_n(`${t}-left`,J);f(ce?ce.tailwindClass:`${m}x-[${J.trim()}]`)}}}),u.jsx(St,{icon:EM,label:"Y",value:k||(z?"—":b.y),computedValue:b.y,currentClass:(_==null?void 0:_.fullClass)||null,scale:Ye,prefix:`${m}y`,cssProp:`${t}-top`,onPreview:J=>{s(`${t}-top`,J),s(`${t}-bottom`,J)},onCommitClass:f,onCommitValue:J=>{const{yClass:F}=Tp(t,b.x,J);if(F)f(F.tailwindClass);else{const ce=_n(`${t}-top`,J);f(ce?ce.tailwindClass:`${m}y-[${J.trim()}]`)}}})]})})():u.jsx(ca,{icon:l,value:S||"mixed",tooltip:t,onPreview:T=>s(t,T),onCommit:T=>{const _=Ep(t,T);_&&f(_.tailwindClass)}})]})}const RM=[{side:"top-left",label:"TL",prefix:"rounded-tl",cssProp:"border-top-left-radius",icon:md},{side:"top-right",label:"TR",prefix:"rounded-tr",cssProp:"border-top-right-radius",icon:th},{side:"bottom-left",label:"BL",prefix:"rounded-bl",cssProp:"border-bottom-left-radius",icon:Ip},{side:"bottom-right",label:"BR",prefix:"rounded-br",cssProp:"border-bottom-right-radius",icon:eh}];function Q7({activeProps:t,allProperties:l,computedStyles:o,onPreviewInlineStyle:r,onCommitClass:c}){var m,v;const[s,f]=g.useState(!1),h=tf(o,"border-radius"),x=b=>l.find(C=>C.cssProperty===b);return u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Y7,{label:"Radius",expanded:s,onToggle:()=>f(!s),tooltip:{collapsed:"Per-corner radius",expanded:"Single radius"},icon:{collapsed:u.jsx(V0,{style:{width:12,height:12}}),expanded:u.jsx(md,{style:{width:12,height:12}})}}),s?u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:RM.map(({cssProp:b,label:C,prefix:S,icon:M})=>{const w=x(b),E=(w==null?void 0:w.computedValue)||"0";return u.jsx(St,{icon:M,label:C,value:(w==null?void 0:w.tailwindValue)||(E==="0px"||E==="0"?"—":E),computedValue:E,currentClass:(w==null?void 0:w.fullClass)||null,scale:Np,prefix:S,cssProp:b,onPreview:R=>r(b,R),onCommitClass:c},b)})}):u.jsx(St,{icon:V0,value:((m=t[0])==null?void 0:m.tailwindValue)||(h==="0px"||h==="0"||!h?"—":h),computedValue:h||"0",currentClass:((v=t[0])==null?void 0:v.fullClass)||null,scale:Np,prefix:"rounded",cssProp:"border-radius",onPreview:b=>r("border-radius",b),onCommitClass:c})]})}var As="Switch",[_M]=bo(As),[NM,LM]=_M(As),K7=g.forwardRef((t,l)=>{const{__scopeSwitch:o,name:r,checked:c,defaultChecked:s,required:f,disabled:h,value:x="on",onCheckedChange:m,form:v,...b}=t,[C,S]=g.useState(null),M=We(l,_=>S(_)),w=g.useRef(!1),E=C?v||!!C.closest("form"):!0,[R,T]=Pr({prop:c,defaultProp:s??!1,onChange:m,caller:As});return u.jsxs(NM,{scope:o,checked:R,disabled:h,children:[u.jsx(Ge.button,{type:"button",role:"switch","aria-checked":R,"aria-required":f,"data-state":I7(R),"data-disabled":h?"":void 0,disabled:h,value:x,...b,ref:M,onClick:ze(t.onClick,_=>{T(O=>!O),E&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})}),E&&u.jsx(W7,{control:C,bubbles:!w.current,name:r,value:x,checked:R,required:f,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});K7.displayName=As;var F7="SwitchThumb",J7=g.forwardRef((t,l)=>{const{__scopeSwitch:o,...r}=t,c=LM(F7,o);return u.jsx(Ge.span,{"data-state":I7(c.checked),"data-disabled":c.disabled?"":void 0,...r,ref:l})});J7.displayName=F7;var OM="SwitchBubbleInput",W7=g.forwardRef(({__scopeSwitch:t,control:l,checked:o,bubbles:r=!0,...c},s)=>{const f=g.useRef(null),h=We(f,s),x=C4(o),m=zh(l);return g.useEffect(()=>{const v=f.current;if(!v)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set;if(x!==o&&S){const M=new Event("click",{bubbles:r});S.call(v,o),v.dispatchEvent(M)}},[x,o,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...c,tabIndex:-1,ref:h,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});W7.displayName=OM;function I7(t){return t?"checked":"unchecked"}var AM=K7,zM=J7;function HM({value:t,onChange:l,label:o,icon:r,tooltip:c}){const s=u.jsx(AM,{checked:t,onCheckedChange:l,className:"studio-toggle-root",children:u.jsx(zM,{className:"studio-toggle-thumb"})});return u.jsxs("div",{className:"studio-scrub-input",style:{gap:0},children:[r&&u.jsx(ft,{content:c||"",side:"left",children:u.jsx("div",{className:"studio-scrub-icon no-scrub",children:u.jsx(r,{style:{width:12,height:12}})})}),u.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 8px",minWidth:0},children:[o&&u.jsx("span",{style:{fontSize:11,color:"var(--studio-text)",userSelect:"none"},children:o}),s]})]})}const VM={"font-size":"text","font-weight":"font","font-family":"font","line-height":"leading","letter-spacing":"tracking","padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl",color:"text","background-color":"bg","border-color":"border"},kM={"font-size":{scale:Wd,prefix:"text"},"font-weight":{scale:Id,prefix:"font"},"line-height":{scale:X7,prefix:"leading"},"letter-spacing":{scale:G7,prefix:"tracking"},gap:{scale:Ye,prefix:"gap"},"row-gap":{scale:Ye,prefix:"gap-y"},"column-gap":{scale:Ye,prefix:"gap-x"},"padding-top":{scale:Ye,prefix:"pt"},"padding-right":{scale:Ye,prefix:"pr"},"padding-bottom":{scale:Ye,prefix:"pb"},"padding-left":{scale:Ye,prefix:"pl"},"margin-top":{scale:Ye,prefix:"mt"},"margin-right":{scale:Ye,prefix:"mr"},"margin-bottom":{scale:Ye,prefix:"mb"},"margin-left":{scale:Ye,prefix:"ml"},width:{scale:Ye,prefix:"w"},height:{scale:Ye,prefix:"h"}};function DM({shadow:t,onPreview:l,onSave:o}){const[r,c]=g.useState(()=>t.layers.length>0?t.layers:[{offsetX:"0",offsetY:"4px",blur:"6px",spread:"-1px",color:"rgb(0 0 0 / 0.1)",inset:!1}]),s=g.useCallback(m=>m.length===0?"none":m.map(v=>{const b=[];return v.inset&&b.push("inset"),b.push(v.offsetX,v.offsetY,v.blur,v.spread,v.color),b.join(" ")}).join(", "),[]),f=g.useCallback((m,v)=>{const b=r.map((C,S)=>S===m?{...C,...v}:C);c(b),l(s(b))},[r,l,s]),h=()=>{const m=[...r,{offsetX:"0",offsetY:"4px",blur:"8px",spread:"0",color:"rgb(0 0 0 / 0.1)",inset:!1}];c(m),l(s(m))},x=m=>{const v=r.filter((b,C)=>C!==m);c(v),l(s(v))};return u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsx("div",{className:"flex items-center justify-center p-6 rounded-lg",style:{background:"rgb(240, 244, 250)"},children:u.jsx("div",{className:"w-20 h-20 rounded-lg",style:{background:"white",boxShadow:s(r)}})}),r.map((m,v)=>u.jsx($M,{layer:m,index:v,total:r.length,onChange:b=>f(v,b),onRemove:()=>x(v)},v)),u.jsxs("button",{onClick:h,className:"flex items-center justify-center gap-1 py-1.5 rounded text-[11px] cursor-pointer",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)",color:"var(--studio-text-muted)"},children:[u.jsx(os,{style:{width:12,height:12}}),"Add Layer"]}),u.jsx("button",{onClick:()=>o(s(r)),className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save to File"})]})}function $M({layer:t,index:l,total:o,onChange:r,onRemove:c}){const s=f=>parseFloat(f)||0;return u.jsxs("div",{className:"rounded-lg p-2.5",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsxs("span",{className:"text-[9px] font-semibold tracking-wide",style:{color:"var(--studio-text-dimmed)"},children:["Layer ",l+1]}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("button",{onClick:()=>r({inset:!t.inset}),className:`studio-bp-btn ${t.inset?"active":""}`,style:{fontSize:9,padding:"1px 5px"},children:"inset"}),o>1&&u.jsx("button",{onClick:c,className:"studio-icon-btn",style:{width:20,height:20},children:u.jsx(ph,{style:{width:10,height:10}})})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1.5",children:[u.jsx(Oc,{label:"X Offset",value:s(t.offsetX),min:-50,max:50,unit:"px",onChange:f=>r({offsetX:`${f}px`})}),u.jsx(Oc,{label:"Y Offset",value:s(t.offsetY),min:-50,max:50,unit:"px",onChange:f=>r({offsetY:`${f}px`})}),u.jsx(Oc,{label:"Blur",value:s(t.blur),min:0,max:100,unit:"px",onChange:f=>r({blur:`${f}px`})}),u.jsx(Oc,{label:"Spread",value:s(t.spread),min:-50,max:50,unit:"px",onChange:f=>r({spread:`${f}px`})})]}),u.jsx(In,{color:t.color,onChange:f=>r({color:f})})]})}function Oc({label:t,value:l,min:o,max:r,unit:c,onChange:s}){return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[9px] font-medium",style:{color:"var(--studio-text-dimmed)"},children:t}),u.jsxs("span",{className:"text-[9px] font-mono",style:{color:"var(--studio-text-muted)"},children:[l,c]})]}),u.jsx("input",{type:"range",min:o,max:r,value:l,onChange:f=>s(parseInt(f.target.value,10)),className:"w-full"})]})}function e8({value:t,size:l=32,shape:o="rounded",background:r="white",showBorder:c=!1,borderColor:s="#e0e0e0"}){const f=o==="circle"?"50%":o==="rounded"?"4px":"0";return u.jsx("div",{className:"shrink-0",style:{width:l,height:l,borderRadius:f,background:r,boxShadow:t,border:c?`1px solid ${s}`:"none"}})}function BM({shadows:t,cssFilePath:l,stylingType:o,onPreviewShadow:r}){const[c,s]=g.useState(null),[f,h]=g.useState({});return u.jsxs("div",{children:[t.map(x=>u.jsx(ZM,{shadow:x,isExpanded:c===x.name,onToggle:()=>s(c===x.name?null:x.name),mode:f[x.name]||"custom",onModeChange:m=>h({...f,[x.name]:m}),cssFilePath:l,stylingType:o,onPreviewShadow:r},x.name)),t.length===0&&u.jsx("div",{className:"px-4 py-6 text-center text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"No shadows found. Add shadow CSS variables to your global CSS file."})]})}function ZM({shadow:t,isExpanded:l,onToggle:o,mode:r,onModeChange:c,cssFilePath:s,stylingType:f,onPreviewShadow:h}){const[x,m]=g.useState(!1),[v,b]=g.useState(t.value),C=async S=>{b(S),m(!0);try{if(t.source==="design-token"&&t.tokenFilePath&&t.tokenPath)await q3("/api/shadows/design-token",{filePath:t.tokenFilePath,tokenPath:t.tokenPath,value:S});else{const M=t.sassVariable||t.cssVariable||`--${t.name}`;let w,E=s;f==="tailwind-v4"?w="@theme":f==="bootstrap"&&t.sassVariable?(w="scss",E=t.filePath||s):w=":root";const R=t.isOverridden?"/api/shadows":"/api/shadows/create";await q3(R,{filePath:E,variableName:M,value:S,selector:w})}}catch(M){console.error("Shadow save error:",M)}setTimeout(()=>m(!1),1e3)};return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:o,className:"studio-section-hdr",style:{gap:8},children:[l?u.jsx(fn,{}):u.jsx(Nn,{}),u.jsx(e8,{value:v,size:24}),u.jsx("span",{className:"flex-1 text-[11px] font-mono truncate text-left",style:{color:"var(--studio-text)",fontWeight:500,textTransform:"none",letterSpacing:0},children:t.name}),t.source==="framework-preset"&&!t.isOverridden&&u.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"preset"}),t.source==="design-token"&&u.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"token"}),x&&u.jsx("span",{className:"flex items-center gap-0.5 text-[10px]",style:{color:"var(--studio-success)"},children:u.jsx(ua,{style:{width:10,height:10}})})]}),l&&u.jsxs("div",{className:"px-4 pb-3",children:[u.jsxs("div",{className:"studio-segmented mb-3",style:{width:"100%"},children:[u.jsxs("button",{onClick:()=>c("custom"),className:r==="custom"?"active":"",style:{flex:1},children:[u.jsx(ih,{style:{width:12,height:12}}),"Custom"]}),u.jsxs("button",{onClick:()=>c("preset"),className:r==="preset"?"active":"",style:{flex:1},children:[u.jsx(K6,{style:{width:12,height:12}}),"Use Preset"]})]}),r==="custom"?u.jsx(DM,{shadow:{...t,value:v},onPreview:S=>{const M=t.cssVariable||`--${t.name}`;h(M,S,t.name)},onSave:C}):u.jsx(UM,{currentValue:v,onSelect:S=>{const M=t.cssVariable||`--${t.name}`;h(M,S,t.name),C(S)}})]})]})}function UM({currentValue:t,onSelect:l}){const o=[{name:"Crisp 2L",value:"0px 0.3px 0.7px 0px rgb(0 0 0 / 0.1), 0px 0.7px 2.1px 0px rgb(0 0 0 / 0.07)",desc:"Subtle"},{name:"Crisp 2L +",value:"0px 0.5px 1px 0px rgb(0 0 0 / 0.1), 0px 1px 3px 0px rgb(0 0 0 / 0.07), 0px 2px 6px 0px rgb(0 0 0 / 0.07)",desc:"Elevated"},{name:"Crisp 3L",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08)",desc:"Card"},{name:"Crisp 3L +",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08), 0px 8px 8px 0px rgb(0 0 0 / 0.08)",desc:"Elevated"},{name:"Crisp Tight",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp Tight +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06), 0px 6px 6px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Crisp 4L",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp 4L +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06), 0px 8px 8px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Edge 4L",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05)",desc:"Card"},{name:"Edge 4L +",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05), 0px 8px 8px 0px rgb(0 0 0 / 0.05)",desc:"Elevated"},{name:"Soft",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04)",desc:"Diffuse"},{name:"Soft +",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04), 0px 8px 16px 0px rgb(0 0 0 / 0.04)",desc:"Elevated"},{name:"Chunky",value:"3px 3px 0px 0px rgb(0 0 0 / 0.25)",desc:"Hard"},{name:"None",value:"none",desc:"Remove"}];return u.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:o.map(r=>{const c=t===r.value;return u.jsxs("button",{onClick:()=>l(r.value),className:"flex flex-col items-center gap-1.5 p-3 rounded-lg cursor-pointer",style:{background:c?"var(--studio-accent-muted)":"transparent",border:"1px solid",borderColor:c?"var(--studio-accent)":"var(--studio-border-subtle)"},children:[u.jsx("div",{className:"flex items-center justify-center rounded-lg w-full",style:{background:"rgb(240, 244, 250)",height:72},children:u.jsx(e8,{value:r.value,size:48,background:"white"})}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-[10px] font-medium",style:{color:"var(--studio-text-muted)"},children:r.name}),r.desc&&u.jsx("div",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:r.desc})]})]},r.name)})})}function An(t){return g.useSyncExternalStore(Nt.subscribe,g.useCallback(()=>t(Nt.getSnapshot()),[t]))}const PM=t=>t.tokens,YM=t=>t.components,qM=t=>t.shadows,XM=t=>t.borders,GM=t=>t.gradients,QM=t=>t.spacing,KM=t=>t.styling,FM=t=>t.usages,JM=t=>t.framework,WM=t=>t.framework!==null&&t.tokens!==null&&t.components!==null&&t.shadows!==null&&t.borders!==null&&t.gradients!==null&&t.spacing!==null&&t.styling!==null;function ni(){return An(PM)}function nf(){return An(YM)}function lf(){return An(qM)}function IM(){return An(XM)}function t8(){return An(GM)}function eE(){return An(QM)}function n8(){return An(KM)}function tE(){return An(FM)}function nE(){return An(JM)}function lE(){return An(WM)}function Ap({tokenRefs:t,theme:l,onPreviewToken:o,onClearTokenPreview:r,onPreviewShadow:c}){var k,Z,z,J;const s=ni(),f=lf(),h=IM(),x=t8(),m=eE(),v=n8();if(!s)return u.jsx("div",{className:"px-4 py-3 text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Loading tokens..."});const b=s.tokens,C=s.cssFilePath,S=b.filter(F=>t.includes(F.name)),M=Object.entries(s.groups).filter(([F,ce])=>ce.some(ne=>ne.category==="color")).slice(0,8),w=(m==null?void 0:m.spacing)||[],E=b.filter(F=>F.category==="color"&&["--border","--input","--ring"].includes(F.name)),R=((k=h==null?void 0:h.borders)==null?void 0:k.filter(F=>F.kind==="radius"))||[],T=((Z=h==null?void 0:h.borders)==null?void 0:Z.filter(F=>F.kind==="width"))||[],_=(v==null?void 0:v.type)||"",O=_==="tailwind-v4"?"@theme":l==="dark"?".dark":":root";return u.jsxs("div",{className:"",children:[S.length>0&&u.jsx(oa,{title:"Used by selected element",count:S.length,defaultCollapsed:!0,children:u.jsx("div",{className:"flex flex-col gap-1.5 px-4 pb-2",children:S.map(F=>{const ce=l==="dark"&&F.darkValue?F.darkValue:F.lightValue,ne=F.name.endsWith("-foreground")?F.name.replace("-foreground",""):`${F.name}-foreground`,W=b.find(oe=>oe.name===ne),ae=W?l==="dark"&&W.darkValue?W.darkValue:W.lightValue:null;return u.jsx(In,{color:ce,label:F.name.replace(/^--/,""),tabs:"custom",tokenName:F.name,contrastToken:ae?{name:ne,value:ae}:null,onChange:oe=>o(F.name,oe),onSave:oe=>{Y0(C,F.name,oe,O),r()}},F.name)})})}),u.jsx(oa,{title:"Colors",count:M.reduce((F,[ce,ne])=>F+ne.filter(W=>W.category==="color").length,0),defaultCollapsed:!0,children:M.length>0?u.jsx("div",{className:"studio-tree",children:M.map(([F,ce])=>u.jsx(aE,{title:F,count:ce.filter(ne=>ne.category==="color").length,children:u.jsx("div",{className:"flex flex-col gap-1.5 pb-1",children:ce.filter(ne=>ne.category==="color").map(ne=>{const W=l==="dark"&&ne.darkValue?ne.darkValue:ne.lightValue,ae=ne.name.endsWith("-foreground")?ne.name.replace("-foreground",""):`${ne.name}-foreground`,oe=b.find(H=>H.name===ae),me=oe?l==="dark"&&oe.darkValue?oe.darkValue:oe.lightValue:null;return u.jsx(In,{color:W,label:ne.name.replace(/^--/,""),tabs:"custom",tokenName:ne.name,contrastToken:me?{name:ae,value:me}:null,onChange:H=>o(ne.name,H),onSave:H=>{Y0(C,ne.name,H,O),r()}},ne.name)})})},F))}):u.jsx(Dr,{message:"No color tokens found in your CSS."})}),u.jsx(oa,{title:"Spacing",count:w.length,defaultCollapsed:!0,children:w.length>0?u.jsx(iE,{spacingDefs:w,cssFilePath:(m==null?void 0:m.cssFilePath)||C,stylingType:(m==null?void 0:m.stylingType)||_,theme:l}):u.jsx(Dr,{message:"No spacing tokens found in your CSS."})}),u.jsx(oa,{title:"Shadows",count:((z=f==null?void 0:f.shadows)==null?void 0:z.length)||0,defaultCollapsed:!0,children:f&&f.shadows.length>0?u.jsx(BM,{shadows:f.shadows,cssFilePath:f.cssFilePath,stylingType:f.stylingType,onPreviewShadow:c}):u.jsx(Dr,{message:"No shadows found. Add shadow CSS variables to your global CSS file."})}),u.jsx(oa,{title:"Radii",count:R.length,defaultCollapsed:!0,children:u.jsx(uE,{borders:R,theme:l,cssFilePath:(h==null?void 0:h.cssFilePath)||C,stylingType:(h==null?void 0:h.stylingType)||_})}),u.jsx(oa,{title:"Borders",count:T.length+E.length,defaultCollapsed:!0,children:u.jsx(dE,{widthBorders:T,borderColorTokens:E,theme:l,cssFilePath:(h==null?void 0:h.cssFilePath)||C,stylingType:(h==null?void 0:h.stylingType)||_,allTokens:b,onPreviewToken:o,onClearPreview:r})}),u.jsx(oa,{title:"Gradients",count:((J=x==null?void 0:x.gradients)==null?void 0:J.length)||0,defaultCollapsed:!0,children:u.jsx(gE,{gradients:(x==null?void 0:x.gradients)||[],cssFilePath:(x==null?void 0:x.cssFilePath)||C,stylingType:(x==null?void 0:x.stylingType)||_})})]})}function oa({title:t,count:l,children:o,defaultCollapsed:r=!0}){const[c,s]=g.useState(r);return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>s(!c),className:"studio-section-hdr",children:[c?u.jsx(Nn,{}):u.jsx(fn,{}),t,l!==void 0&&u.jsx("span",{className:"count",children:l})]}),!c&&u.jsx("div",{className:"pb-2",children:o})]})}function aE({title:t,count:l,children:o}){const[r,c]=g.useState(!0);return u.jsxs("div",{className:"studio-tree-node",children:[u.jsxs("button",{onClick:()=>c(!r),className:"studio-section-hdr",style:{fontSize:10},children:[r?u.jsx(Nn,{}):u.jsx(fn,{}),u.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:t}),l!==void 0&&u.jsx("span",{className:"count",children:l})]}),!r&&u.jsx("div",{className:"studio-tree-content",children:o})]})}function oE({label:t}){return u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-2",style:{color:"var(--studio-text-dimmed)"},children:t})}function Dr({message:t}){return u.jsx("div",{className:"px-4 py-4 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:t})}function zp({token:t,theme:l,icon:o,onSave:r,step:c,min:s,maxDecimals:f}){const h=t.value??(l==="dark"&&t.darkValue?t.darkValue:t.lightValue)??"",x=(t.name||"").replace(/^--/,"");return u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] font-mono truncate mb-0.5",style:{color:"var(--studio-text-dimmed)"},children:x}),u.jsx(ca,{icon:o,value:h,onCommit:r,step:c,min:s,maxDecimals:f})]})}Ye.filter(t=>t!=="px"&&t!=="0").map(Number).filter(t=>!isNaN(t));function rE(t){const l=t.match(/^([\d.]+)(rem|px|em)$/);return l?{num:parseFloat(l[1]),unit:l[2]}:null}function iE({spacingDefs:t,cssFilePath:l,stylingType:o,theme:r}){const c=t.find(b=>b.isBase),s=t.filter(b=>!b.isBase),f=(c==null?void 0:c.value)||null,h=f?rE(f):null,x=o==="tailwind-v4"?"@theme":r==="dark"?".dark":":root",m=[.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],v=h?16*h.num:4;return u.jsxs("div",{className:"pb-2",children:[c&&u.jsx("div",{className:"px-4 mb-2",children:u.jsx(zp,{token:c,theme:r,icon:Uc,onSave:b=>G3(l,c.cssVariable,b,x)})}),s.length>0&&u.jsx("div",{className:"px-4 mb-2 grid grid-cols-2 gap-1.5",children:s.map(b=>u.jsx(zp,{token:b,theme:r,icon:Uc,onSave:C=>G3(l,b.cssVariable,C,x)},b.name))}),h&&u.jsx("div",{className:"px-4",children:u.jsxs("div",{className:"rounded-md overflow-hidden",style:{border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"grid text-[9px] font-semibold uppercase tracking-wider",style:{gridTemplateColumns:"42px 56px 1fr",color:"var(--studio-text-dimmed)",borderBottom:"1px solid var(--studio-border-subtle)",background:"var(--studio-input-bg)",padding:"4px 8px"},children:[u.jsx("span",{children:"Name"}),u.jsx("span",{children:"Size"}),u.jsx("span",{})]}),u.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:"1px solid var(--studio-border-subtle)",padding:"3px 8px"},children:[u.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:"px"}),u.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:"1px"}),u.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.25,width:"1px",minWidth:1}})]}),m.map((b,C)=>{const S=b*h.num,M=`${parseFloat(S.toFixed(4))}${h.unit}`,w=Math.min(S/v,1);return u.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:C<m.length-1?"1px solid var(--studio-border-subtle)":"none",padding:"3px 8px"},children:[u.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:b}),u.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:M}),u.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.4,width:`${Math.max(w*100,1)}%`}})]},b)})]})})]})}function cE({value:t}){return u.jsx("div",{style:{width:14,height:14,borderTopLeftRadius:t,borderTopRightRadius:0,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1.5px solid currentColor"}})}function sE({value:t}){const l=t.match(/^([\d.]+)(rem|px|em)?$/);let o=1;if(l){const r=parseFloat(l[1]),c=l[2]||"px";o=c==="rem"||c==="em"?r*16:r}return u.jsx("div",{style:{width:12,height:Math.max(Math.min(o,8),1),borderRadius:.5,background:"currentColor"}})}function l8({tokens:t,kind:l,onSave:o,step:r,min:c,maxDecimals:s}){const f={xs:1,sm:2,DEFAULT:3,md:4,lg:5,xl:6,"2xl":7,"3xl":8,"4xl":9,"5xl":10,full:11},h=m=>{const v=m.replace(/^--/,"").split("-"),b=v.length>1?v[v.length-1]:"DEFAULT";return f[b]??6.5},x=[...t].sort((m,v)=>h(m.name)-h(v.name));return u.jsx("div",{className:"flex flex-col gap-1",children:x.map(m=>{const v=(m.name||"").replace(/^--/,""),b=l==="radius"?C=>u.jsx(cE,{...C,value:m.value}):C=>u.jsx(sE,{...C,value:m.value});return u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-[10px] font-mono truncate shrink-0",style:{color:"var(--studio-text-dimmed)",width:96},children:v}),u.jsx(ca,{icon:b,value:m.value,onCommit:C=>o(m,C),step:r,min:c,maxDecimals:s})]},m.name)})})}function uE({borders:t,theme:l,cssFilePath:o,stylingType:r}){if(t.length===0)return u.jsx(Dr,{message:"No radius tokens found."});const c=r==="tailwind-v4"?"@theme":l==="dark"?".dark":":root",s=async(f,h)=>{const x=f.cssVariable||`--${f.name}`,v=f.source==="framework-preset"&&!f.isOverridden?"/api/gradients/create":"/api/gradients";await b4(v,{filePath:o,variableName:x,value:h,selector:c})};return u.jsx("div",{className:"px-4 pb-2",children:u.jsx(l8,{tokens:t,kind:"radius",onSave:s,step:.025,min:0,maxDecimals:3})})}function dE({widthBorders:t,borderColorTokens:l,theme:o,cssFilePath:r,stylingType:c,allTokens:s,onPreviewToken:f,onClearPreview:h}){if(!(t.length>0||l.length>0))return u.jsx(Dr,{message:"No border tokens found."});const m=c==="tailwind-v4"?"@theme":o==="dark"?".dark":":root",v=async(b,C)=>{const S=b.cssVariable||`--${b.name}`,w=b.source==="framework-preset"&&!b.isOverridden?"/api/gradients/create":"/api/gradients";await b4(w,{filePath:r,variableName:S,value:C,selector:m})};return u.jsxs("div",{className:"flex flex-col gap-3 pb-2",children:[t.length>0&&u.jsx("div",{className:"px-4",children:u.jsx(l8,{tokens:t,kind:"width",onSave:v,min:0})}),l.length>0&&u.jsxs("div",{className:"px-4",children:[u.jsx(oE,{label:"Color"}),u.jsx("div",{className:"flex flex-col gap-1.5",children:l.map(b=>{const C=o==="dark"&&b.darkValue?b.darkValue:b.lightValue,S=b.name.endsWith("-foreground")?b.name.replace("-foreground",""):`${b.name}-foreground`,M=s.find(E=>E.name===S),w=M?o==="dark"&&M.darkValue?M.darkValue:M.lightValue:null;return u.jsx(In,{color:C,label:b.name.replace(/^--/,""),tabs:"custom",tokenName:b.name,contrastToken:w?{name:S,value:w}:null,onChange:E=>f(b.name,E),onSave:E=>{Y0(r,b.name,E,m),h()}},b.name)})})]})]})}const fE=[{value:"to right",label:"→"},{value:"to bottom right",label:"↘"},{value:"to bottom",label:"↓"},{value:"to bottom left",label:"↙"},{value:"to left",label:"←"},{value:"to top left",label:"↖"},{value:"to top",label:"↑"},{value:"to top right",label:"↗"}];function pE(t,l){const r=[...l].sort((c,s)=>c.position-s.position).map(c=>`${c.color} ${c.position}%`);return`linear-gradient(${t}, ${r.join(", ")})`}function hE(t){const l=t.match(/linear-gradient\(([^,]+),\s*(.*)\)$/);if(!l)return null;const o=l[1].trim(),r=l[2],c=[];let s=0,f="";for(const h of r)if(h==="("&&s++,h===")"&&s--,h===","&&s===0){const x=Hp(f.trim());x&&c.push(x),f=""}else f+=h;if(f.trim()){const h=Hp(f.trim());h&&c.push(h)}return{direction:o,stops:c}}function Hp(t){const l=t.match(/\s+(\d+)%$/);return l?{color:t.slice(0,l.index).trim(),position:parseInt(l[1])}:{color:t.trim(),position:0}}function gE({gradients:t,cssFilePath:l,stylingType:o}){const[r,c]=g.useState(null),[s,f]=g.useState(!1),h=o==="tailwind-v4"?"@theme":":root",x=async(v,b,C)=>{await X3(C?"/api/gradients/create":"/api/gradients",{filePath:l,variableName:v,value:b,selector:h})},m=async v=>{await X3("/api/gradients/delete",{filePath:l,variableName:v,selector:h})};return u.jsxs("div",{className:"px-4 pb-2",children:[t.length>0&&u.jsx("div",{className:"flex flex-col gap-2 mb-3",children:t.map(v=>u.jsx(mE,{gradient:v,isEditing:r===v.cssVariable,onEdit:()=>c(r===v.cssVariable?null:v.cssVariable),onSave:b=>{x(v.cssVariable,b,!1),c(null)},onDelete:()=>{m(v.cssVariable),c(null)},onCancel:()=>c(null)},v.cssVariable))}),s?u.jsx(xE,{onSave:(v,b)=>{x(`--${v}`,b,!0),f(!1)},onCancel:()=>f(!1)}):u.jsxs("button",{onClick:()=>f(!0),className:"studio-addable-row w-full",style:{justifyContent:"center",gap:6},children:[u.jsx(os,{style:{width:12,height:12}}),u.jsx("span",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Add gradient"})]}),t.length===0&&!s&&u.jsx("div",{className:"text-[10px] leading-relaxed text-center mt-2",style:{color:"var(--studio-text-dimmed)"},children:"No gradient tokens yet. Add one to store a reusable gradient as a CSS custom property."})]})}function mE({gradient:t,isEditing:l,onEdit:o,onSave:r,onDelete:c,onCancel:s}){return u.jsxs("div",{children:[u.jsxs("button",{onClick:o,className:"flex items-center gap-2 w-full text-left p-0",style:{background:"none",border:"none",cursor:"pointer"},children:[u.jsx("div",{className:"studio-gradient-swatch",style:{background:t.value,width:32,height:24,flexShrink:0}}),u.jsx("span",{className:"flex-1 text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.name}),u.jsx(ih,{style:{width:10,height:10,color:"var(--studio-text-dimmed)"}})]}),l&&u.jsx("div",{className:"mt-2",children:u.jsx(a8,{initialValue:t.value,onSave:r,onDelete:c,onCancel:s})})]})}function xE({onSave:t,onCancel:l}){const[o,r]=g.useState("gradient-1"),c=s=>{const f=o.replace(/^--/,"").replace(/[^a-z0-9-]/g,"-");t(f,s)};return u.jsxs("div",{className:"rounded-lg p-3",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Name"}),u.jsx("input",{type:"text",value:o,onChange:s=>r(s.target.value),className:"studio-input-sm flex-1",placeholder:"gradient-name"})]}),u.jsx(a8,{initialValue:"linear-gradient(to right, #3b82f6 0%, #8b5cf6 100%)",onSave:c,onDelete:void 0,onCancel:l})]})}function a8({initialValue:t,onSave:l,onDelete:o,onCancel:r}){var S;const c=hE(t),[s,f]=g.useState((c==null?void 0:c.direction)||"to right"),[h,x]=g.useState((S=c==null?void 0:c.stops)!=null&&S.length?c.stops:[{color:"#3b82f6",position:0},{color:"#8b5cf6",position:100}]),m=pE(s,h),v=(M,w)=>{x(E=>E.map((R,T)=>T===M?{...R,...w}:R))},b=()=>{const M=[...h].sort((T,_)=>T.position-_.position),w=M[M.length-1],E=M.length>1?M[M.length-2]:{position:0},R=Math.round((w.position+E.position)/2);x([...h,{color:"#6366f1",position:R}])},C=M=>{h.length<=2||x(h.filter((w,E)=>E!==M))};return u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("div",{className:"w-full rounded-md",style:{background:m,height:32,border:"1px solid var(--studio-border-subtle)"}}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Dir"}),u.jsx("div",{className:"studio-segmented",style:{flex:1},children:fE.map(M=>u.jsx("button",{onClick:()=>f(M.value),className:s===M.value?"active":"",title:M.value,style:{flex:1,padding:"3px 2px",fontSize:11},children:M.label},M.value))})]}),u.jsx("div",{className:"flex flex-col gap-1.5",children:h.map((M,w)=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(P7,{color:M.color,onChange:E=>v(w,{color:E})}),u.jsx("input",{type:"text",value:M.color,onChange:E=>v(w,{color:E.target.value}),className:"studio-input-sm flex-1",style:{fontSize:10}}),u.jsx("input",{type:"number",min:0,max:100,value:M.position,onChange:E=>v(w,{position:parseInt(E.target.value)||0}),className:"studio-input-sm",style:{width:48,textAlign:"right",fontSize:10}}),u.jsx("span",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:"%"}),h.length>2&&u.jsx("button",{onClick:()=>C(w),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:2,display:"flex"},children:u.jsx(xd,{style:{width:10,height:10}})})]},w))}),u.jsxs("button",{onClick:b,className:"studio-addable-row",style:{justifyContent:"center",gap:4,padding:"3px 8px"},children:[u.jsx(os,{style:{width:10,height:10}}),u.jsx("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:"Add stop"})]}),u.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[u.jsxs("button",{onClick:()=>l(m),className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] font-medium",style:{background:"var(--studio-accent)",color:"white",border:"none",cursor:"pointer"},children:[u.jsx(ua,{style:{width:10,height:10}}),"Save"]}),u.jsx("button",{onClick:r,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px]",style:{background:"transparent",color:"var(--studio-text-dimmed)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:"Cancel"}),o&&u.jsxs("button",{onClick:o,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] ml-auto",style:{background:"transparent",color:"var(--studio-danger)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:[u.jsx(ph,{style:{width:10,height:10}}),"Delete"]})]})]})}const vE={padding:["padding-top","padding-right","padding-bottom","padding-left"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],paddingTop:["padding-top"],paddingRight:["padding-right"],paddingBottom:["padding-bottom"],paddingLeft:["padding-left"],margin:["margin-top","margin-right","margin-bottom","margin-left"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],marginTop:["margin-top"],marginRight:["margin-right"],marginBottom:["margin-bottom"],marginLeft:["margin-left"],borderRadius:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"]};function o8(t,l){const o={},r=new Map,c=new Map;for(const x of t){const m=vE[x.property];if(m)for(const v of m)o[v]=x.value,r.set(v,x),c.has(v)||c.set(v,{cssProperty:v,label:v,category:l==="border-radius"?"border":"spacing",controlType:"length",source:"class",tailwindValue:x.value,fullClass:x.fullClass,computedValue:x.value,inherited:!1,tokenMatch:null,hasValue:!0,flexGridOnly:!1})}const s=l==="padding"?["padding-top","padding-right","padding-bottom","padding-left"]:l==="margin"?["margin-top","margin-right","margin-bottom","margin-left"]:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"];for(const x of s)o[x]||(o[x]="0");const f=s.map(x=>c.get(x)).filter(x=>!!x),h=s.map(x=>c.get(x)||{cssProperty:x,label:x,category:l==="border-radius"?"border":"spacing",controlType:"length",source:"none",tailwindValue:null,fullClass:null,computedValue:"0",inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:!1});return{computedStyles:o,activeProps:f,allProperties:h,classMap:r}}function yE(t){const l=function({style:r}){return u.jsx(lv,{style:r,strokeWidth:1,size:15})};switch(t.property){case"width":return{icon:ia,scale:Ye,label:"Width"};case"height":return{icon:co,scale:Ye,label:"Height"};case"minWidth":return{icon:ia,scale:Ye,label:"Min W"};case"minHeight":return{icon:co,scale:Ye,label:"Min H"};case"maxWidth":return{icon:ia,scale:Ye,label:"Max W"};case"maxHeight":return{icon:co,scale:Ye,label:"Max H"};case"size":return{icon:l,scale:Ye,label:"Size"};case"gap":return{icon:Or,scale:Ye,label:"Gap"};case"gapX":return{icon:Or,scale:Ye,label:"Col Gap"};case"gapY":return{icon:Or,scale:Ye,label:"Row Gap"};case"fontSize":return{icon:Br,scale:Wd,label:"Size"};case"fontWeight":return{icon:vd,scale:Id,label:"Weight"};case"borderWidth":return{icon:void 0,scale:["0","1","2","4","8"],label:"Border"};default:return{icon:void 0,scale:[],label:t.label}}}function bE({classes:t,onClassChange:l,tokenGroups:o,flat:r=!1}){const c=q7(t),f=[{key:"layout",label:"Layout"},{key:"color",label:"Color"},{key:"spacing",label:"Spacing"},{key:"size",label:"Size"},{key:"typography",label:"Type"},{key:"shape",label:"Shape"}].filter(h=>c[h.key].length>0);return f.length===0?u.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No editable properties"}):r?u.jsx("div",{className:"flex flex-col gap-2",children:f.map(h=>u.jsx(r8,{category:h.key,properties:c[h.key],onClassChange:l,tokenGroups:o},h.key))}):u.jsxs("div",{children:[f.map(h=>u.jsx(CE,{category:h.key,label:h.label,properties:c[h.key],onClassChange:l,tokenGroups:o},h.key)),c.other.length>0&&u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"studio-section-hdr",style:{cursor:"default"},children:["Other",u.jsx("span",{className:"count",children:c.other.length})]}),u.jsx("div",{className:"flex flex-wrap gap-1 px-4 pb-3",children:c.other.map(h=>u.jsx("span",{className:"px-1.5 py-0.5 text-[10px] font-mono rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:h.fullClass},h.fullClass))})]})]})}function r8({category:t,properties:l,onClassChange:o,tokenGroups:r}){return t==="layout"?u.jsx(RE,{properties:l,onClassChange:o}):t==="color"?u.jsx(_E,{properties:l,onClassChange:o,tokenGroups:r||{}}):t==="spacing"?u.jsx(wE,{properties:l,onClassChange:o}):t==="shape"?u.jsx(SE,{properties:l,onClassChange:o}):u.jsx(NE,{properties:l,onClassChange:o})}function CE({category:t,label:l,properties:o,onClassChange:r,tokenGroups:c}){const[s,f]=g.useState(!0);return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>f(!s),className:"studio-section-hdr",children:[s?u.jsx(Nn,{}):u.jsx(fn,{}),l,u.jsx("span",{className:"count",children:o.length})]}),!s&&u.jsx("div",{className:"flex flex-col gap-2 pb-2 px-4",children:u.jsx(r8,{category:t,properties:o,onClassChange:r,tokenGroups:c})})]})}function wE({properties:t,onClassChange:l}){const o=t.filter(s=>s.property.startsWith("padding")),r=t.filter(s=>s.property.startsWith("margin")),c=t.filter(s=>s.property==="gap"||s.property==="gapX"||s.property==="gapY");return u.jsxs(u.Fragment,{children:[o.length>0&&u.jsx(Vp,{box:"padding",properties:o,onClassChange:l}),r.length>0&&u.jsx(Vp,{box:"margin",properties:r,onClassChange:l}),c.map(s=>u.jsx(ho,{prop:s,onClassChange:l},s.fullClass))]})}function Vp({box:t,properties:l,onClassChange:o}){const{computedStyles:r,activeProps:c,allProperties:s,classMap:f}=o8(l,t),h=t==="padding"?"p":"m";return u.jsx(Xr,{box:t,icon:t==="padding"?Nl:ra,activeProps:c,allProperties:s,computedStyles:r,onPreviewInlineStyle:()=>{},onCommitClass:(x,m)=>{if(m){for(const[,b]of f)if(b.fullClass===m){o(b.fullClass,x);return}}new RegExp(`^${h}[xy]?-`).test(x)&&l.length>0&&o(l[0].fullClass,x)}})}function SE({properties:t,onClassChange:l}){const o=t.filter(c=>c.property==="borderRadius"),r=t.filter(c=>c.property!=="borderRadius");return u.jsxs(u.Fragment,{children:[o.length>0&&u.jsx(jE,{properties:o,onClassChange:l}),r.map(c=>u.jsx(ho,{prop:c,onClassChange:l},c.fullClass))]})}function jE({properties:t,onClassChange:l}){const{computedStyles:o,activeProps:r,allProperties:c}=o8(t,"border-radius");return u.jsx(Q7,{activeProps:r,allProperties:c,computedStyles:o,onPreviewInlineStyle:()=>{},onCommitClass:(s,f)=>{if(f){for(const h of t)if(h.fullClass===f){l(h.fullClass,s);return}}t.length>0&&l(t[0].fullClass,s)}})}function po({label:t,prefix:l}){return u.jsxs("div",{className:"text-[10px] font-medium mb-1",style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[l&&u.jsxs("span",{style:{color:"var(--studio-accent)"},children:[l.replace(/:$/,"")," "]}),t]})}const ME=[{value:"flex",icon:rx,label:"Flex"},{value:"grid",icon:lh,label:"Grid"},{value:"block",icon:cm,label:"Block"},{value:"hidden",icon:void 0,label:"None"}],EE=[{value:"start",icon:Jp,label:"Start"},{value:"center",icon:Qp,label:"Center"},{value:"end",icon:Xp,label:"End"},{value:"stretch",icon:void 0,label:"Stretch"}],TE=[{value:"start",icon:Kp,label:"Start"},{value:"center",icon:Gp,label:"Center"},{value:"end",icon:Fp,label:"End"},{value:"between",icon:Uc,label:"Between"},{value:"evenly",icon:fx,label:"Evenly"}];function RE({properties:t,onClassChange:l}){const o=t.find(f=>f.property==="display"),r=t.find(f=>f.property==="alignItems"),c=t.find(f=>f.property==="justifyContent"),s=t.filter(f=>!["display","alignItems","justifyContent"].includes(f.property));return u.jsxs(u.Fragment,{children:[o&&u.jsxs("div",{children:[u.jsx(po,{label:"Display",prefix:o.prefix}),u.jsx(un,{options:ME,value:o.value,onChange:f=>{const h=kr(o.property,f,o.prefix);l(o.fullClass,h)}})]}),r&&u.jsxs("div",{children:[u.jsx(po,{label:"Alignment",prefix:r.prefix}),u.jsx(un,{options:EE,value:r.value,onChange:f=>{const h=kr(r.property,f,r.prefix);l(r.fullClass,h)}})]}),c&&u.jsxs("div",{children:[u.jsx(po,{label:"Justify",prefix:c.prefix}),u.jsx(un,{options:TE,value:c.value,onChange:f=>{const h=kr(c.property,f,c.prefix);l(c.fullClass,h)}})]}),s.map(f=>u.jsx(ho,{prop:f,onClassChange:l},f.fullClass))]})}function _E({properties:t,onClassChange:l,tokenGroups:o}){const r=[];for(const[c,s]of Object.entries(o))for(const f of s)if(f.category==="color"){const h=f.name.replace(/^--/,"");r.some(x=>x.name===h)||r.push({name:h,value:f.lightValue||""})}return u.jsx(u.Fragment,{children:t.map(c=>{var f;const s=((f=r.find(h=>h.name===c.value.split("/")[0]))==null?void 0:f.value)||"";return u.jsxs("div",{children:[u.jsx(po,{label:c.label,prefix:c.prefix}),u.jsx(In,{color:s,label:c.value,tabs:"both",defaultTab:"tokens",tokens:r,activeToken:c.value,onSelectToken:h=>{const x=kr(c.property,h,c.prefix);l(c.fullClass,x)}})]},c.fullClass)})})}function NE({properties:t,onClassChange:l}){const o=[["width","height"],["minWidth","minHeight"],["maxWidth","maxHeight"],["fontSize","fontWeight"]],r=new Set,c=[];for(const[s,f]of o){const h=t.find(m=>m.property===s),x=t.find(m=>m.property===f);(h||x)&&(c.push(u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[h&&u.jsx(ho,{prop:h,onClassChange:l}),x&&u.jsx(ho,{prop:x,onClassChange:l})]},`${s}-${f}`)),h&&r.add(h),x&&r.add(x))}for(const s of t)r.has(s)||c.push(u.jsx(ho,{prop:s,onClassChange:l},s.fullClass));return u.jsx(u.Fragment,{children:c})}function ho({prop:t,onClassChange:l}){const o=yE(t),r=t.fullClass.replace(/-[\w[\].]+$/,"");return o.scale.length>0?u.jsx(St,{icon:o.icon,value:t.value,computedValue:t.value,currentClass:t.fullClass,scale:o.scale,prefix:r,cssProp:o.label,onCommitClass:(s,f)=>{l(t.fullClass,s)}}):Jd(t.value)?u.jsxs("div",{children:[u.jsx(po,{label:o.label,prefix:t.prefix}),u.jsx(LE,{value:iM(t.value),onCommit:s=>{const f=kr(t.property,cM(s),t.prefix);l(t.fullClass,f)}})]}):u.jsxs("div",{children:[u.jsx(po,{label:o.label,prefix:t.prefix}),u.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.value})]})}function LE({value:t,onCommit:l}){const[o,r]=g.useState(t),[c,s]=g.useState(!1),f=c?o:t;return u.jsx("input",{type:"text",value:f,onChange:h=>r(h.target.value),onFocus:()=>{r(t),s(!0)},onBlur:()=>{s(!1);const h=o.trim();h&&h!==t&&l(h)},onKeyDown:h=>{h.key==="Enter"&&h.target.blur()},className:"studio-select w-full font-mono",style:{fontSize:11}})}function H0({tag:t,className:l,computedStyles:o,parentComputedStyles:r,onPreviewInlineStyle:c,onRevertInlineStyles:s,onCommitClass:f}){const h=ni(),x=lf(),m=t8(),v=(h==null?void 0:h.groups)||{},b=x==null?void 0:x.shadows,C=m==null?void 0:m.gradients,S=SM(t,l,o,r,v),w=[{key:"layout",label:"Layout"},{key:"size",label:"Size"},{key:"spacing",label:"Spacing"},{key:"typography",label:"Typography"},{key:"color",label:"Color"},{key:"border",label:"Border"},{key:"effects",label:"Effects"}].filter(R=>S[R.key].length>0);if(w.length===0)return u.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No styles to display"});const E=o.display||"block";return u.jsx("div",{children:w.map(R=>u.jsx(OE,{category:R.key,label:R.label,properties:S[R.key],computedStyles:o,tokenGroups:v,shadows:b,gradients:C,displayValue:E,elementClassName:l,onPreviewInlineStyle:c,onRevertInlineStyles:s,onCommitClass:f},R.key))})}function OE({category:t,label:l,properties:o,computedStyles:r,tokenGroups:c,shadows:s,gradients:f,displayValue:h,elementClassName:x,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}){const[C,S]=g.useState(!0),M=o.filter(R=>R.hasValue),w=o.filter(R=>!R.hasValue),E=M.length;return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>S(!C),className:"studio-section-hdr",children:[C?u.jsx(Nn,{}):u.jsx(fn,{}),l,E>0&&u.jsx("span",{className:"count",children:E})]}),!C&&u.jsxs("div",{className:"flex flex-col gap-4 pb-4 px-4",children:[t==="layout"?u.jsx(UE,{properties:o,displayValue:h,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):t==="spacing"?u.jsx(YE,{properties:o,computedStyles:r,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):t==="border"?u.jsx(FE,{properties:o,computedStyles:r,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):t==="size"?u.jsx(PE,{properties:o,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):t==="typography"?u.jsx(KE,{properties:o,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):t==="effects"?u.jsx(JE,{properties:o,tokenGroups:c,shadows:s,gradients:f,elementClassName:x,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b}):M.map(R=>u.jsx(dn,{prop:R,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b},R.cssProperty)),!["layout","spacing","border","size","typography","effects"].includes(t)&&w.length>0&&u.jsx(zs,{properties:w,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:v,onCommitClass:b})]})]})}const AE=[{value:"flex",icon:Vm,label:"Flex",tooltip:"Flex — arrange children in a row or column"},{value:"grid",icon:lh,label:"Grid",tooltip:"Grid — arrange children in a 2D grid"},{value:"block",icon:Zc,label:"Block",tooltip:"Block — stack vertically, full width"},{value:"none",icon:wm,label:"None",tooltip:"Hidden — remove from layout"}],zE=[{value:"flex-start",icon:Jp,label:"Start",tooltip:"Start — align to start of cross axis"},{value:"center",icon:Qp,label:"Center",tooltip:"Center — center on cross axis"},{value:"flex-end",icon:Xp,label:"End",tooltip:"End — align to end of cross axis"},{value:"stretch",icon:gx,label:"Stretch",tooltip:"Stretch — fill cross axis"}],HE=[{value:"flex-start",icon:Kp,label:"Start",tooltip:"Start — pack to start of main axis"},{value:"center",icon:Gp,label:"Center",tooltip:"Center — center on main axis"},{value:"flex-end",icon:Fp,label:"End",tooltip:"End — pack to end of main axis"},{value:"space-between",icon:Uc,label:"Between",tooltip:"Between — equal space between items"}],VE=({style:t})=>u.jsxs("svg",{width:(t==null?void 0:t.width)??14,height:(t==null?void 0:t.height)??14,viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[u.jsx("rect",{x:"2",y:"3",width:"10",height:"8",rx:"1"}),u.jsx("line",{x1:"4",y1:"6",x2:"10",y2:"6"}),u.jsx("line",{x1:"4",y1:"8.5",x2:"8",y2:"8.5"})]}),kE=({style:t})=>u.jsxs("svg",{width:(t==null?void 0:t.width)??14,height:(t==null?void 0:t.height)??14,viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[u.jsx("rect",{x:"1.5",y:"3",width:"8",height:"8",rx:"1",strokeDasharray:"2 2"}),u.jsx("rect",{x:"4.5",y:"1.5",width:"8",height:"8",rx:"1"})]}),DE=({style:t})=>u.jsx(Ix,{size:(t==null?void 0:t.width)??14,style:t}),$E=({style:t})=>u.jsx(jv,{size:(t==null?void 0:t.width)??14,style:t}),BE=({style:t})=>u.jsxs("svg",{width:(t==null?void 0:t.width)??14,height:(t==null?void 0:t.height)??14,viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[u.jsx("rect",{x:"2",y:"1.5",width:"10",height:"3",rx:"0.75"}),u.jsx("rect",{x:"2",y:"6",width:"10",height:"6.5",rx:"1",strokeDasharray:"2 2"})]}),ZE=[{value:"static",icon:VE,label:"Static",tooltip:"Static — default document flow"},{value:"relative",icon:kE,label:"Relative",tooltip:"Relative — offset from normal position"},{value:"absolute",icon:DE,label:"Absolute",tooltip:"Absolute — positioned relative to ancestor"},{value:"fixed",icon:$E,label:"Fixed",tooltip:"Fixed — positioned relative to viewport"},{value:"sticky",icon:BE,label:"Sticky",tooltip:"Sticky — toggles between relative and fixed"}];function UE({properties:t,displayValue:l,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){const f=t.find(w=>w.cssProperty==="display"),h=t.find(w=>w.cssProperty==="position"),x=t.find(w=>w.cssProperty==="align-items"),m=t.find(w=>w.cssProperty==="justify-content"),v=t.filter(w=>!["display","position","align-items","justify-content"].includes(w.cssProperty)&&w.hasValue&&!w.flexGridOnly),b=t.filter(w=>!["display","position","align-items","justify-content"].includes(w.cssProperty)&&w.hasValue&&w.flexGridOnly),C=t.filter(w=>!["display","position","align-items","justify-content"].includes(w.cssProperty)&&!w.hasValue&&w.flexGridOnly),S=l.includes("flex")||l.includes("grid"),M=(w,E)=>{r(w,E);const R=_n(w,E);if(R){const T=t.find(O=>O.cssProperty===w),_=(T==null?void 0:T.fullClass)||void 0;s(R.tailwindClass,_)}};return u.jsxs(u.Fragment,{children:[f&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Display",inherited:f.inherited}),u.jsx(un,{options:AE,value:f.computedValue,onChange:w=>M("display",w)})]}),h&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Position",inherited:h.inherited}),u.jsx(un,{options:ZE,value:h.computedValue,onChange:w=>M("position",w)})]}),S&&x&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Align Items",inherited:x.inherited}),u.jsx(un,{options:zE,value:x.computedValue,onChange:w=>M("align-items",w)})]}),S&&m&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Justify",inherited:m.inherited}),u.jsx(un,{options:HE,value:m.computedValue,onChange:w=>M("justify-content",w)})]}),S&&b.map(w=>u.jsx(dn,{prop:w,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},w.cssProperty)),S&&C.length>0&&u.jsx(zs,{properties:C,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}),v.map(w=>u.jsx(dn,{prop:w,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},w.cssProperty))]})}function PE({properties:t,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const s=t.filter(m=>m.hasValue),f=s.find(m=>m.cssProperty==="width"),h=s.find(m=>m.cssProperty==="height"),x=s.filter(m=>m.cssProperty!=="width"&&m.cssProperty!=="height");return u.jsxs(u.Fragment,{children:[(f||h)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[f&&u.jsx(dn,{prop:f,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}),h&&u.jsx(dn,{prop:h,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c})]}),x.map(m=>u.jsx(dn,{prop:m,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},m.cssProperty))]})}function YE({properties:t,computedStyles:l,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){const f=t.filter(v=>v.hasValue),h=f.filter(v=>v.cssProperty.startsWith("padding-")),x=f.filter(v=>v.cssProperty.startsWith("margin-")),m=t.filter(v=>!v.hasValue);return u.jsxs(u.Fragment,{children:[h.length>0&&u.jsx(Xr,{box:"padding",icon:Nl,activeProps:h,allProperties:t,computedStyles:l,onPreviewInlineStyle:r,onCommitClass:s}),x.length>0&&u.jsx(Xr,{box:"margin",icon:ra,activeProps:x,allProperties:t,computedStyles:l,onPreviewInlineStyle:r,onCommitClass:s}),m.length>0&&u.jsx(zs,{properties:m,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s})]})}const qE=[{value:"left",icon:Pc,label:"Left",tooltip:"Left — align text to left"},{value:"center",icon:zr,label:"Center",tooltip:"Center — center text"},{value:"right",icon:uh,label:"Right",tooltip:"Right — align text to right"},{value:"justify",icon:sh,label:"Justify",tooltip:"Justify — stretch to fill width"}],XE=[{value:"none",icon:dh,label:"None",tooltip:"None — no decoration"},{value:"underline",icon:hh,label:"Underline",tooltip:"Underline — line below text"},{value:"line-through",icon:xx,label:"Strikethrough",tooltip:"Strikethrough — line through text"}],GE=[{value:"none",icon:dh,label:"None",tooltip:"None — no transform"},{value:"uppercase",icon:ah,label:"Uppercase",tooltip:"Uppercase — ALL CAPS"},{value:"lowercase",icon:Bm,label:"Lowercase",tooltip:"Lowercase — all lowercase"},{value:"capitalize",icon:Dm,label:"Capitalize",tooltip:"Capitalize — First Letter"}],QE=["sans","serif","mono"];function KE({properties:t,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const s=T=>t.find(_=>_.cssProperty===T),f=s("font-family"),h=s("font-size"),x=s("font-weight"),m=s("line-height"),v=s("letter-spacing"),b=s("text-align"),C=s("text-decoration"),S=s("text-transform"),M=(T,_)=>{o(T,_);const O=_n(T,_);if(O){const k=s(T),Z=(k==null?void 0:k.fullClass)||void 0;c(O.tailwindClass,Z)}},w=["font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-decoration","text-transform"],E=t.filter(T=>T.hasValue&&!w.includes(T.cssProperty)),R=t.filter(T=>!T.hasValue&&!w.includes(T.cssProperty));return u.jsxs(u.Fragment,{children:[f&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Font Family",inherited:f.inherited}),u.jsx(St,{icon:nh,value:f.tailwindValue||f.computedValue,computedValue:f.computedValue,currentClass:f.fullClass,scale:QE,prefix:"font",cssProp:"font-family",onPreview:T=>o("font-family",T),onCommitClass:c})]}),(h||x)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[h&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Size",inherited:h.inherited}),u.jsx(St,{icon:Br,value:h.tailwindValue||h.computedValue,computedValue:h.computedValue,currentClass:h.fullClass,scale:Wd,prefix:"text",cssProp:"font-size",onPreview:T=>o("font-size",T),onCommitClass:c})]}),x&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Weight",inherited:x.inherited}),u.jsx(St,{icon:vd,value:x.tailwindValue||x.computedValue,computedValue:x.computedValue,currentClass:x.fullClass,scale:Id,prefix:"font",cssProp:"font-weight",onPreview:T=>o("font-weight",T),onCommitClass:c})]})]}),(m||v)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[m&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Leading",inherited:m.inherited}),u.jsx(St,{icon:rh,value:m.tailwindValue||m.computedValue,computedValue:m.computedValue,currentClass:m.fullClass,scale:X7,prefix:"leading",cssProp:"line-height",onPreview:T=>o("line-height",T),onCommitClass:c})]}),v&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Tracking",inherited:v.inherited}),u.jsx(St,{icon:oh,value:v.tailwindValue||v.computedValue,computedValue:v.computedValue,currentClass:v.fullClass,scale:G7,prefix:"tracking",cssProp:"letter-spacing",onPreview:T=>o("letter-spacing",T),onCommitClass:c})]})]}),b&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Text Align",inherited:b.inherited}),u.jsx(un,{options:qE,value:b.computedValue,onChange:T=>M("text-align",T)})]}),C&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Decoration",inherited:C.inherited}),u.jsx(un,{options:XE,value:C.computedValue,onChange:T=>M("text-decoration",T)})]}),S&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Transform",inherited:S.inherited}),u.jsx(un,{options:GE,value:S.computedValue,onChange:T=>M("text-transform",T)})]}),E.map(T=>u.jsx(dn,{prop:T,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},T.cssProperty)),R.length>0&&u.jsx(zs,{properties:R,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c})]})}function FE({properties:t,computedStyles:l,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){var C,S;const f=t.filter(M=>M.hasValue),h=t.filter(M=>M.cssProperty.includes("radius")),x=f.filter(M=>M.cssProperty.includes("radius")),m=f.filter(M=>M.cssProperty.includes("width")),v=f.filter(M=>!M.cssProperty.includes("radius")&&!M.cssProperty.includes("width")),b=tf(l,"border-width");return u.jsxs(u.Fragment,{children:[x.length>0&&u.jsx(Q7,{activeProps:x,allProperties:h,computedStyles:l,onPreviewInlineStyle:r,onCommitClass:s}),u.jsxs("div",{children:[u.jsx(Xe,{label:"Width"}),b||m.length===0?u.jsx(St,{icon:Rr,value:((C=m[0])==null?void 0:C.tailwindValue)||(!b||b==="0px"||b==="0"?"—":b),computedValue:b||"0px",currentClass:((S=m[0])==null?void 0:S.fullClass)||null,scale:sM,prefix:"border",cssProp:"border-width",onPreview:M=>r("border-width",M),onCommitClass:(M,w)=>{s(M==="border-1"?"border":M,w)}}):m.map(M=>u.jsx(dn,{prop:M,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},M.cssProperty))]}),v.map(M=>u.jsx(dn,{prop:M,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},M.cssProperty))]})}function JE({properties:t,tokenGroups:l,shadows:o,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onRevertInlineStyles:f,onCommitClass:h}){const x=t.find(S=>S.cssProperty==="opacity"),m=t.find(S=>S.cssProperty==="box-shadow"),v=t.find(S=>S.cssProperty==="background-image"),b=t.find(S=>S.cssProperty==="transform"),C=t.filter(S=>!["opacity","box-shadow","background-image","transform"].includes(S.cssProperty)&&S.hasValue);return u.jsxs(u.Fragment,{children:[x&&u.jsxs("div",{children:[u.jsx(Xe,{label:x.label,inherited:x.inherited}),u.jsx(ef,{value:x.computedValue,onPreview:S=>s("opacity",S),onCommitClass:h})]}),m&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Shadow",inherited:m.inherited}),u.jsx(ud,{prop:m,shadows:o,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),v&&v.hasValue&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Gradient",inherited:v.inherited}),u.jsx(as,{prop:v,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),!v&&r&&r.length>0&&u.jsxs("div",{children:[u.jsx(Xe,{label:"Gradient",inherited:!1}),u.jsx(as,{prop:null,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),b&&b.hasValue&&u.jsx(dn,{prop:b,tokenGroups:l,onPreviewInlineStyle:s,onRevertInlineStyles:f,onCommitClass:h}),C.map(S=>u.jsx(dn,{prop:S,tokenGroups:l,onPreviewInlineStyle:s,onRevertInlineStyles:f,onCommitClass:h},S.cssProperty))]})}function zs({properties:t,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const[s,f]=g.useState(new Set);return u.jsx(u.Fragment,{children:t.map(h=>s.has(h.cssProperty)?u.jsx(dn,{prop:{...h,hasValue:!0},tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},h.cssProperty):u.jsxs("button",{onClick:()=>f(x=>new Set(x).add(h.cssProperty)),className:"studio-addable-row",children:[u.jsx("span",{className:"studio-addable-label",children:h.label}),u.jsx(os,{style:{width:12,height:12,flexShrink:0}})]},h.cssProperty))})}function dn({prop:t,tokenGroups:l,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){if(t.controlType==="color"){const f=[];for(const[,v]of Object.entries(l))for(const b of v)if(b.category==="color"){const C=b.name.replace(/^--/,"");f.some(S=>S.name===C)||f.push({name:C,value:b.lightValue||""})}const h=t.cssProperty==="color"?"text":t.cssProperty==="background-color"?"bg":"border",x=!!t.tokenMatch,m=x?t.tokenMatch.tokenName:t.tailwindValue||t.computedValue;return u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(In,{color:t.computedValue,label:m,tabs:"both",defaultTab:"tokens",tokens:f,activeToken:x?t.tokenMatch.tokenName:void 0,onSelectToken:v=>{c(`${h}-${v}`)},onChange:v=>o(t.cssProperty,v),onCommit:v=>{const b=t.fullClass||void 0;c(`${h}-[${v.replace(/\s+/g,"_")}]`,b)}})]})}if(t.controlType==="readonly"){const f=Nr(t.cssProperty);return u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsxs("div",{className:"studio-scrub-input",children:[f&&u.jsx(ft,{content:t.cssProperty,side:"left",children:u.jsx("div",{className:"studio-scale-icon",children:u.jsx(f,{style:{width:12,height:12}})})}),u.jsx(ft,{content:t.computedValue,side:"bottom",children:u.jsx("div",{className:"studio-scrub-value",style:{color:"var(--studio-text)",cursor:"default"},children:t.computedValue})})]})]})}if(t.tokenMatch){const f=t.tokenMatch,h=VM[t.cssProperty]||"";return u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(St,{icon:Nr(t.cssProperty),value:f.tokenName,computedValue:t.computedValue,currentClass:t.fullClass,scale:f.groupTokens.map(x=>x.name),prefix:h,cssProp:t.cssProperty,onPreview:x=>o(t.cssProperty,x),onCommitClass:c})]})}if(t.cssProperty==="opacity")return u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(ef,{value:t.computedValue,onPreview:f=>o("opacity",f),onCommitClass:c})]});const s=kM[t.cssProperty];if(s){const h=!t.tailwindValue&&(t.computedValue==="0px"||t.computedValue==="0")?"—":t.tailwindValue||t.computedValue;return u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(St,{icon:Nr(t.cssProperty),value:h,computedValue:t.computedValue,currentClass:t.fullClass,scale:s.scale,prefix:s.prefix,cssProp:t.cssProperty,onPreview:x=>o(t.cssProperty,x),onCommitClass:c})]})}return t.controlType==="keyword"?u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(sd,{prop:t,onPreviewInlineStyle:o,onCommitClass:c})]}):u.jsxs("div",{children:[u.jsx(Xe,{label:t.label,inherited:t.inherited}),u.jsx(ca,{icon:Nr(t.cssProperty),value:t.computedValue,tooltip:t.cssProperty,onPreview:f=>o(t.cssProperty,f),onCommit:f=>{const h=_n(t.cssProperty,f);h&&c(h.tailwindClass)}})]})}function sn({title:t,children:l}){return u.jsxs("div",{style:{marginBottom:24},children:[u.jsx("div",{style:{fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--studio-text-dimmed)",marginBottom:8,borderBottom:"1px solid var(--studio-border-subtle)",paddingBottom:4},children:t}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:l})]})}function Ie({label:t,children:l}){return u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[u.jsx("span",{style:{fontSize:9,color:"var(--studio-text-dimmed)",width:80,flexShrink:0,fontFamily:"'SF Mono', 'Fira Code', monospace"},children:t}),u.jsx("div",{style:{flex:1,minWidth:0},children:l})]})}function Et(t){return{cssProperty:"display",label:"Display",category:"layout",controlType:"keyword",source:"class",tailwindValue:null,fullClass:null,computedValue:"block",inherited:!1,tokenMatch:null,hasValue:!0,flexGridOnly:!1,...t}}function WE(){const[t,l]=g.useState("flex"),[o,r]=g.useState("sm"),[c,s]=g.useState("16px"),[f,h]=g.useState("1.5rem"),[x,m]=g.useState("left"),[v,b]=g.useState(50),[C,S]=g.useState(4),[M,w]=g.useState("rgb(59 130 246)"),[E,R]=g.useState("#8b5cf6"),[T,_]=g.useState("flex"),O=()=>{};return u.jsxs("div",{style:{padding:16,background:"var(--studio-surface)",color:"var(--studio-text)",fontFamily:"system-ui, sans-serif",maxWidth:340,overflow:"auto"},children:[u.jsx("div",{style:{fontSize:13,fontWeight:700,marginBottom:16,color:"var(--studio-text)"},children:"Controls Gallery"}),u.jsxs(sn,{title:"Labels",children:[u.jsx(Xe,{label:"Font Size"}),u.jsx(Xe,{label:"Color",inherited:!0}),u.jsx(Qj,{label:"Padding"})]}),u.jsxs(sn,{title:"StudioSelect",children:[u.jsx(Ie,{label:"flat options",children:u.jsx(Ol,{value:t,onChange:l,options:[{value:"block",label:"block"},{value:"flex",label:"flex"},{value:"grid",label:"grid"},{value:"inline",label:"inline"},{value:"none",label:"none"}]})}),u.jsx(Ie,{label:"with icon",children:u.jsx(Ol,{icon:Pc,tooltip:"text-align",value:x,onChange:m,options:[{value:"left"},{value:"center"},{value:"right"},{value:"justify"}]})}),u.jsx(Ie,{label:"grouped",children:u.jsx(Ol,{value:o,onChange:r,groups:[{label:"Small",options:[{value:"xs",label:"xs"},{value:"sm",label:"sm"}]},{label:"Large",options:[{value:"lg",label:"lg"},{value:"xl",label:"xl"},{value:"2xl",label:"2xl"}]}]})})]}),u.jsxs(sn,{title:"ScrubInput",children:[u.jsx(Ie,{label:"with icon",children:u.jsx(ca,{icon:ia,value:c,tooltip:"Width",onCommit:s})}),u.jsx(Ie,{label:"rem value",children:u.jsx(ca,{icon:Br,value:f,tooltip:"Font size",onCommit:h})}),u.jsx(Ie,{label:"label only",children:u.jsx(ca,{label:"H",value:"200px",onCommit:O})})]}),u.jsxs(sn,{title:"ScaleInput",children:[u.jsx(Ie,{label:"spacing",children:u.jsx(St,{icon:Nl,value:"4",computedValue:"16px",currentClass:"p-4",scale:["0","0.5","1","1.5","2","2.5","3","3.5","4","5","6","8","10","12"],prefix:"p",cssProp:"padding",onCommitClass:O})}),u.jsx(Ie,{label:"font size",children:u.jsx(St,{icon:Br,value:"lg",computedValue:"18px",currentClass:"text-lg",scale:["xs","sm","base","lg","xl","2xl","3xl"],prefix:"text",cssProp:"font-size",onCommitClass:O})})]}),u.jsxs(sn,{title:"SegmentedIcons",children:[u.jsx(Ie,{label:"icons",children:u.jsx(un,{value:x,onChange:m,options:[{value:"left",icon:Pc,tooltip:"Left"},{value:"center",icon:zr,tooltip:"Center"},{value:"right",icon:uh,tooltip:"Right"},{value:"justify",icon:sh,tooltip:"Justify"}]})}),u.jsx(Ie,{label:"labels",children:u.jsx(un,{value:"auto",onChange:O,options:[{value:"auto",label:"auto"},{value:"fixed",label:"fixed"},{value:"scroll",label:"scroll"}]})})]}),u.jsxs(sn,{title:"SliderInput",children:[u.jsx(Ie,{label:"with icon",children:u.jsx(J0,{icon:yd,tooltip:"Opacity",value:v,min:0,max:100,unit:"%",onChange:b})}),u.jsx(Ie,{label:"no icon",children:u.jsx(J0,{value:C,min:0,max:50,unit:"px",onChange:S})})]}),u.jsx(sn,{title:"OpacitySlider",children:u.jsx(Ie,{label:"opacity",children:u.jsx(ef,{value:"0.75",onPreview:O,onCommitClass:O})})}),u.jsxs(sn,{title:"KeywordControl",children:[u.jsx(Ie,{label:"display",children:u.jsx(sd,{prop:Et({cssProperty:"display",computedValue:T,controlType:"keyword"}),onPreviewInlineStyle:(k,Z)=>_(Z),onCommitClass:O})}),u.jsx(Ie,{label:"text-align",children:u.jsx(sd,{prop:Et({cssProperty:"text-align",label:"Align",computedValue:"left",controlType:"keyword"}),onPreviewInlineStyle:O,onCommitClass:O})})]}),u.jsxs(sn,{title:"ColorInput",children:[u.jsx(Ie,{label:"custom only",children:u.jsx(In,{color:M,onChange:w})}),u.jsx(Ie,{label:"with tokens",children:u.jsx(In,{color:"oklch(0.637 0.237 25.331)",label:"primary",tabs:"both",defaultTab:"tokens",tokens:[{name:"primary",value:"oklch(0.637 0.237 25.331)"},{name:"secondary",value:"oklch(0.551 0.135 264.695)"},{name:"accent",value:"oklch(0.7 0.17 142)"}],activeToken:"primary",onSelectToken:O})}),u.jsx(Ie,{label:"token edit",children:u.jsx(In,{color:"oklch(0.637 0.237 25.331)",label:"primary",tabs:"custom",tokenName:"--primary",contrastToken:{name:"--primary-foreground",value:"oklch(0.982 0.016 73.684)"},onChange:O,onSave:O})}),u.jsx(Ie,{label:"swatch",children:u.jsx(P7,{color:E,onChange:R})})]}),u.jsxs(sn,{title:"ShadowPicker",children:[u.jsx(Ie,{label:"scale value",children:u.jsx(ud,{prop:Et({cssProperty:"box-shadow",label:"Box Shadow",computedValue:"0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1)",tailwindValue:"md",fullClass:"shadow-md",controlType:"text"}),shadows:[{name:"drop-glow",value:"0 0 12px rgba(59,130,246,0.5)",cssVariable:"--shadow-glow"}],elementClassName:"shadow-md rounded-lg",onPreviewInlineStyle:O,onCommitClass:O})}),u.jsx(Ie,{label:"none",children:u.jsx(ud,{prop:Et({cssProperty:"box-shadow",label:"Box Shadow",computedValue:"none",tailwindValue:null,fullClass:null,controlType:"text"}),elementClassName:"",onPreviewInlineStyle:O,onCommitClass:O})})]}),u.jsxs(sn,{title:"GradientPicker",children:[u.jsx(Ie,{label:"with gradient",children:u.jsx(as,{prop:Et({cssProperty:"background-image",label:"Gradient",computedValue:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",controlType:"text"}),gradients:[{name:"hero-gradient",value:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",cssVariable:"--gradient-hero"},{name:"sunset",value:"linear-gradient(to right, #f12711, #f5af19)",cssVariable:"--gradient-sunset"}],elementClassName:"bg-[image:var(--gradient-hero)]",onPreviewInlineStyle:O,onCommitClass:O})}),u.jsx(Ie,{label:"none",children:u.jsx(as,{prop:null,gradients:[{name:"hero-gradient",value:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",cssVariable:"--gradient-hero"}],elementClassName:"",onPreviewInlineStyle:O,onCommitClass:O})})]}),u.jsxs(sn,{title:"BoxSpacingControl",children:[u.jsx(Xr,{box:"padding",icon:Nl,activeProps:[Et({cssProperty:"padding",computedValue:"16px",tailwindValue:"4",fullClass:"p-4"})],allProperties:[Et({cssProperty:"padding-top",computedValue:"16px",tailwindValue:"4"}),Et({cssProperty:"padding-right",computedValue:"16px",tailwindValue:"4"}),Et({cssProperty:"padding-bottom",computedValue:"16px",tailwindValue:"4"}),Et({cssProperty:"padding-left",computedValue:"16px",tailwindValue:"4"})],computedStyles:{"padding-top":"16px","padding-right":"16px","padding-bottom":"16px","padding-left":"16px"},onPreviewInlineStyle:O,onCommitClass:O}),u.jsx("div",{style:{height:8}}),u.jsx(Xr,{box:"margin",icon:ra,activeProps:[Et({cssProperty:"margin-top",computedValue:"8px",tailwindValue:"2"}),Et({cssProperty:"margin-bottom",computedValue:"24px",tailwindValue:"6"})],allProperties:[Et({cssProperty:"margin-top",computedValue:"8px",tailwindValue:"2"}),Et({cssProperty:"margin-right",computedValue:"0px"}),Et({cssProperty:"margin-bottom",computedValue:"24px",tailwindValue:"6"}),Et({cssProperty:"margin-left",computedValue:"0px"})],computedStyles:{"margin-top":"8px","margin-right":"0px","margin-bottom":"24px","margin-left":"0px"},onPreviewInlineStyle:O,onCommitClass:O})]})]})}function IE(t,l,o){const r=new URLSearchParams({file:t});l!=null&&r.set("line",String(l)),o!=null&&r.set("col",String(o)),fetch(`/api/open-file?${r}`).catch(console.error)}function eT({element:t,theme:l,iframePath:o,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s,onPreviewInlineStyle:f,onRevertInlineStyles:h,onClose:x,onReselectElement:m,onToggleUsagePanel:v,onIsolate:b}){var se,he,L,Y,te,le,fe;const C=ni(),S=nf(),M=((se=t==null?void 0:t.attributes)==null?void 0:se["data-slot"])||null,w=!!M,E=M?(S==null?void 0:S.byDataSlot.get(M))??null:null,R=w?["token","component","instance"]:["token","instance"],[T,_]=g.useState("token");g.useEffect(()=>{if(t&&(_("instance"),w)){const I=(E==null?void 0:E.variants)&&E.variants.length>0;z(I?"props":"styles")}},[(he=t==null?void 0:t.source)==null?void 0:he.file,(L=t==null?void 0:t.source)==null?void 0:L.line,(Y=t==null?void 0:t.source)==null?void 0:Y.col]);const[O,k]=g.useState("props"),[Z,z]=g.useState("props"),[J,F]=g.useState(!1),ce=g.useRef(Promise.resolve()),ne=t?w?(E==null?void 0:E.name)||M:`<${t.tag}>`:null,W=sT((t==null?void 0:t.className)||"",C),[ae,oe]=g.useState(null),[me,H]=g.useState(0);g.useEffect(()=>{if(!w||!(t!=null&&t.instanceSource)||!(t!=null&&t.componentName)){oe(null);return}const I=t.instanceSource,Q=new URLSearchParams({file:I.file,line:String(I.line),componentName:t.componentName});I.col!=null&&Q.set("col",String(I.col)),fetch(`/api/write-element/instance-props?${Q}`).then(pe=>pe.json()).then(pe=>oe(pe.props??null)).catch(()=>oe(null))},[(te=t==null?void 0:t.instanceSource)==null?void 0:te.file,(le=t==null?void 0:t.instanceSource)==null?void 0:le.line,(fe=t==null?void 0:t.instanceSource)==null?void 0:fe.col,t==null?void 0:t.componentName,w,me]);const D=async I=>{const Q=ce.current.then(async()=>{F(!0);try{await I(),setTimeout(()=>{m(),h()},500)}catch(pe){console.error("Write error:",pe)}finally{setTimeout(()=>F(!1),1200)}});return ce.current=Q,Q},K={token:{icon:fh,label:"Tokens"},component:{icon:$r,label:"Component"},instance:{icon:w?Wp:Zc,label:w?"Instance":"Element"}};return u.jsxs("div",{className:"flex flex-col border-l studio-scrollbar overflow-y-auto",style:{width:350,minWidth:350,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[t&&u.jsxs("div",{className:"border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 pb-1",children:[u.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center shrink-0",style:{background:"var(--studio-accent-muted)"},children:w?u.jsx($r,{style:{width:12,height:12,color:"var(--studio-accent)"}}):u.jsx(Zc,{style:{width:12,height:12,color:"var(--studio-accent)"}})}),u.jsx("span",{className:"text-[12px] font-semibold truncate flex-1 min-w-0",style:{color:"var(--studio-text)"},children:ne}),J&&u.jsxs("span",{className:"flex items-center gap-0.5 text-[10px] shrink-0",style:{color:"var(--studio-success)"},children:[u.jsx(ua,{style:{width:10,height:10}}),"Saved"]}),u.jsxs("div",{className:"flex items-center shrink-0",style:{gap:2},children:[w&&v&&u.jsx(ft,{content:"View usage across pages",children:u.jsx("button",{onClick:v,className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(Ar,{})})}),w&&b&&E&&u.jsx(ft,{content:"Isolate component",children:u.jsx("button",{onClick:()=>b(E),className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(Tx,{})})}),w&&t.instanceSource&&t.componentName&&u.jsx(ft,{content:"Reset instance overrides",children:u.jsx("button",{onClick:()=>{!t.instanceSource||!t.componentName||D(async()=>{await cT(t.instanceSource,t.componentName)})},className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(nx,{})})}),u.jsx("button",{onClick:x,className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(xd,{})})]})]}),t.source&&u.jsx("div",{className:"px-4 pb-2.5 pt-0.5",children:u.jsxs("button",{onClick:()=>IE(t.source.file,t.source.line,t.source.col),className:"text-[10px] font-mono truncate block text-left w-full",style:{color:"var(--studio-text-dimmed)",background:"none",border:"none",padding:0,cursor:"pointer"},onMouseEnter:I=>I.currentTarget.style.textDecoration="underline",onMouseLeave:I=>I.currentTarget.style.textDecoration="none",title:"Open in editor",children:[t.source.file,":",t.source.line,":",t.source.col]})})]}),!t&&typeof window<"u"&&new URLSearchParams(window.location.search).has("gallery")?u.jsx("div",{className:"flex-1 overflow-y-auto studio-scrollbar",children:u.jsx(WE,{})}):t?null:u.jsx(nT,{}),t&&u.jsx("div",{className:"px-4 py-2.5 shrink-0",style:{borderColor:"var(--studio-border)"},children:u.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:R.map(I=>{const Q=K[I];return u.jsxs("button",{onClick:()=>_(I),className:T===I?"active":"",style:{flex:1},children:[u.jsx(Q.icon,{style:{width:12,height:12}}),Q.label]},I)})})}),u.jsxs("div",{className:"flex-1 overflow-y-auto studio-scrollbar",children:[!t&&u.jsxs("div",{children:[u.jsxs("div",{className:"px-4 pt-3 pb-3",children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-1",style:{color:"var(--studio-text-muted)"},children:"Design Tokens"}),u.jsx("p",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Global design tokens defined in your project. Edit values here to update every usage at once."})]}),u.jsx(Ap,{tokenRefs:W,theme:l,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s})]}),T==="token"&&t&&u.jsx(Ap,{tokenRefs:W,theme:l,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s}),T==="component"&&t&&w&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[u.jsx("button",{onClick:()=>k("props"),className:O==="props"?"active":"",style:{flex:1},children:"Props"}),u.jsx("button",{onClick:()=>k("styles"),className:O==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),O==="styles"&&u.jsx("div",{className:"",children:u.jsx(H0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:f,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{if(Q&&I===Q)return;if(E&&E.variants.length>0){if(Q)D(async()=>{await kp(E.filePath,Q,I)});else if(t.source){const ve=t.source;D(async()=>{await Tr(ve,"addClass",I)})}}else if(t.source){const ve=t.source;D(Q?async()=>{await Tr(ve,"replaceClass",I,Q)}:async()=>{await Tr(ve,"addClass",I)})}}})}),O==="props"&&E&&E.variants.length>0&&u.jsx("div",{className:"",children:E.variants.map(I=>u.jsx(tT,{dim:I,componentEntry:E,onClassChange:(Q,pe,ve)=>{D(async()=>{await kp(E.filePath,Q,pe,ve)})}},I.name))}),O==="props"&&(!E||E.variants.length===0)&&u.jsx("div",{className:"px-4 py-3",children:u.jsx(aw,{children:'This component has no predefined style props. Edit its styles directly in the "Styles" tab.'})})]}),T==="instance"&&t&&u.jsx(u.Fragment,{children:w&&E&&E.variants.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[u.jsx("button",{onClick:()=>z("props"),className:Z==="props"?"active":"",style:{flex:1},children:"Props"}),u.jsx("button",{onClick:()=>z("styles"),className:Z==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),Z==="props"&&u.jsx("div",{className:"",children:E.variants.map(I=>{var Q;return u.jsx(oT,{dim:I,currentValue:(((Q=t==null?void 0:t.fiberProps)==null?void 0:Q[I.name])!=null?String(t.fiberProps[I.name]):null)??(ae==null?void 0:ae[I.name])??I.default??null,onSelect:pe=>{!t.instanceSource||!t.componentName||D(async()=>{await iT(t.instanceSource,t.componentName,I.name,pe),H(ve=>ve+1)})}},I.name)})}),Z==="styles"&&u.jsx("div",{className:"",children:u.jsx(H0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:f,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{Q&&I===Q||t.instanceSource&&t.componentName&&D(async()=>{await rT(t.instanceSource,t.componentName,I,Q||void 0)})}})})]}):u.jsx("div",{className:"",children:u.jsx(H0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:f,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{if(!(Q&&I===Q)&&t.source){const pe=t.source;D(Q?async()=>{await Tr(pe,"replaceClass",I,Q)}:async()=>{await Tr(pe,"addClass",I)})}}})})})]})]})}function tT({dim:t,componentEntry:l,onClassChange:o}){const r=ni(),[c,s]=g.useState(!0),[f,h]=g.useState(new Set),x=m=>{const v=new Set(f);v.has(m)?v.delete(m):v.add(m),h(v)};return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>s(!c),className:"studio-section-hdr",children:[c?u.jsx(Nn,{}):u.jsx(fn,{}),t.name,u.jsx("span",{className:"count",children:t.options.length})]}),!c&&u.jsx("div",{className:"studio-tree",children:t.options.map(m=>u.jsxs("div",{className:"studio-tree-node",children:[u.jsxs("button",{onClick:()=>x(m),className:"studio-section-hdr",style:{fontSize:10},children:[f.has(m)?u.jsx(fn,{}):u.jsx(Nn,{}),u.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:m}),m===t.default&&u.jsx("span",{className:"text-[9px] font-normal",style:{color:"var(--studio-text-dimmed)"},children:"default"})]}),f.has(m)&&t.classes[m]&&u.jsx("div",{className:"studio-tree-content",children:u.jsx(bE,{classes:t.classes[m],onClassChange:(v,b)=>{o(v,b,m)},tokenGroups:(r==null?void 0:r.groups)||{},flat:!0})})]},m))})]})}function nT(){const t="var(--studio-accent)",o=({style:r})=>u.jsx("div",{className:"absolute",style:{width:8,height:8,background:t,border:`1.5px solid ${t}`,borderRadius:1,opacity:.8,...r}});return u.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",style:{borderBottom:"1px solid var(--studio-border)"},children:[u.jsxs("div",{className:"relative",style:{width:190,height:88},children:[u.jsx("div",{className:"absolute inset-0",style:{border:`1.5px solid ${t}`,background:"color-mix(in srgb, var(--studio-accent) 10%, transparent)"}}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("span",{className:"text-[12px] text-center select-none leading-snug",style:{color:"var(--studio-text-muted)",opacity:1},children:"Select an element to edit"})}),u.jsx(o,{style:{top:-3.2,left:-3.2}}),u.jsx(o,{style:{top:-3.2,right:-3.2}}),u.jsx(o,{style:{bottom:-3.2,left:-3.2}}),u.jsx(o,{style:{bottom:-3.2,right:-3.2}}),u.jsx("div",{className:"absolute",style:{bottom:10,right:10,color:t,opacity:.8,animation:"cursor-drift 3s ease-in-out infinite"},children:u.jsx("svg",{width:"22",height:"22",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 2L2 10.5L4.5 8L6.5 12L8 11.5L6 7.5L9.5 7L2 2Z",fill:"currentColor"})})})]}),u.jsx("style",{children:`
|
|
278
|
+
@keyframes cursor-drift {
|
|
279
|
+
0%, 100% { transform: translate(0, 0); }
|
|
280
|
+
40% { transform: translate(4px, 3px); }
|
|
281
|
+
70% { transform: translate(-2px, 4px); }
|
|
282
|
+
}
|
|
283
|
+
`})]})}const lT={variant:Wp,size:Ac,color:iv,layout:Jx,align:x3,alignment:x3,shape:Kx,radius:V0,type:Ov,disabled:v3,state:v3,weight:Zx,fullwidth:$x,status:kx,elevation:tv,border:wv,animation:Ev};function aT(t){const l=t.options.map(o=>o.toLowerCase());return l.length===2&&l.includes("true")&&l.includes("false")}function oT({dim:t,currentValue:l,onSelect:o}){const r=l??t.default??t.options[0]??"",c=t.name.toLowerCase(),s=lT[c],f=aT(t);return u.jsxs("div",{className:"px-4 py-2",style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-2",style:{color:"var(--studio-text-muted)"},children:t.name}),f?u.jsx(HM,{value:r==="true",onChange:h=>o(String(h)),label:r==="true"?"On":"Off",icon:s,tooltip:t.name}):u.jsx(Ol,{value:r,onChange:o,options:t.options.map(h=>({value:h,label:h})),icon:s,tooltip:t.name})]})}async function Tr(t,l,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:t,type:l,newClass:o,oldClass:r||void 0})})).json();s.ok||console.error("Element write failed:",s.error)}catch(c){console.error("Element write error:",c)}}async function rT(t,l,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"instanceOverride",source:t,componentName:l,newClass:o,oldClass:r||void 0})})).json();s.ok||console.error("Instance override failed:",s.error)}catch(c){console.error("Instance override error:",c)}}async function iT(t,l,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"prop",source:t,componentName:l,propName:o,propValue:r})})).json();s.ok||console.error("Prop write failed:",s.error)}catch(c){console.error("Prop write error:",c)}}async function cT(t,l){try{const r=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"resetInstanceClassName",source:t,componentName:l})})).json();r.ok||console.error("Reset instance className failed:",r.error)}catch(o){console.error("Reset instance className error:",o)}}async function kp(t,l,o,r){try{const s=await(await fetch("/api/component",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:t,oldClass:l,newClass:o,variantContext:r})})).json();s.ok||console.error("Component write failed:",s.error)}catch(c){console.error("Component write error:",c)}}function sT(t,l){if(!l||!t)return[];const o=new Set,r=t.split(/\s+/);for(const c of r){const s=c.match(/(?:bg|text|border|ring|outline|shadow)-([a-z][\w-]*)/);if(s){const h=`--${s[1].split("/")[0]}`;l.byName.has(h)&&o.add(h)}}return Array.from(o)}function uT(){const t=nE(),l=n8(),o=ni(),r=lf(),c=nf(),[s,f]=g.useState(0),[h,x]=g.useState(0),[m,v]=g.useState([]),[b,C]=g.useState(!1),S=[{label:"Detecting framework",duration:130},{label:"Detecting styling system",duration:323},{label:"Parsing components with AST",duration:365},{label:"Scanning design tokens",duration:235},{label:"Instrumenting JSX source locations",duration:562}];function M(E){var R,T,_,O;switch(E){case 0:return t!=null&&t.name?`→ ${t.name}`:"→ Next.js + React";case 1:{const k=(l==null?void 0:l.type)||"tailwind-v4";return`→ ${{"tailwind-v4":"Tailwind CSS v4","tailwind-v3":"Tailwind CSS v3",bootstrap:"Bootstrap 5","css-variables":"CSS Custom Properties","plain-css":"Plain CSS"}[k]||k}`}case 2:{const k=((R=c==null?void 0:c.components)==null?void 0:R.length)??0,Z=((T=c==null?void 0:c.components)==null?void 0:T.reduce((z,J)=>{var F;return z+(((F=J.variants)==null?void 0:F.length)??0)},0))??0;return`→ ${k} component${k!==1?"s":""}, ${Z} variant prop${Z!==1?"s":""} extracted`}case 3:{const k=((_=o==null?void 0:o.tokens)==null?void 0:_.length)??0,Z=((O=r==null?void 0:r.shadows)==null?void 0:O.length)??0,z=k+Z,J=o!=null&&o.groups?Object.keys(o.groups).length:0;return`→ ${z} token${z!==1?"s":""} across ${J} group${J!==1?"s":""}`}case 4:return"→ Babel transform · file:line:col mapped to JSX";default:return""}}g.useEffect(()=>{if(b||s>=S.length)return;const E=S[s],R=50,T=Math.ceil(E.duration/R);let _=0;const O=setInterval(()=>{if(_++,x(Math.min(_/T,1)),_>=T){clearInterval(O);const k=M(s);v(Z=>[...Z,{label:E.label,detail:k,elapsed:E.duration}]),x(0),s+1>=S.length?C(!0):f(Z=>Z+1)}},R);return()=>clearInterval(O)},[s,b,t,l,o,r,c]);const w=!b&&s<S.length?S[s]:null;return{completedSteps:m,activeStep:w,stepProgress:h,done:b,totalSteps:S.length}}const Dp=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function dT(){const[t,l]=g.useState(0);return g.useEffect(()=>{const o=setInterval(()=>l(r=>(r+1)%Dp.length),80);return()=>clearInterval(o)},[]),u.jsx("span",{style:{color:"var(--studio-accent)"},children:Dp[t]})}function fT({progress:t,width:l=24}){const o=Math.round(t*l),r=l-o;return u.jsxs("span",{style:{color:"var(--studio-text-dimmed)"},children:["[",u.jsx("span",{style:{color:"var(--studio-accent)"},children:"█".repeat(o)}),u.jsx("span",{style:{opacity:.3},children:"░".repeat(r)}),"]"]})}const pT=[" _ __ "," ___ ___ __| | ___ ___ _ _ _ __ / _| __ _ ___ ___ "," / __/ _ \\ / _` |/ _ \\ / __| | | | '__| |_ / _` |/ __/ _ \\"," | (_| (_) | (_| | __/ \\__ \\ |_| | | | _| (_| | (_| __/"," \\___\\___/ \\__,_|\\___| |___/\\__,_|_| |_| \\__,_|\\___\\___|"].join(`
|
|
284
|
+
`);function hT({onContinue:t}){const{completedSteps:l,activeStep:o,stepProgress:r,done:c}=uT(),[s,f]=g.useState(!0);g.useEffect(()=>{const x=setInterval(()=>f(m=>!m),530);return()=>clearInterval(x)},[]);const h=g.useCallback(x=>{c&&(x.key==="Enter"||x.key===" ")&&t()},[c,t]);return g.useEffect(()=>(window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)),[h]),u.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"var(--studio-bg)",color:"var(--studio-text)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:13,lineHeight:1.7,WebkitFontSmoothing:"antialiased"},children:[u.jsx("div",{style:{position:"absolute",inset:0,background:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px)",pointerEvents:"none"}}),u.jsxs("div",{style:{position:"relative",border:"1px solid var(--studio-border)",borderRadius:8,background:"var(--studio-surface)",padding:"32px 40px",width:560,height:500,display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03)"},children:[u.jsx("pre",{style:{color:"var(--studio-accent)",fontSize:11,lineHeight:1.3,textAlign:"center",margin:"0 0 8px 0",userSelect:"none"},children:pT}),u.jsx("div",{style:{textAlign:"center",fontSize:10,color:"var(--studio-text-dimmed)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:24},children:"code-first design layer · v0.1.0"}),u.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"0 -40px 20px -40px"}}),u.jsxs("div",{style:{flex:1,minHeight:0},children:[l.map((x,m)=>u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[u.jsx("span",{style:{color:"var(--studio-success)",flexShrink:0},children:"✓"}),u.jsx("span",{style:{color:"var(--studio-text-muted)"},children:x.label}),u.jsxs("span",{style:{marginLeft:"auto",color:"var(--studio-text-dimmed)",fontSize:10,flexShrink:0},children:[x.elapsed,"ms"]})]}),x.detail&&u.jsx("div",{style:{color:"var(--studio-text-dimmed)",fontSize:11,paddingLeft:22,marginTop:-2,opacity:.7},children:x.detail})]},m)),o&&u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[u.jsx(dT,{}),u.jsx("span",{children:o.label}),u.jsx("span",{style:{marginLeft:"auto",flexShrink:0},children:u.jsx(fT,{progress:r,width:16})})]})]}),u.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"20px -40px 30px -40px"}}),u.jsx("div",{style:{textAlign:"center"},children:c?u.jsxs("button",{onClick:t,style:{background:"var(--studio-accent)",color:"#fff",border:"none",borderRadius:6,padding:"8px 28px",fontFamily:"inherit",fontSize:12,fontWeight:500,cursor:"pointer",letterSpacing:"0.02em",transition:"background 0.15s"},onMouseOver:x=>x.currentTarget.style.background="var(--studio-accent-hover)",onMouseOut:x=>x.currentTarget.style.background="var(--studio-accent)",children:["Open Editor"," ",u.jsx("span",{style:{opacity:.6,fontSize:11},children:"↵"})]}):u.jsxs("span",{style:{color:"var(--studio-text-dimmed)",fontSize:11},children:["scanning project",u.jsx("span",{style:{opacity:s?1:0},children:"▌"})]})})]})]})}function gT({componentName:t,currentPath:l,onNavigate:o,onClose:r}){const c=tE();if(!t)return null;const s=(c==null?void 0:c.usages[t])||[];if(s.length===0)return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsx($p,{componentName:t,count:0,onClose:r}),u.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"No page usages found for this component."})]});const f=vT(s);return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsx($p,{componentName:t,count:s.length,onClose:r}),u.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:u.jsx(mT,{node:f,currentPath:l,onNavigate:o,depth:0})})]})}function $p({componentName:t,count:l,onClose:o}){return u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsxs("span",{className:"text-[10px] font-semibold uppercase tracking-wide flex-1 truncate",style:{color:"var(--studio-text-muted)"},children:["Pages using ",t]}),l>0&&u.jsx("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded shrink-0",style:{color:"var(--studio-accent)",background:"var(--studio-accent-muted)"},children:l}),u.jsx("button",{onClick:o,className:"studio-icon-btn",style:{width:20,height:20},children:u.jsx(xd,{})})]})}function mT({node:t,currentPath:l,onNavigate:o,depth:r}){if(r===0){const c=t.fullRoute!==null;return u.jsxs(u.Fragment,{children:[c&&u.jsx(dd,{route:"/",label:"/",file:t.file,isActive:l==="/",isDynamic:!1,onNavigate:o,depth:0}),Array.from(t.children.entries()).sort(([s],[f])=>s.localeCompare(f)).map(([s,f])=>u.jsx(i8,{node:f,currentPath:l,onNavigate:o,depth:0},s))]})}return null}function i8({node:t,currentPath:l,onNavigate:o,depth:r}){const[c,s]=g.useState(!0),f=t.children.size>0,h=t.fullRoute!==null,x=h&&l===t.fullRoute;return h&&!f?u.jsx(dd,{route:t.fullRoute,label:t.segment,file:t.file,isActive:x,isDynamic:t.isDynamic,onNavigate:o,depth:r}):u.jsxs("div",{children:[h?u.jsx(dd,{route:t.fullRoute,label:t.segment,file:t.file,isActive:x,isDynamic:t.isDynamic,onNavigate:o,depth:r,hasChildren:f,expanded:c,onToggle:()=>s(!c)}):u.jsxs("div",{className:"flex items-center gap-1 w-full text-left",style:{padding:`4px 8px 4px ${8+r*12}px`,fontSize:11,color:"var(--studio-text-dimmed)",background:"none",border:"none",cursor:"pointer",transition:"color 0.1s"},onMouseEnter:m=>{m.currentTarget.style.color="var(--studio-text)"},onMouseLeave:m=>{m.currentTarget.style.color="var(--studio-text-dimmed)"},children:[f&&u.jsx("span",{onClick:m=>{m.stopPropagation(),s(!c)},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:c?u.jsx(fn,{style:{width:10,height:10}}):u.jsx(Nn,{style:{width:10,height:10}})}),u.jsxs("span",{onClick:()=>o(t.path),style:{cursor:"pointer"},children:[t.segment,"/"]})]}),c&&Array.from(t.children.entries()).sort(([m],[v])=>m.localeCompare(v)).map(([m,v])=>u.jsx(i8,{node:v,currentPath:l,onNavigate:o,depth:r+1},m))]})}function dd({route:t,label:l,file:o,isActive:r,isDynamic:c,onNavigate:s,depth:f,hasChildren:h,expanded:x,onToggle:m}){const v=t.replace(/\/\[.*$/,"")||"/",b=c?`Dynamic route — navigate to ${v} to find a real page`:null,C=u.jsxs("div",{onClick:c?void 0:()=>s(t),className:"flex items-center gap-1.5 w-full text-left group",style:{padding:`5px 8px 5px ${8+f*12}px`,fontSize:11,fontWeight:r?600:400,fontStyle:c?"italic":void 0,color:c?"var(--studio-text-dimmed)":r?"var(--studio-accent)":"var(--studio-text)",background:r?"var(--studio-accent-muted)":"transparent",border:"none",borderRadius:4,margin:"0 4px",cursor:c?"default":"pointer",transition:"background 0.1s",opacity:c?.7:1},onMouseEnter:S=>{!r&&!c&&(S.currentTarget.style.background="var(--studio-surface-hover)")},onMouseLeave:S=>{!r&&!c&&(S.currentTarget.style.background="transparent")},title:c?void 0:o||t,children:[h&&m?u.jsx("span",{onClick:S=>{S.stopPropagation(),m()},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:x?u.jsx(fn,{style:{width:10,height:10}}):u.jsx(Nn,{style:{width:10,height:10}})}):u.jsx(jm,{style:{width:11,height:11,flexShrink:0,opacity:c?.3:.5}}),u.jsx("span",{className:"truncate",children:l})]});return c?u.jsx(ft,{content:b,side:"right",children:C}):C}function xT(t){return t.startsWith("[")&&t.endsWith("]")}function vT(t){const l={segment:"",path:"/",fullRoute:null,file:null,isDynamic:!1,children:new Map};for(const{route:o,file:r}of t){if(o==="/"){l.fullRoute="/",l.file=r;continue}const c=o.replace(/^\//,"").split("/");let s=l,f=!1;for(let h=0;h<c.length;h++){const x=c[h];xT(x)&&(f=!0);const m="/"+c.slice(0,h+1).join("/");s.children.has(x)||s.children.set(x,{segment:x,path:m,fullRoute:null,file:null,isDynamic:f,children:new Map}),s=s.children.get(x)}s.fullRoute=o,s.file=r}return l}function yT({tree:t,selectedId:l,onSelect:o,onHover:r,onHoverEnd:c}){const[s,f]=g.useState(""),[h,x]=g.useState(new Set),[m,v]=g.useState(!1),[b,C]=g.useState(!0),S=g.useRef(null),{layoutNodes:M,pageNodes:w}=bT(s?pd(t,s.toLowerCase()):t),E=M.length>0&&w.length>0;g.useEffect(()=>{if(!l||t.length===0)return;const k=s8(t,l);k.length>0&&(x(Z=>{const z=new Set(Z);for(const J of k)z.add(J);return z}),E&&(fd(M,l)?v(!0):fd(w,l)&&C(!0)))},[l,t]),g.useEffect(()=>{S.current&&S.current.scrollIntoView({block:"nearest",behavior:"smooth"})},[l]);const R=g.useCallback(k=>{x(Z=>{const z=new Set(Z);return z.has(k)?z.delete(k):z.add(k),z})},[]);g.useEffect(()=>{if(t.length>0&&h.size===0){const k=new Set;hd(E?w:t,k),x(k)}},[t.length>0]);const T=E?[]:s?pd(t,s.toLowerCase()):t,_={selectedId:l,selectedRef:S,expandedIds:h,onToggle:R,onSelect:o,onHover:r,onHoverEnd:c},O=t.length===0||s&&M.length===0&&w.length===0&&T.length===0;return u.jsx("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:u.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:O?u.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:s?"No matching components.":"No components found on this page."}):E?u.jsxs(u.Fragment,{children:[M.length>0&&u.jsx(Bp,{label:"Layout",expanded:m,onToggle:()=>v(!m),children:M.map(k=>u.jsx(Bc,{node:k,depth:0,..._},k.id))}),w.length>0&&u.jsx(Bp,{label:"Page",expanded:b,onToggle:()=>C(!b),flex:!0,children:w.map(k=>u.jsx(Bc,{node:k,depth:0,..._},k.id))})]}):u.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:T.map(k=>u.jsx(Bc,{node:k,depth:0,..._},k.id))})})})}function Bp({label:t,expanded:l,onToggle:o,alwaysExpanded:r,explainer:c,flex:s,children:f}){const h=r||l;return u.jsxs("div",{className:"flex flex-col",style:{borderBottom:"1px solid var(--studio-border)",flex:s&&h?"1 1 0":"0 0 auto",minHeight:0},children:[u.jsxs("div",{className:"flex justify-between items-center gap-1.5 px-3 py-3 select-none shrink-0",style:{cursor:r?"default":"pointer",borderBottom:h?"1px solid var(--studio-border-subtle)":""},onClick:r?void 0:o,children:[u.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide",style:{color:"var(--studio-text-muted)"},children:t}),!r&&u.jsx("button",{className:"studio-icon-btn",style:{width:20,height:20,borderRadius:3},children:h?u.jsx(qx,{style:{width:13,height:13}}):u.jsx(Gx,{style:{width:13,height:13}})})]}),h&&c&&u.jsxs("div",{className:"studio-tab-explainer shrink-0",style:{margin:"6px 8px",padding:"8px 10px"},children:[u.jsx(Am,{}),u.jsx("span",{children:c})]}),h&&u.jsx("div",{className:"overflow-y-auto overflow-x-hidden studio-scrollbar py-2",style:{flex:1,minHeight:0},children:f})]})}function Bc({node:t,depth:l,selectedId:o,selectedRef:r,expandedIds:c,onToggle:s,onSelect:f,onHover:h,onHoverEnd:x}){const m=o===t.id,v=c.has(t.id),b=t.children.length>0,C=t.dataSlot!==null;return u.jsxs("div",{children:[u.jsxs("div",{ref:m?r:void 0,className:"flex items-center gap-1 w-full group overflow-hidden",style:{padding:`3px 8px 3px ${8+l*14}px`,fontSize:11,fontWeight:C?500:400,color:m?"var(--studio-accent)":C?"var(--studio-text)":"var(--studio-text-muted)",background:m?"var(--studio-accent-muted)":"transparent",borderRadius:0,cursor:"pointer",transition:"background 0.1s"},onClick:()=>f(t.id),onMouseEnter:S=>{m||(S.currentTarget.style.background="var(--studio-surface-hover)"),h(t.id)},onMouseLeave:S=>{m||(S.currentTarget.style.background="transparent"),x()},children:[b?u.jsx("button",{onClick:S=>{S.stopPropagation(),s(t.id)},className:"studio-icon-btn",style:{width:16,height:16,borderRadius:3},children:v?u.jsx(fn,{style:{width:10,height:10}}):u.jsx(Nn,{style:{width:10,height:10}})}):u.jsx("span",{style:{width:16,flexShrink:0}}),t.type==="component"?u.jsx($r,{style:{width:11,height:11,flexShrink:0,opacity:C?1:.5,color:C?"var(--studio-accent)":void 0}}):u.jsx(Zc,{style:{width:11,height:11,flexShrink:0,opacity:.4}}),u.jsx("span",{className:"truncate",children:t.name}),t.textContent&&u.jsx("span",{className:"truncate ml-1",style:{color:"var(--studio-text-dimmed)",fontSize:10,fontWeight:400},children:t.textContent})]}),v&&b&&t.children.map(S=>u.jsx(Bc,{node:S,depth:l+1,selectedId:o,selectedRef:r,expandedIds:c,onToggle:s,onSelect:f,onHover:h,onHoverEnd:x},S.id))]})}function bT(t){const l=[],o=[];for(const r of t)c8(r,l,o);return{layoutNodes:l,pageNodes:o}}function c8(t,l,o){const r=t.scope;if(r==="page"){o.push(t);return}if(r==="layout"){if(!t.children.some(x=>Lr(x,"page"))){l.push(t);return}const h=[];for(const x of t.children)Lr(x,"page")?o.push(x):h.push(x);h.length>0&&l.push({...t,children:h});return}const c=t.children.some(f=>Lr(f,"layout")),s=t.children.some(f=>Lr(f,"page"));if(c&&s)for(const f of t.children)c8(f,l,o);else c?l.push(t):o.push(t)}function Lr(t,l){return t.scope===l?!0:t.children.some(o=>Lr(o,l))}function s8(t,l,o=[]){for(const r of t){if(r.id===l)return[...o,r.id];if(r.children.length>0){const c=s8(r.children,l,[...o,r.id]);if(c.length>0)return c}}return[]}function fd(t,l){for(const o of t)if(o.id===l||fd(o.children,l))return!0;return!1}function pd(t,l){const o=[];for(const r of t){const c=r.name.toLowerCase().includes(l),s=r.textContent.toLowerCase().includes(l),f=pd(r.children,l);(c||s||f.length>0)&&o.push({...r,children:f})}return o}function hd(t,l){for(const o of t)l.add(o.id),o.children.length>0&&hd(o.children,l)}const Zp={variant:Mr,intent:Mr,appearance:Mr,type:Mr,kind:Mr,size:Ac,scale:Ac,sizing:Ac,color:jr,theme:jr,palette:jr,colorScheme:jr,scheme:jr,disabled:h3,hidden:h3,loading:zc,status:zc,state:zc,shape:e0,rounded:e0,radius:e0,align:zr,alignment:zr,justify:zr,orientation:I1,direction:I1,layout:I1,layer:Ar,level:Ar,elevation:Ar};function CT(t){return Zp[t]??Zp[t.toLowerCase()]??sx}function wT(t,l){if(t.length===0)return[{label:"Default",props:{}}];const o=t.filter(f=>l[f.name]==="all"),r={};for(const f of t){const h=l[f.name];r[f.name]=h==="all"?f.default:h}if(o.length===0)return[{label:"Instance",props:{...r}}];const c=[];for(const f of o)for(const h of f.options)c.push({label:`${f.name}: ${h}`,props:{...r,[f.name]:h}});const s=new Set;return c.filter(f=>{const h=JSON.stringify(f.props);return s.has(h)?!1:(s.add(h),!0)})}function ST(t,l){if(t.length===0)return[{label:"Default",props:{}}];const o={};for(const s of t)o[s.name]=s.default;const r=[];for(const s of t)for(const f of s.options)r.push({label:`${s.name}: ${f}`,props:{...o,[s.name]:f}});const c=new Set;return r.filter(s=>{const f=JSON.stringify(s.props);return c.has(f)?!1:(c.add(f),!0)})}function jT({component:t,onBack:l,onCombinationsChange:o}){const[r,c]=g.useState(()=>Object.fromEntries(t.variants.map(v=>[v.name,"all"]))),s=g.useMemo(()=>wT(t.variants,r),[t.variants,r]),f=g.useMemo(()=>({current:""}),[]),h=JSON.stringify(s);f.current!==h&&(f.current=h,setTimeout(()=>o(s),0));const x=g.useCallback((v,b)=>{c(C=>({...C,[v]:b}))},[]),m=Object.values(r).filter(v=>v==="all").length;return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsx("button",{onClick:l,className:"studio-icon-btn shrink-0",style:{width:22,height:22},title:"Back to page",children:u.jsx(G6,{style:{width:12,height:12}})}),u.jsx($r,{style:{width:12,height:12,color:"var(--studio-accent)",flexShrink:0}}),u.jsx("span",{className:"text-[11px] font-semibold truncate flex-1",style:{color:"var(--studio-text)"},children:t.name}),u.jsxs("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:[s.length," ",s.length===1?"combo":"combos"]})]}),t.variants.length>0?u.jsx("div",{className:"flex flex-col gap-1.5 px-3 py-3 overflow-y-auto",children:t.variants.map(v=>{const b=CT(v.name),C=r[v.name];return u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(b,{style:{width:11,height:11,color:C!=="all"?"var(--studio-accent)":"var(--studio-text-dimmed)",flexShrink:0}}),u.jsx("span",{className:"text-[10px] font-mono shrink-0 truncate",style:{color:C!=="all"?"var(--studio-text)":"var(--studio-text-dimmed)",width:64},title:v.name,children:v.name}),u.jsx(MT,{value:C,options:v.options,onValueChange:S=>x(v.name,S)})]},v.name)})}):u.jsx("div",{className:"px-3 py-4 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"No variant props detected."}),t.variants.length>0&&m>0&&u.jsxs("div",{className:"px-3 py-2 text-[10px] border-t mt-auto shrink-0",style:{color:"var(--studio-text-dimmed)",borderColor:"var(--studio-border-subtle)"},children:[m," prop",m!==1?"s":""," expanding the grid"]})]})}function MT({value:t,options:l,onValueChange:o}){return u.jsxs(F0,{value:t,onValueChange:o,children:[u.jsxs(K4,{className:"studio-prop-select-trigger",asChild:!1,children:[u.jsx("span",{className:"studio-prop-select-value",children:u.jsx(F4,{})}),u.jsx(J4,{asChild:!0,children:u.jsx(fn,{style:{width:10,height:10,flexShrink:0}})})]}),u.jsx(W4,{children:u.jsx(I4,{className:"studio-prop-select-content",position:"popper",sideOffset:4,collisionPadding:12,children:u.jsxs(e7,{children:[u.jsx(Up,{value:"all",current:t,children:u.jsx("span",{style:{color:"var(--studio-text-dimmed)",fontStyle:"italic"},children:"All"})}),u.jsx(a7,{className:"studio-prop-select-separator"}),l.map(r=>u.jsx(Up,{value:r,current:t,children:r},r))]})})})]})}function Up({value:t,current:l,children:o}){return u.jsxs(t7,{value:t,className:"studio-prop-select-item",children:[u.jsx(n7,{children:o}),u.jsx(l7,{className:"studio-prop-select-check",children:u.jsx(ua,{style:{width:10,height:10}})})]})}function ET(t,l){return l.domPath?u8(t,l.domPath):null}function u8(t,l){for(const o of t){if(o.id===l)return o.id;const r=u8(o.children,l);if(r)return r}return null}function TT(){var ya;const t=g.useRef(null),[l,o]=g.useState(""),[r,c]=g.useState(""),[s,f]=g.useState(""),[h,x]=g.useState(null),[m,v]=g.useState(!1),[b,C]=g.useState("light"),[S,M]=g.useState("fill"),[w,E]=g.useState(.6),[R,T]=g.useState("/"),[_,O]=g.useState(!1),[k,Z]=g.useState(!0),[z,J]=g.useState([]),[F,ce]=g.useState(!1),[ne,W]=g.useState(!1),[ae,oe]=g.useState(null);lE();const me=nf();g.useEffect(()=>{fetch("/api/config").then(be=>be.json()).then(be=>{o(be.targetUrl),c(be.stylingType||""),be.projectRoot&&f(be.projectRoot.split("/").filter(Boolean).pop()??"")}).catch(console.error)},[]),g.useEffect(()=>{fetch("/scan/all").then(be=>be.json()).then(be=>{Nt.setAll(be)}).catch(console.error)},[]);const H=g.useCallback(be=>{var Lt,ut,li;switch(be.type){case"tool:injectedReady":O(!0),t.current&&((Lt=t.current.contentWindow)==null||Lt.postMessage({type:"tool:enterSelectionMode"},"*"),(ut=t.current.contentWindow)==null||ut.postMessage({type:"tool:requestComponentTree"},"*"),v(!0));break;case"tool:elementSelected":x(be.data);break;case"tool:pathChanged":T(be.path),t.current&&((li=t.current.contentWindow)==null||li.postMessage({type:"tool:requestComponentTree"},"*"));break;case"tool:componentTree":J(be.tree);break}},[]),{send:D}=Bv(t,H),K=g.useCallback(()=>{const be=!m;v(be),D(be?{type:"tool:enterSelectionMode"}:{type:"tool:exitSelectionMode"})},[m,D]),se=g.useCallback(()=>{const be=b==="light"?"dark":"light";C(be),D({type:"tool:setTheme",theme:be})},[b,D]),he=g.useCallback((be,Lt)=>{D({type:"tool:previewInlineStyle",property:be,value:Lt})},[D]),L=g.useCallback(()=>{D({type:"tool:revertInlineStyles"})},[D]),Y=g.useCallback(()=>{D({type:"tool:reselectElement"})},[D]),te=g.useCallback((be,Lt)=>{D({type:"tool:previewTokenValue",property:be,value:Lt})},[D]),le=g.useCallback(()=>{D({type:"tool:revertTokenValues"})},[D]),fe=g.useCallback((be,Lt,ut)=>{D({type:"tool:previewTokenValue",property:be,value:Lt})},[D]),I=g.useCallback(()=>{x(null),ce(!1)},[]),Q=g.useCallback(be=>{T(be)},[]),pe=g.useCallback(be=>{D({type:"tool:selectByTreeId",id:be})},[D]),ve=g.useCallback(be=>{D({type:"tool:highlightByTreeId",id:be})},[D]),Ne=g.useCallback(()=>{D({type:"tool:clearHighlight"})},[D]),Re=g.useCallback(be=>{oe(be);const Lt=ST(be.variants),ut=be.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");D({type:"tool:renderPreview",dataSlot:be.dataSlot,componentPath:ut,exportName:be.exportName,combinations:Lt,defaultChildren:be.name})},[D]),Le=g.useCallback(()=>{oe(null),D({type:"tool:exitPreview"})},[D]),ht=g.useCallback(be=>{if(!ae)return;const Lt=ae.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");D({type:"tool:renderPreview",dataSlot:ae.dataSlot,componentPath:Lt,exportName:ae.exportName,combinations:be,defaultChildren:ae.name})},[ae,D]);if(!l)return u.jsx("div",{className:"flex items-center justify-center h-screen",style:{background:"var(--studio-bg)",color:"var(--studio-text-dimmed)"},children:"Loading..."});if(!k)return u.jsx(hT,{onContinue:()=>Z(!0)});const nt=((ya=h==null?void 0:h.attributes)==null?void 0:ya["data-slot"])||null,$t=nt?(me==null?void 0:me.byDataSlot.get(nt))??null:null,Jt=($t==null?void 0:$t.name)||null,zn=h?ET(z,h):null,va=F&&Jt,yn=ae?u.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsx(jT,{component:ae,onBack:Le,onCombinationsChange:ht})}):ne?u.jsx("div",{className:"flex flex-col border-r h-full shrink-0",style:{width:36,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsx("button",{onClick:()=>W(!1),className:"studio-icon-btn",style:{width:36,height:36},title:"Expand panel",children:u.jsx(m3,{strokeWidth:1.5,size:16})})}):u.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col",children:[u.jsxs("div",{className:"flex items-center pl-2 pr-2.5 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--studio-border-subtle)"},children:[u.jsx("span",{className:"flex-1 text-[10px] font-semibold uppercase tracking-wide pl-1",style:{color:"var(--studio-text-muted)"},children:s||"Explorer"}),u.jsx("button",{onClick:()=>W(!0),className:"studio-icon-btn shrink-0",style:{width:24,height:24},title:"Collapse panel",children:u.jsx(m3,{strokeWidth:1.5,size:14})})]}),va&&u.jsx("div",{className:"flex flex-col shrink-0 border-b",style:{borderColor:"var(--studio-border)",maxHeight:"40%"},children:u.jsx(gT,{componentName:Jt,currentPath:R,onNavigate:Q,onClose:()=>ce(!1)})}),u.jsx(yT,{tree:z,selectedId:zn,onSelect:pe,onHover:ve,onHoverEnd:Ne})]})}),_o=u.jsx(eT,{element:h,theme:b,iframePath:R,onPreviewToken:te,onClearTokenPreview:le,onPreviewShadow:fe,onPreviewInlineStyle:he,onRevertInlineStyles:L,onClose:I,onReselectElement:Y,onToggleUsagePanel:()=>{ce(be=>!be),W(!1)},onIsolate:Re});return u.jsx(ow,{children:u.jsx(sw,{toolName:"CodeSurface",toolIcon:u.jsx($r,{}),selectionMode:m,onToggleSelectionMode:K,theme:b,onToggleTheme:se,viewportWidth:S,onViewportWidthChange:M,zoom:w,onZoomChange:E,iframePath:R,onIframePathChange:T,targetUrl:l,iframeRef:t,editorPanel:_o,leftPanel:yn})})}$6.createRoot(document.getElementById("root")).render(u.jsx(TT,{}));
|