diff --git a/bun.lock b/bun.lock index 3706cd8..366250d 100644 --- a/bun.lock +++ b/bun.lock @@ -27,7 +27,7 @@ }, "packages/plugins/relight-studio": { "name": "@microvoid/convax-plugin-relight-studio", - "version": "0.1.1", + "version": "0.1.2", "devDependencies": { "@types/react": "19.2.14", "@types/react-dom": "19.2.3", diff --git a/packages/plugins/relight-studio/convax-package.json b/packages/plugins/relight-studio/convax-package.json index 6bb1302..e2c2888 100644 --- a/packages/plugins/relight-studio/convax-package.json +++ b/packages/plugins/relight-studio/convax-package.json @@ -4,7 +4,7 @@ "id": "relight-studio", "name": "重打光", "description": "连接一张 Canvas 图片,通过宿主统一的 AI 生图能力生成不同主光方向、色温与电影氛围的重打光结果。", - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "compatibility": { "pluginSchema": "convax.plugin/3", diff --git a/packages/plugins/relight-studio/package.json b/packages/plugins/relight-studio/package.json index c71ba9d..b4898a9 100644 --- a/packages/plugins/relight-studio/package.json +++ b/packages/plugins/relight-studio/package.json @@ -1,6 +1,6 @@ { "name": "@microvoid/convax-plugin-relight-studio", - "version": "0.1.1", + "version": "0.1.2", "private": true, "type": "module", "scripts": { diff --git a/packages/plugins/relight-studio/package/assets/radix-controls.js b/packages/plugins/relight-studio/package/assets/radix-controls.js index cdc71e5..f5e10ed 100644 --- a/packages/plugins/relight-studio/package/assets/radix-controls.js +++ b/packages/plugins/relight-studio/package/assets/radix-controls.js @@ -1,49 +1,49 @@ -var kj=Object.create;var{getPrototypeOf:Cj,defineProperty:O8,getOwnPropertyNames:Sj}=Object;var xj=Object.prototype.hasOwnProperty;function Pj(Z){return this[Z]}var Ej,hj,v6=(Z,G,Y)=>{var J=Z!=null&&typeof Z==="object";if(J){var X=G?Ej??=new WeakMap:hj??=new WeakMap,q=X.get(Z);if(q)return q}Y=Z!=null?kj(Cj(Z)):{};let U=G||!Z||!Z.__esModule?O8(Y,"default",{value:Z,enumerable:!0}):Y;for(let Q of Sj(Z))if(!xj.call(U,Q))O8(U,Q,{get:Pj.bind(Z,Q),enumerable:!0});if(J)X.set(Z,U);return U};var VU=(Z,G)=>()=>(G||Z((G={exports:{}}).exports,G),G.exports);var yj=(Z)=>Z;function fj(Z,G){this[Z]=yj.bind(null,G)}var lG=(Z,G)=>{for(var Y in G)O8(Z,Y,{get:G[Y],enumerable:!0,configurable:!0,set:fj.bind(G,Y)})};var HJ=(Z,G)=>()=>(Z&&(G=Z(Z=0)),G);var u={};lG(u,{version:()=>BJ,useTransition:()=>eU,useSyncExternalStore:()=>tU,useState:()=>x,useRef:()=>N,useReducer:()=>iG,useOptimistic:()=>nU,useMemo:()=>A0,useLayoutEffect:()=>OZ,useInsertionEffect:()=>oU,useImperativeHandle:()=>aU,useId:()=>rU,useEffectEvent:()=>sU,useEffect:()=>P,useDeferredValue:()=>iU,useDebugValue:()=>lU,useContext:()=>n7,useCallback:()=>f,useActionState:()=>pU,use:()=>cU,unstable_useCacheRefresh:()=>dU,startTransition:()=>mU,memo:()=>uU,lazy:()=>vU,isValidElement:()=>Y6,forwardRef:()=>S,createRef:()=>gU,createElement:()=>d0,createContext:()=>o7,cloneElement:()=>h7,cacheSignal:()=>fU,cache:()=>yU,__COMPILER_RUNTIME:()=>hU,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>d6,Suspense:()=>EU,StrictMode:()=>PU,PureComponent:()=>xU,Profiler:()=>SU,Fragment:()=>E7,Component:()=>CU,Children:()=>a7,Activity:()=>kU});function rj(Z){if(Z===null||typeof Z!=="object")return null;return Z=AU&&Z[AU]||Z["@@iterator"],typeof Z==="function"?Z:null}function m6(Z,G,Y){this.props=Z,this.context=G,this.refs=RU,this.updater=Y||_U}function NU(){}function _8(Z,G,Y){this.props=Z,this.context=G,this.refs=RU,this.updater=Y||_U}function I8(){}function R8(Z,G,Y){var J=Y.ref;return{$$typeof:T8,type:Z,key:G,ref:J!==void 0?J:null,props:Y}}function aj(Z,G){return R8(Z.type,G,Z.props)}function N8(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===T8}function oj(Z){var G={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(Y){return G[Y]})}function $8(Z,G){return typeof Z==="object"&&Z!==null&&Z.key!=null?oj(""+Z.key):G.toString(36)}function nj(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(I8,I8):(Z.status="pending",Z.then(function(G){Z.status==="pending"&&(Z.status="fulfilled",Z.value=G)},function(G){Z.status==="pending"&&(Z.status="rejected",Z.reason=G)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function u6(Z,G,Y,J,X){var q=typeof Z;if(q==="undefined"||q==="boolean")Z=null;var U=!1;if(Z===null)U=!0;else switch(q){case"bigint":case"string":case"number":U=!0;break;case"object":switch(Z.$$typeof){case T8:case gj:U=!0;break;case TU:return U=Z._init,u6(U(Z._payload),G,Y,J,X)}}if(U)return X=X(Z),U=J===""?"."+$8(Z,0):J,OU(X)?(Y="",U!=null&&(Y=U.replace($U,"$&/")+"/"),u6(X,G,Y,"",function(H){return H})):X!=null&&(N8(X)&&(X=aj(X,Y+(X.key==null||Z&&Z.key===X.key?"":(""+X.key).replace($U,"$&/")+"/")+U)),G.push(X)),1;U=0;var Q=J===""?".":J+":";if(OU(Z))for(var z=0;z{T8=Symbol.for("react.transitional.element"),gj=Symbol.for("react.portal"),vj=Symbol.for("react.fragment"),uj=Symbol.for("react.strict_mode"),mj=Symbol.for("react.profiler"),dj=Symbol.for("react.consumer"),cj=Symbol.for("react.context"),pj=Symbol.for("react.forward_ref"),lj=Symbol.for("react.suspense"),ij=Symbol.for("react.memo"),TU=Symbol.for("react.lazy"),sj=Symbol.for("react.activity"),AU=Symbol.iterator;_U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wU=Object.assign,RU={};m6.prototype.isReactComponent={};m6.prototype.setState=function(Z,G){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=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,Z,G,"setState")};m6.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};NU.prototype=m6.prototype;w8=_8.prototype=new NU;w8.constructor=_8;wU(w8,m6.prototype);w8.isPureReactComponent=!0;OU=Array.isArray;W0={H:null,A:null,T:null,S:null},bU=Object.prototype.hasOwnProperty;$U=/\/+/g;IU=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(G))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},ej={map:WJ,forEach:function(Z,G,Y){WJ(Z,function(){G.apply(this,arguments)},Y)},count:function(Z){var G=0;return WJ(Z,function(){G++}),G},toArray:function(Z){return WJ(Z,function(G){return G})||[]},only:function(Z){if(!N8(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}};kU=sj,a7=ej,CU=m6,E7=vj,SU=mj,xU=_8,PU=uj,EU=lj,d6=W0,hU={__proto__:null,c:function(Z){return W0.H.useMemoCache(Z)}},Y6=N8});var b8={};lG(b8,{version:()=>MQ,useFormStatus:()=>LQ,useFormState:()=>jQ,unstable_batchedUpdates:()=>BQ,requestFormReset:()=>WQ,preloadModule:()=>HQ,preload:()=>zQ,preinitModule:()=>QQ,preinit:()=>UQ,prefetchDNS:()=>qQ,preconnect:()=>XQ,flushSync:()=>JQ,createPortal:()=>YQ,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>GQ});function ZQ(Z){var G="react-error:"+Z;if(1{m();c0={d:{f:$Z,r:function(){throw Error(ZQ(522))},D:$Z,C:$Z,L:$Z,m:$Z,X:$Z,S:$Z,M:$Z},p:0,findDOMNode:null},Z2=Symbol.for("react.portal");sG=d6;GQ=c0});var c6=VU((j3,DQ)=>{FQ();function KQ(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KQ)}catch(Z){console.error(Z)}}KQ(),DQ.exports=b8});function b9(Z,G){var Y=Z.length;Z.push(G);Z:for(;0>>1,X=Z[J];if(0>>1;JpJ(Q,Y))zpJ(H,Q)?(Z[J]=H,Z[z]=Y,J=z):(Z[J]=Q,Z[U]=Y,J=U);else if(zpJ(H,Y))Z[J]=H,Z[z]=Y,J=z;else break Z}}return G}function pJ(Z,G){var Y=Z.sortIndex-G.sortIndex;return Y!==0?Y:Z.id-G.id}function sJ(Z){for(var G=u7(bZ);G!==null;){if(G.callback===null)aJ(bZ);else if(G.startTime<=Z)aJ(bZ),G.sortIndex=G.expirationTime,b9(ZZ,G);else break;G=u7(bZ)}}function E9(Z){if(QY=!1,sJ(Z),!UY)if(u7(ZZ)!==null)UY=!0,ZG||(ZG=!0,e6());else{var G=u7(bZ);G!==null&&h9(E9,G.startTime-Z)}}function WH(){return P9?!0:m7()-HHZ&&WH());){var J=F7.callback;if(typeof J==="function"){F7.callback=null,iJ=F7.priorityLevel;var X=J(F7.expirationTime<=Z);if(Z=m7(),typeof X==="function"){F7.callback=X,sJ(Z),G=!0;break G}F7===u7(ZZ)&&aJ(ZZ),sJ(Z)}else aJ(ZZ);F7=u7(ZZ)}if(F7!==null)G=!0;else{var q=u7(bZ);q!==null&&h9(E9,q.startTime-Z),G=!1}}break Z}finally{F7=null,iJ=Y,S9=!1}G=void 0}}finally{G?e6():ZG=!1}}}function h9(Z,G){zY=QH(function(){Z(m7())},G)}var m7=void 0,k9,lJ,C9,ZZ,bZ,EM=1,F7=null,iJ=3,S9=!1,UY=!1,QY=!1,P9=!1,QH,zH,UH,ZG=!1,zY=-1,hM=5,HH=-1,e6,rJ,x9,y9=5,f9=1,g9=4,GG=3,v9=2,u9=function(Z){Z.callback=null},m9=function(){return iJ},d9=function(){P9=!0},YG=function(Z,G,Y){var J=m7();switch(typeof Y==="object"&&Y!==null?(Y=Y.delay,Y=typeof Y==="number"&&0J?(Z.sortIndex=Y,b9(bZ,Z),u7(ZZ)===null&&Z===u7(bZ)&&(QY?(zH(zY),zY=-1):QY=!0,h9(E9,Y-J))):(Z.sortIndex=X,b9(ZZ,Z),UY||S9||(UY=!0,ZG||(ZG=!0,e6()))),Z},c9;var BH=HJ(()=>{if(typeof performance==="object"&&typeof performance.now==="function")k9=performance,m7=function(){return k9.now()};else lJ=Date,C9=lJ.now(),m7=function(){return lJ.now()-C9};ZZ=[],bZ=[],QH=typeof setTimeout==="function"?setTimeout:null,zH=typeof clearTimeout==="function"?clearTimeout:null,UH=typeof setImmediate<"u"?setImmediate:null;if(typeof UH==="function")e6=function(){UH(N9)};else if(typeof MessageChannel<"u")rJ=new MessageChannel,x9=rJ.port2,rJ.port1.onmessage=N9,e6=function(){x9.postMessage(null)};else e6=function(){QH(N9,0)};c9=WH});var FU={};lG(FU,{version:()=>Tj,hydrateRoot:()=>Ij,createRoot:()=>$j});function T(Z){var G="react-error:"+Z;if(1HG||(Z.current=N4[HG],N4[HG]=null,HG--)}function z0(Z,G){HG++,N4[HG]=Z.current,Z.current=G}function NX(Z,G){switch(z0(uZ,G),z0(fY,Z),z0(l7,null),G.nodeType){case 9:case 11:Z=(Z=G.documentElement)?(Z=Z.namespaceURI)?VW(Z):0:0;break;default:if(Z=G.tagName,G=G.namespaceURI)G=VW(G),Z=Qj(G,Z);else switch(Z){case"svg":Z=1;break;case"math":Z=2;break;default:Z=0}}E0(l7),z0(l7,Z)}function NG(){E0(l7),E0(fY),E0(uZ)}function b4(Z){Z.memoizedState!==null&&z0(RX,Z);var G=l7.current,Y=Qj(G,Z.type);G!==Y&&(z0(fY,Z),z0(l7,Y))}function bX(Z){fY.current===Z&&(E0(l7),E0(fY)),RX.current===Z&&(E0(RX),rY._currentValue=T6)}function V6(Z){if(p9===void 0)try{throw Error()}catch(Y){var G=Y.stack.trim().match(/\n( *(at )?)/);p9=G&&G[1]||"",MH=-1{var X=Z!=null&&typeof Z==="object";if(X){var G=J?Gj??=new WeakMap:qj??=new WeakMap,q=G.get(Z);if(q)return q}Y=Z!=null?e2(Zj(Z)):{};let U=J||!Z||!Z.__esModule?E9(Y,"default",{value:Z,enumerable:!0}):Y;for(let Q of Jj(Z))if(!Yj.call(U,Q))E9(U,Q,{get:Xj.bind(Z,Q),enumerable:!0});if(X)G.set(Z,U);return U};var gU=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var Uj=(Z)=>Z;function Qj(Z,J){this[Z]=Uj.bind(null,J)}var d6=(Z,J)=>{for(var Y in J)E9(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:Qj.bind(J,Y)})};var DX=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var u={};d6(u,{version:()=>AX,useTransition:()=>$Q,useSyncExternalStore:()=>DQ,useState:()=>S,useRef:()=>R,useReducer:()=>tJ,useOptimistic:()=>VQ,useMemo:()=>F0,useLayoutEffect:()=>IZ,useInsertionEffect:()=>KQ,useImperativeHandle:()=>FQ,useId:()=>MQ,useEffectEvent:()=>LQ,useEffect:()=>P,useDeferredValue:()=>jQ,useDebugValue:()=>HQ,useContext:()=>t7,useCallback:()=>E,useActionState:()=>BQ,use:()=>WQ,unstable_useCacheRefresh:()=>zQ,startTransition:()=>QQ,memo:()=>UQ,lazy:()=>qQ,isValidElement:()=>X6,forwardRef:()=>C,createRef:()=>GQ,createElement:()=>c0,createContext:()=>n7,cloneElement:()=>h7,cacheSignal:()=>XQ,cache:()=>YQ,__COMPILER_RUNTIME:()=>JQ,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>l6,Suspense:()=>ZQ,StrictMode:()=>eU,PureComponent:()=>tU,Profiler:()=>nU,Fragment:()=>E7,Component:()=>oU,Children:()=>o7,Activity:()=>aU});function Dj(Z){if(Z===null||typeof Z!=="object")return null;return Z=vU&&Z[vU]||Z["@@iterator"],typeof Z==="function"?Z:null}function p6(Z,J,Y){this.props=Z,this.context=J,this.refs=iU,this.updater=Y||pU}function sU(){}function g9(Z,J,Y){this.props=Z,this.context=J,this.refs=iU,this.updater=Y||pU}function y9(){}function u9(Z,J,Y){var X=Y.ref;return{$$typeof:f9,type:Z,key:J,ref:X!==void 0?X:null,props:Y}}function $j(Z,J){return u9(Z.type,J,Z.props)}function m9(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===f9}function Aj(Z){var J={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(Y){return J[Y]})}function h9(Z,J){return typeof Z==="object"&&Z!==null&&Z.key!=null?Aj(""+Z.key):J.toString(36)}function Oj(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(y9,y9):(Z.status="pending",Z.then(function(J){Z.status==="pending"&&(Z.status="fulfilled",Z.value=J)},function(J){Z.status==="pending"&&(Z.status="rejected",Z.reason=J)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function c6(Z,J,Y,X,G){var q=typeof Z;if(q==="undefined"||q==="boolean")Z=null;var U=!1;if(Z===null)U=!0;else switch(q){case"bigint":case"string":case"number":U=!0;break;case"object":switch(Z.$$typeof){case f9:case zj:U=!0;break;case cU:return U=Z._init,c6(U(Z._payload),J,Y,X,G)}}if(U)return G=G(Z),U=X===""?"."+h9(Z,0):X,uU(G)?(Y="",U!=null&&(Y=U.replace(mU,"$&/")+"/"),c6(G,J,Y,"",function(W){return W})):G!=null&&(m9(G)&&(G=$j(G,Y+(G.key==null||Z&&Z.key===G.key?"":(""+G.key).replace(mU,"$&/")+"/")+U)),J.push(G)),1;U=0;var Q=X===""?".":X+":";if(uU(Z))for(var z=0;z{f9=Symbol.for("react.transitional.element"),zj=Symbol.for("react.portal"),Wj=Symbol.for("react.fragment"),Bj=Symbol.for("react.strict_mode"),Hj=Symbol.for("react.profiler"),jj=Symbol.for("react.consumer"),Lj=Symbol.for("react.context"),Mj=Symbol.for("react.forward_ref"),Fj=Symbol.for("react.suspense"),Kj=Symbol.for("react.memo"),cU=Symbol.for("react.lazy"),Vj=Symbol.for("react.activity"),vU=Symbol.iterator;pU={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lU=Object.assign,iU={};p6.prototype.isReactComponent={};p6.prototype.setState=function(Z,J){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=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,Z,J,"setState")};p6.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};sU.prototype=p6.prototype;v9=g9.prototype=new sU;v9.constructor=g9;lU(v9,p6.prototype);v9.isPureReactComponent=!0;uU=Array.isArray;B0={H:null,A:null,T:null,S:null},rU=Object.prototype.hasOwnProperty;mU=/\/+/g;dU=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},_j={map:$X,forEach:function(Z,J,Y){$X(Z,function(){J.apply(this,arguments)},Y)},count:function(Z){var J=0;return $X(Z,function(){J++}),J},toArray:function(Z){return $X(Z,function(J){return J})||[]},only:function(Z){if(!m9(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}};aU=Vj,o7=_j,oU=p6,E7=Wj,nU=Hj,tU=g9,eU=Bj,ZQ=Fj,l6=B0,JQ={__proto__:null,c:function(Z){return B0.H.useMemoCache(Z)}},X6=m9});var d9={};d6(d9,{version:()=>EQ,useFormStatus:()=>PQ,useFormState:()=>xQ,unstable_batchedUpdates:()=>SQ,requestFormReset:()=>CQ,preloadModule:()=>bQ,preload:()=>kQ,preinitModule:()=>RQ,preinit:()=>wQ,prefetchDNS:()=>NQ,preconnect:()=>TQ,flushSync:()=>_Q,createPortal:()=>IQ,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>OQ});function AQ(Z){var J="react-error:"+Z;if(1{m();p0={d:{f:_Z,r:function(){throw Error(AQ(522))},D:_Z,C:_Z,L:_Z,m:_Z,X:_Z,S:_Z,M:_Z},p:0,findDOMNode:null},Tj=Symbol.for("react.portal");eJ=l6;OQ=p0});var i6=gU((YV,fQ)=>{hQ();function yQ(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yQ)}catch(Z){console.error(Z)}}yQ(),fQ.exports=d9});function r4(Z,J){var Y=Z.length;Z.push(J);Z:for(;0>>1,G=Z[X];if(0>>1;XG8(Q,Y))zG8(W,Q)?(Z[X]=W,Z[z]=Y,X=z):(Z[X]=Q,Z[U]=Y,X=U);else if(zG8(W,Y))Z[X]=W,Z[z]=Y,X=z;else break Z}}return J}function G8(Z,J){var Y=Z.sortIndex-J.sortIndex;return Y!==0?Y:Z.id-J.id}function Q8(Z){for(var J=m7(bZ);J!==null;){if(J.callback===null)W8(bZ);else if(J.startTime<=Z)W8(bZ),J.sortIndex=J.expirationTime,r4(YZ,J);else break;J=m7(bZ)}}function ZG(Z){if(KY=!1,Q8(Z),!FY)if(m7(YZ)!==null)FY=!0,QJ||(QJ=!0,UJ());else{var J=m7(bZ);J!==null&&JG(ZG,J.startTime-Z)}}function EW(){return e4?!0:d7()-PWZ&&EW());){var X=F7.callback;if(typeof X==="function"){F7.callback=null,U8=F7.priorityLevel;var G=X(F7.expirationTime<=Z);if(Z=d7(),typeof G==="function"){F7.callback=G,Q8(Z),J=!0;break J}F7===m7(YZ)&&W8(YZ),Q8(Z)}else W8(YZ);F7=m7(YZ)}if(F7!==null)J=!0;else{var q=m7(bZ);q!==null&&JG(ZG,q.startTime-Z),J=!1}}break Z}finally{F7=null,U8=Y,n4=!1}J=void 0}}finally{J?UJ():QJ=!1}}}function JG(Z,J){VY=SW(function(){Z(d7())},J)}var d7=void 0,a4,q8,o4,YZ,bZ,TF=1,F7=null,U8=3,n4=!1,FY=!1,KY=!1,e4=!1,SW,xW,CW,QJ=!1,VY=-1,NF=5,PW=-1,UJ,z8,t4,YG=5,XG=1,GG=4,zJ=3,qG=2,UG=function(Z){Z.callback=null},QG=function(){return U8},zG=function(){e4=!0},WJ=function(Z,J,Y){var X=d7();switch(typeof Y==="object"&&Y!==null?(Y=Y.delay,Y=typeof Y==="number"&&0X?(Z.sortIndex=Y,r4(bZ,Z),m7(YZ)===null&&Z===m7(bZ)&&(KY?(xW(VY),VY=-1):KY=!0,JG(ZG,Y-X))):(Z.sortIndex=G,r4(YZ,Z),FY||n4||(FY=!0,QJ||(QJ=!0,UJ()))),Z},WG;var hW=DX(()=>{if(typeof performance==="object"&&typeof performance.now==="function")a4=performance,d7=function(){return a4.now()};else q8=Date,o4=q8.now(),d7=function(){return q8.now()-o4};YZ=[],bZ=[],SW=typeof setTimeout==="function"?setTimeout:null,xW=typeof clearTimeout==="function"?clearTimeout:null,CW=typeof setImmediate<"u"?setImmediate:null;if(typeof CW==="function")UJ=function(){CW(s4)};else if(typeof MessageChannel<"u")z8=new MessageChannel,t4=z8.port2,z8.port1.onmessage=s4,UJ=function(){t4.postMessage(null)};else UJ=function(){SW(s4,0)};WG=EW});var hU={};d6(hU,{version:()=>s2,hydrateRoot:()=>i2,createRoot:()=>l2});function T(Z){var J="react-error:"+Z;if(1KJ||(Z.current=sG[KJ],sG[KJ]=null,KJ--)}function z0(Z,J){KJ++,sG[KJ]=Z.current,Z.current=J}function m8(Z,J){switch(z0(mZ,J),z0(iY,Z),z0(i7,null),J.nodeType){case 9:case 11:Z=(Z=J.documentElement)?(Z=Z.namespaceURI)?d1(Z):0:0;break;default:if(Z=J.tagName,J=J.namespaceURI)J=d1(J),Z=S2(J,Z);else switch(Z){case"svg":Z=1;break;case"math":Z=2;break;default:Z=0}}E0(i7),z0(i7,Z)}function EJ(){E0(i7),E0(iY),E0(mZ)}function rG(Z){Z.memoizedState!==null&&z0(u8,Z);var J=i7.current,Y=S2(J,Z.type);J!==Y&&(z0(iY,Z),z0(i7,Y))}function d8(Z){iY.current===Z&&(E0(i7),E0(iY)),u8.current===Z&&(E0(u8),XX._currentValue=N6)}function A6(Z){if(BG===void 0)try{throw Error()}catch(Y){var J=Y.stack.trim().match(/\n( *(at )?)/);BG=J&&J[1]||"",gW=-1)":-1X||z[J]!==H[X]){var j=` -`+z[J].replace(" at new "," at ");return Z.displayName&&j.includes("")&&(j=j.replace("",Z.displayName)),j}while(1<=J&&0<=X);break}}}finally{l9=!1,Error.prepareStackTrace=Y}return(Y=Z?Z.displayName||Z.name:"")?V6(Y):""}function mM(Z,G){switch(Z.tag){case 26:case 27:case 5:return V6(Z.type);case 16:return V6("Lazy");case 13:return Z.child!==G&&G!==null?V6("Suspense Fallback"):V6("Suspense");case 19:return V6("SuspenseList");case 0:case 15:return i9(Z.type,!1);case 11:return i9(Z.type.render,!1);case 1:return i9(Z.type,!0);case 31:return V6("Activity");default:return""}}function FH(Z){try{var G="",Y=null;do G+=mM(Z,Y),Y=Z,Z=Z.return;while(Z);return G}catch(J){return` -Error generating stack: `+J.message+` -`+J.stack}}function hZ(Z){if(typeof iM==="function"&&sM(Z),H7&&typeof H7.setStrictMode==="function")try{H7.setStrictMode(tY,Z)}catch(G){}}function oM(Z){return Z>>>=0,Z===0?32:31-(rM(Z)/aM|0)|0}function A6(Z){var G=Z&42;if(G!==0)return G;switch(Z&-Z){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 Z&261888;case 262144:case 524288:case 1048576:case 2097152:return Z&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return Z&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return Z}}function G8(Z,G,Y){var J=Z.pendingLanes;if(J===0)return 0;var X=0,q=Z.suspendedLanes,U=Z.pingedLanes;Z=Z.warmLanes;var Q=J&134217727;return Q!==0?(J=Q&~q,J!==0?X=A6(J):(U&=Q,U!==0?X=A6(U):Y||(Y=Q&~Z,Y!==0&&(X=A6(Y))))):(Q=J&~q,Q!==0?X=A6(Q):U!==0?X=A6(U):Y||(Y=J&~Z,Y!==0&&(X=A6(Y)))),X===0?0:G!==0&&G!==X&&(G&q)===0&&(q=X&-X,Y=G&-G,q>=Y||q===32&&(Y&4194048)!==0)?G:X}function eY(Z,G){return(Z.pendingLanes&~(Z.suspendedLanes&~Z.pingedLanes)&G)===0}function nM(Z,G){switch(Z){case 1:case 2:case 4:case 8:case 64:return G+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 G+5000;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 lW(){var Z=eJ;return eJ<<=1,(eJ&62914560)===0&&(eJ=4194304),Z}function r9(Z){for(var G=[],Y=0;31>Y;Y++)G.push(Z);return G}function ZJ(Z,G){Z.pendingLanes|=G,G!==268435456&&(Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0)}function tM(Z,G,Y,J,X,q){var U=Z.pendingLanes;Z.pendingLanes=Y,Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0,Z.expiredLanes&=Y,Z.entangledLanes&=Y,Z.errorRecoveryDisabledLanes&=Y,Z.shellSuspendCounter=0;var{entanglements:Q,expirationTimes:z,hiddenUpdates:H}=Z;for(Y=U&~Y;0"u")return null;try{return Z.activeElement||Z.body}catch(G){return Z.body}}function O7(Z){return Z.replace(XF,function(G){return"\\"+G.charCodeAt(0).toString(16)+" "})}function x4(Z,G,Y,J,X,q,U,Q){if(Z.name="",U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"?Z.type=U:Z.removeAttribute("type"),G!=null)if(U==="number"){if(G===0&&Z.value===""||Z.value!=G)Z.value=""+D7(G)}else Z.value!==""+D7(G)&&(Z.value=""+D7(G));else U!=="submit"&&U!=="reset"||Z.removeAttribute("value");G!=null?P4(Z,U,D7(G)):Y!=null?P4(Z,U,D7(Y)):J!=null&&Z.removeAttribute("value"),X==null&&q!=null&&(Z.defaultChecked=!!q),X!=null&&(Z.checked=X&&typeof X!=="function"&&typeof X!=="symbol"),Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"?Z.name=""+D7(Q):Z.removeAttribute("name")}function Z1(Z,G,Y,J,X,q,U,Q){if(q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"&&(Z.type=q),G!=null||Y!=null){if(!(q!=="submit"&&q!=="reset"||G!==void 0&&G!==null)){S4(Z);return}Y=Y!=null?""+D7(Y):"",G=G!=null?""+D7(G):Y,Q||G===Z.value||(Z.value=G),Z.defaultValue=G}J=J!=null?J:X,J=typeof J!=="function"&&typeof J!=="symbol"&&!!J,Z.checked=Q?Z.checked:!!J,Z.defaultChecked=!!J,U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"&&(Z.name=U),S4(Z)}function P4(Z,G,Y){G==="number"&&CX(Z.ownerDocument)===Z||Z.defaultValue===""+Y||(Z.defaultValue=""+Y)}function $G(Z,G,Y,J){if(Z=Z.options,G){G={};for(var X=0;X=G)return{node:Y,offset:G-Z};Z=J}Z:{for(;Y;){if(Y.nextSibling){Y=Y.nextSibling;break Z}Y=Y.parentNode}Y=void 0}Y=SH(Y)}}function j1(Z,G){return Z&&G?Z===G?!0:Z&&Z.nodeType===3?!1:G&&G.nodeType===3?j1(Z,G.parentNode):("contains"in Z)?Z.contains(G):Z.compareDocumentPosition?!!(Z.compareDocumentPosition(G)&16):!1:!1}function L1(Z){Z=Z!=null&&Z.ownerDocument!=null&&Z.ownerDocument.defaultView!=null?Z.ownerDocument.defaultView:window;for(var G=CX(Z.document);G instanceof Z.HTMLIFrameElement;){try{var Y=typeof G.contentWindow.location.href==="string"}catch(J){Y=!1}if(Y)Z=G.contentWindow;else break;G=CX(Z.document)}return G}function Cq(Z){var G=Z&&Z.nodeName&&Z.nodeName.toLowerCase();return G&&(G==="input"&&(Z.type==="text"||Z.type==="search"||Z.type==="tel"||Z.type==="url"||Z.type==="password")||G==="textarea"||Z.contentEditable==="true")}function PH(Z,G,Y){var J=Y.window===Y?Y.document:Y.nodeType===9?Y:Y.ownerDocument;f4||LG==null||LG!==CX(J)||(J=LG,("selectionStart"in J)&&Cq(J)?J={start:J.selectionStart,end:J.selectionEnd}:(J=(J.ownerDocument&&J.ownerDocument.defaultView||window).getSelection(),J={anchorNode:J.anchorNode,anchorOffset:J.anchorOffset,focusNode:J.focusNode,focusOffset:J.focusOffset}),RY&&uY(RY,J)||(RY=J,J=rX(y4,"onSelect"),0>=U,X-=U,d7=1<<32-W7(G)+X|Y<R?(k=I,I=null):k=I.sibling;var b=L(F,I,K[R],A);if(b===null){I===null&&(I=k);break}Z&&I&&b.alternate===null&&G(F,I),B=q(b,B,R),w===null?$=b:w.sibling=b,w=b,I=k}if(R===K.length)return Y(F,I),r&&UZ(F,R),$;if(I===null){for(;RR?(k=I,I=null):k=I.sibling;var C=L(F,I,b.value,A);if(C===null){I===null&&(I=k);break}Z&&I&&C.alternate===null&&G(F,I),B=q(C,B,R),w===null?$=C:w.sibling=C,w=C,I=k}if(b.done)return Y(F,I),r&&UZ(F,R),$;if(I===null){for(;!b.done;R++,b=K.next())b=W(F,b.value,A),b!==null&&(B=q(b,B,R),w===null?$=b:w.sibling=b,w=b);return r&&UZ(F,R),$}for(I=J(I);!b.done;R++,b=K.next())b=M(I,F,R,b.value,A),b!==null&&(Z&&b.alternate!==null&&I.delete(b.key===null?R:b.key),B=q(b,B,R),w===null?$=b:w.sibling=b,w=b);return Z&&I.forEach(function(a){return G(F,a)}),r&&UZ(F,R),$}function O(F,B,K,A){if(typeof K==="object"&&K!==null&&K.type===zG&&K.key===null&&(K=K.props.children),typeof K==="object"&&K!==null){switch(K.$$typeof){case oJ:Z:{for(var $=K.key;B!==null;){if(B.key===$){if($=K.type,$===zG){if(B.tag===7){Y(F,B.sibling),A=X(B,K.props.children),A.return=F,F=A;break Z}}else if(B.elementType===$||typeof $==="object"&&$!==null&&$.$$typeof===kZ&&$6($)===B.type){Y(F,B.sibling),A=X(B,K.props),BY(A,K),A.return=F,F=A;break Z}Y(F,B);break}else G(F,B);B=B.sibling}K.type===zG?(A=_6(K.props.children,F.mode,A,K.key),A.return=F,F=A):(A=FX(K.type,K.key,K.props,null,F.mode,A),BY(A,K),A.return=F,F=A)}return U(F);case FY:Z:{for($=K.key;B!==null;){if(B.key===$)if(B.tag===4&&B.stateNode.containerInfo===K.containerInfo&&B.stateNode.implementation===K.implementation){Y(F,B.sibling),A=X(B,K.children||[]),A.return=F,F=A;break Z}else{Y(F,B);break}else G(F,B);B=B.sibling}A=G4(K,F.mode,A),A.return=F,F=A}return U(F);case kZ:return K=$6(K),O(F,B,K,A)}if(KY(K))return V(F,B,K,A);if(HY(K)){if($=HY(K),typeof $!=="function")throw Error(T(150));return K=$.call(K),D(F,B,K,A)}if(typeof K.then==="function")return O(F,B,JX(K),A);if(K.$$typeof===zZ)return O(F,B,YX(F,K),A);XX(F,K)}return typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint"?(K=""+K,B!==null&&B.tag===6?(Y(F,B.sibling),A=X(B,K),A.return=F,F=A):(Y(F,B),A=Z4(K,F.mode,A),A.return=F,F=A),U(F)):Y(F,B)}return function(F,B,K,A){try{cY=0;var $=O(F,B,K,A);return _G=null,$}catch(I){if(I===mG||I===Q8)throw I;var w=U7(29,I,null,F.mode);return w.lanes=A,w.return=F,w}finally{}}}function vq(Z){Z.updateQueue={baseState:Z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function p4(Z,G){Z=Z.updateQueue,G.updateQueue===Z&&(G.updateQueue={baseState:Z.baseState,firstBaseUpdate:Z.firstBaseUpdate,lastBaseUpdate:Z.lastBaseUpdate,shared:Z.shared,callbacks:null})}function dZ(Z){return{lane:Z,tag:0,payload:null,callback:null,next:null}}function cZ(Z,G,Y){var J=Z.updateQueue;if(J===null)return null;if(J=J.shared,(t&2)!==0){var X=J.pending;return X===null?G.next=G:(G.next=X.next,X.next=G),J.pending=G,G=xX(Z),O1(Z,null,Y),G}return U8(Z,J,G,Y),xX(Z)}function bY(Z,G,Y){if(G=G.updateQueue,G!==null&&(G=G.shared,(Y&4194048)!==0)){var J=G.lanes;J&=Z.pendingLanes,Y|=J,G.lanes=Y,sW(Z,Y)}}function J4(Z,G){var{updateQueue:Y,alternate:J}=Z;if(J!==null&&(J=J.updateQueue,Y===J)){var X=null,q=null;if(Y=Y.firstBaseUpdate,Y!==null){do{var U={lane:Y.lane,tag:Y.tag,payload:Y.payload,callback:null,next:null};q===null?X=q=U:q=q.next=U,Y=Y.next}while(Y!==null);q===null?X=q=G:q=q.next=G}else X=q=G;Y={baseState:J.baseState,firstBaseUpdate:X,lastBaseUpdate:q,shared:J.shared,callbacks:J.callbacks},Z.updateQueue=Y;return}Z=Y.lastBaseUpdate,Z===null?Y.firstBaseUpdate=G:Z.next=G,Y.lastBaseUpdate=G}function kY(){if(l4){var Z=TG;if(Z!==null)throw Z}}function CY(Z,G,Y,J){l4=!1;var X=Z.updateQueue;CZ=!1;var{firstBaseUpdate:q,lastBaseUpdate:U}=X,Q=X.shared.pending;if(Q!==null){X.shared.pending=null;var z=Q,H=z.next;z.next=null,U===null?q=H:U.next=H,U=z;var j=Z.alternate;j!==null&&(j=j.updateQueue,Q=j.lastBaseUpdate,Q!==U&&(Q===null?j.firstBaseUpdate=H:Q.next=H,j.lastBaseUpdate=z))}if(q!==null){var W=X.baseState;U=0,j=H=z=null,Q=q;do{var L=Q.lane&-536870913,M=L!==Q.lane;if(M?(p&L)===L:(J&L)===L){L!==0&&L===CG&&(l4=!0),j!==null&&(j=j.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});Z:{var V=Z,D=Q;L=G;var O=Y;switch(D.tag){case 1:if(V=D.payload,typeof V==="function"){W=V.call(O,W,L);break Z}W=V;break Z;case 3:V.flags=V.flags&-65537|128;case 0:if(V=D.payload,L=typeof V==="function"?V.call(O,W,L):V,L===null||L===void 0)break Z;W=L0({},W,L);break Z;case 2:CZ=!0}}L=Q.callback,L!==null&&(Z.flags|=64,M&&(Z.flags|=8192),M=X.callbacks,M===null?X.callbacks=[L]:M.push(L))}else M={lane:L,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},j===null?(H=j=M,z=W):j=j.next=M,U|=L;if(Q=Q.next,Q===null)if(Q=X.shared.pending,Q===null)break;else M=Q,Q=M.next,M.next=null,X.lastBaseUpdate=M,X.shared.pending=null}while(1);j===null&&(z=W),X.baseState=z,X.firstBaseUpdate=H,X.lastBaseUpdate=j,q===null&&(X.shared.lanes=0),tZ|=U,Z.lanes=U,Z.memoizedState=W}}function C1(Z,G){if(typeof Z!=="function")throw Error(T(191,Z));Z.call(G)}function S1(Z,G){var Y=Z.callbacks;if(Y!==null)for(Z.callbacks=null,Z=0;Zq?q:8;var U=h.T,Q={};h.T=Q,tq(Z,!1,G,Y);try{var z=X(),H=h.S;if(H!==null&&H(Q,z),z!==null&&typeof z==="object"&&typeof z.then==="function"){var j=tF(z,J);SY(Z,G,j,B7(Z))}else SY(Z,G,J,B7(Z))}catch(W){SY(Z,G,{then:function(){},status:"rejected",reason:W},B7())}finally{e.p=q,U!==null&&Q.types!==null&&(U.types=Q.types),h.T=U}}function XK(){}function o4(Z,G,Y,J){if(Z.tag!==5)throw Error(T(476));var X=YB(Z).queue;GB(Z,X,G,T6,Y===null?XK:function(){return JB(Z),Y(J)})}function YB(Z){var G=Z.memoizedState;if(G!==null)return G;G={memoizedState:T6,baseState:T6,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:KZ,lastRenderedState:T6},next:null};var Y={};return G.next={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:KZ,lastRenderedState:Y},next:null},Z.memoizedState=G,Z=Z.alternate,Z!==null&&(Z.memoizedState=G),G}function JB(Z){var G=YB(Z);G.next===null&&(G=Z.alternate.memoizedState),SY(Z,G.next.queue,{},B7())}function nq(){return g0(rY)}function XB(){return _0().memoizedState}function qB(){return _0().memoizedState}function qK(Z){for(var G=Z.return;G!==null;){switch(G.tag){case 24:case 3:var Y=B7();Z=dZ(Y);var J=cZ(G,Z,Y);J!==null&&(t0(J,G,Y),bY(J,G,Y)),G={cache:yq()},Z.payload=G;return}G=G.return}}function UK(Z,G,Y){var J=B7();Y={lane:J,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},B8(Z)?QB(G,Y):(Y=xq(Z,G,Y,J),Y!==null&&(t0(Y,Z,J),zB(Y,G,J)))}function UB(Z,G,Y){var J=B7();SY(Z,G,Y,J)}function SY(Z,G,Y,J){var X={lane:J,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null};if(B8(Z))QB(G,X);else{var q=Z.alternate;if(Z.lanes===0&&(q===null||q.lanes===0)&&(q=G.lastRenderedReducer,q!==null))try{var U=G.lastRenderedState,Q=q(U,Y);if(X.hasEagerState=!0,X.eagerState=Q,j7(Q,U))return U8(Z,G,X,0),Q0===null&&q8(),!1}catch(z){}finally{}if(Y=xq(Z,G,X,J),Y!==null)return t0(Y,Z,J),zB(Y,G,J),!0}return!1}function tq(Z,G,Y,J){if(J={lane:2,revertLane:QU(),gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null},B8(Z)){if(G)throw Error(T(479))}else G=xq(Z,Y,J,2),G!==null&&t0(G,Z,2)}function B8(Z){var G=Z.alternate;return Z===g||G!==null&&G===g}function QB(Z,G){wG=gX=!0;var Y=Z.pending;Y===null?G.next=G:(G.next=Y.next,Y.next=G),Z.pending=G}function zB(Z,G,Y){if((Y&4194048)!==0){var J=G.lanes;J&=Z.pendingLanes,Y|=J,G.lanes=Y,sW(Z,Y)}}function q4(Z,G,Y,J){G=Z.memoizedState,Y=Y(J,G),Y=Y===null||Y===void 0?G:L0({},G,Y),Z.memoizedState=Y,Z.lanes===0&&(Z.updateQueue.baseState=Y)}function aH(Z,G,Y,J,X,q,U){return Z=Z.stateNode,typeof Z.shouldComponentUpdate==="function"?Z.shouldComponentUpdate(J,q,U):G.prototype&&G.prototype.isPureReactComponent?!uY(Y,J)||!uY(X,q):!0}function oH(Z,G,Y,J){Z=G.state,typeof G.componentWillReceiveProps==="function"&&G.componentWillReceiveProps(Y,J),typeof G.UNSAFE_componentWillReceiveProps==="function"&&G.UNSAFE_componentWillReceiveProps(Y,J),G.state!==Z&&n4.enqueueReplaceState(G,G.state,null)}function x6(Z,G){var Y=G;if("ref"in G){Y={};for(var J in G)J!=="ref"&&(Y[J]=G[J])}if(Z=Z.defaultProps){Y===G&&(Y=L0({},Y));for(var X in Z)Y[X]===void 0&&(Y[X]=Z[X])}return Y}function BB(Z){SX(Z)}function jB(Z){console.error(Z)}function LB(Z){SX(Z)}function uX(Z,G){try{var Y=Z.onUncaughtError;Y(G.value,{componentStack:G.stack})}catch(J){setTimeout(function(){throw J})}}function nH(Z,G,Y){try{var J=Z.onCaughtError;J(Y.value,{componentStack:Y.stack,errorBoundary:G.tag===1?G.stateNode:null})}catch(X){setTimeout(function(){throw X})}}function t4(Z,G,Y){return Y=dZ(Y),Y.tag=3,Y.payload={element:null},Y.callback=function(){uX(Z,G)},Y}function MB(Z){return Z=dZ(Z),Z.tag=3,Z}function FB(Z,G,Y,J){var X=Y.type.getDerivedStateFromError;if(typeof X==="function"){var q=J.value;Z.payload=function(){return X(q)},Z.callback=function(){nH(G,Y,J)}}var U=Y.stateNode;U!==null&&typeof U.componentDidCatch==="function"&&(Z.callback=function(){nH(G,Y,J),typeof X!=="function"&&(pZ===null?pZ=new Set([this]):pZ.add(this));var Q=J.stack;this.componentDidCatch(J.value,{componentStack:Q!==null?Q:""})})}function QK(Z,G,Y,J,X){if(Y.flags|=32768,J!==null&&typeof J==="object"&&typeof J.then==="function"){if(G=Y.alternate,G!==null&&uG(G,Y,X,!0),Y=L7.current,Y!==null){switch(Y.tag){case 31:case 13:return T7===null?lX():Y.alternate===null&&$0===0&&($0=3),Y.flags&=-257,Y.flags|=65536,Y.lanes=X,J===hX?Y.flags|=16384:(G=Y.updateQueue,G===null?Y.updateQueue=new Set([J]):G.add(J),K4(Z,J,X)),!1;case 22:return Y.flags|=65536,J===hX?Y.flags|=16384:(G=Y.updateQueue,G===null?(G={transitions:null,markerInstances:null,retryQueue:new Set([J])},Y.updateQueue=G):(Y=G.retryQueue,Y===null?G.retryQueue=new Set([J]):Y.add(J)),K4(Z,J,X)),!1}throw Error(T(435,Y.tag))}return K4(Z,J,X),lX(),!1}if(r)return G=L7.current,G!==null?((G.flags&65536)===0&&(G.flags|=256),G.flags|=65536,G.lanes=X,J!==v4&&(Z=Error(T(422),{cause:J}),dY($7(Z,Y)))):(J!==v4&&(G=Error(T(423),{cause:J}),dY($7(G,Y))),Z=Z.current.alternate,Z.flags|=65536,X&=-X,Z.lanes|=X,J=$7(J,Y),X=t4(Z.stateNode,J,X),J4(Z,X),$0!==4&&($0=2)),!1;var q=Error(T(520),{cause:J});if(q=$7(q,Y),EY===null?EY=[q]:EY.push(q),$0!==4&&($0=2),G===null)return!0;J=$7(J,Y),Y=G;do{switch(Y.tag){case 3:return Y.flags|=65536,Z=X&-X,Y.lanes|=Z,Z=t4(Y.stateNode,J,Z),J4(Y,Z),!1;case 1:if(G=Y.type,q=Y.stateNode,(Y.flags&128)===0&&(typeof G.getDerivedStateFromError==="function"||q!==null&&typeof q.componentDidCatch==="function"&&(pZ===null||!pZ.has(q))))return Y.flags|=65536,X&=-X,Y.lanes|=X,X=MB(X),FB(X,Z,Y,J),J4(Y,X),!1}Y=Y.return}while(Y!==null);return!1}function h0(Z,G,Y,J){G.child=Z===null?k1(G,null,Y,J):C6(G,Z.child,Y,J)}function tH(Z,G,Y,J,X){Y=Y.render;var q=G.ref;if("ref"in J){var U={};for(var Q in J)Q!=="ref"&&(U[Q]=J[Q])}else U=J;if(k6(G),J=dq(Z,G,Y,U,q,X),Q=cq(),Z!==null&&!C0)return pq(Z,G,X),DZ(Z,G,X);return r&&Q&&Eq(G),G.flags|=1,h0(Z,G,J,X),G.child}function eH(Z,G,Y,J,X){if(Z===null){var q=Y.type;if(typeof q==="function"&&!Pq(q)&&q.defaultProps===void 0&&Y.compare===null)return G.tag=15,G.type=q,KB(Z,G,q,J,X);return Z=FX(Y.type,null,J,G,G.mode,X),Z.ref=G.ref,Z.return=G,G.child=Z}if(q=Z.child,!GU(Z,X)){var U=q.memoizedProps;if(Y=Y.compare,Y=Y!==null?Y:uY,Y(U,J)&&Z.ref===G.ref)return DZ(Z,G,X)}return G.flags|=1,Z=BZ(q,J),Z.ref=G.ref,Z.return=G,G.child=Z}function KB(Z,G,Y,J,X){if(Z!==null){var q=Z.memoizedProps;if(uY(q,J)&&Z.ref===G.ref)if(C0=!1,G.pendingProps=J=q,GU(Z,X))(Z.flags&131072)!==0&&(C0=!0);else return G.lanes=Z.lanes,DZ(Z,G,X)}return e4(Z,G,Y,J,X)}function DB(Z,G,Y,J){var X=J.children,q=Z!==null?Z.memoizedState:null;if(Z===null&&G.stateNode===null&&(G.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.mode==="hidden"){if((G.flags&128)!==0){if(q=q!==null?q.baseLanes|Y:Y,Z!==null){J=G.child=Z.child;for(X=0;J!==null;)X=X|J.lanes|J.childLanes,J=J.sibling;J=X&~q}else J=0,G.child=null;return ZW(Z,G,q,Y,J)}if((Y&536870912)!==0)G.memoizedState={baseLanes:0,cachePool:null},Z!==null&&KX(G,q!==null?q.cachePool:null),q!==null?dH(G,q):i4(),x1(G);else return J=G.lanes=536870912,ZW(Z,G,q!==null?q.baseLanes|Y:Y,Y,J)}else q!==null?(KX(G,q.cachePool),dH(G,q),PZ(G),G.memoizedState=null):(Z!==null&&KX(G,null),i4(),PZ(G));return h0(Z,G,X,Y),G.child}function OY(Z,G){return Z!==null&&Z.tag===22||G.stateNode!==null||(G.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),G.sibling}function ZW(Z,G,Y,J,X){var q=fq();return q=q===null?null:{parent:k0._currentValue,pool:q},G.memoizedState={baseLanes:Y,cachePool:q},Z!==null&&KX(G,null),i4(),x1(G),Z!==null&&uG(Z,G,J,!0),G.childLanes=X,null}function AX(Z,G){return G=mX({mode:G.mode,children:G.children},Z.mode),G.ref=Z.ref,Z.child=G,G.return=Z,G}function GW(Z,G,Y){return C6(G,Z.child,null,Y),Z=AX(G,G.pendingProps),Z.flags|=2,q7(G),G.memoizedState=null,Z}function zK(Z,G,Y){var J=G.pendingProps,X=(G.flags&128)!==0;if(G.flags&=-129,Z===null){if(r){if(J.mode==="hidden")return Z=AX(G,J),G.lanes=536870912,OY(null,Z);if(s4(G),(Z=j0)?(Z=Hj(Z,I7),Z=Z!==null&&Z.data==="&"?Z:null,Z!==null&&(G.memoizedState={dehydrated:Z,treeContext:aZ!==null?{id:d7,overflow:c7}:null,retryLane:536870912,hydrationErrors:null},Y=I1(Z),Y.return=G,G.child=Y,f0=G,j0=null)):Z=null,Z===null)throw oZ(G);return G.lanes=536870912,null}return AX(G,J)}var q=Z.memoizedState;if(q!==null){var U=q.dehydrated;if(s4(G),X)if(G.flags&256)G.flags&=-257,G=GW(Z,G,Y);else if(G.memoizedState!==null)G.child=Z.child,G.flags|=128,G=null;else throw Error(T(558));else if(C0||uG(Z,G,Y,!1),X=(Y&Z.childLanes)!==0,C0||X){if(J=Q0,J!==null&&(U=rW(J,Y),U!==0&&U!==q.retryLane))throw q.retryLane=U,y6(Z,U),t0(J,Z,U),ZU;lX(),G=GW(Z,G,Y)}else Z=q.treeContext,j0=_7(U.nextSibling),f0=G,r=!0,mZ=null,I7=!1,Z!==null&&_1(G,Z),G=AX(G,J),G.flags|=4096;return G}return Z=BZ(Z.child,{mode:J.mode,children:J.children}),Z.ref=G.ref,G.child=Z,Z.return=G,Z}function OX(Z,G){var Y=G.ref;if(Y===null)Z!==null&&Z.ref!==null&&(G.flags|=4194816);else{if(typeof Y!=="function"&&typeof Y!=="object")throw Error(T(284));if(Z===null||Z.ref!==Y)G.flags|=4194816}}function e4(Z,G,Y,J,X){if(k6(G),Y=dq(Z,G,Y,J,void 0,X),J=cq(),Z!==null&&!C0)return pq(Z,G,X),DZ(Z,G,X);return r&&J&&Eq(G),G.flags|=1,h0(Z,G,Y,X),G.child}function YW(Z,G,Y,J,X,q){if(k6(G),G.updateQueue=null,Y=E1(G,J,Y,X),P1(Z),J=cq(),Z!==null&&!C0)return pq(Z,G,q),DZ(Z,G,q);return r&&J&&Eq(G),G.flags|=1,h0(Z,G,Y,q),G.child}function JW(Z,G,Y,J,X){if(k6(G),G.stateNode===null){var q=KG,U=Y.contextType;typeof U==="object"&&U!==null&&(q=g0(U)),q=new Y(J,q),G.memoizedState=q.state!==null&&q.state!==void 0?q.state:null,q.updater=n4,G.stateNode=q,q._reactInternals=G,q=G.stateNode,q.props=J,q.state=G.memoizedState,q.refs={},vq(G),U=Y.contextType,q.context=typeof U==="object"&&U!==null?g0(U):KG,q.state=G.memoizedState,U=Y.getDerivedStateFromProps,typeof U==="function"&&(q4(G,Y,U,J),q.state=G.memoizedState),typeof Y.getDerivedStateFromProps==="function"||typeof q.getSnapshotBeforeUpdate==="function"||typeof q.UNSAFE_componentWillMount!=="function"&&typeof q.componentWillMount!=="function"||(U=q.state,typeof q.componentWillMount==="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount==="function"&&q.UNSAFE_componentWillMount(),U!==q.state&&n4.enqueueReplaceState(q,q.state,null),CY(G,J,q,X),kY(),q.state=G.memoizedState),typeof q.componentDidMount==="function"&&(G.flags|=4194308),J=!0}else if(Z===null){q=G.stateNode;var Q=G.memoizedProps,z=x6(Y,Q);q.props=z;var H=q.context,j=Y.contextType;U=KG,typeof j==="object"&&j!==null&&(U=g0(j));var W=Y.getDerivedStateFromProps;j=typeof W==="function"||typeof q.getSnapshotBeforeUpdate==="function",Q=G.pendingProps!==Q,j||typeof q.UNSAFE_componentWillReceiveProps!=="function"&&typeof q.componentWillReceiveProps!=="function"||(Q||H!==U)&&oH(G,q,J,U),CZ=!1;var L=G.memoizedState;q.state=L,CY(G,J,q,X),kY(),H=G.memoizedState,Q||L!==H||CZ?(typeof W==="function"&&(q4(G,Y,W,J),H=G.memoizedState),(z=CZ||aH(G,Y,z,J,L,H,U))?(j||typeof q.UNSAFE_componentWillMount!=="function"&&typeof q.componentWillMount!=="function"||(typeof q.componentWillMount==="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount==="function"&&q.UNSAFE_componentWillMount()),typeof q.componentDidMount==="function"&&(G.flags|=4194308)):(typeof q.componentDidMount==="function"&&(G.flags|=4194308),G.memoizedProps=J,G.memoizedState=H),q.props=J,q.state=H,q.context=U,J=z):(typeof q.componentDidMount==="function"&&(G.flags|=4194308),J=!1)}else{q=G.stateNode,p4(Z,G),U=G.memoizedProps,j=x6(Y,U),q.props=j,W=G.pendingProps,L=q.context,H=Y.contextType,z=KG,typeof H==="object"&&H!==null&&(z=g0(H)),Q=Y.getDerivedStateFromProps,(H=typeof Q==="function"||typeof q.getSnapshotBeforeUpdate==="function")||typeof q.UNSAFE_componentWillReceiveProps!=="function"&&typeof q.componentWillReceiveProps!=="function"||(U!==W||L!==z)&&oH(G,q,J,z),CZ=!1,L=G.memoizedState,q.state=L,CY(G,J,q,X),kY();var M=G.memoizedState;U!==W||L!==M||CZ||Z!==null&&Z.dependencies!==null&&EX(Z.dependencies)?(typeof Q==="function"&&(q4(G,Y,Q,J),M=G.memoizedState),(j=CZ||aH(G,Y,j,J,L,M,z)||Z!==null&&Z.dependencies!==null&&EX(Z.dependencies))?(H||typeof q.UNSAFE_componentWillUpdate!=="function"&&typeof q.componentWillUpdate!=="function"||(typeof q.componentWillUpdate==="function"&&q.componentWillUpdate(J,M,z),typeof q.UNSAFE_componentWillUpdate==="function"&&q.UNSAFE_componentWillUpdate(J,M,z)),typeof q.componentDidUpdate==="function"&&(G.flags|=4),typeof q.getSnapshotBeforeUpdate==="function"&&(G.flags|=1024)):(typeof q.componentDidUpdate!=="function"||U===Z.memoizedProps&&L===Z.memoizedState||(G.flags|=4),typeof q.getSnapshotBeforeUpdate!=="function"||U===Z.memoizedProps&&L===Z.memoizedState||(G.flags|=1024),G.memoizedProps=J,G.memoizedState=M),q.props=J,q.state=M,q.context=z,J=j):(typeof q.componentDidUpdate!=="function"||U===Z.memoizedProps&&L===Z.memoizedState||(G.flags|=4),typeof q.getSnapshotBeforeUpdate!=="function"||U===Z.memoizedProps&&L===Z.memoizedState||(G.flags|=1024),J=!1)}return q=J,OX(Z,G),J=(G.flags&128)!==0,q||J?(q=G.stateNode,Y=J&&typeof Y.getDerivedStateFromError!=="function"?null:q.render(),G.flags|=1,Z!==null&&J?(G.child=C6(G,Z.child,null,X),G.child=C6(G,null,Y,X)):h0(Z,G,Y,X),G.memoizedState=q.state,Z=G.child):Z=DZ(Z,G,X),Z}function XW(Z,G,Y,J){return b6(),G.flags|=256,h0(Z,G,Y,J),G.child}function Q4(Z){return{baseLanes:Z,cachePool:R1()}}function z4(Z,G,Y){return Z=Z!==null?Z.childLanes&~Y:0,G&&(Z|=Q7),Z}function VB(Z,G,Y){var J=G.pendingProps,X=!1,q=(G.flags&128)!==0,U;if((U=q)||(U=Z!==null&&Z.memoizedState===null?!1:(T0.current&2)!==0),U&&(X=!0,G.flags&=-129),U=(G.flags&32)!==0,G.flags&=-33,Z===null){if(r){if(X?xZ(G):PZ(G),(Z=j0)?(Z=Hj(Z,I7),Z=Z!==null&&Z.data!=="&"?Z:null,Z!==null&&(G.memoizedState={dehydrated:Z,treeContext:aZ!==null?{id:d7,overflow:c7}:null,retryLane:536870912,hydrationErrors:null},Y=I1(Z),Y.return=G,G.child=Y,f0=G,j0=null)):Z=null,Z===null)throw oZ(G);return Fq(Z)?G.lanes=32:G.lanes=536870912,null}var Q=J.children;if(J=J.fallback,X)return PZ(G),X=G.mode,Q=mX({mode:"hidden",children:Q},X),J=_6(J,X,Y,null),Q.return=G,J.return=G,Q.sibling=J,G.child=Q,J=G.child,J.memoizedState=Q4(Y),J.childLanes=z4(Z,U,Y),G.memoizedState=U4,OY(null,J);return xZ(G),Zq(G,Q)}var z=Z.memoizedState;if(z!==null&&(Q=z.dehydrated,Q!==null)){if(q)G.flags&256?(xZ(G),G.flags&=-257,G=H4(Z,G,Y)):G.memoizedState!==null?(PZ(G),G.child=Z.child,G.flags|=128,G=null):(PZ(G),Q=J.fallback,X=G.mode,J=mX({mode:"visible",children:J.children},X),Q=_6(Q,X,Y,null),Q.flags|=2,J.return=G,Q.return=G,J.sibling=Q,G.child=J,C6(G,Z.child,null,Y),J=G.child,J.memoizedState=Q4(Y),J.childLanes=z4(Z,U,Y),G.memoizedState=U4,G=OY(null,J));else if(xZ(G),Fq(Q)){if(U=Q.nextSibling&&Q.nextSibling.dataset,U)var H=U.dgst;U=H,J=Error(T(419)),J.stack="",J.digest=U,dY({value:J,source:null,stack:null}),G=H4(Z,G,Y)}else if(C0||uG(Z,G,Y,!1),U=(Y&Z.childLanes)!==0,C0||U){if(U=Q0,U!==null&&(J=rW(U,Y),J!==0&&J!==z.retryLane))throw z.retryLane=J,y6(Z,J),t0(U,Z,J),ZU;Mq(Q)||lX(),G=H4(Z,G,Y)}else Mq(Q)?(G.flags|=192,G.child=Z.child,G=null):(Z=z.treeContext,j0=_7(Q.nextSibling),f0=G,r=!0,mZ=null,I7=!1,Z!==null&&_1(G,Z),G=Zq(G,J.children),G.flags|=4096);return G}if(X)return PZ(G),Q=J.fallback,X=G.mode,z=Z.child,H=z.sibling,J=BZ(z,{mode:"hidden",children:J.children}),J.subtreeFlags=z.subtreeFlags&65011712,H!==null?Q=BZ(H,Q):(Q=_6(Q,X,Y,null),Q.flags|=2),Q.return=G,J.return=G,J.sibling=Q,G.child=J,OY(null,J),J=G.child,Q=Z.child.memoizedState,Q===null?Q=Q4(Y):(X=Q.cachePool,X!==null?(z=k0._currentValue,X=X.parent!==z?{parent:z,pool:z}:X):X=R1(),Q={baseLanes:Q.baseLanes|Y,cachePool:X}),J.memoizedState=Q,J.childLanes=z4(Z,U,Y),G.memoizedState=U4,OY(Z.child,J);return xZ(G),Y=Z.child,Z=Y.sibling,Y=BZ(Y,{mode:"visible",children:J.children}),Y.return=G,Y.sibling=null,Z!==null&&(U=G.deletions,U===null?(G.deletions=[Z],G.flags|=16):U.push(Z)),G.child=Y,G.memoizedState=null,Y}function Zq(Z,G){return G=mX({mode:"visible",children:G},Z.mode),G.return=Z,Z.child=G}function mX(Z,G){return Z=U7(22,Z,null,G),Z.lanes=0,Z}function H4(Z,G,Y){return C6(G,Z.child,null,Y),Z=Zq(G,G.pendingProps.children),Z.flags|=2,G.memoizedState=null,Z}function qW(Z,G,Y){Z.lanes|=G;var J=Z.alternate;J!==null&&(J.lanes|=G),m4(Z.return,G,Y)}function W4(Z,G,Y,J,X,q){var U=Z.memoizedState;U===null?Z.memoizedState={isBackwards:G,rendering:null,renderingStartTime:0,last:J,tail:Y,tailMode:X,treeForkCount:q}:(U.isBackwards=G,U.rendering=null,U.renderingStartTime=0,U.last=J,U.tail=Y,U.tailMode=X,U.treeForkCount=q)}function AB(Z,G,Y){var J=G.pendingProps,X=J.revealOrder,q=J.tail;J=J.children;var U=T0.current,Q=(U&2)!==0;if(Q?(U=U&1|2,G.flags|=128):U&=1,z0(T0,U),h0(Z,G,J,Y),J=r?mY:0,!Q&&Z!==null&&(Z.flags&128)!==0)Z:for(Z=G.child;Z!==null;){if(Z.tag===13)Z.memoizedState!==null&&qW(Z,Y,G);else if(Z.tag===19)qW(Z,Y,G);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===G)break Z;for(;Z.sibling===null;){if(Z.return===null||Z.return===G)break Z;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}switch(X){case"forwards":Y=G.child;for(X=null;Y!==null;)Z=Y.alternate,Z!==null&&fX(Z)===null&&(X=Y),Y=Y.sibling;Y=X,Y===null?(X=G.child,G.child=null):(X=Y.sibling,Y.sibling=null),W4(G,!1,X,Y,q,J);break;case"backwards":case"unstable_legacy-backwards":Y=null,X=G.child;for(G.child=null;X!==null;){if(Z=X.alternate,Z!==null&&fX(Z)===null){G.child=X;break}Z=X.sibling,X.sibling=Y,Y=X,X=Z}W4(G,!0,Y,null,q,J);break;case"together":W4(G,!1,null,null,void 0,J);break;default:G.memoizedState=null}return G.child}function DZ(Z,G,Y){if(Z!==null&&(G.dependencies=Z.dependencies),tZ|=G.lanes,(Y&G.childLanes)===0)if(Z!==null){if(uG(Z,G,Y,!1),(Y&G.childLanes)===0)return null}else return null;if(Z!==null&&G.child!==Z.child)throw Error(T(153));if(G.child!==null){Z=G.child,Y=BZ(Z,Z.pendingProps),G.child=Y;for(Y.return=G;Z.sibling!==null;)Z=Z.sibling,Y=Y.sibling=BZ(Z,Z.pendingProps),Y.return=G;Y.sibling=null}return G.child}function GU(Z,G){if((Z.lanes&G)!==0)return!0;return Z=Z.dependencies,Z!==null&&EX(Z)?!0:!1}function HK(Z,G,Y){switch(G.tag){case 3:NX(G,G.stateNode.containerInfo),SZ(G,k0,Z.memoizedState.cache),b6();break;case 27:case 5:b4(G);break;case 4:NX(G,G.stateNode.containerInfo);break;case 10:SZ(G,G.type,G.memoizedProps.value);break;case 31:if(G.memoizedState!==null)return G.flags|=128,s4(G),null;break;case 13:var J=G.memoizedState;if(J!==null){if(J.dehydrated!==null)return xZ(G),G.flags|=128,null;if((Y&G.child.childLanes)!==0)return VB(Z,G,Y);return xZ(G),Z=DZ(Z,G,Y),Z!==null?Z.sibling:null}xZ(G);break;case 19:var X=(Z.flags&128)!==0;if(J=(Y&G.childLanes)!==0,J||(uG(Z,G,Y,!1),J=(Y&G.childLanes)!==0),X){if(J)return AB(Z,G,Y);G.flags|=128}if(X=G.memoizedState,X!==null&&(X.rendering=null,X.tail=null,X.lastEffect=null),z0(T0,T0.current),J)break;else return null;case 22:return G.lanes=0,DB(Z,G,Y,G.pendingProps);case 24:SZ(G,k0,Z.memoizedState.cache)}return DZ(Z,G,Y)}function OB(Z,G,Y){if(Z!==null)if(Z.memoizedProps!==G.pendingProps)C0=!0;else{if(!GU(Z,Y)&&(G.flags&128)===0)return C0=!1,HK(Z,G,Y);C0=(Z.flags&131072)!==0?!0:!1}else C0=!1,r&&(G.flags&1048576)!==0&&T1(G,mY,G.index);switch(G.lanes=0,G.tag){case 16:Z:{var J=G.pendingProps;if(Z=$6(G.elementType),G.type=Z,typeof Z==="function")Pq(Z)?(J=x6(Z,J),G.tag=1,G=JW(null,G,Z,J,Y)):(G.tag=0,G=e4(null,G,Z,J,Y));else{if(Z!==void 0&&Z!==null){var X=Z.$$typeof;if(X===Aq){G.tag=11,G=tH(null,G,Z,J,Y);break Z}else if(X===Oq){G.tag=14,G=eH(null,G,Z,J,Y);break Z}}throw G=R4(Z)||Z,Error(T(306,G,""))}}return G;case 0:return e4(Z,G,G.type,G.pendingProps,Y);case 1:return J=G.type,X=x6(J,G.pendingProps),JW(Z,G,J,X,Y);case 3:Z:{if(NX(G,G.stateNode.containerInfo),Z===null)throw Error(T(387));J=G.pendingProps;var q=G.memoizedState;X=q.element,p4(Z,G),CY(G,J,null,Y);var U=G.memoizedState;if(J=U.cache,SZ(G,k0,J),J!==q.cache&&d4(G,[k0],Y,!0),kY(),J=U.element,q.isDehydrated)if(q={element:J,isDehydrated:!1,cache:U.cache},G.updateQueue.baseState=q,G.memoizedState=q,G.flags&256){G=XW(Z,G,J,Y);break Z}else if(J!==X){X=$7(Error(T(424)),G),dY(X),G=XW(Z,G,J,Y);break Z}else{switch(Z=G.stateNode.containerInfo,Z.nodeType){case 9:Z=Z.body;break;default:Z=Z.nodeName==="HTML"?Z.ownerDocument.body:Z}j0=_7(Z.firstChild),f0=G,r=!0,mZ=null,I7=!0,Y=k1(G,null,J,Y);for(G.child=Y;Y;)Y.flags=Y.flags&-3|4096,Y=Y.sibling}else{if(b6(),J===X){G=DZ(Z,G,Y);break Z}h0(Z,G,J,Y)}G=G.child}return G;case 26:return OX(Z,G),Z===null?(Y=wW(G.type,null,G.pendingProps,null))?G.memoizedState=Y:r||(Y=G.type,Z=G.pendingProps,J=aX(uZ.current).createElement(Y),J[y0]=G,J[e0]=Z,v0(J,Y,Z),P0(J),G.stateNode=J):G.memoizedState=wW(G.type,Z.memoizedProps,G.pendingProps,Z.memoizedState),null;case 27:return b4(G),Z===null&&r&&(J=G.stateNode=Wj(G.type,G.pendingProps,uZ.current),f0=G,I7=!0,X=j0,Z6(G.type)?(Kq=X,j0=_7(J.firstChild)):j0=X),h0(Z,G,G.pendingProps.children,Y),OX(Z,G),Z===null&&(G.flags|=4194304),G.child;case 5:if(Z===null&&r){if(X=J=j0)J=fK(J,G.type,G.pendingProps,I7),J!==null?(G.stateNode=J,f0=G,j0=_7(J.firstChild),I7=!1,X=!0):X=!1;X||oZ(G)}return b4(G),X=G.type,q=G.pendingProps,U=Z!==null?Z.memoizedProps:null,J=q.children,jq(X,q)?J=null:U!==null&&jq(X,U)&&(G.flags|=32),G.memoizedState!==null&&(X=dq(Z,G,ZK,null,null,Y),rY._currentValue=X),OX(Z,G),h0(Z,G,J,Y),G.child;case 6:if(Z===null&&r){if(Z=Y=j0)Y=gK(Y,G.pendingProps,I7),Y!==null?(G.stateNode=Y,f0=G,j0=null,Z=!0):Z=!1;Z||oZ(G)}return null;case 13:return VB(Z,G,Y);case 4:return NX(G,G.stateNode.containerInfo),J=G.pendingProps,Z===null?G.child=C6(G,null,J,Y):h0(Z,G,J,Y),G.child;case 11:return tH(Z,G,G.type,G.pendingProps,Y);case 7:return h0(Z,G,G.pendingProps,Y),G.child;case 8:return h0(Z,G,G.pendingProps.children,Y),G.child;case 12:return h0(Z,G,G.pendingProps.children,Y),G.child;case 10:return J=G.pendingProps,SZ(G,G.type,J.value),h0(Z,G,J.children,Y),G.child;case 9:return X=G.type._context,J=G.pendingProps.children,k6(G),X=g0(X),J=J(X),G.flags|=1,h0(Z,G,J,Y),G.child;case 14:return eH(Z,G,G.type,G.pendingProps,Y);case 15:return KB(Z,G,G.type,G.pendingProps,Y);case 19:return AB(Z,G,Y);case 31:return zK(Z,G,Y);case 22:return DB(Z,G,Y,G.pendingProps);case 24:return k6(G),J=g0(k0),Z===null?(X=fq(),X===null&&(X=Q0,q=yq(),X.pooledCache=q,q.refCount++,q!==null&&(X.pooledCacheLanes|=Y),X=q),G.memoizedState={parent:J,cache:X},vq(G),SZ(G,k0,X)):((Z.lanes&Y)!==0&&(p4(Z,G),CY(G,null,null,Y),kY()),X=Z.memoizedState,q=G.memoizedState,X.parent!==J?(X={parent:J,cache:J},G.memoizedState=X,G.lanes===0&&(G.memoizedState=G.updateQueue.baseState=X),SZ(G,k0,J)):(J=q.cache,SZ(G,k0,J),J!==X.cache&&d4(G,[k0],Y,!0))),h0(Z,G,G.pendingProps.children,Y),G.child;case 29:throw G.pendingProps}throw Error(T(156,G.tag))}function YZ(Z){Z.flags|=4}function B4(Z,G,Y,J,X){if(G=(Z.mode&32)!==0)G=!1;if(G){if(Z.flags|=16777216,(X&335544128)===X)if(Z.stateNode.complete)Z.flags|=8192;else if(pB())Z.flags|=8192;else throw R6=hX,gq}else Z.flags&=-16777217}function UW(Z,G){if(G.type!=="stylesheet"||(G.state.loading&4)!==0)Z.flags&=-16777217;else if(Z.flags|=16777216,!Lj(G))if(pB())Z.flags|=8192;else throw R6=hX,gq}function qX(Z,G){G!==null&&(Z.flags|=4),Z.flags&16384&&(G=Z.tag!==22?lW():536870912,Z.lanes|=G,PG|=G)}function jY(Z,G){if(!r)switch(Z.tailMode){case"hidden":G=Z.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z.tail=null:Y.sibling=null;break;case"collapsed":Y=Z.tail;for(var J=null;Y!==null;)Y.alternate!==null&&(J=Y),Y=Y.sibling;J===null?G||Z.tail===null?Z.tail=null:Z.tail.sibling=null:J.sibling=null}}function B0(Z){var G=Z.alternate!==null&&Z.alternate.child===Z.child,Y=0,J=0;if(G)for(var X=Z.child;X!==null;)Y|=X.lanes|X.childLanes,J|=X.subtreeFlags&65011712,J|=X.flags&65011712,X.return=Z,X=X.sibling;else for(X=Z.child;X!==null;)Y|=X.lanes|X.childLanes,J|=X.subtreeFlags,J|=X.flags,X.return=Z,X=X.sibling;return Z.subtreeFlags|=J,Z.childLanes=Y,G}function WK(Z,G,Y){var J=G.pendingProps;switch(hq(G),G.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return B0(G),null;case 1:return B0(G),null;case 3:if(Y=G.stateNode,J=null,Z!==null&&(J=Z.memoizedState.cache),G.memoizedState.cache!==J&&(G.flags|=2048),jZ(k0),NG(),Y.pendingContext&&(Y.context=Y.pendingContext,Y.pendingContext=null),Z===null||Z.child===null)JG(G)?YZ(G):Z===null||Z.memoizedState.isDehydrated&&(G.flags&256)===0||(G.flags|=1024,Y4());return B0(G),null;case 26:var{type:X,memoizedState:q}=G;return Z===null?(YZ(G),q!==null?(B0(G),UW(G,q)):(B0(G),B4(G,X,null,J,Y))):q?q!==Z.memoizedState?(YZ(G),B0(G),UW(G,q)):(B0(G),G.flags&=-16777217):(Z=Z.memoizedProps,Z!==J&&YZ(G),B0(G),B4(G,X,Z,J,Y)),null;case 27:if(bX(G),Y=uZ.current,X=G.type,Z!==null&&G.stateNode!=null)Z.memoizedProps!==J&&YZ(G);else{if(!J){if(G.stateNode===null)throw Error(T(166));return B0(G),null}Z=l7.current,JG(G)?hH(G,Z):(Z=Wj(X,J,Y),G.stateNode=Z,YZ(G))}return B0(G),null;case 5:if(bX(G),X=G.type,Z!==null&&G.stateNode!=null)Z.memoizedProps!==J&&YZ(G);else{if(!J){if(G.stateNode===null)throw Error(T(166));return B0(G),null}if(q=l7.current,JG(G))hH(G,q);else{var U=aX(uZ.current);switch(q){case 1:q=U.createElementNS("http"+"://www.w3.org/2000/svg",X);break;case 2:q=U.createElementNS("http"+"://www.w3.org/1998/Math/MathML",X);break;default:switch(X){case"svg":q=U.createElementNS("http"+"://www.w3.org/2000/svg",X);break;case"math":q=U.createElementNS("http"+"://www.w3.org/1998/Math/MathML",X);break;case"script":q=U.createElement("div"),q.innerHTML="",q=q.removeChild(q.firstChild);break;case"select":q=typeof J.is==="string"?U.createElement("select",{is:J.is}):U.createElement("select"),J.multiple?q.multiple=!0:J.size&&(q.size=J.size);break;default:q=typeof J.is==="string"?U.createElement(X,{is:J.is}):U.createElement(X)}}q[y0]=G,q[e0]=J;Z:for(U=G.child;U!==null;){if(U.tag===5||U.tag===6)q.appendChild(U.stateNode);else if(U.tag!==4&&U.tag!==27&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===G)break Z;for(;U.sibling===null;){if(U.return===null||U.return===G)break Z;U=U.return}U.sibling.return=U.return,U=U.sibling}G.stateNode=q;Z:switch(v0(q,X,J),X){case"button":case"input":case"select":case"textarea":J=!!J.autoFocus;break Z;case"img":J=!0;break Z;default:J=!1}J&&YZ(G)}}return B0(G),B4(G,G.type,Z===null?null:Z.memoizedProps,G.pendingProps,Y),null;case 6:if(Z&&G.stateNode!=null)Z.memoizedProps!==J&&YZ(G);else{if(typeof J!=="string"&&G.stateNode===null)throw Error(T(166));if(Z=uZ.current,JG(G)){if(Z=G.stateNode,Y=G.memoizedProps,J=null,X=f0,X!==null)switch(X.tag){case 27:case 5:J=X.memoizedProps}Z[y0]=G,Z=Z.nodeValue===Y||J!==null&&J.suppressHydrationWarning===!0||Uj(Z.nodeValue,Y)?!0:!1,Z||oZ(G,!0)}else Z=aX(Z).createTextNode(J),Z[y0]=G,G.stateNode=Z}return B0(G),null;case 31:if(Y=G.memoizedState,Z===null||Z.memoizedState!==null){if(J=JG(G),Y!==null){if(Z===null){if(!J)throw Error(T(318));if(Z=G.memoizedState,Z=Z!==null?Z.dehydrated:null,!Z)throw Error(T(557));Z[y0]=G}else b6(),(G.flags&128)===0&&(G.memoizedState=null),G.flags|=4;B0(G),Z=!1}else Y=Y4(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=Y),Z=!0;if(!Z){if(G.flags&256)return q7(G),G;return q7(G),null}if((G.flags&128)!==0)throw Error(T(558))}return B0(G),null;case 13:if(J=G.memoizedState,Z===null||Z.memoizedState!==null&&Z.memoizedState.dehydrated!==null){if(X=JG(G),J!==null&&J.dehydrated!==null){if(Z===null){if(!X)throw Error(T(318));if(X=G.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error(T(317));X[y0]=G}else b6(),(G.flags&128)===0&&(G.memoizedState=null),G.flags|=4;B0(G),X=!1}else X=Y4(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=X),X=!0;if(!X){if(G.flags&256)return q7(G),G;return q7(G),null}}if(q7(G),(G.flags&128)!==0)return G.lanes=Y,G;return Y=J!==null,Z=Z!==null&&Z.memoizedState!==null,Y&&(J=G.child,X=null,J.alternate!==null&&J.alternate.memoizedState!==null&&J.alternate.memoizedState.cachePool!==null&&(X=J.alternate.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==X&&(J.flags|=2048)),Y!==Z&&Y&&(G.child.flags|=8192),qX(G,G.updateQueue),B0(G),null;case 4:return NG(),Z===null&&zU(G.stateNode.containerInfo),B0(G),null;case 10:return jZ(G.type),B0(G),null;case 19:if(E0(T0),J=G.memoizedState,J===null)return B0(G),null;if(X=(G.flags&128)!==0,q=J.rendering,q===null)if(X)jY(J,!1);else{if($0!==0||Z!==null&&(Z.flags&128)!==0)for(Z=G.child;Z!==null;){if(q=fX(Z),q!==null){G.flags|=128,jY(J,!1),Z=q.updateQueue,G.updateQueue=Z,qX(G,Z),G.subtreeFlags=0,Z=Y;for(Y=G.child;Y!==null;)$1(Y,Z),Y=Y.sibling;return z0(T0,T0.current&1|2),r&&UZ(G,J.treeForkCount),G.child}Z=Z.sibling}J.tail!==null&&z7()>cX&&(G.flags|=128,X=!0,jY(J,!1),G.lanes=4194304)}else{if(!X)if(Z=fX(q),Z!==null){if(G.flags|=128,X=!0,Z=Z.updateQueue,G.updateQueue=Z,qX(G,Z),jY(J,!0),J.tail===null&&J.tailMode==="hidden"&&!q.alternate&&!r)return B0(G),null}else 2*z7()-J.renderingStartTime>cX&&Y!==536870912&&(G.flags|=128,X=!0,jY(J,!1),G.lanes=4194304);J.isBackwards?(q.sibling=G.child,G.child=q):(Z=J.last,Z!==null?Z.sibling=q:G.child=q,J.last=q)}if(J.tail!==null)return Z=J.tail,J.rendering=Z,J.tail=Z.sibling,J.renderingStartTime=z7(),Z.sibling=null,Y=T0.current,z0(T0,X?Y&1|2:Y&1),r&&UZ(G,J.treeForkCount),Z;return B0(G),null;case 22:case 23:return q7(G),uq(),J=G.memoizedState!==null,Z!==null?Z.memoizedState!==null!==J&&(G.flags|=8192):J&&(G.flags|=8192),J?(Y&536870912)!==0&&(G.flags&128)===0&&(B0(G),G.subtreeFlags&6&&(G.flags|=8192)):B0(G),Y=G.updateQueue,Y!==null&&qX(G,Y.retryQueue),Y=null,Z!==null&&Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),J=null,G.memoizedState!==null&&G.memoizedState.cachePool!==null&&(J=G.memoizedState.cachePool.pool),J!==Y&&(G.flags|=2048),Z!==null&&E0(w6),null;case 24:return Y=null,Z!==null&&(Y=Z.memoizedState.cache),G.memoizedState.cache!==Y&&(G.flags|=2048),jZ(k0),B0(G),null;case 25:return null;case 30:return null}throw Error(T(156,G.tag))}function BK(Z,G){switch(hq(G),G.tag){case 1:return Z=G.flags,Z&65536?(G.flags=Z&-65537|128,G):null;case 3:return jZ(k0),NG(),Z=G.flags,(Z&65536)!==0&&(Z&128)===0?(G.flags=Z&-65537|128,G):null;case 26:case 27:case 5:return bX(G),null;case 31:if(G.memoizedState!==null){if(q7(G),G.alternate===null)throw Error(T(340));b6()}return Z=G.flags,Z&65536?(G.flags=Z&-65537|128,G):null;case 13:if(q7(G),Z=G.memoizedState,Z!==null&&Z.dehydrated!==null){if(G.alternate===null)throw Error(T(340));b6()}return Z=G.flags,Z&65536?(G.flags=Z&-65537|128,G):null;case 19:return E0(T0),null;case 4:return NG(),null;case 10:return jZ(G.type),null;case 22:case 23:return q7(G),uq(),Z!==null&&E0(w6),Z=G.flags,Z&65536?(G.flags=Z&-65537|128,G):null;case 24:return jZ(k0),null;case 25:return null;default:return null}}function $B(Z,G){switch(hq(G),G.tag){case 3:jZ(k0),NG();break;case 26:case 27:case 5:bX(G);break;case 4:NG();break;case 31:G.memoizedState!==null&&q7(G);break;case 13:q7(G);break;case 19:E0(T0);break;case 10:jZ(G.type);break;case 22:case 23:q7(G),uq(),Z!==null&&E0(w6);break;case 24:jZ(k0)}}function qJ(Z,G){try{var Y=G.updateQueue,J=Y!==null?Y.lastEffect:null;if(J!==null){var X=J.next;Y=X;do{if((Y.tag&Z)===Z){J=void 0;var{create:q,inst:U}=Y;J=q(),U.destroy=J}Y=Y.next}while(Y!==X)}}catch(Q){X0(G,G.return,Q)}}function nZ(Z,G,Y){try{var J=G.updateQueue,X=J!==null?J.lastEffect:null;if(X!==null){var q=X.next;J=q;do{if((J.tag&Z)===Z){var U=J.inst,Q=U.destroy;if(Q!==void 0){U.destroy=void 0,X=G;var z=Y,H=Q;try{H()}catch(j){X0(X,z,j)}}}J=J.next}while(J!==q)}}catch(j){X0(G,G.return,j)}}function IB(Z){var G=Z.updateQueue;if(G!==null){var Y=Z.stateNode;try{S1(G,Y)}catch(J){X0(Z,Z.return,J)}}}function TB(Z,G,Y){Y.props=x6(Z.type,Z.memoizedProps),Y.state=Z.memoizedState;try{Y.componentWillUnmount()}catch(J){X0(Z,G,J)}}function xY(Z,G){try{var Y=Z.ref;if(Y!==null){switch(Z.tag){case 26:case 27:case 5:var J=Z.stateNode;break;case 30:J=Z.stateNode;break;default:J=Z.stateNode}typeof Y==="function"?Z.refCleanup=Y(J):Y.current=J}}catch(X){X0(Z,G,X)}}function p7(Z,G){var{ref:Y,refCleanup:J}=Z;if(Y!==null)if(typeof J==="function")try{J()}catch(X){X0(Z,G,X)}finally{Z.refCleanup=null,Z=Z.alternate,Z!=null&&(Z.refCleanup=null)}else if(typeof Y==="function")try{Y(null)}catch(X){X0(Z,G,X)}else Y.current=null}function _B(Z){var{type:G,memoizedProps:Y,stateNode:J}=Z;try{Z:switch(G){case"button":case"input":case"select":case"textarea":Y.autoFocus&&J.focus();break Z;case"img":Y.src?J.src=Y.src:Y.srcSet&&(J.srcset=Y.srcSet)}}catch(X){X0(Z,Z.return,X)}}function j4(Z,G,Y){try{var J=Z.stateNode;SK(J,Z.type,Y,G),J[e0]=G}catch(X){X0(Z,Z.return,X)}}function wB(Z){return Z.tag===5||Z.tag===3||Z.tag===26||Z.tag===27&&Z6(Z.type)||Z.tag===4}function L4(Z){Z:for(;;){for(;Z.sibling===null;){if(Z.return===null||wB(Z.return))return null;Z=Z.return}Z.sibling.return=Z.return;for(Z=Z.sibling;Z.tag!==5&&Z.tag!==6&&Z.tag!==18;){if(Z.tag===27&&Z6(Z.type))continue Z;if(Z.flags&2)continue Z;if(Z.child===null||Z.tag===4)continue Z;else Z.child.return=Z,Z=Z.child}if(!(Z.flags&2))return Z.stateNode}}function Gq(Z,G,Y){var J=Z.tag;if(J===5||J===6)Z=Z.stateNode,G?(Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y).insertBefore(Z,G):(G=Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y,G.appendChild(Z),Y=Y._reactRootContainer,Y!==null&&Y!==void 0||G.onclick!==null||(G.onclick=HZ));else if(J!==4&&(J===27&&Z6(Z.type)&&(Y=Z.stateNode,G=null),Z=Z.child,Z!==null))for(Gq(Z,G,Y),Z=Z.sibling;Z!==null;)Gq(Z,G,Y),Z=Z.sibling}function dX(Z,G,Y){var J=Z.tag;if(J===5||J===6)Z=Z.stateNode,G?Y.insertBefore(Z,G):Y.appendChild(Z);else if(J!==4&&(J===27&&Z6(Z.type)&&(Y=Z.stateNode),Z=Z.child,Z!==null))for(dX(Z,G,Y),Z=Z.sibling;Z!==null;)dX(Z,G,Y),Z=Z.sibling}function RB(Z){var{stateNode:G,memoizedProps:Y}=Z;try{for(var J=Z.type,X=G.attributes;X.length;)G.removeAttributeNode(X[0]);v0(G,J,Y),G[y0]=Z,G[e0]=Y}catch(q){X0(Z,Z.return,q)}}function jK(Z,G){if(Z=Z.containerInfo,Wq=eX,Z=L1(Z),Cq(Z)){if("selectionStart"in Z)var Y={start:Z.selectionStart,end:Z.selectionEnd};else Z:{Y=(Y=Z.ownerDocument)&&Y.defaultView||window;var J=Y.getSelection&&Y.getSelection();if(J&&J.rangeCount!==0){Y=J.anchorNode;var{anchorOffset:X,focusNode:q}=J;J=J.focusOffset;try{Y.nodeType,q.nodeType}catch(D){Y=null;break Z}var U=0,Q=-1,z=-1,H=0,j=0,W=Z,L=null;G:for(;;){for(var M;;){if(W!==Y||X!==0&&W.nodeType!==3||(Q=U+X),W!==q||J!==0&&W.nodeType!==3||(z=U+J),W.nodeType===3&&(U+=W.nodeValue.length),(M=W.firstChild)===null)break;L=W,W=M}for(;;){if(W===Z)break G;if(L===Y&&++H===X&&(Q=U),L===q&&++j===J&&(z=U),(M=W.nextSibling)!==null)break;W=L,L=W.parentNode}W=M}Y=Q===-1||z===-1?null:{start:Q,end:z}}else Y=null}Y=Y||{start:0,end:0}}else Y=null;Bq={focusedElem:Z,selectionRange:Y},eX=!1;for(x0=G;x0!==null;)if(G=x0,Z=G.child,(G.subtreeFlags&1028)!==0&&Z!==null)Z.return=G,x0=Z;else for(;x0!==null;){switch(G=x0,q=G.alternate,Z=G.flags,G.tag){case 0:if((Z&4)!==0&&(Z=G.updateQueue,Z=Z!==null?Z.events:null,Z!==null))for(Y=0;Y title"));v0(q,J,Y),q[y0]=Z,P0(q),J=q;break Z;case"link":var U=NW("link","href",X).get(J+(Y.href||""));if(U){for(var Q=0;QO&&(U=O,O=D,D=U);var F=xH(Q,D),B=xH(Q,O);if(F&&B&&(M.rangeCount!==1||M.anchorNode!==F.node||M.anchorOffset!==F.offset||M.focusNode!==B.node||M.focusOffset!==B.offset)){var K=W.createRange();K.setStart(F.node,F.offset),M.removeAllRanges(),D>O?(M.addRange(K),M.extend(B.node,B.offset)):(K.setEnd(B.node,B.offset),M.addRange(K))}}}}W=[];for(M=Q;M=M.parentNode;)M.nodeType===1&&W.push({element:M,left:M.scrollLeft,top:M.scrollTop});typeof Q.focus==="function"&&Q.focus();for(Q=0;QY?32:Y,h.T=null,Y=Xq,Xq=null;var q=lZ,U=LZ;if(S0=0,EG=lZ=null,LZ=0,(t&6)!==0)throw Error(T(331));var Q=t;if(t|=4,fB(q.current),EB(q,q.current,U,Y),t=Q,UJ(0,!1),H7&&typeof H7.onPostCommitFiberRoot==="function")try{H7.onPostCommitFiberRoot(tY,q)}catch(z){}return!0}finally{e.p=X,h.T=J,tB(Z,G)}}function BW(Z,G,Y){G=$7(Y,G),G=t4(Z.stateNode,G,2),Z=cZ(Z,G,2),Z!==null&&(ZJ(Z,2),s7(Z))}function X0(Z,G,Y){if(Z.tag===3)BW(Z,Z,Y);else for(;G!==null;){if(G.tag===3){BW(G,Z,Y);break}else if(G.tag===1){var J=G.stateNode;if(typeof G.type.getDerivedStateFromError==="function"||typeof J.componentDidCatch==="function"&&(pZ===null||!pZ.has(J))){Z=$7(Y,Z),Y=MB(2),J=cZ(G,Y,2),J!==null&&(FB(Y,J,G,Z),ZJ(J,2),s7(J));break}}G=G.return}}function K4(Z,G,Y){var J=Z.pingCache;if(J===null){J=Z.pingCache=new FK;var X=new Set;J.set(G,X)}else X=J.get(G),X===void 0&&(X=new Set,J.set(G,X));X.has(Y)||(XU=!0,X.add(Y),Z=OK.bind(null,Z,G,Y),G.then(Z,Z))}function OK(Z,G,Y){var J=Z.pingCache;J!==null&&J.delete(G),Z.pingedLanes|=Z.suspendedLanes&Y,Z.warmLanes&=~Y,Q0===Z&&(p&Y)===Y&&($0===4||$0===3&&(p&62914560)===p&&300>z7()-j8?(t&2)===0&&hG(Z,0):qU|=Y,PG===p&&(PG=0)),s7(Z)}function Zj(Z,G){G===0&&(G=lW()),Z=y6(Z,G),Z!==null&&(ZJ(Z,G),s7(Z))}function $K(Z){var G=Z.memoizedState,Y=0;G!==null&&(Y=G.retryLane),Zj(Z,Y)}function IK(Z,G){var Y=0;switch(Z.tag){case 31:case 13:var{stateNode:J,memoizedState:X}=Z;X!==null&&(Y=X.retryLane);break;case 19:J=Z.stateNode;break;case 22:J=Z.stateNode._retryCache;break;default:throw Error(T(314))}J!==null&&J.delete(G),Zj(Z,Y)}function TK(Z,G){return $q(Z,G)}function s7(Z){Z!==UG&&Z.next===null&&(UG===null?iX=UG=Z:UG=UG.next=Z),sX=!0,Uq||(Uq=!0,wK())}function UJ(Z,G){if(!D4&&sX){D4=!0;do{var Y=!1;for(var J=iX;J!==null;){if(!G)if(Z!==0){var X=J.pendingLanes;if(X===0)var q=0;else{var{suspendedLanes:U,pingedLanes:Q}=J;q=(1<<31-W7(42|Z)+1)-1,q&=X&~(U&~Q),q=q&201326741?q&201326741|1:q?q|2:0}q!==0&&(Y=!0,jW(J,q))}else q=p,q=G8(J,J===Q0?q:0,J.cancelPendingCommit!==null||J.timeoutHandle!==-1),(q&3)===0||eY(J,q)||(Y=!0,jW(J,q));J=J.next}}while(Y);D4=!1}}function _K(){Gj()}function Gj(){sX=Uq=!1;var Z=0;vZ!==0&&PK()&&(Z=vZ);for(var G=z7(),Y=null,J=iX;J!==null;){var X=J.next,q=Yj(J,G);if(q===0)J.next=null,Y===null?iX=X:Y.next=X,X===null&&(UG=Y);else if(Y=J,Z!==0||(q&3)!==0)sX=!0;J=X}S0!==0&&S0!==5||UJ(Z,!1),vZ!==0&&(vZ=0)}function Yj(Z,G){for(var{suspendedLanes:Y,pingedLanes:J,expirationTimes:X}=Z,q=Z.pendingLanes&-62914561;0Q)break;var{transferSize:j,initiatorType:W}=z;j&&DW(W)&&(z=z.responseEnd,U+=j*(z title"):null)}function oK(Z,G,Y){if(Y===1||G.itemProp!=null)return!1;switch(Z){case"meta":case"title":return!0;case"style":if(typeof G.precedence!=="string"||typeof G.href!=="string"||G.href==="")break;return!0;case"link":if(typeof G.rel!=="string"||typeof G.href!=="string"||G.href===""||G.onLoad||G.onError)break;switch(G.rel){case"stylesheet":return Z=G.disabled,typeof G.precedence==="string"&&Z==null;default:return!0}case"script":if(G.async&&typeof G.async!=="function"&&typeof G.async!=="symbol"&&!G.onLoad&&!G.onError&&G.src&&typeof G.src==="string")return!0}return!1}function Lj(Z){return Z.type==="stylesheet"&&(Z.state.loading&3)===0?!1:!0}function nK(Z,G,Y,J){if(Y.type==="stylesheet"&&(typeof J.media!=="string"||matchMedia(J.media).matches!==!1)&&(Y.state.loading&4)===0){if(Y.instance===null){var X=yG(J.href),q=G.querySelector(QJ(X));if(q){G=q._p,G!==null&&typeof G==="object"&&typeof G.then==="function"&&(Z.count++,Z=nX.bind(Z),G.then(Z,Z)),Y.state.loading|=4,Y.instance=q,P0(q);return}q=G.ownerDocument||G,J=jj(J),(X=w7.get(X))&&HU(J,X),q=q.createElement("link"),P0(q);var U=q;U._p=new Promise(function(Q,z){U.onload=Q,U.onerror=z}),v0(q,"link",J),Y.instance=q}Z.stylesheets===null&&(Z.stylesheets=new Map),Z.stylesheets.set(Y,G),(G=Y.state.preload)&&(Y.state.loading&3)===0&&(Z.count++,Y=nX.bind(Z),G.addEventListener("load",Y),G.addEventListener("error",Y))}}function tK(Z,G){return Z.stylesheets&&Z.count===0&&_X(Z,Z.stylesheets),0$4?50:800)+G);return Z.unsuspend=Y,function(){Z.unsuspend=null,clearTimeout(J),clearTimeout(X)}}:null}function nX(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_X(this,this.stylesheets);else if(this.unsuspend){var Z=this.unsuspend;this.unsuspend=null,Z()}}}function _X(Z,G){Z.stylesheets=null,Z.unsuspend!==null&&(Z.count++,tX=new Map,G.forEach(eK,Z),tX=null,nX.call(Z))}function eK(Z,G){if(!(G.state.loading&4)){var Y=tX.get(Z);if(Y)var J=Y.get(null);else{Y=new Map,tX.set(Z,Y);for(var X=Z.querySelectorAll("link[data-precedence],style[data-precedence]"),q=0;q{BH();m();hW=v6(c6(),1);L0=Object.assign,gM=Symbol.for("react.element"),oJ=Symbol.for("react.transitional.element"),FY=Symbol.for("react.portal"),zG=Symbol.for("react.fragment"),uW=Symbol.for("react.strict_mode"),I4=Symbol.for("react.profiler"),mW=Symbol.for("react.consumer"),zZ=Symbol.for("react.context"),Aq=Symbol.for("react.forward_ref"),T4=Symbol.for("react.suspense"),_4=Symbol.for("react.suspense_list"),Oq=Symbol.for("react.memo"),kZ=Symbol.for("react.lazy"),w4=Symbol.for("react.activity"),vM=Symbol.for("react.memo_cache_sentinel"),LH=Symbol.iterator;uM=Symbol.for("react.client.reference");KY=Array.isArray,h=d6,e=hW.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T6={pending:!1,data:null,method:null,action:null},N4=[];l7=i7(null),fY=i7(null),uZ=i7(null),RX=i7(null);k4=Object.prototype.hasOwnProperty,$q=YG,s9=u9,dM=c9,cM=d9,z7=m7,pM=m9,dW=f9,cW=v9,kX=GG,lM=g9,pW=y9,iM=void 0,sM=void 0;W7=Math.clz32?Math.clz32:oM,rM=Math.log,aM=Math.LN2;eZ=Math.random().toString(36).slice(2),y0="__reactFiber$"+eZ,e0="__reactProps$"+eZ,gG="__reactContainer$"+eZ,C4="__reactEvents$"+eZ,eM="__reactListeners$"+eZ,ZF="__reactHandles$"+eZ,DH="__reactResources$"+eZ,GJ="__reactMarker$"+eZ;oW=new Set,nW={};GF=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]*$"),VH={},AH={};XF=/[\n"\\]/g;qF=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(" "));UF=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"]]),QF=/^[\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;MZ=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(MZ)try{O6={},Object.defineProperty(O6,"passive",{get:function(){h4=!0}}),window.addEventListener("test",O6,O6),window.removeEventListener("test",O6,O6)}catch(Z){h4=!1}E6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(Z){return Z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Y8=Z7(E6),YJ=L0({},E6,{view:0,detail:0}),zF=Z7(YJ),J8=L0({},YJ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bq,button:0,buttons:0,relatedTarget:function(Z){return Z.relatedTarget===void 0?Z.fromElement===Z.srcElement?Z.toElement:Z.fromElement:Z.relatedTarget},movementX:function(Z){if("movementX"in Z)return Z.movementX;return Z!==WY&&(WY&&Z.type==="mousemove"?(o9=Z.screenX-WY.screenX,n9=Z.screenY-WY.screenY):n9=o9=0,WY=Z),o9},movementY:function(Z){return"movementY"in Z?Z.movementY:n9}}),TH=Z7(J8),HF=L0({},J8,{dataTransfer:0}),WF=Z7(HF),BF=L0({},YJ,{relatedTarget:0}),t9=Z7(BF),jF=L0({},E6,{animationName:0,elapsedTime:0,pseudoElement:0}),LF=Z7(jF),MF=L0({},E6,{clipboardData:function(Z){return"clipboardData"in Z?Z.clipboardData:window.clipboardData}}),FF=Z7(MF),KF=L0({},E6,{data:0}),_H=Z7(KF),DF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VF={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"},AF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};$F=L0({},YJ,{key:function(Z){if(Z.key){var G=DF[Z.key]||Z.key;if(G!=="Unidentified")return G}return Z.type==="keypress"?(Z=LX(Z),Z===13?"Enter":String.fromCharCode(Z)):Z.type==="keydown"||Z.type==="keyup"?VF[Z.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bq,charCode:function(Z){return Z.type==="keypress"?LX(Z):0},keyCode:function(Z){return Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0},which:function(Z){return Z.type==="keypress"?LX(Z):Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0}}),IF=Z7($F),TF=L0({},J8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wH=Z7(TF),_F=L0({},YJ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bq}),wF=Z7(_F),RF=L0({},E6,{propertyName:0,elapsedTime:0,pseudoElement:0}),NF=Z7(RF),bF=L0({},J8,{deltaX:function(Z){return"deltaX"in Z?Z.deltaX:("wheelDeltaX"in Z)?-Z.wheelDeltaX:0},deltaY:function(Z){return"deltaY"in Z?Z.deltaY:("wheelDeltaY"in Z)?-Z.wheelDeltaY:("wheelDelta"in Z)?-Z.wheelDelta:0},deltaZ:0,deltaMode:0}),kF=Z7(bF),CF=L0({},E6,{newState:0,oldState:0}),SF=Z7(CF),xF=[9,13,27,32],kq=MZ&&"CompositionEvent"in window;MZ&&"documentMode"in document&&(_Y=document.documentMode);PF=MZ&&"TextEvent"in window&&!_Y,U1=MZ&&(!kq||_Y&&8<_Y&&11>=_Y),RH=String.fromCharCode(32);yF={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};if(MZ){if(MZ){if(AY="oninput"in document,!AY)MX=document.createElement("div"),MX.setAttribute("oninput","return;"),AY=typeof MX.oninput==="function";VY=AY}else VY=!1;W1=VY&&(!document.documentMode||9=document.documentMode;MG={animationend:D6("Animation","AnimationEnd"),animationiteration:D6("Animation","AnimationIteration"),animationstart:D6("Animation","AnimationStart"),transitionrun:D6("Transition","TransitionRun"),transitionstart:D6("Transition","TransitionStart"),transitioncancel:D6("Transition","TransitionCancel"),transitionend:D6("Transition","TransitionEnd")},e9={},M1={};MZ&&(M1=document.createElement("div").style,("AnimationEvent"in window)||(delete MG.animationend.animation,delete MG.animationiteration.animation,delete MG.animationstart.animation),("TransitionEvent"in window)||delete MG.transitionend.transition);F1=h6("animationend"),K1=h6("animationiteration"),D1=h6("animationstart"),pF=h6("transitionrun"),lF=h6("transitionstart"),iF=h6("transitioncancel"),V1=h6("transitionend"),A1=new Map,g4="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(" ");g4.push("scrollEnd");SX=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(G))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},K7=[];KG={};EH=new WeakMap;DG=[],V7=[];v4=Error(T(519));u4=i7(null);rF=typeof AbortController<"u"?AbortController:function(){var Z=[],G=this.signal={aborted:!1,addEventListener:function(Y,J){Z.push(J)}};this.abort=function(){G.aborted=!0,Z.forEach(function(Y){return Y()})}},aF=YG,oF=GG,k0={$$typeof:zZ,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};gH=h.S;h.S=function(Z,G){vB=z7(),typeof G==="object"&&G!==null&&typeof G.then==="function"&&nF(Z,G),gH!==null&&gH(Z,G)};w6=i7(null);mG=Error(T(460)),gq=Error(T(474)),Q8=Error(T(542)),hX={then:function(){}};C6=b1(!0),k1=b1(!1);SG=i7(null),yX=i7(0);L7=i7(null);T0=i7(0);lY={readContext:g0,use:H8,useCallback:O0,useContext:O0,useEffect:O0,useImperativeHandle:O0,useLayoutEffect:O0,useInsertionEffect:O0,useMemo:O0,useReducer:O0,useRef:O0,useState:O0,useDebugValue:O0,useDeferredValue:O0,useTransition:O0,useSyncExternalStore:O0,useId:O0,useHostTransitionStatus:O0,useFormState:O0,useActionState:O0,useOptimistic:O0,useMemoCache:O0,useCacheRefresh:O0};lY.useEffectEvent=O0;HB={readContext:g0,use:H8,useCallback:function(Z,G){return l0().memoizedState=[Z,G===void 0?null:G],Z},useContext:g0,useEffect:rH,useImperativeHandle:function(Z,G,Y){Y=Y!==null&&Y!==void 0?Y.concat([Z]):null,VX(4194308,4,o1.bind(null,G,Z),Y)},useLayoutEffect:function(Z,G){return VX(4194308,4,Z,G)},useInsertionEffect:function(Z,G){VX(4,2,Z,G)},useMemo:function(Z,G){var Y=l0();G=G===void 0?null:G;var J=Z();if(S6){hZ(!0);try{Z()}finally{hZ(!1)}}return Y.memoizedState=[J,G],J},useReducer:function(Z,G,Y){var J=l0();if(Y!==void 0){var X=Y(G);if(S6){hZ(!0);try{Y(G)}finally{hZ(!1)}}}else X=G;return J.memoizedState=J.baseState=X,Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z,lastRenderedState:X},J.queue=Z,Z=Z.dispatch=UK.bind(null,g,Z),[J.memoizedState,Z]},useRef:function(Z){var G=l0();return Z={current:Z},G.memoizedState=Z},useState:function(Z){Z=r4(Z);var G=Z.queue,Y=UB.bind(null,g,G);return G.dispatch=Y,[Z.memoizedState,Y]},useDebugValue:aq,useDeferredValue:function(Z,G){var Y=l0();return oq(Y,Z,G)},useTransition:function(){var Z=r4(!1);return Z=GB.bind(null,g,Z.queue,!0,!1),l0().memoizedState=Z,[!1,Z]},useSyncExternalStore:function(Z,G,Y){var J=g,X=l0();if(r){if(Y===void 0)throw Error(T(407));Y=Y()}else{if(Y=G(),Q0===null)throw Error(T(349));(p&127)!==0||y1(J,G,Y)}X.memoizedState=Y;var q={value:Y,getSnapshot:G};return X.queue=q,rH(g1.bind(null,J,q,Z),[Z]),J.flags|=2048,xG(9,{destroy:void 0},f1.bind(null,J,q,Y,G),null),Y},useId:function(){var Z=l0(),G=Q0.identifierPrefix;if(r){var Y=c7,J=d7;Y=(J&~(1<<32-W7(J)-1)).toString(32)+Y,G="_"+G+"R_"+Y,Y=vX++,0"u"?null:document;rY={$$typeof:zZ,Provider:null,Consumer:null,_currentValue:T6,_currentValue2:T6,_threadCount:0};aY=new Map,oY=new Map,EZ=[],J3="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(" ");K8.prototype.render=MU.prototype.render=function(Z){var G=this._internalRoot;if(G===null)throw Error(T(409));var Y=G.current,J=B7();Kj(Y,J,Z,G,null,null)};K8.prototype.unmount=MU.prototype.unmount=function(){var Z=this._internalRoot;if(Z!==null){this._internalRoot=null;var G=Z.containerInfo;Kj(Z.current,2,null,Z,null,null),L8(),G[gG]=null}};K8.prototype.unstable_scheduleHydration=function(Z){if(Z){var G=aW();Z={blockedOn:null,target:Z,priority:G};for(var Y=0;Y{_j();function wj(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wj)}catch(Z){console.error(Z)}}wj(),Rj.exports=FU});m();var J7={};lG(J7,{unstable_SelectProvider:()=>D9,unstable_SelectBubbleInput:()=>A9,unstable_Provider:()=>D9,unstable_BubbleInput:()=>A9,createSelectScope:()=>ZM,Viewport:()=>_5,Value:()=>F5,Trigger:()=>L5,Separator:()=>f5,SelectViewport:()=>_5,SelectValue:()=>F5,SelectTrigger:()=>L5,SelectSeparator:()=>f5,SelectScrollUpButton:()=>E5,SelectScrollDownButton:()=>h5,SelectPortal:()=>V5,SelectLabel:()=>b5,SelectItemText:()=>S5,SelectItemIndicator:()=>P5,SelectItem:()=>C5,SelectIcon:()=>K5,SelectGroup:()=>R5,SelectContent:()=>A5,SelectArrow:()=>v5,Select:()=>B5,ScrollUpButton:()=>E5,ScrollDownButton:()=>h5,Root:()=>B5,Portal:()=>V5,Label:()=>b5,ItemText:()=>S5,ItemIndicator:()=>P5,Item:()=>C5,Icon:()=>K5,Group:()=>R5,Content:()=>A5,Arrow:()=>v5});var K9=v6(c6(),1);function p6(Z,[G,Y]){return Math.min(Y,Math.max(G,Z))}var M3=!!(typeof window<"u"&&window.document&&window.document.createElement);function Y0(Z,G,{checkForDefaultPrevented:Y=!0}={}){return function(X){if(Z?.(X),Y===!1||!X||!X.defaultPrevented)return G?.(X)}}m();m();var Y2=Symbol.for("react.transitional.element"),J2=Symbol.for("react.fragment");function VQ(Z,G,Y){var J=null;if(Y!==void 0&&(J=""+Y),G.key!==void 0&&(J=""+G.key),"key"in G){Y={};for(var X in G)X!=="key"&&(Y[X]=G[X])}else Y=G;return G=Y.ref,{$$typeof:Y2,type:Z,key:J,ref:G!==void 0?G:null,props:Y}}var J6=J2,_=VQ,G7=VQ;function IZ(Z,G=[]){let Y=[];function J(q,U){let Q=o7(U);Q.displayName=q+"Context";let z=Y.length;Y=[...Y,U];let H=(W)=>{let{scope:L,children:M,...V}=W,D=L?.[Z]?.[z]||Q,O=A0(()=>V,Object.values(V));return _(D.Provider,{value:O,children:M})};H.displayName=q+"Provider";function j(W,L,M={}){let{optional:V=!1}=M,D=L?.[Z]?.[z]||Q,O=n7(D);if(O)return O;if(U!==void 0)return U;if(V)return;throw Error(`\`${W}\` must be used within \`${q}\``)}return[H,j]}let X=()=>{let q=Y.map((U)=>{return o7(U)});return function(Q){let z=Q?.[Z]||q;return A0(()=>({[`__scope${Z}`]:{...Q,[Z]:z}}),[Q,z])}};return X.scopeName=Z,[J,X2(X,...G)]}function X2(...Z){let G=Z[0];if(Z.length===1)return G;let Y=()=>{let J=Z.map((X)=>({useScope:X(),scopeName:X.scopeName}));return function(q){let U=J.reduce((Q,{useScope:z,scopeName:H})=>{let W=z(q)[`__scope${H}`];return{...Q,...W}},{});return A0(()=>({[`__scope${G.scopeName}`]:U}),[U])}};return Y.scopeName=G.scopeName,Y}m();function AQ(Z,G){if(typeof Z==="function")return Z(G);else if(Z!==null&&Z!==void 0)Z.current=G}function q2(...Z){return(G)=>{let Y=!1,J=Z.map((X)=>{let q=AQ(X,G);if(!Y&&typeof q=="function")Y=!0;return q});if(Y)return()=>{for(let X=0;X{let{children:X,...q}=Y,U=null,Q=!1,z=[];if(OQ(X)&&typeof LJ==="function")X=LJ(X._payload);if(a7.forEach(X,(L)=>{if(W2(L)){Q=!0;let M=L,V="child"in M.props?M.props.child:M.props.children;if(OQ(V)&&typeof LJ==="function")V=LJ(V._payload);U=Q2(M,V),z.push(U?.props?.children)}else z.push(L)}),U)U=h7(U,void 0,z);else if(!Q&&a7.count(X)===1&&Y6(X))U=X;let H=U?H2(U):void 0,j=n(J,H);if(!U){if(X||X===0)throw Error(Q?M2(Z):L2(Z));return X}let W=z2(q,U.props??{});if(U.type!==E7)W.ref=J?j:H;return h7(U,W)});return G.displayName=`${Z}.Slot`,G}var U2=Symbol.for("radix.slottable");var Q2=(Z,G)=>{if("child"in Z.props){let Y=Z.props.child;if(!Y6(Y))return null;return h7(Y,void 0,Z.props.children(Y.props.children))}return Y6(G)?G:null};function z2(Z,G){let Y={...G};for(let J in G){let X=Z[J],q=G[J];if(/^on[A-Z]/.test(J)){if(X&&q)Y[J]=(...Q)=>{let z=q(...Q);return X(...Q),z};else if(X)Y[J]=X}else if(J==="style")Y[J]={...X,...q};else if(J==="className")Y[J]=[X,q].filter(Boolean).join(" ")}return{...Z,...Y}}function H2(Z){let G=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=G&&"isReactWarning"in G&&G.isReactWarning;if(Y)return Z.ref;if(G=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=G&&"isReactWarning"in G&&G.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}function W2(Z){return Y6(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===U2}var B2=Symbol.for("react.lazy");function OQ(Z){return Z!=null&&typeof Z==="object"&&"$$typeof"in Z&&Z.$$typeof===B2&&"_payload"in Z&&j2(Z._payload)}function j2(Z){return typeof Z==="object"&&Z!==null&&"then"in Z}var L2=(Z)=>{return`${Z} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`},M2=(Z)=>{return`${Z} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`},LJ=u[" use ".trim().toString()];m();function MJ(Z){let G=Z+"CollectionProvider",[Y,J]=IZ(G),[X,q]=Y(G,{collectionRef:{current:null},itemMap:new Map}),U=(D)=>{let{scope:O,children:F}=D,B=N(null),K=N(new Map).current;return _(X,{scope:O,itemMap:K,collectionRef:B,children:F})};U.displayName=G;let Q=Z+"CollectionSlot",z=X6(Q),H=S((D,O)=>{let{scope:F,children:B}=D,K=q(Q,F),A=n(O,K.collectionRef);return _(z,{ref:A,children:B})});H.displayName=Q;let j=Z+"CollectionItemSlot",W="data-radix-collection-item",L=X6(j),M=S((D,O)=>{let{scope:F,children:B,...K}=D,A=N(null),$=n(O,A),w=q(j,F);return P(()=>{return w.itemMap.set(A,{ref:A,...K}),()=>void w.itemMap.delete(A)}),_(L,{...{[W]:""},ref:$,children:B})});M.displayName=j;function V(D){let O=q(Z+"CollectionConsumer",D);return f(()=>{let B=O.collectionRef.current;if(!B)return[];let K=Array.from(B.querySelectorAll(`[${W}]`));return Array.from(O.itemMap.values()).sort((w,I)=>K.indexOf(w.ref.current)-K.indexOf(I.ref.current))},[O.collectionRef,O.itemMap])}return[{Provider:U,Slot:H,ItemSlot:M},V,J]}var $Q=new WeakMap,R3=class Z extends Map{#Z;constructor(G){super(G);this.#Z=[...super.keys()],$Q.set(this,!0)}set(G,Y){if($Q.get(this))if(this.has(G))this.#Z[this.#Z.indexOf(G)]=G;else this.#Z.push(G);return super.set(G,Y),this}insert(G,Y,J){let X=this.has(Y),q=this.#Z.length,U=IQ(G),Q=U>=0?U:q+U,z=Q<0||Q>=q?-1:Q;if(z===this.size||X&&z===this.size-1||z===-1)return this.set(Y,J),this;let H=this.size+(X?0:1);if(U<0)Q++;let j=[...this.#Z],W,L=!1;for(let M=Q;M=this.size)X=this.size-1;return this.at(X)}keyFrom(G,Y){let J=this.indexOf(G);if(J===-1)return;let X=J+Y;if(X<0)X=0;if(X>=this.size)X=this.size-1;return this.keyAt(X)}find(G,Y){let J=0;for(let X of this){if(Reflect.apply(G,Y,[X,J,this]))return X;J++}return}findIndex(G,Y){let J=0;for(let X of this){if(Reflect.apply(G,Y,[X,J,this]))return J;J++}return-1}filter(G,Y){let J=[],X=0;for(let q of this){if(Reflect.apply(G,Y,[q,X,this]))J.push(q);X++}return new Z(J)}map(G,Y){let J=[],X=0;for(let q of this)J.push([q[0],Reflect.apply(G,Y,[q,X,this])]),X++;return new Z(J)}reduce(...G){let[Y,J]=G,X=0,q=J??this.at(0);for(let U of this){if(X===0&&G.length===1)q=U;else q=Reflect.apply(Y,this,[q,U,X,this]);X++}return q}reduceRight(...G){let[Y,J]=G,X=J??this.at(-1);for(let q=this.size-1;q>=0;q--){let U=this.at(q);if(q===this.size-1&&G.length===1)X=U;else X=Reflect.apply(Y,this,[X,U,q,this])}return X}toSorted(G){let Y=[...this.entries()].sort(G);return new Z(Y)}toReversed(){let G=new Z;for(let Y=this.size-1;Y>=0;Y--){let J=this.keyAt(Y),X=this.get(J);G.set(J,X)}return G}toSpliced(...G){let Y=[...this.entries()];return Y.splice(...G),new Z(Y)}slice(G,Y){let J=new Z,X=this.size-1;if(G===void 0)return J;if(G<0)G=G+this.size;if(Y!==void 0&&Y>0)X=Y-1;for(let q=G;q<=X;q++){let U=this.keyAt(q),Q=this.get(U);J.set(U,Q)}return J}every(G,Y){let J=0;for(let X of this){if(!Reflect.apply(G,Y,[X,J,this]))return!1;J++}return!0}some(G,Y){let J=0;for(let X of this){if(Reflect.apply(G,Y,[X,J,this]))return!0;J++}return!1}};function k8(Z,G){if("at"in Array.prototype)return Array.prototype.at.call(Z,G);let Y=F2(Z,G);return Y===-1?void 0:Z[Y]}function F2(Z,G){let Y=Z.length,J=IQ(G),X=J>=0?J:Y+J;return X<0||X>=Y?-1:X}function IQ(Z){return Z!==Z||Z===0?0:Math.trunc(Z)}m();var K2=o7(void 0);function FJ(Z){let G=n7(K2);return Z||G||"ltr"}m();m();var TQ=v6(c6(),1);var D2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],s=D2.reduce((Z,G)=>{let Y=X6(`Primitive.${G}`),J=S((X,q)=>{let{asChild:U,...Q}=X,z=U?Y:G;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return _(z,{...Q,ref:q})});return J.displayName=`Primitive.${G}`,{...Z,[G]:J}},{});function _Q(Z,G){if(Z)TQ.flushSync(()=>Z.dispatchEvent(G))}m();function Y7(Z){let G=N(Z);return P(()=>{G.current=Z}),A0(()=>(...Y)=>G.current?.(...Y),[])}var V2="DismissableLayer",C8="dismissableLayer.update",A2="dismissableLayer.pointerDownOutside",O2="dismissableLayer.focusOutside",wQ,NQ=o7({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),S8=S((Z,G)=>{let{disableOutsidePointerEvents:Y=!1,deferPointerDownOutside:J=!1,onEscapeKeyDown:X,onPointerDownOutside:q,onFocusOutside:U,onInteractOutside:Q,onDismiss:z,...H}=Z,j=n7(NQ),[W,L]=x(null),M=W?.ownerDocument??globalThis?.document,[,V]=x({}),D=n(G,L),O=Array.from(j.layers),[F]=[...j.layersWithOutsidePointerEventsDisabled].slice(-1),B=F?O.indexOf(F):-1,K=W?O.indexOf(W):-1,A=j.layersWithOutsidePointerEventsDisabled.size>0,$=K>=B,w=N(!1),I=_2((C)=>{if(q?.(C),Q?.(C),!C.defaultPrevented)z?.()},{ownerDocument:M,deferPointerDownOutside:J,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:j.dismissableSurfaces,shouldHandlePointerDownOutside:f((C)=>{if(!(C instanceof Node))return!1;let a=[...j.branches].some((l)=>l.contains(C));return $&&!a},[j.branches,$])}),R=w2((C)=>{if(J&&w.current)return;let a=C.target;if([...j.branches].some((Z0)=>Z0.contains(a)))return;if(U?.(C),Q?.(C),!C.defaultPrevented)z?.()},M),k=W?K===O.length-1:!1,b=Y7((C)=>{if(C.key!=="Escape")return;if(X?.(C),!C.defaultPrevented&&z)C.preventDefault(),z()});return P(()=>{if(!k)return;return M.addEventListener("keydown",b,{capture:!0}),()=>M.removeEventListener("keydown",b,{capture:!0})},[M,k,b]),P(()=>{if(!W)return;if(Y){if(j.layersWithOutsidePointerEventsDisabled.size===0)wQ=M.body.style.pointerEvents,M.body.style.pointerEvents="none";j.layersWithOutsidePointerEventsDisabled.add(W)}return j.layers.add(W),RQ(),()=>{if(Y){if(j.layersWithOutsidePointerEventsDisabled.delete(W),j.layersWithOutsidePointerEventsDisabled.size===0)M.body.style.pointerEvents=wQ}}},[W,M,Y,j]),P(()=>{return()=>{if(!W)return;j.layers.delete(W),j.layersWithOutsidePointerEventsDisabled.delete(W),RQ()}},[W,j]),P(()=>{let C=()=>V({});return document.addEventListener(C8,C),()=>document.removeEventListener(C8,C)},[]),_(s.div,{...H,ref:D,style:{pointerEvents:A?$?"auto":"none":void 0,...Z.style},onFocusCapture:Y0(Z.onFocusCapture,R.onFocusCapture),onBlurCapture:Y0(Z.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Y0(Z.onPointerDownCapture,I.onPointerDownCapture)})});S8.displayName=V2;var $2="DismissableLayerBranch",I2=S((Z,G)=>{let Y=n7(NQ),J=N(null),X=n(G,J);return P(()=>{let q=J.current;if(q)return Y.branches.add(q),()=>{Y.branches.delete(q)}},[Y.branches]),_(s.div,{...Z,ref:X})});I2.displayName=$2;var T2=()=>!0;function _2(Z,G){let{ownerDocument:Y=globalThis?.document,deferPointerDownOutside:J=!1,isDeferredPointerDownOutsideRef:X,dismissableSurfaces:q,shouldHandlePointerDownOutside:U=T2}=G,Q=Y7(Z),z=N(!1),H=N(!1),j=N(new Map),W=N(()=>{});return P(()=>{function L(){H.current=!1,X.current=!1,j.current.clear()}function M(){return Array.from(j.current.values()).some(Boolean)}function V(K){if(!H.current)return;let A=K.target;if(!(A instanceof Node&&[...q].some((w)=>w.contains(A))))j.current.set(K.type,!0);if(K.type==="click")window.setTimeout(()=>{if(H.current)W.current()},0)}function D(K){if(H.current)j.current.set(K.type,!1)}let O=(K)=>{if(K.target&&!z.current){let $=function(){Y.removeEventListener("click",W.current);let I=M();if(L(),!I)bQ(A2,Q,w,{discrete:!0})};var A=$;if(!U(K.target)){Y.removeEventListener("click",W.current),L(),z.current=!1;return}let w={originalEvent:K};if(H.current=!0,X.current=J&&K.button===0,j.current.clear(),!J||K.button!==0)$();else Y.removeEventListener("click",W.current),W.current=$,Y.addEventListener("click",W.current,{once:!0})}else Y.removeEventListener("click",W.current),L();z.current=!1},F=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let K of F)Y.addEventListener(K,V,!0),Y.addEventListener(K,D);let B=window.setTimeout(()=>{Y.addEventListener("pointerdown",O)},0);return()=>{window.clearTimeout(B),Y.removeEventListener("pointerdown",O),Y.removeEventListener("click",W.current);for(let K of F)Y.removeEventListener(K,V,!0),Y.removeEventListener(K,D)}},[Y,Q,J,X,q,U]),{onPointerDownCapture:()=>z.current=!0}}function w2(Z,G=globalThis?.document){let Y=Y7(Z),J=N(!1);return P(()=>{let X=(q)=>{if(q.target&&!J.current)bQ(O2,Y,{originalEvent:q},{discrete:!1})};return G.addEventListener("focusin",X),()=>G.removeEventListener("focusin",X)},[G,Y]),{onFocusCapture:()=>J.current=!0,onBlurCapture:()=>J.current=!1}}function RQ(){let Z=new CustomEvent(C8);document.dispatchEvent(Z)}function bQ(Z,G,Y,{discrete:J}){let X=Y.originalEvent.target,q=new CustomEvent(Z,{bubbles:!1,cancelable:!0,detail:Y});if(G)X.addEventListener(Z,G,{once:!0});if(J)_Q(X,q);else X.dispatchEvent(q)}m();var KJ=0,l6=null;function CQ(){P(()=>{if(!l6)l6={start:kQ(),end:kQ()};let{start:Z,end:G}=l6;if(document.body.firstElementChild!==Z)document.body.insertAdjacentElement("afterbegin",Z);if(document.body.lastElementChild!==G)document.body.insertAdjacentElement("beforeend",G);return KJ++,()=>{if(KJ===1)l6?.start.remove(),l6?.end.remove(),l6=null;KJ=Math.max(0,KJ-1)}},[])}function kQ(){let Z=document.createElement("span");return Z.setAttribute("data-radix-focus-guard",""),Z.tabIndex=0,Z.style.outline="none",Z.style.opacity="0",Z.style.position="fixed",Z.style.pointerEvents="none",Z}m();var x8="focusScope.autoFocusOnMount",P8="focusScope.autoFocusOnUnmount",SQ={bubbles:!1,cancelable:!0},R2="FocusScope",E8=S((Z,G)=>{let{loop:Y=!1,trapped:J=!1,onMountAutoFocus:X,onUnmountAutoFocus:q,...U}=Z,[Q,z]=x(null),H=Y7(X),j=Y7(q),W=N(null),L=n(G,z),M=N({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P(()=>{if(J){let B=function(w){if(M.paused||!Q)return;let I=w.target;if(Q.contains(I))W.current=I;else TZ(W.current,{select:!0})},K=function(w){if(M.paused||!Q)return;let I=w.relatedTarget;if(I===null)return;if(!Q.contains(I))TZ(W.current,{select:!0})},A=function(w){if(document.activeElement!==document.body)return;for(let R of w)if(R.removedNodes.length>0)TZ(Q)};var D=B,O=K,F=A;document.addEventListener("focusin",B),document.addEventListener("focusout",K);let $=new MutationObserver(A);if(Q)$.observe(Q,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",K),$.disconnect()}}},[J,Q,M.paused]),P(()=>{if(Q){PQ.add(M);let D=document.activeElement;if(!Q.contains(D)){let F=new CustomEvent(x8,SQ);if(Q.addEventListener(x8,H),Q.dispatchEvent(F),!F.defaultPrevented){if(N2(x2(hQ(Q)),{select:!0}),document.activeElement===D)TZ(Q)}}return()=>{Q.removeEventListener(x8,H),setTimeout(()=>{let F=new CustomEvent(P8,SQ);if(Q.addEventListener(P8,j),Q.dispatchEvent(F),!F.defaultPrevented)TZ(D??document.body,{select:!0});Q.removeEventListener(P8,j),PQ.remove(M)},0)}}},[Q,H,j,M]);let V=f((D)=>{if(!Y&&!J)return;if(M.paused)return;let O=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,F=document.activeElement;if(O&&F){let B=D.currentTarget,[K,A]=b2(B);if(!(K&&A)){if(F===B)D.preventDefault()}else if(!D.shiftKey&&F===A){if(D.preventDefault(),Y)TZ(K,{select:!0})}else if(D.shiftKey&&F===K){if(D.preventDefault(),Y)TZ(A,{select:!0})}}},[Y,J,M.paused]);return _(s.div,{tabIndex:-1,...U,ref:L,onKeyDown:V})});E8.displayName=R2;function N2(Z,{select:G=!1}={}){let Y=document.activeElement;for(let J of Z)if(TZ(J,{select:G}),document.activeElement!==Y)return}function b2(Z){let G=hQ(Z),Y=xQ(G,Z),J=xQ(G.reverse(),Z);return[Y,J]}function hQ(Z){let G=[],Y=document.createTreeWalker(Z,NodeFilter.SHOW_ELEMENT,{acceptNode:(J)=>{let X=J.tagName==="INPUT"&&J.type==="hidden";if(J.disabled||J.hidden||X)return NodeFilter.FILTER_SKIP;return J.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(Y.nextNode())G.push(Y.currentNode);return G}function xQ(Z,G){let Y=typeof G.checkVisibility==="function"&&G.checkVisibility({checkVisibilityCSS:!0});for(let J of Z)if(!(Y?!J.checkVisibility({checkVisibilityCSS:!0}):k2(J,{upTo:G})))return J}function k2(Z,{upTo:G}){if(getComputedStyle(Z).visibility==="hidden")return!0;while(Z){if(G!==void 0&&Z===G)return!1;if(getComputedStyle(Z).display==="none")return!0;Z=Z.parentElement}return!1}function C2(Z){return Z instanceof HTMLInputElement&&"select"in Z}function TZ(Z,{select:G=!1}={}){if(Z&&Z.focus){let Y=document.activeElement;if(Z.focus({preventScroll:!0}),Z!==Y&&C2(Z)&&G)Z.select()}}var PQ=S2();function S2(){let Z=[];return{add(G){let Y=Z[0];if(G!==Y)Y?.pause();Z=EQ(Z,G),Z.unshift(G)},remove(G){Z=EQ(Z,G),Z[0]?.resume()}}}function EQ(Z,G){let Y=[...Z],J=Y.indexOf(G);if(J!==-1)Y.splice(J,1);return Y}function x2(Z){return Z.filter((G)=>G.tagName!=="A")}m();m();var F0=globalThis?.document?OZ:()=>{};var P2=u[" useId ".trim().toString()]||(()=>{return}),E2=0;function DJ(Z){let[G,Y]=x(P2());return F0(()=>{if(!Z)Y((J)=>J??String(E2++))},[Z]),Z||(G?`radix-${G}`:"")}m();var gQ=["top","right","bottom","left"];var{min:y7,max:R7,round:aG,floor:oG}=Math,f7=(Z)=>({x:Z,y:Z}),h2={left:"right",right:"left",bottom:"top",top:"bottom"};function h8(Z,G,Y){return R7(Z,y7(G,Y))}function g7(Z,G){return typeof Z==="function"?Z(G):Z}function t7(Z){return Z.split("-")[0]}function q6(Z){return Z.split("-")[1]}function AJ(Z){return Z==="x"?"y":"x"}function OJ(Z){return Z==="y"?"height":"width"}function N7(Z){let G=Z[0];return G==="t"||G==="b"?"y":"x"}function $J(Z){return AJ(N7(Z))}function vQ(Z,G,Y){if(Y===void 0)Y=!1;let J=q6(Z),X=$J(Z),q=OJ(X),U=X==="x"?J===(Y?"end":"start")?"right":"left":J==="start"?"bottom":"top";if(G.reference[q]>G.floating[q])U=rG(U);return[U,rG(U)]}function uQ(Z){let G=rG(Z);return[VJ(Z),G,VJ(G)]}function VJ(Z){return Z.includes("start")?Z.replace("start","end"):Z.replace("end","start")}var yQ=["left","right"],fQ=["right","left"],y2=["top","bottom"],f2=["bottom","top"];function g2(Z,G,Y){switch(Z){case"top":case"bottom":if(Y)return G?fQ:yQ;return G?yQ:fQ;case"left":case"right":return G?y2:f2;default:return[]}}function mQ(Z,G,Y,J){let X=q6(Z),q=g2(t7(Z),Y==="start",J);if(X){if(q=q.map((U)=>U+"-"+X),G)q=q.concat(q.map(VJ))}return q}function rG(Z){let G=t7(Z);return h2[G]+Z.slice(G.length)}function v2(Z){var G,Y,J,X;return{top:(G=Z.top)!=null?G:0,right:(Y=Z.right)!=null?Y:0,bottom:(J=Z.bottom)!=null?J:0,left:(X=Z.left)!=null?X:0}}function y8(Z){return typeof Z!=="number"?v2(Z):{top:Z,right:Z,bottom:Z,left:Z}}function U6(Z){let{x:G,y:Y,width:J,height:X}=Z;return{width:J,height:X,top:Y,left:G,right:G+J,bottom:Y+X,x:G,y:Y}}function dQ(Z,G,Y){let{reference:J,floating:X}=Z,q=N7(G),U=$J(G),Q=OJ(U),z=t7(G),H=q==="y",j=J.x+J.width/2-X.width/2,W=J.y+J.height/2-X.height/2,L=J[Q]/2-X[Q]/2,M;switch(z){case"top":M={x:j,y:J.y-X.height};break;case"bottom":M={x:j,y:J.y+J.height};break;case"right":M={x:J.x+J.width,y:W};break;case"left":M={x:J.x-X.width,y:W};break;default:M={x:J.x,y:J.y}}let V=q6(G);if(V)M[U]+=L*(V==="end"?1:-1)*(Y&&H?-1:1);return M}async function lQ(Z,G){var Y;if(G===void 0)G={};let{x:J,y:X,platform:q,rects:U,elements:Q,strategy:z}=Z,{boundary:H="clippingAncestors",rootBoundary:j="viewport",elementContext:W="floating",altBoundary:L=!1,padding:M=0}=g7(G,Z),V=y8(M),O=Q[L?W==="floating"?"reference":"floating":W],F=U6(await q.getClippingRect({element:((Y=await(q.isElement==null?void 0:q.isElement(O)))!=null?Y:!0)?O:O.contextElement||await(q.getDocumentElement==null?void 0:q.getDocumentElement(Q.floating)),boundary:H,rootBoundary:j,strategy:z})),B=W==="floating"?{x:J,y:X,width:U.floating.width,height:U.floating.height}:U.reference,K=await(q.getOffsetParent==null?void 0:q.getOffsetParent(Q.floating)),A=await(q.isElement==null?void 0:q.isElement(K))&&await(q.getScale==null?void 0:q.getScale(K))||{x:1,y:1},$=U6(q.convertOffsetParentRelativeRectToViewportRelativeRect?await q.convertOffsetParentRelativeRectToViewportRelativeRect({elements:Q,rect:B,offsetParent:K,strategy:z}):B);return{top:(F.top-$.top+V.top)/A.y,bottom:($.bottom-F.bottom+V.bottom)/A.y,left:(F.left-$.left+V.left)/A.x,right:($.right-F.right+V.right)/A.x}}var u2=50,iQ=async(Z,G,Y)=>{let{placement:J="bottom",strategy:X="absolute",middleware:q=[],platform:U}=Y,Q=U.detectOverflow?U:{...U,detectOverflow:lQ},z=await(U.isRTL==null?void 0:U.isRTL(G)),H=await U.getElementRects({reference:Z,floating:G,strategy:X}),{x:j,y:W}=dQ(H,J,z),L=J,M=0,V={};for(let D=0;D({name:"arrow",options:Z,async fn(G){let{x:Y,y:J,placement:X,rects:q,platform:U,elements:Q,middlewareData:z}=G,{element:H,padding:j=0}=g7(Z,G)||{};if(H==null)return{};let W=y8(j),L={x:Y,y:J},M=$J(X),V=OJ(M),D=await U.getDimensions(H),O=M==="y",F=O?"top":"left",B=O?"bottom":"right",K=O?"clientHeight":"clientWidth",A=q.reference[V]+q.reference[M]-L[M]-q.floating[V],$=L[M]-q.reference[M],w=await(U.getOffsetParent==null?void 0:U.getOffsetParent(H)),I=w?w[K]:0;if(!I||!await(U.isElement==null?void 0:U.isElement(w)))I=Q.floating[K]||q.floating[V];let R=A/2-$/2,k=I/2-D[V]/2-1,b=y7(W[F],k),C=y7(W[B],k),a=I-D[V]-C,l=I/2-D[V]/2+R,Z0=h8(b,l,a),G0=!z.arrow&&q6(X)!=null&&l!==Z0&&q.reference[V]/2-(lZ0<=0)){var C,a;let Z0=(((C=q.flip)==null?void 0:C.index)||0)+1,G0=I[Z0];if(G0){if(!(W==="alignment"?B!==N7(G0):!1)||b.every((y)=>N7(y.placement)===B?y.overflows[0]>0:!0))return{data:{index:Z0,overflows:b},reset:{placement:G0}}}let E=(a=b.filter((i)=>i.overflows[0]<=0).sort((i,y)=>i.overflows[1]-y.overflows[1])[0])==null?void 0:a.placement;if(!E)switch(M){case"bestFit":{var l;let i=(l=b.filter((y)=>{if(w){let o=N7(y.placement);return o===B||o==="y"}return!0}).map((y)=>[y.placement,y.overflows.filter((o)=>o>0).reduce((o,I0)=>o+I0,0)]).sort((y,o)=>y[1]-o[1])[0])==null?void 0:l[0];if(i)E=i;break}case"initialPlacement":E=Q;break}if(X!==E)return{reset:{placement:E}}}return{}}}};function cQ(Z,G){return{top:Z.top-G.height,right:Z.right-G.width,bottom:Z.bottom-G.height,left:Z.left-G.width}}function pQ(Z){return gQ.some((G)=>Z[G]>=0)}var aQ=function(Z){if(Z===void 0)Z={};return{name:"hide",options:Z,async fn(G){let{rects:Y,platform:J}=G,{strategy:X="referenceHidden",...q}=g7(Z,G);switch(X){case"referenceHidden":{let U=await J.detectOverflow(G,{...q,elementContext:"reference"}),Q=cQ(U,Y.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:pQ(Q)}}}case"escaped":{let U=await J.detectOverflow(G,{...q,altBoundary:!0}),Q=cQ(U,Y.floating);return{data:{escapedOffsets:Q,escaped:pQ(Q)}}}default:return{}}}}};var oQ=new Set(["left","top"]);async function m2(Z,G){let{placement:Y,platform:J,elements:X}=Z,q=await(J.isRTL==null?void 0:J.isRTL(X.floating)),U=t7(Y),Q=q6(Y),z=N7(Y)==="y",H=oQ.has(U)?-1:1,j=q&&z?-1:1,W=g7(G,Z),{mainAxis:L,crossAxis:M,alignmentAxis:V}=typeof W==="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};if(Q&&typeof V==="number")M=Q==="end"?V*-1:V;return z?{x:M*j,y:L*H}:{x:L*H,y:M*j}}var nQ=function(Z){if(Z===void 0)Z=0;return{name:"offset",options:Z,async fn(G){var Y,J;let{x:X,y:q,placement:U,middlewareData:Q}=G,z=await m2(G,Z);if(U===((Y=Q.offset)==null?void 0:Y.placement)&&(J=Q.arrow)!=null&&J.alignmentOffset)return{};return{x:X+z.x,y:q+z.y,data:{...z,placement:U}}}}},tQ=function(Z){if(Z===void 0)Z={};return{name:"shift",options:Z,async fn(G){let{x:Y,y:J,placement:X,platform:q}=G,{mainAxis:U=!0,crossAxis:Q=!1,limiter:z={fn:(B)=>{let{x:K,y:A}=B;return{x:K,y:A}}},...H}=g7(Z,G),j={x:Y,y:J},W=await q.detectOverflow(G,H),L=N7(X),M=AJ(L),V=j[M],D=j[L],O=(B,K)=>h8(K+W[B==="y"?"top":"left"],K,K-W[B==="y"?"bottom":"right"]);if(U)V=O(M,V);if(Q)D=O(L,D);let F=z.fn({...G,[M]:V,[L]:D});return{...F,data:{x:F.x-Y,y:F.y-J,enabled:{[M]:U,[L]:Q}}}}}},eQ=function(Z){if(Z===void 0)Z={};return{options:Z,fn(G){var Y,J;let{x:X,y:q,placement:U,rects:Q,middlewareData:z}=G,{offset:H=0,mainAxis:j=!0,crossAxis:W=!0}=g7(Z,G),L={x:X,y:q},M=N7(U),V=AJ(M),D=L[V],O=L[M],F=g7(H,G),B=typeof F==="number"?{mainAxis:F,crossAxis:0}:{mainAxis:(Y=F.mainAxis)!=null?Y:0,crossAxis:(J=F.crossAxis)!=null?J:0};if(j){let $=V==="y"?"height":"width",w=Q.reference[V]-Q.floating[$]+B.mainAxis,I=Q.reference[V]+Q.reference[$]-B.mainAxis;if(DI)D=I}if(W){var K,A;let $=V==="y"?"width":"height",w=oQ.has(t7(U)),I=Q.reference[M]-Q.floating[$]+(w?((K=z.offset)==null?void 0:K[M])||0:0)+(w?0:B.crossAxis),R=Q.reference[M]+Q.reference[$]+(w?0:((A=z.offset)==null?void 0:A[M])||0)-(w?B.crossAxis:0);if(OR)O=R}return{[V]:D,[M]:O}}}},Zz=function(Z){if(Z===void 0)Z={};return{name:"size",options:Z,async fn(G){let{placement:Y,rects:J,platform:X,elements:q}=G,{apply:U=()=>{},...Q}=g7(Z,G),z=await X.detectOverflow(G,Q),H=t7(Y),j=q6(Y),W=N7(Y)==="y",{width:L,height:M}=J.floating,V,D;if(H==="top"||H==="bottom")V=H,D=j===(await(X.isRTL==null?void 0:X.isRTL(q.floating))?"start":"end")?"left":"right";else D=H,V=j==="end"?"top":"bottom";let O=M-z.top-z.bottom,F=L-z.left-z.right,B=y7(M-z[V],O),K=y7(L-z[D],F),A=G.middlewareData.shift,$=!A,w=B,I=K;if(A!=null&&A.enabled.x)I=F;if(A!=null&&A.enabled.y)w=O;if($&&!j)if(W)I=L-2*R7(z.left,z.right);else w=M-2*R7(z.top,z.bottom);await U({...G,availableWidth:I,availableHeight:w});let R=await X.getDimensions(q.floating);if(L!==R.width||M!==R.height)return{reset:{rects:!0}};return{}}}};function IJ(){return typeof window<"u"}function H6(Z){if(Yz(Z))return(Z.nodeName||"").toLowerCase();return"#document"}function p0(Z){var G;return(Z==null||(G=Z.ownerDocument)==null?void 0:G.defaultView)||window}function v7(Z){var G;return(G=(Yz(Z)?Z.ownerDocument:Z.document)||window.document)==null?void 0:G.documentElement}function Yz(Z){if(!IJ())return!1;return Z instanceof Node||Z instanceof p0(Z).Node}function b7(Z){if(!IJ())return!1;return Z instanceof Element||Z instanceof p0(Z).Element}function e7(Z){if(!IJ())return!1;return Z instanceof HTMLElement||Z instanceof p0(Z).HTMLElement}function Gz(Z){if(!IJ()||typeof ShadowRoot>"u")return!1;return Z instanceof ShadowRoot||Z instanceof p0(Z).ShadowRoot}function nG(Z){let{overflow:G,overflowX:Y,overflowY:J,display:X}=k7(Z);return/auto|scroll|overlay|hidden|clip/.test(G+J+Y)&&X!=="inline"&&X!=="contents"}function Jz(Z){return/^(table|td|th)$/.test(H6(Z))}function tG(Z){try{if(Z.matches(":popover-open"))return!0}catch(G){}try{return Z.matches(":modal")}catch(G){return!1}}var d2=/transform|translate|scale|rotate|perspective|filter/,c2=/paint|layout|strict|content/,Q6=(Z)=>!!Z&&Z!=="none",f8;function TJ(Z){let G=b7(Z)?k7(Z):Z;return Q6(G.transform)||Q6(G.translate)||Q6(G.scale)||Q6(G.rotate)||Q6(G.perspective)||!_J()&&(Q6(G.backdropFilter)||Q6(G.filter))||d2.test(G.willChange||"")||c2.test(G.contain||"")}function Xz(Z){let G=_Z(Z);while(e7(G)&&!i6(G)){if(TJ(G))return G;else if(tG(G))return null;G=_Z(G)}return null}function _J(){if(f8==null)f8=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return f8}function i6(Z){return/^(html|body|#document)$/.test(H6(Z))}function k7(Z){return p0(Z).getComputedStyle(Z)}function eG(Z){if(b7(Z))return{scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop};return{scrollLeft:Z.scrollX,scrollTop:Z.scrollY}}function _Z(Z){if(H6(Z)==="html")return Z;let G=Z.assignedSlot||Z.parentNode||Gz(Z)&&Z.host||v7(Z);return Gz(G)?G.host:G}function qz(Z){let G=_Z(Z);if(i6(G))return(Z.ownerDocument||Z).body;if(e7(G)&&nG(G))return G;return qz(G)}function z6(Z,G,Y){var J;if(G===void 0)G=[];if(Y===void 0)Y=!0;let X=qz(Z),q=X===((J=Z.ownerDocument)==null?void 0:J.body),U=p0(X);if(q){let Q=wJ(U);return G.concat(U,U.visualViewport||[],nG(X)?X:[],Q&&Y?z6(Q):[])}else return G.concat(X,z6(X,[],Y))}function wJ(Z){return Z.parent&&Object.getPrototypeOf(Z.parent)?Z.frameElement:null}function zz(Z){let G=k7(Z),Y=parseFloat(G.width)||0,J=parseFloat(G.height)||0,X=e7(Z),q=X?Z.offsetWidth:Y,U=X?Z.offsetHeight:J,Q=aG(Y)!==q||aG(J)!==U;if(Q)Y=q,J=U;return{width:Y,height:J,$:Q}}function v8(Z){return!b7(Z)?Z.contextElement:Z}function s6(Z){let G=v8(Z);if(!e7(G))return f7(1);let Y=G.getBoundingClientRect(),{width:J,height:X,$:q}=zz(G),U=(q?aG(Y.width):Y.width)/J,Q=(q?aG(Y.height):Y.height)/X;if(!U||!Number.isFinite(U))U=1;if(!Q||!Number.isFinite(Q))Q=1;return{x:U,y:Q}}var p2=f7(0);function Hz(Z){let G=p0(Z);if(!_J()||!G.visualViewport)return p2;return{x:G.visualViewport.offsetLeft,y:G.visualViewport.offsetTop}}function l2(Z,G,Y){if(G===void 0)G=!1;return!!Y&&G&&Y===p0(Z)}function W6(Z,G,Y,J){if(G===void 0)G=!1;if(Y===void 0)Y=!1;let X=Z.getBoundingClientRect(),q=v8(Z),U=f7(1);if(G)if(J){if(b7(J))U=s6(J)}else U=s6(Z);let Q=l2(q,Y,J)?Hz(q):f7(0),z=(X.left+Q.x)/U.x,H=(X.top+Q.y)/U.y,j=X.width/U.x,W=X.height/U.y;if(q&&J){let L=p0(q),M=b7(J)?p0(J):J,V=L,D=wJ(V);while(D&&M!==V){let O=s6(D),F=D.getBoundingClientRect(),B=k7(D),K=F.left+(D.clientLeft+parseFloat(B.paddingLeft))*O.x,A=F.top+(D.clientTop+parseFloat(B.paddingTop))*O.y;z*=O.x,H*=O.y,j*=O.x,W*=O.y,z+=K,H+=A,V=p0(D),D=wJ(V)}}return U6({width:j,height:W,x:z,y:H})}function RJ(Z,G){let Y=eG(Z).scrollLeft;if(!G)return W6(v7(Z)).left+Y;return G.left+Y}function Wz(Z,G){let Y=Z.getBoundingClientRect(),J=Y.left+G.scrollLeft-RJ(Z,Y),X=Y.top+G.scrollTop;return{x:J,y:X}}function i2(Z){let{elements:G,rect:Y,offsetParent:J,strategy:X}=Z,q=X==="fixed",U=v7(J),Q=G?tG(G.floating):!1;if(J===U||Q&&q)return Y;let z={scrollLeft:0,scrollTop:0},H=f7(1),j=f7(0),W=e7(J);if(W||!q){if(H6(J)!=="body"||nG(U))z=eG(J);if(W){let M=W6(J);H=s6(J),j.x=M.x+J.clientLeft,j.y=M.y+J.clientTop}}let L=U&&!W&&!q?Wz(U,z):f7(0);return{width:Y.width*H.x,height:Y.height*H.y,x:Y.x*H.x-z.scrollLeft*H.x+j.x+L.x,y:Y.y*H.y-z.scrollTop*H.y+j.y+L.y}}function s2(Z){return Z.getClientRects?Array.from(Z.getClientRects()):[]}function r2(Z){let G=eG(Z),Y=Z.ownerDocument.body,J=R7(Z.scrollWidth,Z.clientWidth,Y.scrollWidth,Y.clientWidth),X=R7(Z.scrollHeight,Z.clientHeight,Y.scrollHeight,Y.clientHeight),q=-G.scrollLeft+RJ(Z),U=-G.scrollTop;if(k7(Y).direction==="rtl")q+=R7(Z.clientWidth,Y.clientWidth)-J;return{width:J,height:X,x:q,y:U}}var a2=25;function o2(Z,G,Y){if(Y===void 0)Y="viewport";let J=Y==="layoutViewport",X=p0(Z),q=v7(Z),U=X.visualViewport,Q=q.clientWidth,z=q.clientHeight,H=0,j=0;if(U){let L=!_J()||G==="fixed";if(J){if(!L)H=-U.offsetLeft,j=-U.offsetTop}else if(Q=U.width,z=U.height,L)H=U.offsetLeft,j=U.offsetTop}if(RJ(q)<=0){let L=q.ownerDocument,M=L.body,V=getComputedStyle(M),D=L.compatMode==="CSS1Compat"?parseFloat(V.marginLeft)+parseFloat(V.marginRight)||0:0,O=Math.abs(q.clientWidth-M.clientWidth-D),F=getComputedStyle(q).scrollbarGutter==="stable both-edges"?O/2:O;if(F<=a2)Q-=F}return{width:Q,height:z,x:H,y:j}}function n2(Z,G){let Y=W6(Z,!0,G==="fixed"),J=Y.top+Z.clientTop,X=Y.left+Z.clientLeft,q=s6(Z),U=Z.clientWidth*q.x,Q=Z.clientHeight*q.y,z=X*q.x,H=J*q.y;return{width:U,height:Q,x:z,y:H}}function Uz(Z,G,Y){let J;if(G==="viewport"||G==="layoutViewport")J=o2(Z,Y,G);else if(G==="document")J=r2(v7(Z));else if(b7(G))J=n2(G,Y);else{let X=Hz(Z);J={x:G.x-X.x,y:G.y-X.y,width:G.width,height:G.height}}return U6(J)}function t2(Z,G){let Y=G.get(Z);if(Y)return Y;let J=z6(Z,[],!1).filter((Q)=>b7(Q)&&H6(Q)!=="body"),X=null,q=k7(Z).position==="fixed",U=q?_Z(Z):Z;while(b7(U)&&!i6(U)){let Q=k7(U),z=TJ(U),H=X?X.position:q?"fixed":"";if(!z&&(H==="fixed"||H==="absolute"&&Q.position==="static"))J=J.filter((W)=>W!==U);else X=Q;U=_Z(U)}return G.set(Z,J),J}function e2(Z){let{element:G,boundary:Y,rootBoundary:J,strategy:X}=Z,U=[...Y==="clippingAncestors"?tG(G)?[]:t2(G,this._c):[].concat(Y),J],Q=Uz(G,U[0],X),z=Q.top,H=Q.right,j=Q.bottom,W=Q.left;for(let L=1;L{Q(!1,0.0000001)},1000);else Q(!1,b)}I=!1}try{J=new IntersectionObserver(R,{...w,root:q.ownerDocument})}catch(k){J=new IntersectionObserver(R,w)}J.observe(Z)}let z=p0(Z),H=()=>Q(Y);return z.addEventListener("resize",H),Q(!0),()=>{z.removeEventListener("resize",H),U()}}function u8(Z,G,Y,J){if(J===void 0)J={};let{ancestorScroll:X=!0,ancestorResize:q=!0,elementResize:U=typeof ResizeObserver==="function",layoutShift:Q=typeof IntersectionObserver==="function",animationFrame:z=!1}=J,H=v8(Z),j=X||q?[...H?z6(H):[],...G?z6(G):[]]:[];j.forEach((F)=>{X&&F.addEventListener("scroll",Y),q&&F.addEventListener("resize",Y)});let W=H&&Q?XL(H,Y,q):null,L=-1,M=null;if(U){if(M=new ResizeObserver((F)=>{let[B]=F;if(B&&B.target===H&&M&&G)M.unobserve(G),cancelAnimationFrame(L),L=requestAnimationFrame(()=>{var K;(K=M)==null||K.observe(G)});Y()}),H&&!z)M.observe(H);if(G)M.observe(G)}let V,D=z?W6(Z):null;if(z)O();function O(){let F=W6(Z);if(D&&!Lz(D,F))Y();D=F,V=requestAnimationFrame(O)}return Y(),()=>{var F;if(j.forEach((B)=>{X&&B.removeEventListener("scroll",Y),q&&B.removeEventListener("resize",Y)}),W==null||W(),(F=M)==null||F.disconnect(),M=null,z)cancelAnimationFrame(V)}}var Mz=nQ;var Fz=tQ,Kz=rQ,Dz=Zz,Vz=aQ,m8=sQ;var Az=eQ,d8=(Z,G,Y)=>{let J=new Map,X=Y!=null?Y:{},q={...jz,...X.platform,_c:J};return iQ(Z,G,{...X,platform:q})};m();m();var $z=v6(c6(),1),qL=typeof document<"u",UL=function(){},NJ=qL?OZ:UL;function bJ(Z,G){if(Z===G)return!0;if(typeof Z!==typeof G)return!1;if(typeof Z==="function"&&Z.toString()===G.toString())return!0;let Y,J,X;if(Z&&G&&typeof Z==="object"){if(Array.isArray(Z)){if(Y=Z.length,Y!==G.length)return!1;for(J=Y;J--!==0;)if(!bJ(Z[J],G[J]))return!1;return!0}if(X=Object.keys(Z),Y=X.length,Y!==Object.keys(G).length)return!1;for(J=Y;J--!==0;)if(!{}.hasOwnProperty.call(G,X[J]))return!1;for(J=Y;J--!==0;){let q=X[J];if(q==="_owner"&&Z.$$typeof)continue;if(!bJ(Z[q],G[q]))return!1}return!0}return Z!==Z&&G!==G}function Iz(Z){if(typeof window>"u")return 1;return(Z.ownerDocument.defaultView||window).devicePixelRatio||1}function Oz(Z,G){let Y=Iz(Z);return Math.round(G*Y)/Y}function c8(Z){let G=N(Z);return NJ(()=>{G.current=Z}),G}function Tz(Z){if(Z===void 0)Z={};let{placement:G="bottom",strategy:Y="absolute",middleware:J=[],platform:X,elements:{reference:q,floating:U}={},transform:Q=!0,whileElementsMounted:z,open:H}=Z,[j,W]=x({x:0,y:0,strategy:Y,placement:G,middlewareData:{},isPositioned:!1}),[L,M]=x(J);if(!bJ(L,J))M(J);let[V,D]=x(null),[O,F]=x(null),B=f((y)=>{if(y!==w.current)w.current=y,D(y)},[]),K=f((y)=>{if(y!==I.current)I.current=y,F(y)},[]),A=q||V,$=U||O,w=N(null),I=N(null),R=N(j),k=z!=null,b=c8(z),C=c8(X),a=c8(H),l=f(()=>{if(!w.current||!I.current)return;let y={placement:G,strategy:Y,middleware:L};if(C.current)y.platform=C.current;d8(w.current,I.current,y).then((o)=>{let I0={...o,isPositioned:a.current!==!1};if(Z0.current&&!bJ(R.current,I0))R.current=I0,$z.flushSync(()=>{W(I0)})})},[L,G,Y,C,a]);NJ(()=>{if(H===!1&&R.current.isPositioned)R.current.isPositioned=!1,W((y)=>({...y,isPositioned:!1}))},[H]);let Z0=N(!1);NJ(()=>{return Z0.current=!0,()=>{Z0.current=!1}},[]),NJ(()=>{if(A)w.current=A;if($)I.current=$;if(A&&$){if(b.current)return b.current(A,$,l);l()}},[A,$,l,b,k]);let G0=A0(()=>({reference:w,floating:I,setReference:B,setFloating:K}),[B,K]),E=A0(()=>({reference:A,floating:$}),[A,$]),i=A0(()=>{let y={position:Y,left:0,top:0};if(!E.floating)return y;let o=Oz(E.floating,j.x),I0=Oz(E.floating,j.y);if(Q)return{...y,transform:"translate("+o+"px, "+I0+"px)",...Iz(E.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:o,top:I0}},[Y,Q,E.floating,j.x,j.y]);return A0(()=>({...j,update:l,refs:G0,elements:E,floatingStyles:i}),[j,l,G0,E,i])}var QL=(Z)=>{function G(Y){return{}.hasOwnProperty.call(Y,"current")}return{name:"arrow",options:Z,fn(Y){let{element:J,padding:X}=typeof Z==="function"?Z(Y):Z;if(J&&G(J)){if(J.current!=null)return m8({element:J.current,padding:X}).fn(Y);return{}}if(J)return m8({element:J,padding:X}).fn(Y);return{}}}},_z=(Z,G)=>{let Y=Mz(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}},wz=(Z,G)=>{let Y=Fz(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}},Rz=(Z,G)=>{return{fn:Az(Z).fn,options:[Z,G]}},Nz=(Z,G)=>{let Y=Kz(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}},bz=(Z,G)=>{let Y=Dz(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}};var kz=(Z,G)=>{let Y=Vz(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}};var Cz=(Z,G)=>{let Y=QL(Z);return{name:Y.name,fn:Y.fn,options:[Z,G]}};m();var zL="Arrow",Sz=S((Z,G)=>{let{children:Y,width:J=10,height:X=5,...q}=Z;return _(s.svg,{...q,ref:G,width:J,height:X,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:Z.asChild?Y:_("polygon",{points:"0,0 30,0 15,10"})})});Sz.displayName=zL;var xz=Sz;m();function kJ(Z){let[G,Y]=x(void 0);return F0(()=>{if(Z){Y({width:Z.offsetWidth,height:Z.offsetHeight});let J=new ResizeObserver((X)=>{if(!Array.isArray(X))return;if(!X.length)return;let q=X[0],U,Q;if("borderBoxSize"in q){let z=q.borderBoxSize,H=Array.isArray(z)?z[0]:z;U=H.inlineSize,Q=H.blockSize}else U=Z.offsetWidth,Q=Z.offsetHeight;Y({width:U,height:Q})});return J.observe(Z,{box:"border-box"}),()=>J.unobserve(Z)}else Y(void 0)},[Z]),G}var p8="Popper",[Pz,l8]=IZ(p8),[WL,Ez]=Pz(p8),hz=(Z)=>{let{__scopePopper:G,children:Y}=Z,[J,X]=x(null),[q,U]=x(void 0);return _(WL,{scope:G,anchor:J,onAnchorChange:X,placementState:q,setPlacementState:U,children:Y})};hz.displayName=p8;var yz="PopperAnchor",fz=S((Z,G)=>{let{__scopePopper:Y,virtualRef:J,...X}=Z,q=Ez(yz,Y),U=N(null),Q=q.onAnchorChange,z=f((V)=>{if(U.current=V,V)Q(V)},[Q]),H=n(G,z),j=N(null);P(()=>{if(!J)return;let V=j.current;if(j.current=J.current,V!==j.current)Q(j.current)});let W=q.placementState&&s8(q.placementState),L=W?.[0],M=W?.[1];return J?null:_(s.div,{"data-radix-popper-side":L,"data-radix-popper-align":M,...X,ref:H})});fz.displayName=yz;var i8="PopperContent",[BL,jL]=Pz(i8),gz=S((Z,G)=>{let{__scopePopper:Y,side:J="bottom",sideOffset:X=0,align:q="center",alignOffset:U=0,arrowPadding:Q=0,avoidCollisions:z=!0,collisionBoundary:H=[],collisionPadding:j=0,sticky:W="partial",hideWhenDetached:L=!1,updatePositionStrategy:M="optimized",onPlaced:V,...D}=Z,O=Ez(i8,Y),[F,B]=x(null),K=n(G,B),[A,$]=x(null),w=kJ(A),I=w?.width??0,R=w?.height??0,k=J+(q!=="center"?"-"+q:""),b=typeof j==="number"?j:{top:0,right:0,bottom:0,left:0,...j},C=Array.isArray(H)?H:[H],a=C.length>0,l={padding:b,boundary:C.filter(ML),altBoundary:a},{refs:Z0,floatingStyles:G0,placement:E,isPositioned:i,middlewareData:y}=Tz({strategy:"fixed",placement:k,whileElementsMounted:(...V0)=>{return u8(...V0,{animationFrame:M==="always"})},elements:{reference:O.anchor},middleware:[_z({mainAxis:X+R,alignmentAxis:U}),z&&wz({mainAxis:!0,crossAxis:!1,limiter:W==="partial"?Rz():void 0,...l}),z&&Nz({...l}),bz({...l,apply:({elements:V0,rects:m0,availableWidth:H0,availableHeight:M0})=>{let{width:R0,height:r7}=m0.reference,M7=V0.floating.style;M7.setProperty("--radix-popper-available-width",`${H0}px`),M7.setProperty("--radix-popper-available-height",`${M0}px`),M7.setProperty("--radix-popper-anchor-width",`${R0}px`),M7.setProperty("--radix-popper-anchor-height",`${r7}px`)}}),A&&Cz({element:A,padding:Q}),FL({arrowWidth:I,arrowHeight:R}),L&&kz({strategy:"referenceHidden",...l,boundary:a?l.boundary:void 0})]}),o=O.setPlacementState;F0(()=>{return o(E),()=>{o(void 0)}},[E,o]);let[I0,u0]=s8(E),D0=Y7(V);F0(()=>{if(i)D0?.()},[i,D0]);let w0=y.arrow?.x,i0=y.arrow?.y,g6=y.arrow?.centerOffset!==0,[G6,v]=x();return F0(()=>{if(F)v(window.getComputedStyle(F).zIndex)},[F]),_("div",{ref:Z0.setFloating,"data-radix-popper-content-wrapper":"",style:{...G0,transform:i?G0.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G6,"--radix-popper-transform-origin":[y.transformOrigin?.x,y.transformOrigin?.y].join(" "),...y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:Z.dir,children:_(BL,{scope:Y,placedSide:I0,placedAlign:u0,onArrowChange:$,arrowX:w0,arrowY:i0,shouldHideArrow:g6,children:_(s.div,{"data-side":I0,"data-align":u0,...D,ref:K,style:{...D.style,animation:!i?"none":void 0}})})})});gz.displayName=i8;var vz="PopperArrow",LL={top:"bottom",right:"left",bottom:"top",left:"right"},uz=S(function(G,Y){let{__scopePopper:J,...X}=G,q=jL(vz,J),U=LL[q.placedSide];return _("span",{ref:q.onArrowChange,style:{position:"absolute",left:q.arrowX,top:q.arrowY,[U]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[q.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[q.placedSide],visibility:q.shouldHideArrow?"hidden":void 0},children:_(xz,{...X,ref:Y,style:{...X.style,display:"block"}})})});uz.displayName=vz;function ML(Z){return Z!==null}var FL=(Z)=>({name:"transformOrigin",options:Z,fn(G){let{placement:Y,rects:J,middlewareData:X}=G,U=X.arrow?.centerOffset!==0,Q=U?0:Z.arrowWidth,z=U?0:Z.arrowHeight,[H,j]=s8(Y),W={start:"0%",center:"50%",end:"100%"}[j],L=(X.arrow?.x??0)+Q/2,M=(X.arrow?.y??0)+z/2,V="",D="";if(H==="bottom")V=U?W:`${L}px`,D=`${-z}px`;else if(H==="top")V=U?W:`${L}px`,D=`${J.floating.height+z}px`;else if(H==="right")V=`${-z}px`,D=U?W:`${M}px`;else if(H==="left")V=`${J.floating.width+z}px`,D=U?W:`${M}px`;return{data:{x:V,y:D}}}});function s8(Z){let[G,Y="center"]=Z.split("-");return[G,Y]}var mz=hz,dz=fz,cz=gz,pz=uz;m();var lz=v6(c6(),1);var DL="Portal",r8=S((Z,G)=>{let{container:Y,...J}=Z,[X,q]=x(!1);F0(()=>q(!0),[]);let U=Y||X&&globalThis?.document?.body;return U?lz.createPortal(_(s.div,{...J,ref:G}),U):null});r8.displayName=DL;m();m();function VL(Z,G){return iG((Y,J)=>{return G[Y][J]??Y},Z)}var a8=(Z)=>{let{present:G,children:Y}=Z,J=AL(G),X=typeof Y==="function"?Y({present:J.isPresent}):a7.only(Y),q=OL(J.ref,$L(X));return typeof Y==="function"||J.isPresent?h7(X,{ref:q}):null};a8.displayName="Presence";function AL(Z){let[G,Y]=x(),J=N(null),X=N(Z),q=N("none"),U=N(void 0),Q=Z?"mounted":"unmounted",[z,H]=VL(Q,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P(()=>{if(z==="mounted")q.current=U.current??ZY(J.current),U.current=void 0;else q.current="none"},[z]),F0(()=>{let j=J.current,W=X.current;if(W!==Z){let M=q.current,V=ZY(j);if(Z)U.current=V,H("MOUNT");else if(V==="none"||j?.display==="none")H("UNMOUNT");else if(W&&M!==V)H("ANIMATION_OUT");else H("UNMOUNT");X.current=Z}},[Z,H]),F0(()=>{if(G){let j,W=G.ownerDocument.defaultView??window,L=(V)=>{let O=ZY(J.current).includes(CSS.escape(V.animationName));if(V.target===G&&O){if(H("ANIMATION_END"),!X.current){let F=G.style.animationFillMode;G.style.animationFillMode="forwards",j=W.setTimeout(()=>{if(G.style.animationFillMode==="forwards")G.style.animationFillMode=F})}}},M=(V)=>{if(V.target===G)q.current=ZY(J.current)};return G.addEventListener("animationstart",M),G.addEventListener("animationcancel",L),G.addEventListener("animationend",L),()=>{W.clearTimeout(j),G.removeEventListener("animationstart",M),G.removeEventListener("animationcancel",L),G.removeEventListener("animationend",L)}}else H("ANIMATION_END")},[G,H]),{isPresent:["mounted","unmountSuspended"].includes(z),ref:f((j)=>{if(j){let W=getComputedStyle(j);J.current=W,U.current=ZY(W)}else J.current=null;Y(j)},[])}}function iz(Z,G){if(typeof Z==="function")return Z(G);else if(Z!==null&&Z!==void 0)Z.current=G}function OL(...Z){let G=N(Z);return G.current=Z,f((Y)=>{let J=G.current,X=!1,q=J.map((U)=>{let Q=iz(U,Y);if(!X&&typeof Q==="function")X=!0;return Q});if(X)return()=>{for(let U=0;U{},caller:J}){let[X,q,U]=TL({defaultProp:G,onChange:Y}),Q=Z!==void 0,z=Q?Z:X;{let j=N(Z!==void 0);P(()=>{let W=j.current;if(W!==Q)console.warn(`${J} is changing from ${W?"controlled":"uncontrolled"} to ${Q?"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.`);j.current=Q},[Q,J])}let H=f((j)=>{if(Q){let W=_L(j)?j(Z):j;if(W!==Z)U.current?.(W)}else q(j)},[Q,Z,q,U]);return[z,H]}function TL({defaultProp:Z,onChange:G}){let[Y,J]=x(Z),X=N(Y),q=N(G);return IL(()=>{q.current=G},[G]),P(()=>{if(X.current!==Y)q.current?.(Y),X.current=Y},[Y,X]),[Y,J,q]}function _L(Z){return typeof Z==="function"}var ED=Symbol("RADIX:SYNC_STATE");m();function CJ(Z){let G=N({value:Z,previous:Z});return A0(()=>{if(G.current.value!==Z)G.current.previous=G.current.value,G.current.value=Z;return G.current.previous},[Z])}m();var o8=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"}),wL="VisuallyHidden",RL=S((Z,G)=>{return _(s.span,{...Z,ref:G,style:{...o8,...Z.style}})});RL.displayName=wL;var NL=function(Z){if(typeof document>"u")return null;var G=Array.isArray(Z)?Z[0]:Z;return G.ownerDocument.body},r6=new WeakMap,SJ=new WeakMap,xJ={},n8=0,sz=function(Z){return Z&&(Z.host||sz(Z.parentNode))},bL=function(Z,G){return G.map(function(Y){if(Z.contains(Y))return Y;var J=sz(Y);if(J&&Z.contains(J))return J;return console.error("aria-hidden",Y,"in not contained inside",Z,". Doing nothing"),null}).filter(function(Y){return Boolean(Y)})},kL=function(Z,G,Y,J){var X=bL(G,Array.isArray(Z)?Z:[Z]);if(!xJ[Y])xJ[Y]=new WeakMap;var q=xJ[Y],U=[],Q=new Set,z=new Set(X),H=function(W){if(!W||Q.has(W))return;Q.add(W),H(W.parentNode)};X.forEach(H);var j=function(W){if(!W||z.has(W))return;Array.prototype.forEach.call(W.children,function(L){if(Q.has(L))j(L);else try{var M=L.getAttribute(J),V=M!==null&&M!=="false",D=(r6.get(L)||0)+1,O=(q.get(L)||0)+1;if(r6.set(L,D),q.set(L,O),U.push(L),D===1&&V)SJ.set(L,!0);if(O===1)L.setAttribute(Y,"true");if(!V)L.setAttribute(J,"true")}catch(F){console.error("aria-hidden: cannot operate on ",L,F)}})};return j(G),Q.clear(),n8++,function(){if(U.forEach(function(W){var L=r6.get(W)-1,M=q.get(W)-1;if(r6.set(W,L),q.set(W,M),!L){if(!SJ.has(W))W.removeAttribute(J);SJ.delete(W)}if(!M)W.removeAttribute(Y)}),n8--,!n8)r6=new WeakMap,r6=new WeakMap,SJ=new WeakMap,xJ={}}},rz=function(Z,G,Y){if(Y===void 0)Y="data-aria-hidden";var J=Array.from(Array.isArray(Z)?Z:[Z]),X=G||NL(Z);if(!X)return function(){return null};return J.push.apply(J,Array.from(X.querySelectorAll("[aria-live], script"))),kL(J,X,Y,"aria-hidden")};var s0=function(){return s0=Object.assign||function(G){for(var Y,J=1,X=arguments.length;J"u")return yL;var G=fL(Z),Y=document.documentElement.clientWidth,J=window.innerWidth;return{left:G[0],top:G[1],right:G[2],gap:Math.max(0,J-Y+G[2]-G[0])}};var gL=JY(),a6="data-scroll-locked",vL=function(Z,G,Y,J){var{left:X,top:q,right:U,gap:Q}=Z;if(Y===void 0)Y="margin";return` - .`.concat(t8,` { - overflow: hidden `).concat(J,`; - padding-right: `).concat(Q,"px ").concat(J,`; +`+BG+Z+gW}function jG(Z,J){if(!Z||HG)return"";HG=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var X={DetermineComponentFrameRoot:function(){try{if(J){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(L){var j=L}Reflect.construct(Z,[],H)}else{try{H.call()}catch(L){j=L}Z.call(H.prototype)}}else{try{throw Error()}catch(L){j=L}(H=Z())&&typeof H.catch==="function"&&H.catch(function(){})}}catch(L){if(L&&j&&typeof L.stack==="string")return[L.stack,j.stack]}return[null,null]}};X.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var G=Object.getOwnPropertyDescriptor(X.DetermineComponentFrameRoot,"name");G&&G.configurable&&Object.defineProperty(X.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var q=X.DetermineComponentFrameRoot(),U=q[0],Q=q[1];if(U&&Q){var z=U.split(` +`),W=Q.split(` +`);for(G=X=0;XG||z[X]!==W[G]){var B=` +`+z[X].replace(" at new "," at ");return Z.displayName&&B.includes("")&&(B=B.replace("",Z.displayName)),B}while(1<=X&&0<=G);break}}}finally{HG=!1,Error.prepareStackTrace=Y}return(Y=Z?Z.displayName||Z.name:"")?A6(Y):""}function SF(Z,J){switch(Z.tag){case 26:case 27:case 5:return A6(Z.type);case 16:return A6("Lazy");case 13:return Z.child!==J&&J!==null?A6("Suspense Fallback"):A6("Suspense");case 19:return A6("SuspenseList");case 0:case 15:return jG(Z.type,!1);case 11:return jG(Z.type.render,!1);case 1:return jG(Z.type,!0);case 31:return A6("Activity");default:return""}}function vW(Z){try{var J="",Y=null;do J+=SF(Z,Y),Y=Z,Z=Z.return;while(Z);return J}catch(X){return` +Error generating stack: `+X.message+` +`+X.stack}}function yZ(Z){if(typeof yF==="function"&&fF(Z),W7&&typeof W7.setStrictMode==="function")try{W7.setStrictMode(QX,Z)}catch(J){}}function uF(Z){return Z>>>=0,Z===0?32:31-(gF(Z)/vF|0)|0}function O6(Z){var J=Z&42;if(J!==0)return J;switch(Z&-Z){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 Z&261888;case 262144:case 524288:case 1048576:case 2097152:return Z&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return Z&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return Z}}function F9(Z,J,Y){var X=Z.pendingLanes;if(X===0)return 0;var G=0,q=Z.suspendedLanes,U=Z.pingedLanes;Z=Z.warmLanes;var Q=X&134217727;return Q!==0?(X=Q&~q,X!==0?G=O6(X):(U&=Q,U!==0?G=O6(U):Y||(Y=Q&~Z,Y!==0&&(G=O6(Y))))):(Q=X&~q,Q!==0?G=O6(Q):U!==0?G=O6(U):Y||(Y=X&~Z,Y!==0&&(G=O6(Y)))),G===0?0:J!==0&&J!==G&&(J&q)===0&&(q=G&-G,Y=J&-J,q>=Y||q===32&&(Y&4194048)!==0)?J:G}function zX(Z,J){return(Z.pendingLanes&~(Z.suspendedLanes&~Z.pingedLanes)&J)===0}function mF(Z,J){switch(Z){case 1:case 2:case 4:case 8:case 64:return J+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 J+5000;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 FB(){var Z=L8;return L8<<=1,(L8&62914560)===0&&(L8=4194304),Z}function MG(Z){for(var J=[],Y=0;31>Y;Y++)J.push(Z);return J}function WX(Z,J){Z.pendingLanes|=J,J!==268435456&&(Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0)}function dF(Z,J,Y,X,G,q){var U=Z.pendingLanes;Z.pendingLanes=Y,Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0,Z.expiredLanes&=Y,Z.entangledLanes&=Y,Z.errorRecoveryDisabledLanes&=Y,Z.shellSuspendCounter=0;var{entanglements:Q,expirationTimes:z,hiddenUpdates:W}=Z;for(Y=U&~Y;0"u")return null;try{return Z.activeElement||Z.body}catch(J){return Z.body}}function A7(Z){return Z.replace(rF,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function tG(Z,J,Y,X,G,q,U,Q){if(Z.name="",U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"?Z.type=U:Z.removeAttribute("type"),J!=null)if(U==="number"){if(J===0&&Z.value===""||Z.value!=J)Z.value=""+V7(J)}else Z.value!==""+V7(J)&&(Z.value=""+V7(J));else U!=="submit"&&U!=="reset"||Z.removeAttribute("value");J!=null?eG(Z,U,V7(J)):Y!=null?eG(Z,U,V7(Y)):X!=null&&Z.removeAttribute("value"),G==null&&q!=null&&(Z.defaultChecked=!!q),G!=null&&(Z.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"?Z.name=""+V7(Q):Z.removeAttribute("name")}function TB(Z,J,Y,X,G,q,U,Q){if(q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"&&(Z.type=q),J!=null||Y!=null){if(!(q!=="submit"&&q!=="reset"||J!==void 0&&J!==null)){nG(Z);return}Y=Y!=null?""+V7(Y):"",J=J!=null?""+V7(J):Y,Q||J===Z.value||(Z.value=J),Z.defaultValue=J}X=X!=null?X:G,X=typeof X!=="function"&&typeof X!=="symbol"&&!!X,Z.checked=Q?Z.checked:!!X,Z.defaultChecked=!!X,U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"&&(Z.name=U),nG(Z)}function eG(Z,J,Y){J==="number"&&p8(Z.ownerDocument)===Z||Z.defaultValue===""+Y||(Z.defaultValue=""+Y)}function kJ(Z,J,Y,X){if(Z=Z.options,J){J={};for(var G=0;G=J)return{node:Y,offset:J-Z};Z=X}Z:{for(;Y;){if(Y.nextSibling){Y=Y.nextSibling;break Z}Y=Y.parentNode}Y=void 0}Y=J1(Y)}}function yB(Z,J){return Z&&J?Z===J?!0:Z&&Z.nodeType===3?!1:J&&J.nodeType===3?yB(Z,J.parentNode):("contains"in Z)?Z.contains(J):Z.compareDocumentPosition?!!(Z.compareDocumentPosition(J)&16):!1:!1}function fB(Z){Z=Z!=null&&Z.ownerDocument!=null&&Z.ownerDocument.defaultView!=null?Z.ownerDocument.defaultView:window;for(var J=p8(Z.document);J instanceof Z.HTMLIFrameElement;){try{var Y=typeof J.contentWindow.location.href==="string"}catch(X){Y=!1}if(Y)Z=J.contentWindow;else break;J=p8(Z.document)}return J}function oq(Z){var J=Z&&Z.nodeName&&Z.nodeName.toLowerCase();return J&&(J==="input"&&(Z.type==="text"||Z.type==="search"||Z.type==="tel"||Z.type==="url"||Z.type==="password")||J==="textarea"||Z.contentEditable==="true")}function X1(Z,J,Y){var X=Y.window===Y?Y.document:Y.nodeType===9?Y:Y.ownerDocument;Xq||AJ==null||AJ!==p8(X)||(X=AJ,("selectionStart"in X)&&oq(X)?X={start:X.selectionStart,end:X.selectionEnd}:(X=(X.ownerDocument&&X.ownerDocument.defaultView||window).getSelection(),X={anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}),hY&&aY(hY,X)||(hY=X,X=z9(Yq,"onSelect"),0>=U,G-=U,c7=1<<32-B7(J)+G|Y<w?(b=I,I=null):b=I.sibling;var k=j(F,I,K[w],$);if(k===null){I===null&&(I=b);break}Z&&I&&k.alternate===null&&J(F,I),M=q(k,M,w),N===null?O=k:N.sibling=k,N=k,I=b}if(w===K.length)return Y(F,I),a&&zZ(F,w),O;if(I===null){for(;ww?(b=I,I=null):b=I.sibling;var x=j(F,I,k.value,$);if(x===null){I===null&&(I=b);break}Z&&I&&x.alternate===null&&J(F,I),M=q(x,M,w),N===null?O=x:N.sibling=x,N=x,I=b}if(k.done)return Y(F,I),a&&zZ(F,w),O;if(I===null){for(;!k.done;w++,k=K.next())k=H(F,k.value,$),k!==null&&(M=q(k,M,w),N===null?O=k:N.sibling=k,N=k);return a&&zZ(F,w),O}for(I=X(I);!k.done;w++,k=K.next())k=L(I,F,w,k.value,$),k!==null&&(Z&&k.alternate!==null&&I.delete(k.key===null?w:k.key),M=q(k,M,w),N===null?O=k:N.sibling=k,N=k);return Z&&I.forEach(function(n){return J(F,n)}),a&&zZ(F,w),O}function A(F,M,K,$){if(typeof K==="object"&&K!==null&&K.type===FJ&&K.key===null&&(K=K.props.children),typeof K==="object"&&K!==null){switch(K.$$typeof){case B8:Z:{for(var O=K.key;M!==null;){if(M.key===O){if(O=K.type,O===FJ){if(M.tag===7){Y(F,M.sibling),$=G(M,K.props.children),$.return=F,F=$;break Z}}else if(M.elementType===O||typeof O==="object"&&O!==null&&O.$$typeof===CZ&&_6(O)===M.type){Y(F,M.sibling),$=G(M,K.props),AY($,K),$.return=F,F=$;break Z}Y(F,M);break}else J(F,M);M=M.sibling}K.type===FJ?($=w6(K.props.children,F.mode,$,K.key),$.return=F,F=$):($=b8(K.type,K.key,K.props,null,F.mode,$),AY($,K),$.return=F,F=$)}return U(F);case TY:Z:{for(O=K.key;M!==null;){if(M.key===O)if(M.tag===4&&M.stateNode.containerInfo===K.containerInfo&&M.stateNode.implementation===K.implementation){Y(F,M.sibling),$=G(M,K.children||[]),$.return=F,F=$;break Z}else{Y(F,M);break}else J(F,M);M=M.sibling}$=OG(K,F.mode,$),$.return=F,F=$}return U(F);case CZ:return K=_6(K),A(F,M,K,$)}if(NY(K))return D(F,M,K,$);if(DY(K)){if(O=DY(K),typeof O!=="function")throw Error(T(150));return K=O.call(K),V(F,M,K,$)}if(typeof K.then==="function")return A(F,M,V8(K),$);if(K.$$typeof===BZ)return A(F,M,K8(F,K),$);D8(F,K)}return typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint"?(K=""+K,M!==null&&M.tag===6?(Y(F,M.sibling),$=G(M,K),$.return=F,F=$):(Y(F,M),$=AG(K,F.mode,$),$.return=F,F=$),U(F)):Y(F,M)}return function(F,M,K,$){try{tY=0;var O=A(F,M,K,$);return SJ=null,O}catch(I){if(I===rJ||I===O9)throw I;var N=U7(29,I,null,F.mode);return N.lanes=$,N.return=F,N}finally{}}}function qU(Z){Z.updateQueue={baseState:Z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bq(Z,J){Z=Z.updateQueue,J.updateQueue===Z&&(J.updateQueue={baseState:Z.baseState,firstBaseUpdate:Z.firstBaseUpdate,lastBaseUpdate:Z.lastBaseUpdate,shared:Z.shared,callbacks:null})}function cZ(Z){return{lane:Z,tag:0,payload:null,callback:null,next:null}}function pZ(Z,J,Y){var X=Z.updateQueue;if(X===null)return null;if(X=X.shared,(e&2)!==0){var G=X.pending;return G===null?J.next=J:(J.next=G.next,G.next=J),X.pending=J,J=i8(Z),pB(Z,null,Y),J}return A9(Z,X,J,Y),i8(Z)}function fY(Z,J,Y){if(J=J.updateQueue,J!==null&&(J=J.shared,(Y&4194048)!==0)){var X=J.lanes;X&=Z.pendingLanes,Y|=X,J.lanes=Y,VB(Z,Y)}}function _G(Z,J){var{updateQueue:Y,alternate:X}=Z;if(X!==null&&(X=X.updateQueue,Y===X)){var G=null,q=null;if(Y=Y.firstBaseUpdate,Y!==null){do{var U={lane:Y.lane,tag:Y.tag,payload:Y.payload,callback:null,next:null};q===null?G=q=U:q=q.next=U,Y=Y.next}while(Y!==null);q===null?G=q=J:q=q.next=J}else G=q=J;Y={baseState:X.baseState,firstBaseUpdate:G,lastBaseUpdate:q,shared:X.shared,callbacks:X.callbacks},Z.updateQueue=Y;return}Z=Y.lastBaseUpdate,Z===null?Y.firstBaseUpdate=J:Z.next=J,Y.lastBaseUpdate=J}function gY(){if(Hq){var Z=CJ;if(Z!==null)throw Z}}function vY(Z,J,Y,X){Hq=!1;var G=Z.updateQueue;SZ=!1;var{firstBaseUpdate:q,lastBaseUpdate:U}=G,Q=G.shared.pending;if(Q!==null){G.shared.pending=null;var z=Q,W=z.next;z.next=null,U===null?q=W:U.next=W,U=z;var B=Z.alternate;B!==null&&(B=B.updateQueue,Q=B.lastBaseUpdate,Q!==U&&(Q===null?B.firstBaseUpdate=W:Q.next=W,B.lastBaseUpdate=z))}if(q!==null){var H=G.baseState;U=0,B=W=z=null,Q=q;do{var j=Q.lane&-536870913,L=j!==Q.lane;if(L?(i&j)===j:(X&j)===j){j!==0&&j===fJ&&(Hq=!0),B!==null&&(B=B.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});Z:{var D=Z,V=Q;j=J;var A=Y;switch(V.tag){case 1:if(D=V.payload,typeof D==="function"){H=D.call(A,H,j);break Z}H=D;break Z;case 3:D.flags=D.flags&-65537|128;case 0:if(D=V.payload,j=typeof D==="function"?D.call(A,H,j):D,j===null||j===void 0)break Z;H=L0({},H,j);break Z;case 2:SZ=!0}}j=Q.callback,j!==null&&(Z.flags|=64,L&&(Z.flags|=8192),L=G.callbacks,L===null?G.callbacks=[j]:L.push(j))}else L={lane:j,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},B===null?(W=B=L,z=H):B=B.next=L,U|=j;if(Q=Q.next,Q===null)if(Q=G.shared.pending,Q===null)break;else L=Q,Q=L.next,L.next=null,G.lastBaseUpdate=L,G.shared.pending=null}while(1);B===null&&(z=H),G.baseState=z,G.firstBaseUpdate=W,G.lastBaseUpdate=B,q===null&&(G.shared.lanes=0),eZ|=U,Z.lanes=U,Z.memoizedState=H}}function ZH(Z,J){if(typeof Z!=="function")throw Error(T(191,Z));Z.call(J)}function JH(Z,J){var Y=Z.callbacks;if(Y!==null)for(Z.callbacks=null,Z=0;Zq?q:8;var U=y.T,Q={};y.T=Q,DU(Z,!1,J,Y);try{var z=G(),W=y.S;if(W!==null&&W(Q,z),z!==null&&typeof z==="object"&&typeof z.then==="function"){var B=dK(z,X);uY(Z,J,B,H7(Z))}else uY(Z,J,X,H7(Z))}catch(H){uY(Z,J,{then:function(){},status:"rejected",reason:H},H7())}finally{Z0.p=q,U!==null&&Q.types!==null&&(U.types=Q.types),y.T=U}}function rK(){}function Kq(Z,J,Y,X){if(Z.tag!==5)throw Error(T(476));var G=wH(Z).queue;NH(Z,G,J,N6,Y===null?rK:function(){return RH(Z),Y(X)})}function wH(Z){var J=Z.memoizedState;if(J!==null)return J;J={memoizedState:N6,baseState:N6,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:DZ,lastRenderedState:N6},next:null};var Y={};return J.next={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:DZ,lastRenderedState:Y},next:null},Z.memoizedState=J,Z=Z.alternate,Z!==null&&(Z.memoizedState=J),J}function RH(Z){var J=wH(Z);J.next===null&&(J=Z.alternate.memoizedState),uY(Z,J.next.queue,{},H7())}function VU(){return v0(XX)}function kH(){return T0().memoizedState}function bH(){return T0().memoizedState}function aK(Z){for(var J=Z.return;J!==null;){switch(J.tag){case 24:case 3:var Y=H7();Z=cZ(Y);var X=pZ(J,Z,Y);X!==null&&(e0(X,J,Y),fY(X,J,Y)),J={cache:YU()},Z.payload=J;return}J=J.return}}function oK(Z,J,Y){var X=H7();Y={lane:X,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},N9(Z)?SH(J,Y):(Y=tq(Z,J,Y,X),Y!==null&&(e0(Y,Z,X),xH(Y,J,X)))}function CH(Z,J,Y){var X=H7();uY(Z,J,Y,X)}function uY(Z,J,Y,X){var G={lane:X,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null};if(N9(Z))SH(J,G);else{var q=Z.alternate;if(Z.lanes===0&&(q===null||q.lanes===0)&&(q=J.lastRenderedReducer,q!==null))try{var U=J.lastRenderedState,Q=q(U,Y);if(G.hasEagerState=!0,G.eagerState=Q,j7(Q,U))return A9(Z,J,G,0),Q0===null&&$9(),!1}catch(z){}finally{}if(Y=tq(Z,J,G,X),Y!==null)return e0(Y,Z,X),xH(Y,J,X),!0}return!1}function DU(Z,J,Y,X){if(X={lane:2,revertLane:RU(),gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null},N9(Z)){if(J)throw Error(T(479))}else J=tq(Z,Y,X,2),J!==null&&e0(J,Z,2)}function N9(Z){var J=Z.alternate;return Z===g||J!==null&&J===g}function SH(Z,J){xJ=t8=!0;var Y=Z.pending;Y===null?J.next=J:(J.next=Y.next,Y.next=J),Z.pending=J}function xH(Z,J,Y){if((Y&4194048)!==0){var X=J.lanes;X&=Z.pendingLanes,Y|=X,J.lanes=Y,VB(Z,Y)}}function NG(Z,J,Y,X){J=Z.memoizedState,Y=Y(X,J),Y=Y===null||Y===void 0?J:L0({},J,Y),Z.memoizedState=Y,Z.lanes===0&&(Z.updateQueue.baseState=Y)}function $1(Z,J,Y,X,G,q,U){return Z=Z.stateNode,typeof Z.shouldComponentUpdate==="function"?Z.shouldComponentUpdate(X,q,U):J.prototype&&J.prototype.isPureReactComponent?!aY(Y,X)||!aY(G,q):!0}function A1(Z,J,Y,X){Z=J.state,typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps(Y,X),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps(Y,X),J.state!==Z&&Vq.enqueueReplaceState(J,J.state,null)}function E6(Z,J){var Y=J;if("ref"in J){Y={};for(var X in J)X!=="ref"&&(Y[X]=J[X])}if(Z=Z.defaultProps){Y===J&&(Y=L0({},Y));for(var G in Z)Y[G]===void 0&&(Y[G]=Z[G])}return Y}function hH(Z){l8(Z)}function yH(Z){console.error(Z)}function fH(Z){l8(Z)}function Z9(Z,J){try{var Y=Z.onUncaughtError;Y(J.value,{componentStack:J.stack})}catch(X){setTimeout(function(){throw X})}}function O1(Z,J,Y){try{var X=Z.onCaughtError;X(Y.value,{componentStack:Y.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function Dq(Z,J,Y){return Y=cZ(Y),Y.tag=3,Y.payload={element:null},Y.callback=function(){Z9(Z,J)},Y}function gH(Z){return Z=cZ(Z),Z.tag=3,Z}function vH(Z,J,Y,X){var G=Y.type.getDerivedStateFromError;if(typeof G==="function"){var q=X.value;Z.payload=function(){return G(q)},Z.callback=function(){O1(J,Y,X)}}var U=Y.stateNode;U!==null&&typeof U.componentDidCatch==="function"&&(Z.callback=function(){O1(J,Y,X),typeof G!=="function"&&(lZ===null?lZ=new Set([this]):lZ.add(this));var Q=X.stack;this.componentDidCatch(X.value,{componentStack:Q!==null?Q:""})})}function nK(Z,J,Y,X,G){if(Y.flags|=32768,X!==null&&typeof X==="object"&&typeof X.then==="function"){if(J=Y.alternate,J!==null&&sJ(J,Y,G,!0),Y=L7.current,Y!==null){switch(Y.tag){case 31:case 13:return _7===null?q9():Y.alternate===null&&O0===0&&(O0=3),Y.flags&=-257,Y.flags|=65536,Y.lanes=G,X===a8?Y.flags|=16384:(J=Y.updateQueue,J===null?Y.updateQueue=new Set([X]):J.add(X),yG(Z,X,G)),!1;case 22:return Y.flags|=65536,X===a8?Y.flags|=16384:(J=Y.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([X])},Y.updateQueue=J):(Y=J.retryQueue,Y===null?J.retryQueue=new Set([X]):Y.add(X)),yG(Z,X,G)),!1}throw Error(T(435,Y.tag))}return yG(Z,X,G),q9(),!1}if(a)return J=L7.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,X!==qq&&(Z=Error(T(422),{cause:X}),nY(O7(Z,Y)))):(X!==qq&&(J=Error(T(423),{cause:X}),nY(O7(J,Y))),Z=Z.current.alternate,Z.flags|=65536,G&=-G,Z.lanes|=G,X=O7(X,Y),G=Dq(Z.stateNode,X,G),_G(Z,G),O0!==4&&(O0=2)),!1;var q=Error(T(520),{cause:X});if(q=O7(q,Y),cY===null?cY=[q]:cY.push(q),O0!==4&&(O0=2),J===null)return!0;X=O7(X,Y),Y=J;do{switch(Y.tag){case 3:return Y.flags|=65536,Z=G&-G,Y.lanes|=Z,Z=Dq(Y.stateNode,X,Z),_G(Y,Z),!1;case 1:if(J=Y.type,q=Y.stateNode,(Y.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||q!==null&&typeof q.componentDidCatch==="function"&&(lZ===null||!lZ.has(q))))return Y.flags|=65536,G&=-G,Y.lanes|=G,G=gH(G),vH(G,Z,Y,X),_G(Y,G),!1}Y=Y.return}while(Y!==null);return!1}function y0(Z,J,Y,X){J.child=Z===null?eB(J,null,Y,X):x6(J,Z.child,Y,X)}function I1(Z,J,Y,X,G){Y=Y.render;var q=J.ref;if("ref"in X){var U={};for(var Q in X)Q!=="ref"&&(U[Q]=X[Q])}else U=X;if(S6(J),X=zU(Z,J,Y,U,q,G),Q=WU(),Z!==null&&!C0)return BU(Z,J,G),$Z(Z,J,G);return a&&Q&&ZU(J),J.flags|=1,y0(Z,J,X,G),J.child}function _1(Z,J,Y,X,G){if(Z===null){var q=Y.type;if(typeof q==="function"&&!eq(q)&&q.defaultProps===void 0&&Y.compare===null)return J.tag=15,J.type=q,uH(Z,J,q,X,G);return Z=b8(Y.type,null,X,J,J.mode,G),Z.ref=J.ref,Z.return=J,J.child=Z}if(q=Z.child,!OU(Z,G)){var U=q.memoizedProps;if(Y=Y.compare,Y=Y!==null?Y:aY,Y(U,X)&&Z.ref===J.ref)return $Z(Z,J,G)}return J.flags|=1,Z=LZ(q,X),Z.ref=J.ref,Z.return=J,J.child=Z}function uH(Z,J,Y,X,G){if(Z!==null){var q=Z.memoizedProps;if(aY(q,X)&&Z.ref===J.ref)if(C0=!1,J.pendingProps=X=q,OU(Z,G))(Z.flags&131072)!==0&&(C0=!0);else return J.lanes=Z.lanes,$Z(Z,J,G)}return $q(Z,J,Y,X,G)}function mH(Z,J,Y,X){var G=X.children,q=Z!==null?Z.memoizedState:null;if(Z===null&&J.stateNode===null&&(J.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),X.mode==="hidden"){if((J.flags&128)!==0){if(q=q!==null?q.baseLanes|Y:Y,Z!==null){X=J.child=Z.child;for(G=0;X!==null;)G=G|X.lanes|X.childLanes,X=X.sibling;X=G&~q}else X=0,J.child=null;return T1(Z,J,q,Y,X)}if((Y&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},Z!==null&&C8(J,q!==null?q.cachePool:null),q!==null?j1(J,q):jq(),YH(J);else return X=J.lanes=536870912,T1(Z,J,q!==null?q.baseLanes|Y:Y,Y,X)}else q!==null?(C8(J,q.cachePool),j1(J,q),EZ(J),J.memoizedState=null):(Z!==null&&C8(J,null),jq(),EZ(J));return y0(Z,J,G,Y),J.child}function bY(Z,J){return Z!==null&&Z.tag===22||J.stateNode!==null||(J.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function T1(Z,J,Y,X,G){var q=XU();return q=q===null?null:{parent:b0._currentValue,pool:q},J.memoizedState={baseLanes:Y,cachePool:q},Z!==null&&C8(J,null),jq(),YH(J),Z!==null&&sJ(Z,J,X,!0),J.childLanes=G,null}function P8(Z,J){return J=J9({mode:J.mode,children:J.children},Z.mode),J.ref=Z.ref,Z.child=J,J.return=Z,J}function N1(Z,J,Y){return x6(J,Z.child,null,Y),Z=P8(J,J.pendingProps),Z.flags|=2,q7(J),J.memoizedState=null,Z}function tK(Z,J,Y){var X=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,Z===null){if(a){if(X.mode==="hidden")return Z=P8(J,X),J.lanes=536870912,bY(null,Z);if(Lq(J),(Z=j0)?(Z=P2(Z,I7),Z=Z!==null&&Z.data==="&"?Z:null,Z!==null&&(J.memoizedState={dehydrated:Z,treeContext:oZ!==null?{id:c7,overflow:p7}:null,retryLane:536870912,hydrationErrors:null},Y=iB(Z),Y.return=J,J.child=Y,g0=J,j0=null)):Z=null,Z===null)throw nZ(J);return J.lanes=536870912,null}return P8(J,X)}var q=Z.memoizedState;if(q!==null){var U=q.dehydrated;if(Lq(J),G)if(J.flags&256)J.flags&=-257,J=N1(Z,J,Y);else if(J.memoizedState!==null)J.child=Z.child,J.flags|=128,J=null;else throw Error(T(558));else if(C0||sJ(Z,J,Y,!1),G=(Y&Z.childLanes)!==0,C0||G){if(X=Q0,X!==null&&(U=DB(X,Y),U!==0&&U!==q.retryLane))throw q.retryLane=U,g6(Z,U),e0(X,Z,U),AU;q9(),J=N1(Z,J,Y)}else Z=q.treeContext,j0=T7(U.nextSibling),g0=J,a=!0,dZ=null,I7=!1,Z!==null&&rB(J,Z),J=P8(J,X),J.flags|=4096;return J}return Z=LZ(Z.child,{mode:X.mode,children:X.children}),Z.ref=J.ref,J.child=Z,Z.return=J,Z}function E8(Z,J){var Y=J.ref;if(Y===null)Z!==null&&Z.ref!==null&&(J.flags|=4194816);else{if(typeof Y!=="function"&&typeof Y!=="object")throw Error(T(284));if(Z===null||Z.ref!==Y)J.flags|=4194816}}function $q(Z,J,Y,X,G){if(S6(J),Y=zU(Z,J,Y,X,void 0,G),X=WU(),Z!==null&&!C0)return BU(Z,J,G),$Z(Z,J,G);return a&&X&&ZU(J),J.flags|=1,y0(Z,J,Y,G),J.child}function w1(Z,J,Y,X,G,q){if(S6(J),J.updateQueue=null,Y=GH(J,X,Y,G),XH(Z),X=WU(),Z!==null&&!C0)return BU(Z,J,q),$Z(Z,J,q);return a&&X&&ZU(J),J.flags|=1,y0(Z,J,Y,q),J.child}function R1(Z,J,Y,X,G){if(S6(J),J.stateNode===null){var q=_J,U=Y.contextType;typeof U==="object"&&U!==null&&(q=v0(U)),q=new Y(X,q),J.memoizedState=q.state!==null&&q.state!==void 0?q.state:null,q.updater=Vq,J.stateNode=q,q._reactInternals=J,q=J.stateNode,q.props=X,q.state=J.memoizedState,q.refs={},qU(J),U=Y.contextType,q.context=typeof U==="object"&&U!==null?v0(U):_J,q.state=J.memoizedState,U=Y.getDerivedStateFromProps,typeof U==="function"&&(NG(J,Y,U,X),q.state=J.memoizedState),typeof Y.getDerivedStateFromProps==="function"||typeof q.getSnapshotBeforeUpdate==="function"||typeof q.UNSAFE_componentWillMount!=="function"&&typeof q.componentWillMount!=="function"||(U=q.state,typeof q.componentWillMount==="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount==="function"&&q.UNSAFE_componentWillMount(),U!==q.state&&Vq.enqueueReplaceState(q,q.state,null),vY(J,X,q,G),gY(),q.state=J.memoizedState),typeof q.componentDidMount==="function"&&(J.flags|=4194308),X=!0}else if(Z===null){q=J.stateNode;var Q=J.memoizedProps,z=E6(Y,Q);q.props=z;var W=q.context,B=Y.contextType;U=_J,typeof B==="object"&&B!==null&&(U=v0(B));var H=Y.getDerivedStateFromProps;B=typeof H==="function"||typeof q.getSnapshotBeforeUpdate==="function",Q=J.pendingProps!==Q,B||typeof q.UNSAFE_componentWillReceiveProps!=="function"&&typeof q.componentWillReceiveProps!=="function"||(Q||W!==U)&&A1(J,q,X,U),SZ=!1;var j=J.memoizedState;q.state=j,vY(J,X,q,G),gY(),W=J.memoizedState,Q||j!==W||SZ?(typeof H==="function"&&(NG(J,Y,H,X),W=J.memoizedState),(z=SZ||$1(J,Y,z,X,j,W,U))?(B||typeof q.UNSAFE_componentWillMount!=="function"&&typeof q.componentWillMount!=="function"||(typeof q.componentWillMount==="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount==="function"&&q.UNSAFE_componentWillMount()),typeof q.componentDidMount==="function"&&(J.flags|=4194308)):(typeof q.componentDidMount==="function"&&(J.flags|=4194308),J.memoizedProps=X,J.memoizedState=W),q.props=X,q.state=W,q.context=U,X=z):(typeof q.componentDidMount==="function"&&(J.flags|=4194308),X=!1)}else{q=J.stateNode,Bq(Z,J),U=J.memoizedProps,B=E6(Y,U),q.props=B,H=J.pendingProps,j=q.context,W=Y.contextType,z=_J,typeof W==="object"&&W!==null&&(z=v0(W)),Q=Y.getDerivedStateFromProps,(W=typeof Q==="function"||typeof q.getSnapshotBeforeUpdate==="function")||typeof q.UNSAFE_componentWillReceiveProps!=="function"&&typeof q.componentWillReceiveProps!=="function"||(U!==H||j!==z)&&A1(J,q,X,z),SZ=!1,j=J.memoizedState,q.state=j,vY(J,X,q,G),gY();var L=J.memoizedState;U!==H||j!==L||SZ||Z!==null&&Z.dependencies!==null&&r8(Z.dependencies)?(typeof Q==="function"&&(NG(J,Y,Q,X),L=J.memoizedState),(B=SZ||$1(J,Y,B,X,j,L,z)||Z!==null&&Z.dependencies!==null&&r8(Z.dependencies))?(W||typeof q.UNSAFE_componentWillUpdate!=="function"&&typeof q.componentWillUpdate!=="function"||(typeof q.componentWillUpdate==="function"&&q.componentWillUpdate(X,L,z),typeof q.UNSAFE_componentWillUpdate==="function"&&q.UNSAFE_componentWillUpdate(X,L,z)),typeof q.componentDidUpdate==="function"&&(J.flags|=4),typeof q.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof q.componentDidUpdate!=="function"||U===Z.memoizedProps&&j===Z.memoizedState||(J.flags|=4),typeof q.getSnapshotBeforeUpdate!=="function"||U===Z.memoizedProps&&j===Z.memoizedState||(J.flags|=1024),J.memoizedProps=X,J.memoizedState=L),q.props=X,q.state=L,q.context=z,X=B):(typeof q.componentDidUpdate!=="function"||U===Z.memoizedProps&&j===Z.memoizedState||(J.flags|=4),typeof q.getSnapshotBeforeUpdate!=="function"||U===Z.memoizedProps&&j===Z.memoizedState||(J.flags|=1024),X=!1)}return q=X,E8(Z,J),X=(J.flags&128)!==0,q||X?(q=J.stateNode,Y=X&&typeof Y.getDerivedStateFromError!=="function"?null:q.render(),J.flags|=1,Z!==null&&X?(J.child=x6(J,Z.child,null,G),J.child=x6(J,null,Y,G)):y0(Z,J,Y,G),J.memoizedState=q.state,Z=J.child):Z=$Z(Z,J,G),Z}function k1(Z,J,Y,X){return C6(),J.flags|=256,y0(Z,J,Y,X),J.child}function RG(Z){return{baseLanes:Z,cachePool:oB()}}function kG(Z,J,Y){return Z=Z!==null?Z.childLanes&~Y:0,J&&(Z|=Q7),Z}function dH(Z,J,Y){var X=J.pendingProps,G=!1,q=(J.flags&128)!==0,U;if((U=q)||(U=Z!==null&&Z.memoizedState===null?!1:(_0.current&2)!==0),U&&(G=!0,J.flags&=-129),U=(J.flags&32)!==0,J.flags&=-33,Z===null){if(a){if(G?PZ(J):EZ(J),(Z=j0)?(Z=P2(Z,I7),Z=Z!==null&&Z.data!=="&"?Z:null,Z!==null&&(J.memoizedState={dehydrated:Z,treeContext:oZ!==null?{id:c7,overflow:p7}:null,retryLane:536870912,hydrationErrors:null},Y=iB(Z),Y.return=J,J.child=Y,g0=J,j0=null)):Z=null,Z===null)throw nZ(J);return hq(Z)?J.lanes=32:J.lanes=536870912,null}var Q=X.children;if(X=X.fallback,G)return EZ(J),G=J.mode,Q=J9({mode:"hidden",children:Q},G),X=w6(X,G,Y,null),Q.return=J,X.return=J,Q.sibling=X,J.child=Q,X=J.child,X.memoizedState=RG(Y),X.childLanes=kG(Z,U,Y),J.memoizedState=wG,bY(null,X);return PZ(J),Aq(J,Q)}var z=Z.memoizedState;if(z!==null&&(Q=z.dehydrated,Q!==null)){if(q)J.flags&256?(PZ(J),J.flags&=-257,J=bG(Z,J,Y)):J.memoizedState!==null?(EZ(J),J.child=Z.child,J.flags|=128,J=null):(EZ(J),Q=X.fallback,G=J.mode,X=J9({mode:"visible",children:X.children},G),Q=w6(Q,G,Y,null),Q.flags|=2,X.return=J,Q.return=J,X.sibling=Q,J.child=X,x6(J,Z.child,null,Y),X=J.child,X.memoizedState=RG(Y),X.childLanes=kG(Z,U,Y),J.memoizedState=wG,J=bY(null,X));else if(PZ(J),hq(Q)){if(U=Q.nextSibling&&Q.nextSibling.dataset,U)var W=U.dgst;U=W,X=Error(T(419)),X.stack="",X.digest=U,nY({value:X,source:null,stack:null}),J=bG(Z,J,Y)}else if(C0||sJ(Z,J,Y,!1),U=(Y&Z.childLanes)!==0,C0||U){if(U=Q0,U!==null&&(X=DB(U,Y),X!==0&&X!==z.retryLane))throw z.retryLane=X,g6(Z,X),e0(U,Z,X),AU;Eq(Q)||q9(),J=bG(Z,J,Y)}else Eq(Q)?(J.flags|=192,J.child=Z.child,J=null):(Z=z.treeContext,j0=T7(Q.nextSibling),g0=J,a=!0,dZ=null,I7=!1,Z!==null&&rB(J,Z),J=Aq(J,X.children),J.flags|=4096);return J}if(G)return EZ(J),Q=X.fallback,G=J.mode,z=Z.child,W=z.sibling,X=LZ(z,{mode:"hidden",children:X.children}),X.subtreeFlags=z.subtreeFlags&65011712,W!==null?Q=LZ(W,Q):(Q=w6(Q,G,Y,null),Q.flags|=2),Q.return=J,X.return=J,X.sibling=Q,J.child=X,bY(null,X),X=J.child,Q=Z.child.memoizedState,Q===null?Q=RG(Y):(G=Q.cachePool,G!==null?(z=b0._currentValue,G=G.parent!==z?{parent:z,pool:z}:G):G=oB(),Q={baseLanes:Q.baseLanes|Y,cachePool:G}),X.memoizedState=Q,X.childLanes=kG(Z,U,Y),J.memoizedState=wG,bY(Z.child,X);return PZ(J),Y=Z.child,Z=Y.sibling,Y=LZ(Y,{mode:"visible",children:X.children}),Y.return=J,Y.sibling=null,Z!==null&&(U=J.deletions,U===null?(J.deletions=[Z],J.flags|=16):U.push(Z)),J.child=Y,J.memoizedState=null,Y}function Aq(Z,J){return J=J9({mode:"visible",children:J},Z.mode),J.return=Z,Z.child=J}function J9(Z,J){return Z=U7(22,Z,null,J),Z.lanes=0,Z}function bG(Z,J,Y){return x6(J,Z.child,null,Y),Z=Aq(J,J.pendingProps.children),Z.flags|=2,J.memoizedState=null,Z}function b1(Z,J,Y){Z.lanes|=J;var X=Z.alternate;X!==null&&(X.lanes|=J),Qq(Z.return,J,Y)}function CG(Z,J,Y,X,G,q){var U=Z.memoizedState;U===null?Z.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:X,tail:Y,tailMode:G,treeForkCount:q}:(U.isBackwards=J,U.rendering=null,U.renderingStartTime=0,U.last=X,U.tail=Y,U.tailMode=G,U.treeForkCount=q)}function cH(Z,J,Y){var X=J.pendingProps,G=X.revealOrder,q=X.tail;X=X.children;var U=_0.current,Q=(U&2)!==0;if(Q?(U=U&1|2,J.flags|=128):U&=1,z0(_0,U),y0(Z,J,X,Y),X=a?oY:0,!Q&&Z!==null&&(Z.flags&128)!==0)Z:for(Z=J.child;Z!==null;){if(Z.tag===13)Z.memoizedState!==null&&b1(Z,Y,J);else if(Z.tag===19)b1(Z,Y,J);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===J)break Z;for(;Z.sibling===null;){if(Z.return===null||Z.return===J)break Z;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}switch(G){case"forwards":Y=J.child;for(G=null;Y!==null;)Z=Y.alternate,Z!==null&&n8(Z)===null&&(G=Y),Y=Y.sibling;Y=G,Y===null?(G=J.child,J.child=null):(G=Y.sibling,Y.sibling=null),CG(J,!1,G,Y,q,X);break;case"backwards":case"unstable_legacy-backwards":Y=null,G=J.child;for(J.child=null;G!==null;){if(Z=G.alternate,Z!==null&&n8(Z)===null){J.child=G;break}Z=G.sibling,G.sibling=Y,Y=G,G=Z}CG(J,!0,Y,null,q,X);break;case"together":CG(J,!1,null,null,void 0,X);break;default:J.memoizedState=null}return J.child}function $Z(Z,J,Y){if(Z!==null&&(J.dependencies=Z.dependencies),eZ|=J.lanes,(Y&J.childLanes)===0)if(Z!==null){if(sJ(Z,J,Y,!1),(Y&J.childLanes)===0)return null}else return null;if(Z!==null&&J.child!==Z.child)throw Error(T(153));if(J.child!==null){Z=J.child,Y=LZ(Z,Z.pendingProps),J.child=Y;for(Y.return=J;Z.sibling!==null;)Z=Z.sibling,Y=Y.sibling=LZ(Z,Z.pendingProps),Y.return=J;Y.sibling=null}return J.child}function OU(Z,J){if((Z.lanes&J)!==0)return!0;return Z=Z.dependencies,Z!==null&&r8(Z)?!0:!1}function eK(Z,J,Y){switch(J.tag){case 3:m8(J,J.stateNode.containerInfo),xZ(J,b0,Z.memoizedState.cache),C6();break;case 27:case 5:rG(J);break;case 4:m8(J,J.stateNode.containerInfo);break;case 10:xZ(J,J.type,J.memoizedProps.value);break;case 31:if(J.memoizedState!==null)return J.flags|=128,Lq(J),null;break;case 13:var X=J.memoizedState;if(X!==null){if(X.dehydrated!==null)return PZ(J),J.flags|=128,null;if((Y&J.child.childLanes)!==0)return dH(Z,J,Y);return PZ(J),Z=$Z(Z,J,Y),Z!==null?Z.sibling:null}PZ(J);break;case 19:var G=(Z.flags&128)!==0;if(X=(Y&J.childLanes)!==0,X||(sJ(Z,J,Y,!1),X=(Y&J.childLanes)!==0),G){if(X)return cH(Z,J,Y);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),z0(_0,_0.current),X)break;else return null;case 22:return J.lanes=0,mH(Z,J,Y,J.pendingProps);case 24:xZ(J,b0,Z.memoizedState.cache)}return $Z(Z,J,Y)}function pH(Z,J,Y){if(Z!==null)if(Z.memoizedProps!==J.pendingProps)C0=!0;else{if(!OU(Z,Y)&&(J.flags&128)===0)return C0=!1,eK(Z,J,Y);C0=(Z.flags&131072)!==0?!0:!1}else C0=!1,a&&(J.flags&1048576)!==0&&sB(J,oY,J.index);switch(J.lanes=0,J.tag){case 16:Z:{var X=J.pendingProps;if(Z=_6(J.elementType),J.type=Z,typeof Z==="function")eq(Z)?(X=E6(Z,X),J.tag=1,J=R1(null,J,Z,X,Y)):(J.tag=0,J=$q(null,J,Z,X,Y));else{if(Z!==void 0&&Z!==null){var G=Z.$$typeof;if(G===vq){J.tag=11,J=I1(null,J,Z,X,Y);break Z}else if(G===uq){J.tag=14,J=_1(null,J,Z,X,Y);break Z}}throw J=iG(Z)||Z,Error(T(306,J,""))}}return J;case 0:return $q(Z,J,J.type,J.pendingProps,Y);case 1:return X=J.type,G=E6(X,J.pendingProps),R1(Z,J,X,G,Y);case 3:Z:{if(m8(J,J.stateNode.containerInfo),Z===null)throw Error(T(387));X=J.pendingProps;var q=J.memoizedState;G=q.element,Bq(Z,J),vY(J,X,null,Y);var U=J.memoizedState;if(X=U.cache,xZ(J,b0,X),X!==q.cache&&zq(J,[b0],Y,!0),gY(),X=U.element,q.isDehydrated)if(q={element:X,isDehydrated:!1,cache:U.cache},J.updateQueue.baseState=q,J.memoizedState=q,J.flags&256){J=k1(Z,J,X,Y);break Z}else if(X!==G){G=O7(Error(T(424)),J),nY(G),J=k1(Z,J,X,Y);break Z}else{switch(Z=J.stateNode.containerInfo,Z.nodeType){case 9:Z=Z.body;break;default:Z=Z.nodeName==="HTML"?Z.ownerDocument.body:Z}j0=T7(Z.firstChild),g0=J,a=!0,dZ=null,I7=!0,Y=eB(J,null,X,Y);for(J.child=Y;Y;)Y.flags=Y.flags&-3|4096,Y=Y.sibling}else{if(C6(),X===G){J=$Z(Z,J,Y);break Z}y0(Z,J,X,Y)}J=J.child}return J;case 26:return E8(Z,J),Z===null?(Y=a1(J.type,null,J.pendingProps,null))?J.memoizedState=Y:a||(Y=J.type,Z=J.pendingProps,X=W9(mZ.current).createElement(Y),X[f0]=J,X[Z7]=Z,u0(X,Y,Z),P0(X),J.stateNode=X):J.memoizedState=a1(J.type,Z.memoizedProps,J.pendingProps,Z.memoizedState),null;case 27:return rG(J),Z===null&&a&&(X=J.stateNode=E2(J.type,J.pendingProps,mZ.current),g0=J,I7=!0,G=j0,J6(J.type)?(yq=G,j0=T7(X.firstChild)):j0=G),y0(Z,J,J.pendingProps.children,Y),E8(Z,J),Z===null&&(J.flags|=4194304),J.child;case 5:if(Z===null&&a){if(G=X=j0)X=R3(X,J.type,J.pendingProps,I7),X!==null?(J.stateNode=X,g0=J,j0=T7(X.firstChild),I7=!1,G=!0):G=!1;G||nZ(J)}return rG(J),G=J.type,q=J.pendingProps,U=Z!==null?Z.memoizedProps:null,X=q.children,xq(G,q)?X=null:U!==null&&xq(G,U)&&(J.flags|=32),J.memoizedState!==null&&(G=zU(Z,J,pK,null,null,Y),XX._currentValue=G),E8(Z,J),y0(Z,J,X,Y),J.child;case 6:if(Z===null&&a){if(Z=Y=j0)Y=k3(Y,J.pendingProps,I7),Y!==null?(J.stateNode=Y,g0=J,j0=null,Z=!0):Z=!1;Z||nZ(J)}return null;case 13:return dH(Z,J,Y);case 4:return m8(J,J.stateNode.containerInfo),X=J.pendingProps,Z===null?J.child=x6(J,null,X,Y):y0(Z,J,X,Y),J.child;case 11:return I1(Z,J,J.type,J.pendingProps,Y);case 7:return y0(Z,J,J.pendingProps,Y),J.child;case 8:return y0(Z,J,J.pendingProps.children,Y),J.child;case 12:return y0(Z,J,J.pendingProps.children,Y),J.child;case 10:return X=J.pendingProps,xZ(J,J.type,X.value),y0(Z,J,X.children,Y),J.child;case 9:return G=J.type._context,X=J.pendingProps.children,S6(J),G=v0(G),X=X(G),J.flags|=1,y0(Z,J,X,Y),J.child;case 14:return _1(Z,J,J.type,J.pendingProps,Y);case 15:return uH(Z,J,J.type,J.pendingProps,Y);case 19:return cH(Z,J,Y);case 31:return tK(Z,J,Y);case 22:return mH(Z,J,Y,J.pendingProps);case 24:return S6(J),X=v0(b0),Z===null?(G=XU(),G===null&&(G=Q0,q=YU(),G.pooledCache=q,q.refCount++,q!==null&&(G.pooledCacheLanes|=Y),G=q),J.memoizedState={parent:X,cache:G},qU(J),xZ(J,b0,G)):((Z.lanes&Y)!==0&&(Bq(Z,J),vY(J,null,null,Y),gY()),G=Z.memoizedState,q=J.memoizedState,G.parent!==X?(G={parent:X,cache:X},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),xZ(J,b0,X)):(X=q.cache,xZ(J,b0,X),X!==G.cache&&zq(J,[b0],Y,!0))),y0(Z,J,J.pendingProps.children,Y),J.child;case 29:throw J.pendingProps}throw Error(T(156,J.tag))}function GZ(Z){Z.flags|=4}function SG(Z,J,Y,X,G){if(J=(Z.mode&32)!==0)J=!1;if(J){if(Z.flags|=16777216,(G&335544128)===G)if(Z.stateNode.complete)Z.flags|=8192;else if(M2())Z.flags|=8192;else throw k6=a8,GU}else Z.flags&=-16777217}function C1(Z,J){if(J.type!=="stylesheet"||(J.state.loading&4)!==0)Z.flags&=-16777217;else if(Z.flags|=16777216,!f2(J))if(M2())Z.flags|=8192;else throw k6=a8,GU}function $8(Z,J){J!==null&&(Z.flags|=4),Z.flags&16384&&(J=Z.tag!==22?FB():536870912,Z.lanes|=J,uJ|=J)}function OY(Z,J){if(!a)switch(Z.tailMode){case"hidden":J=Z.tail;for(var Y=null;J!==null;)J.alternate!==null&&(Y=J),J=J.sibling;Y===null?Z.tail=null:Y.sibling=null;break;case"collapsed":Y=Z.tail;for(var X=null;Y!==null;)Y.alternate!==null&&(X=Y),Y=Y.sibling;X===null?J||Z.tail===null?Z.tail=null:Z.tail.sibling=null:X.sibling=null}}function H0(Z){var J=Z.alternate!==null&&Z.alternate.child===Z.child,Y=0,X=0;if(J)for(var G=Z.child;G!==null;)Y|=G.lanes|G.childLanes,X|=G.subtreeFlags&65011712,X|=G.flags&65011712,G.return=Z,G=G.sibling;else for(G=Z.child;G!==null;)Y|=G.lanes|G.childLanes,X|=G.subtreeFlags,X|=G.flags,G.return=Z,G=G.sibling;return Z.subtreeFlags|=X,Z.childLanes=Y,J}function Z3(Z,J,Y){var X=J.pendingProps;switch(JU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H0(J),null;case 1:return H0(J),null;case 3:if(Y=J.stateNode,X=null,Z!==null&&(X=Z.memoizedState.cache),J.memoizedState.cache!==X&&(J.flags|=2048),MZ(b0),EJ(),Y.pendingContext&&(Y.context=Y.pendingContext,Y.pendingContext=null),Z===null||Z.child===null)BJ(J)?GZ(J):Z===null||Z.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,IG());return H0(J),null;case 26:var{type:G,memoizedState:q}=J;return Z===null?(GZ(J),q!==null?(H0(J),C1(J,q)):(H0(J),SG(J,G,null,X,Y))):q?q!==Z.memoizedState?(GZ(J),H0(J),C1(J,q)):(H0(J),J.flags&=-16777217):(Z=Z.memoizedProps,Z!==X&&GZ(J),H0(J),SG(J,G,Z,X,Y)),null;case 27:if(d8(J),Y=mZ.current,G=J.type,Z!==null&&J.stateNode!=null)Z.memoizedProps!==X&&GZ(J);else{if(!X){if(J.stateNode===null)throw Error(T(166));return H0(J),null}Z=i7.current,BJ(J)?q1(J,Z):(Z=E2(G,X,Y),J.stateNode=Z,GZ(J))}return H0(J),null;case 5:if(d8(J),G=J.type,Z!==null&&J.stateNode!=null)Z.memoizedProps!==X&&GZ(J);else{if(!X){if(J.stateNode===null)throw Error(T(166));return H0(J),null}if(q=i7.current,BJ(J))q1(J,q);else{var U=W9(mZ.current);switch(q){case 1:q=U.createElementNS("http"+"://www.w3.org/2000/svg",G);break;case 2:q=U.createElementNS("http"+"://www.w3.org/1998/Math/MathML",G);break;default:switch(G){case"svg":q=U.createElementNS("http"+"://www.w3.org/2000/svg",G);break;case"math":q=U.createElementNS("http"+"://www.w3.org/1998/Math/MathML",G);break;case"script":q=U.createElement("div"),q.innerHTML="",q=q.removeChild(q.firstChild);break;case"select":q=typeof X.is==="string"?U.createElement("select",{is:X.is}):U.createElement("select"),X.multiple?q.multiple=!0:X.size&&(q.size=X.size);break;default:q=typeof X.is==="string"?U.createElement(G,{is:X.is}):U.createElement(G)}}q[f0]=J,q[Z7]=X;Z:for(U=J.child;U!==null;){if(U.tag===5||U.tag===6)q.appendChild(U.stateNode);else if(U.tag!==4&&U.tag!==27&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===J)break Z;for(;U.sibling===null;){if(U.return===null||U.return===J)break Z;U=U.return}U.sibling.return=U.return,U=U.sibling}J.stateNode=q;Z:switch(u0(q,G,X),G){case"button":case"input":case"select":case"textarea":X=!!X.autoFocus;break Z;case"img":X=!0;break Z;default:X=!1}X&&GZ(J)}}return H0(J),SG(J,J.type,Z===null?null:Z.memoizedProps,J.pendingProps,Y),null;case 6:if(Z&&J.stateNode!=null)Z.memoizedProps!==X&&GZ(J);else{if(typeof X!=="string"&&J.stateNode===null)throw Error(T(166));if(Z=mZ.current,BJ(J)){if(Z=J.stateNode,Y=J.memoizedProps,X=null,G=g0,G!==null)switch(G.tag){case 27:case 5:X=G.memoizedProps}Z[f0]=J,Z=Z.nodeValue===Y||X!==null&&X.suppressHydrationWarning===!0||C2(Z.nodeValue,Y)?!0:!1,Z||nZ(J,!0)}else Z=W9(Z).createTextNode(X),Z[f0]=J,J.stateNode=Z}return H0(J),null;case 31:if(Y=J.memoizedState,Z===null||Z.memoizedState!==null){if(X=BJ(J),Y!==null){if(Z===null){if(!X)throw Error(T(318));if(Z=J.memoizedState,Z=Z!==null?Z.dehydrated:null,!Z)throw Error(T(557));Z[f0]=J}else C6(),(J.flags&128)===0&&(J.memoizedState=null),J.flags|=4;H0(J),Z=!1}else Y=IG(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=Y),Z=!0;if(!Z){if(J.flags&256)return q7(J),J;return q7(J),null}if((J.flags&128)!==0)throw Error(T(558))}return H0(J),null;case 13:if(X=J.memoizedState,Z===null||Z.memoizedState!==null&&Z.memoizedState.dehydrated!==null){if(G=BJ(J),X!==null&&X.dehydrated!==null){if(Z===null){if(!G)throw Error(T(318));if(G=J.memoizedState,G=G!==null?G.dehydrated:null,!G)throw Error(T(317));G[f0]=J}else C6(),(J.flags&128)===0&&(J.memoizedState=null),J.flags|=4;H0(J),G=!1}else G=IG(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return q7(J),J;return q7(J),null}}if(q7(J),(J.flags&128)!==0)return J.lanes=Y,J;return Y=X!==null,Z=Z!==null&&Z.memoizedState!==null,Y&&(X=J.child,G=null,X.alternate!==null&&X.alternate.memoizedState!==null&&X.alternate.memoizedState.cachePool!==null&&(G=X.alternate.memoizedState.cachePool.pool),q=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(q=X.memoizedState.cachePool.pool),q!==G&&(X.flags|=2048)),Y!==Z&&Y&&(J.child.flags|=8192),$8(J,J.updateQueue),H0(J),null;case 4:return EJ(),Z===null&&kU(J.stateNode.containerInfo),H0(J),null;case 10:return MZ(J.type),H0(J),null;case 19:if(E0(_0),X=J.memoizedState,X===null)return H0(J),null;if(G=(J.flags&128)!==0,q=X.rendering,q===null)if(G)OY(X,!1);else{if(O0!==0||Z!==null&&(Z.flags&128)!==0)for(Z=J.child;Z!==null;){if(q=n8(Z),q!==null){J.flags|=128,OY(X,!1),Z=q.updateQueue,J.updateQueue=Z,$8(J,Z),J.subtreeFlags=0,Z=Y;for(Y=J.child;Y!==null;)lB(Y,Z),Y=Y.sibling;return z0(_0,_0.current&1|2),a&&zZ(J,X.treeForkCount),J.child}Z=Z.sibling}X.tail!==null&&z7()>X9&&(J.flags|=128,G=!0,OY(X,!1),J.lanes=4194304)}else{if(!G)if(Z=n8(q),Z!==null){if(J.flags|=128,G=!0,Z=Z.updateQueue,J.updateQueue=Z,$8(J,Z),OY(X,!0),X.tail===null&&X.tailMode==="hidden"&&!q.alternate&&!a)return H0(J),null}else 2*z7()-X.renderingStartTime>X9&&Y!==536870912&&(J.flags|=128,G=!0,OY(X,!1),J.lanes=4194304);X.isBackwards?(q.sibling=J.child,J.child=q):(Z=X.last,Z!==null?Z.sibling=q:J.child=q,X.last=q)}if(X.tail!==null)return Z=X.tail,X.rendering=Z,X.tail=Z.sibling,X.renderingStartTime=z7(),Z.sibling=null,Y=_0.current,z0(_0,G?Y&1|2:Y&1),a&&zZ(J,X.treeForkCount),Z;return H0(J),null;case 22:case 23:return q7(J),UU(),X=J.memoizedState!==null,Z!==null?Z.memoizedState!==null!==X&&(J.flags|=8192):X&&(J.flags|=8192),X?(Y&536870912)!==0&&(J.flags&128)===0&&(H0(J),J.subtreeFlags&6&&(J.flags|=8192)):H0(J),Y=J.updateQueue,Y!==null&&$8(J,Y.retryQueue),Y=null,Z!==null&&Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),X=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(X=J.memoizedState.cachePool.pool),X!==Y&&(J.flags|=2048),Z!==null&&E0(R6),null;case 24:return Y=null,Z!==null&&(Y=Z.memoizedState.cache),J.memoizedState.cache!==Y&&(J.flags|=2048),MZ(b0),H0(J),null;case 25:return null;case 30:return null}throw Error(T(156,J.tag))}function J3(Z,J){switch(JU(J),J.tag){case 1:return Z=J.flags,Z&65536?(J.flags=Z&-65537|128,J):null;case 3:return MZ(b0),EJ(),Z=J.flags,(Z&65536)!==0&&(Z&128)===0?(J.flags=Z&-65537|128,J):null;case 26:case 27:case 5:return d8(J),null;case 31:if(J.memoizedState!==null){if(q7(J),J.alternate===null)throw Error(T(340));C6()}return Z=J.flags,Z&65536?(J.flags=Z&-65537|128,J):null;case 13:if(q7(J),Z=J.memoizedState,Z!==null&&Z.dehydrated!==null){if(J.alternate===null)throw Error(T(340));C6()}return Z=J.flags,Z&65536?(J.flags=Z&-65537|128,J):null;case 19:return E0(_0),null;case 4:return EJ(),null;case 10:return MZ(J.type),null;case 22:case 23:return q7(J),UU(),Z!==null&&E0(R6),Z=J.flags,Z&65536?(J.flags=Z&-65537|128,J):null;case 24:return MZ(b0),null;case 25:return null;default:return null}}function lH(Z,J){switch(JU(J),J.tag){case 3:MZ(b0),EJ();break;case 26:case 27:case 5:d8(J);break;case 4:EJ();break;case 31:J.memoizedState!==null&&q7(J);break;case 13:q7(J);break;case 19:E0(_0);break;case 10:MZ(J.type);break;case 22:case 23:q7(J),UU(),Z!==null&&E0(R6);break;case 24:MZ(b0)}}function MX(Z,J){try{var Y=J.updateQueue,X=Y!==null?Y.lastEffect:null;if(X!==null){var G=X.next;Y=G;do{if((Y.tag&Z)===Z){X=void 0;var{create:q,inst:U}=Y;X=q(),U.destroy=X}Y=Y.next}while(Y!==G)}}catch(Q){G0(J,J.return,Q)}}function tZ(Z,J,Y){try{var X=J.updateQueue,G=X!==null?X.lastEffect:null;if(G!==null){var q=G.next;X=q;do{if((X.tag&Z)===Z){var U=X.inst,Q=U.destroy;if(Q!==void 0){U.destroy=void 0,G=J;var z=Y,W=Q;try{W()}catch(B){G0(G,z,B)}}}X=X.next}while(X!==q)}}catch(B){G0(J,J.return,B)}}function iH(Z){var J=Z.updateQueue;if(J!==null){var Y=Z.stateNode;try{JH(J,Y)}catch(X){G0(Z,Z.return,X)}}}function sH(Z,J,Y){Y.props=E6(Z.type,Z.memoizedProps),Y.state=Z.memoizedState;try{Y.componentWillUnmount()}catch(X){G0(Z,J,X)}}function mY(Z,J){try{var Y=Z.ref;if(Y!==null){switch(Z.tag){case 26:case 27:case 5:var X=Z.stateNode;break;case 30:X=Z.stateNode;break;default:X=Z.stateNode}typeof Y==="function"?Z.refCleanup=Y(X):Y.current=X}}catch(G){G0(Z,J,G)}}function l7(Z,J){var{ref:Y,refCleanup:X}=Z;if(Y!==null)if(typeof X==="function")try{X()}catch(G){G0(Z,J,G)}finally{Z.refCleanup=null,Z=Z.alternate,Z!=null&&(Z.refCleanup=null)}else if(typeof Y==="function")try{Y(null)}catch(G){G0(Z,J,G)}else Y.current=null}function rH(Z){var{type:J,memoizedProps:Y,stateNode:X}=Z;try{Z:switch(J){case"button":case"input":case"select":case"textarea":Y.autoFocus&&X.focus();break Z;case"img":Y.src?X.src=Y.src:Y.srcSet&&(X.srcset=Y.srcSet)}}catch(G){G0(Z,Z.return,G)}}function xG(Z,J,Y){try{var X=Z.stateNode;O3(X,Z.type,Y,J),X[Z7]=J}catch(G){G0(Z,Z.return,G)}}function aH(Z){return Z.tag===5||Z.tag===3||Z.tag===26||Z.tag===27&&J6(Z.type)||Z.tag===4}function PG(Z){Z:for(;;){for(;Z.sibling===null;){if(Z.return===null||aH(Z.return))return null;Z=Z.return}Z.sibling.return=Z.return;for(Z=Z.sibling;Z.tag!==5&&Z.tag!==6&&Z.tag!==18;){if(Z.tag===27&&J6(Z.type))continue Z;if(Z.flags&2)continue Z;if(Z.child===null||Z.tag===4)continue Z;else Z.child.return=Z,Z=Z.child}if(!(Z.flags&2))return Z.stateNode}}function Oq(Z,J,Y){var X=Z.tag;if(X===5||X===6)Z=Z.stateNode,J?(Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y).insertBefore(Z,J):(J=Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y,J.appendChild(Z),Y=Y._reactRootContainer,Y!==null&&Y!==void 0||J.onclick!==null||(J.onclick=HZ));else if(X!==4&&(X===27&&J6(Z.type)&&(Y=Z.stateNode,J=null),Z=Z.child,Z!==null))for(Oq(Z,J,Y),Z=Z.sibling;Z!==null;)Oq(Z,J,Y),Z=Z.sibling}function Y9(Z,J,Y){var X=Z.tag;if(X===5||X===6)Z=Z.stateNode,J?Y.insertBefore(Z,J):Y.appendChild(Z);else if(X!==4&&(X===27&&J6(Z.type)&&(Y=Z.stateNode),Z=Z.child,Z!==null))for(Y9(Z,J,Y),Z=Z.sibling;Z!==null;)Y9(Z,J,Y),Z=Z.sibling}function oH(Z){var{stateNode:J,memoizedProps:Y}=Z;try{for(var X=Z.type,G=J.attributes;G.length;)J.removeAttributeNode(G[0]);u0(J,X,Y),J[f0]=Z,J[Z7]=Y}catch(q){G0(Z,Z.return,q)}}function Y3(Z,J){if(Z=Z.containerInfo,Cq=L9,Z=fB(Z),oq(Z)){if("selectionStart"in Z)var Y={start:Z.selectionStart,end:Z.selectionEnd};else Z:{Y=(Y=Z.ownerDocument)&&Y.defaultView||window;var X=Y.getSelection&&Y.getSelection();if(X&&X.rangeCount!==0){Y=X.anchorNode;var{anchorOffset:G,focusNode:q}=X;X=X.focusOffset;try{Y.nodeType,q.nodeType}catch(V){Y=null;break Z}var U=0,Q=-1,z=-1,W=0,B=0,H=Z,j=null;J:for(;;){for(var L;;){if(H!==Y||G!==0&&H.nodeType!==3||(Q=U+G),H!==q||X!==0&&H.nodeType!==3||(z=U+X),H.nodeType===3&&(U+=H.nodeValue.length),(L=H.firstChild)===null)break;j=H,H=L}for(;;){if(H===Z)break J;if(j===Y&&++W===G&&(Q=U),j===q&&++B===X&&(z=U),(L=H.nextSibling)!==null)break;H=j,j=H.parentNode}H=L}Y=Q===-1||z===-1?null:{start:Q,end:z}}else Y=null}Y=Y||{start:0,end:0}}else Y=null;Sq={focusedElem:Z,selectionRange:Y},L9=!1;for(x0=J;x0!==null;)if(J=x0,Z=J.child,(J.subtreeFlags&1028)!==0&&Z!==null)Z.return=J,x0=Z;else for(;x0!==null;){switch(J=x0,q=J.alternate,Z=J.flags,J.tag){case 0:if((Z&4)!==0&&(Z=J.updateQueue,Z=Z!==null?Z.events:null,Z!==null))for(Y=0;Y title"));u0(q,X,Y),q[f0]=Z,P0(q),X=q;break Z;case"link":var U=n1("link","href",G).get(X+(Y.href||""));if(U){for(var Q=0;QA&&(U=A,A=V,V=U);var F=Y1(Q,V),M=Y1(Q,A);if(F&&M&&(L.rangeCount!==1||L.anchorNode!==F.node||L.anchorOffset!==F.offset||L.focusNode!==M.node||L.focusOffset!==M.offset)){var K=H.createRange();K.setStart(F.node,F.offset),L.removeAllRanges(),V>A?(L.addRange(K),L.extend(M.node,M.offset)):(K.setEnd(M.node,M.offset),L.addRange(K))}}}}H=[];for(L=Q;L=L.parentNode;)L.nodeType===1&&H.push({element:L,left:L.scrollLeft,top:L.scrollTop});typeof Q.focus==="function"&&Q.focus();for(Q=0;QY?32:Y,y.T=null,Y=Tq,Tq=null;var q=iZ,U=FZ;if(S0=0,mJ=iZ=null,FZ=0,(e&6)!==0)throw Error(T(331));var Q=e;if(e|=4,Q2(q.current),G2(q,q.current,U,Y),e=Q,FX(0,!1),W7&&typeof W7.onPostCommitFiberRoot==="function")try{W7.onPostCommitFiberRoot(QX,q)}catch(z){}return!0}finally{Z0.p=G,y.T=X,I2(Z,J)}}function h1(Z,J,Y){J=O7(Y,J),J=Dq(Z.stateNode,J,2),Z=pZ(Z,J,2),Z!==null&&(WX(Z,2),r7(Z))}function G0(Z,J,Y){if(Z.tag===3)h1(Z,Z,Y);else for(;J!==null;){if(J.tag===3){h1(J,Z,Y);break}else if(J.tag===1){var X=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof X.componentDidCatch==="function"&&(lZ===null||!lZ.has(X))){Z=O7(Y,Z),Y=gH(2),X=pZ(J,Y,2),X!==null&&(vH(Y,X,J,Z),WX(X,2),r7(X));break}}J=J.return}}function yG(Z,J,Y){var X=Z.pingCache;if(X===null){X=Z.pingCache=new q3;var G=new Set;X.set(J,G)}else G=X.get(J),G===void 0&&(G=new Set,X.set(J,G));G.has(Y)||(TU=!0,G.add(Y),Z=B3.bind(null,Z,J,Y),J.then(Z,Z))}function B3(Z,J,Y){var X=Z.pingCache;X!==null&&X.delete(J),Z.pingedLanes|=Z.suspendedLanes&Y,Z.warmLanes&=~Y,Q0===Z&&(i&Y)===Y&&(O0===4||O0===3&&(i&62914560)===i&&300>z7()-w9?(e&2)===0&&dJ(Z,0):NU|=Y,uJ===i&&(uJ=0)),r7(Z)}function T2(Z,J){J===0&&(J=FB()),Z=g6(Z,J),Z!==null&&(WX(Z,J),r7(Z))}function H3(Z){var J=Z.memoizedState,Y=0;J!==null&&(Y=J.retryLane),T2(Z,Y)}function j3(Z,J){var Y=0;switch(Z.tag){case 31:case 13:var{stateNode:X,memoizedState:G}=Z;G!==null&&(Y=G.retryLane);break;case 19:X=Z.stateNode;break;case 22:X=Z.stateNode._retryCache;break;default:throw Error(T(314))}X!==null&&X.delete(J),T2(Z,Y)}function L3(Z,J){return mq(Z,J)}function r7(Z){Z!==LJ&&Z.next===null&&(LJ===null?U9=LJ=Z:LJ=LJ.next=Z),Q9=!0,wq||(wq=!0,F3())}function FX(Z,J){if(!fG&&Q9){fG=!0;do{var Y=!1;for(var X=U9;X!==null;){if(!J)if(Z!==0){var G=X.pendingLanes;if(G===0)var q=0;else{var{suspendedLanes:U,pingedLanes:Q}=X;q=(1<<31-B7(42|Z)+1)-1,q&=G&~(U&~Q),q=q&201326741?q&201326741|1:q?q|2:0}q!==0&&(Y=!0,y1(X,q))}else q=i,q=F9(X,X===Q0?q:0,X.cancelPendingCommit!==null||X.timeoutHandle!==-1),(q&3)===0||zX(X,q)||(Y=!0,y1(X,q));X=X.next}}while(Y);fG=!1}}function M3(){N2()}function N2(){Q9=wq=!1;var Z=0;uZ!==0&&_3()&&(Z=uZ);for(var J=z7(),Y=null,X=U9;X!==null;){var G=X.next,q=w2(X,J);if(q===0)X.next=null,Y===null?U9=G:Y.next=G,G===null&&(LJ=Y);else if(Y=X,Z!==0||(q&3)!==0)Q9=!0;X=G}S0!==0&&S0!==5||FX(Z,!1),uZ!==0&&(uZ=0)}function w2(Z,J){for(var{suspendedLanes:Y,pingedLanes:X,expirationTimes:G}=Z,q=Z.pendingLanes&-62914561;0Q)break;var{transferSize:B,initiatorType:H}=z;B&&m1(H)&&(z=z.responseEnd,U+=B*(z title"):null)}function u3(Z,J,Y){if(Y===1||J.itemProp!=null)return!1;switch(Z){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href==="")break;return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError)break;switch(J.rel){case"stylesheet":return Z=J.disabled,typeof J.precedence==="string"&&Z==null;default:return!0}case"script":if(J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol"&&!J.onLoad&&!J.onError&&J.src&&typeof J.src==="string")return!0}return!1}function f2(Z){return Z.type==="stylesheet"&&(Z.state.loading&3)===0?!1:!0}function m3(Z,J,Y,X){if(Y.type==="stylesheet"&&(typeof X.media!=="string"||matchMedia(X.media).matches!==!1)&&(Y.state.loading&4)===0){if(Y.instance===null){var G=cJ(X.href),q=J.querySelector(KX(G));if(q){J=q._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(Z.count++,Z=H9.bind(Z),J.then(Z,Z)),Y.state.loading|=4,Y.instance=q,P0(q);return}q=J.ownerDocument||J,X=y2(X),(G=N7.get(G))&&bU(X,G),q=q.createElement("link"),P0(q);var U=q;U._p=new Promise(function(Q,z){U.onload=Q,U.onerror=z}),u0(q,"link",X),Y.instance=q}Z.stylesheets===null&&(Z.stylesheets=new Map),Z.stylesheets.set(Y,J),(J=Y.state.preload)&&(Y.state.loading&3)===0&&(Z.count++,Y=H9.bind(Z),J.addEventListener("load",Y),J.addEventListener("error",Y))}}function d3(Z,J){return Z.stylesheets&&Z.count===0&&g8(Z,Z.stylesheets),0mG?50:800)+J);return Z.unsuspend=Y,function(){Z.unsuspend=null,clearTimeout(X),clearTimeout(G)}}:null}function H9(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)g8(this,this.stylesheets);else if(this.unsuspend){var Z=this.unsuspend;this.unsuspend=null,Z()}}}function g8(Z,J){Z.stylesheets=null,Z.unsuspend!==null&&(Z.count++,j9=new Map,J.forEach(c3,Z),j9=null,H9.call(Z))}function c3(Z,J){if(!(J.state.loading&4)){var Y=j9.get(Z);if(Y)var X=Y.get(null);else{Y=new Map,j9.set(Z,Y);for(var G=Z.querySelectorAll("link[data-precedence],style[data-precedence]"),q=0;q{hW();m();qB=m6(i6(),1);L0=Object.assign,kF=Symbol.for("react.element"),B8=Symbol.for("react.transitional.element"),TY=Symbol.for("react.portal"),FJ=Symbol.for("react.fragment"),BB=Symbol.for("react.strict_mode"),dG=Symbol.for("react.profiler"),HB=Symbol.for("react.consumer"),BZ=Symbol.for("react.context"),vq=Symbol.for("react.forward_ref"),cG=Symbol.for("react.suspense"),pG=Symbol.for("react.suspense_list"),uq=Symbol.for("react.memo"),CZ=Symbol.for("react.lazy"),lG=Symbol.for("react.activity"),bF=Symbol.for("react.memo_cache_sentinel"),fW=Symbol.iterator;CF=Symbol.for("react.client.reference");NY=Array.isArray,y=l6,Z0=qB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N6={pending:!1,data:null,method:null,action:null},sG=[];i7=s7(null),iY=s7(null),mZ=s7(null),u8=s7(null);aG=Object.prototype.hasOwnProperty,mq=WJ,LG=UG,xF=WG,PF=zG,z7=d7,EF=QG,jB=XG,LB=qG,c8=zJ,hF=GG,MB=YG,yF=void 0,fF=void 0;B7=Math.clz32?Math.clz32:uF,gF=Math.log,vF=Math.LN2;Z6=Math.random().toString(36).slice(2),f0="__reactFiber$"+Z6,Z7="__reactProps$"+Z6,lJ="__reactContainer$"+Z6,oG="__reactEvents$"+Z6,cF="__reactListeners$"+Z6,pF="__reactHandles$"+Z6,mW="__reactResources$"+Z6,BX="__reactMarker$"+Z6;AB=new Set,OB={};lF=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]*$"),dW={},cW={};rF=/[\n"\\]/g;aF=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(" "));oF=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"]]),nF=/^[\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;KZ=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(KZ)try{I6={},Object.defineProperty(I6,"passive",{get:function(){Jq=!0}}),window.addEventListener("test",I6,I6),window.removeEventListener("test",I6,I6)}catch(Z){Jq=!1}y6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(Z){return Z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},K9=J7(y6),HX=L0({},y6,{view:0,detail:0}),tF=J7(HX),V9=L0({},HX,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rq,button:0,buttons:0,relatedTarget:function(Z){return Z.relatedTarget===void 0?Z.fromElement===Z.srcElement?Z.toElement:Z.fromElement:Z.relatedTarget},movementX:function(Z){if("movementX"in Z)return Z.movementX;return Z!==$Y&&($Y&&Z.type==="mousemove"?(KG=Z.screenX-$Y.screenX,VG=Z.screenY-$Y.screenY):VG=KG=0,$Y=Z),KG},movementY:function(Z){return"movementY"in Z?Z.movementY:VG}}),sW=J7(V9),eF=L0({},V9,{dataTransfer:0}),ZK=J7(eF),JK=L0({},HX,{relatedTarget:0}),DG=J7(JK),YK=L0({},y6,{animationName:0,elapsedTime:0,pseudoElement:0}),XK=J7(YK),GK=L0({},y6,{clipboardData:function(Z){return"clipboardData"in Z?Z.clipboardData:window.clipboardData}}),qK=J7(GK),UK=L0({},y6,{data:0}),rW=J7(UK),QK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zK={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"},WK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};HK=L0({},HX,{key:function(Z){if(Z.key){var J=QK[Z.key]||Z.key;if(J!=="Unidentified")return J}return Z.type==="keypress"?(Z=R8(Z),Z===13?"Enter":String.fromCharCode(Z)):Z.type==="keydown"||Z.type==="keyup"?zK[Z.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rq,charCode:function(Z){return Z.type==="keypress"?R8(Z):0},keyCode:function(Z){return Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0},which:function(Z){return Z.type==="keypress"?R8(Z):Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0}}),jK=J7(HK),LK=L0({},V9,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aW=J7(LK),MK=L0({},HX,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rq}),FK=J7(MK),KK=L0({},y6,{propertyName:0,elapsedTime:0,pseudoElement:0}),VK=J7(KK),DK=L0({},V9,{deltaX:function(Z){return"deltaX"in Z?Z.deltaX:("wheelDeltaX"in Z)?-Z.wheelDeltaX:0},deltaY:function(Z){return"deltaY"in Z?Z.deltaY:("wheelDeltaY"in Z)?-Z.wheelDeltaY:("wheelDelta"in Z)?-Z.wheelDelta:0},deltaZ:0,deltaMode:0}),$K=J7(DK),AK=L0({},y6,{newState:0,oldState:0}),OK=J7(AK),IK=[9,13,27,32],aq=KZ&&"CompositionEvent"in window;KZ&&"documentMode"in document&&(PY=document.documentMode);_K=KZ&&"TextEvent"in window&&!PY,CB=KZ&&(!aq||PY&&8=PY),oW=String.fromCharCode(32);wK={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};if(KZ){if(KZ){if(kY="oninput"in document,!kY)k8=document.createElement("div"),k8.setAttribute("oninput","return;"),kY=typeof k8.oninput==="function";RY=kY}else RY=!1;EB=RY&&(!document.documentMode||9=document.documentMode;OJ={animationend:$6("Animation","AnimationEnd"),animationiteration:$6("Animation","AnimationIteration"),animationstart:$6("Animation","AnimationStart"),transitionrun:$6("Transition","TransitionRun"),transitionstart:$6("Transition","TransitionStart"),transitioncancel:$6("Transition","TransitionCancel"),transitionend:$6("Transition","TransitionEnd")},$G={},gB={};KZ&&(gB=document.createElement("div").style,("AnimationEvent"in window)||(delete OJ.animationend.animation,delete OJ.animationiteration.animation,delete OJ.animationstart.animation),("TransitionEvent"in window)||delete OJ.transitionend.transition);vB=f6("animationend"),uB=f6("animationiteration"),mB=f6("animationstart"),EK=f6("transitionrun"),hK=f6("transitionstart"),yK=f6("transitioncancel"),dB=f6("transitionend"),cB=new Map,Gq="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(" ");Gq.push("scrollEnd");l8=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},K7=[];_J={};G1=new WeakMap;TJ=[],D7=[];qq=Error(T(519));Uq=s7(null);gK=typeof AbortController<"u"?AbortController:function(){var Z=[],J=this.signal={aborted:!1,addEventListener:function(Y,X){Z.push(X)}};this.abort=function(){J.aborted=!0,Z.forEach(function(Y){return Y()})}},vK=WJ,uK=zJ,b0={$$typeof:BZ,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};z1=y.S;y.S=function(Z,J){W2=z7(),typeof J==="object"&&J!==null&&typeof J.then==="function"&&mK(Z,J),z1!==null&&z1(Z,J)};R6=s7(null);rJ=Error(T(460)),GU=Error(T(474)),O9=Error(T(542)),a8={then:function(){}};x6=tB(!0),eB=tB(!1);gJ=s7(null),o8=s7(0);L7=s7(null);_0=s7(0);ZX={readContext:v0,use:_9,useCallback:A0,useContext:A0,useEffect:A0,useImperativeHandle:A0,useLayoutEffect:A0,useInsertionEffect:A0,useMemo:A0,useReducer:A0,useRef:A0,useState:A0,useDebugValue:A0,useDeferredValue:A0,useTransition:A0,useSyncExternalStore:A0,useId:A0,useHostTransitionStatus:A0,useFormState:A0,useActionState:A0,useOptimistic:A0,useMemoCache:A0,useCacheRefresh:A0};ZX.useEffectEvent=A0;PH={readContext:v0,use:_9,useCallback:function(Z,J){return i0().memoizedState=[Z,J===void 0?null:J],Z},useContext:v0,useEffect:D1,useImperativeHandle:function(Z,J,Y){Y=Y!==null&&Y!==void 0?Y.concat([Z]):null,x8(4194308,4,AH.bind(null,J,Z),Y)},useLayoutEffect:function(Z,J){return x8(4194308,4,Z,J)},useInsertionEffect:function(Z,J){x8(4,2,Z,J)},useMemo:function(Z,J){var Y=i0();J=J===void 0?null:J;var X=Z();if(P6){yZ(!0);try{Z()}finally{yZ(!1)}}return Y.memoizedState=[X,J],X},useReducer:function(Z,J,Y){var X=i0();if(Y!==void 0){var G=Y(J);if(P6){yZ(!0);try{Y(J)}finally{yZ(!1)}}}else G=J;return X.memoizedState=X.baseState=G,Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z,lastRenderedState:G},X.queue=Z,Z=Z.dispatch=oK.bind(null,g,Z),[X.memoizedState,Z]},useRef:function(Z){var J=i0();return Z={current:Z},J.memoizedState=Z},useState:function(Z){Z=Mq(Z);var J=Z.queue,Y=CH.bind(null,g,J);return J.dispatch=Y,[Z.memoizedState,Y]},useDebugValue:FU,useDeferredValue:function(Z,J){var Y=i0();return KU(Y,Z,J)},useTransition:function(){var Z=Mq(!1);return Z=NH.bind(null,g,Z.queue,!0,!1),i0().memoizedState=Z,[!1,Z]},useSyncExternalStore:function(Z,J,Y){var X=g,G=i0();if(a){if(Y===void 0)throw Error(T(407));Y=Y()}else{if(Y=J(),Q0===null)throw Error(T(349));(i&127)!==0||UH(X,J,Y)}G.memoizedState=Y;var q={value:Y,getSnapshot:J};return G.queue=q,D1(zH.bind(null,X,q,Z),[Z]),X.flags|=2048,vJ(9,{destroy:void 0},QH.bind(null,X,q,Y,J),null),Y},useId:function(){var Z=i0(),J=Q0.identifierPrefix;if(a){var Y=p7,X=c7;Y=(X&~(1<<32-B7(X)-1)).toString(32)+Y,J="_"+J+"R_"+Y,Y=e8++,0"u"?null:document;XX={$$typeof:BZ,Provider:null,Consumer:null,_currentValue:N6,_currentValue2:N6,_threadCount:0};GX=new Map,qX=new Map,hZ=[],s3="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(" ");C9.prototype.render=EU.prototype.render=function(Z){var J=this._internalRoot;if(J===null)throw Error(T(409));var Y=J.current,X=H7();u2(Y,X,Z,J,null,null)};C9.prototype.unmount=EU.prototype.unmount=function(){var Z=this._internalRoot;if(Z!==null){this._internalRoot=null;var J=Z.containerInfo;u2(Z.current,2,null,Z,null,null),R9(),J[lJ]=null}};C9.prototype.unstable_scheduleHydration=function(Z){if(Z){var J=$B();Z={blockedOn:null,target:Z,priority:J};for(var Y=0;Y{r2();function a2(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a2)}catch(Z){console.error(Z)}}a2(),o2.exports=hU});m();var X7={};d6(X7,{unstable_SelectProvider:()=>R4,unstable_SelectBubbleInput:()=>b4,unstable_Provider:()=>R4,unstable_BubbleInput:()=>b4,createSelectScope:()=>IM,Viewport:()=>l5,Value:()=>y5,Trigger:()=>E5,Separator:()=>GW,SelectViewport:()=>l5,SelectValue:()=>y5,SelectTrigger:()=>E5,SelectSeparator:()=>GW,SelectScrollUpButton:()=>JW,SelectScrollDownButton:()=>YW,SelectPortal:()=>v5,SelectLabel:()=>a5,SelectItemText:()=>t5,SelectItemIndicator:()=>ZW,SelectItem:()=>n5,SelectIcon:()=>f5,SelectGroup:()=>s5,SelectContent:()=>u5,SelectArrow:()=>UW,Select:()=>x5,ScrollUpButton:()=>JW,ScrollDownButton:()=>YW,Root:()=>x5,Portal:()=>v5,Label:()=>a5,ItemText:()=>t5,ItemIndicator:()=>ZW,Item:()=>n5,Icon:()=>f5,Group:()=>s5,Content:()=>u5,Arrow:()=>UW});var w4=m6(i6(),1);function s6(Z,[J,Y]){return Math.min(Y,Math.max(J,Z))}var GV=!!(typeof window<"u"&&window.document&&window.document.createElement);function l(Z,J,{checkForDefaultPrevented:Y=!0}={}){return function(G){if(Z?.(G),Y===!1||!G||!G.defaultPrevented)return J?.(G)}}m();m();var wj=Symbol.for("react.transitional.element"),Rj=Symbol.for("react.fragment");function gQ(Z,J,Y){var X=null;if(Y!==void 0&&(X=""+Y),J.key!==void 0&&(X=""+J.key),"key"in J){Y={};for(var G in J)G!=="key"&&(Y[G]=J[G])}else Y=J;return J=Y.ref,{$$typeof:wj,type:Z,key:X,ref:J!==void 0?J:null,props:Y}}var G6=Rj,_=gQ,h0=gQ;function y7(Z,J=[]){let Y=[];function X(q,U){let Q=n7(U);Q.displayName=q+"Context";let z=Y.length;Y=[...Y,U];let W=(H)=>{let{scope:j,children:L,...D}=H,V=j?.[Z]?.[z]||Q,A=F0(()=>D,Object.values(D));return _(V.Provider,{value:A,children:L})};W.displayName=q+"Provider";function B(H,j,L={}){let{optional:D=!1}=L,V=j?.[Z]?.[z]||Q,A=t7(V);if(A)return A;if(U!==void 0)return U;if(D)return;throw Error(`\`${H}\` must be used within \`${q}\``)}return[W,B]}let G=()=>{let q=Y.map((U)=>{return n7(U)});return function(Q){let z=Q?.[Z]||q;return F0(()=>({[`__scope${Z}`]:{...Q,[Z]:z}}),[Q,z])}};return G.scopeName=Z,[X,kj(G,...J)]}function kj(...Z){let J=Z[0];if(Z.length===1)return J;let Y=()=>{let X=Z.map((G)=>({useScope:G(),scopeName:G.scopeName}));return function(q){let U=X.reduce((Q,{useScope:z,scopeName:W})=>{let H=z(q)[`__scope${W}`];return{...Q,...H}},{});return F0(()=>({[`__scope${J.scopeName}`]:U}),[U])}};return Y.scopeName=J.scopeName,Y}m();function vQ(Z,J){if(typeof Z==="function")return Z(J);else if(Z!==null&&Z!==void 0)Z.current=J}function bj(...Z){return(J)=>{let Y=!1,X=Z.map((G)=>{let q=vQ(G,J);if(!Y&&typeof q=="function")Y=!0;return q});if(Y)return()=>{for(let G=0;G{let{children:G,...q}=Y,U=null,Q=!1,z=[];if(uQ(G)&&typeof IX==="function")G=IX(G._payload);if(o7.forEach(G,(j)=>{if(Pj(j)){Q=!0;let L=j,D="child"in L.props?L.props.child:L.props.children;if(uQ(D)&&typeof IX==="function")D=IX(D._payload);U=Cj(L,D),z.push(U?.props?.children)}else z.push(j)}),U)U=h7(U,void 0,z);else if(!Q&&o7.count(G)===1&&X6(G))U=G;let W=U?xj(U):void 0,B=o(X,W);if(!U){if(G||G===0)throw Error(Q?fj(Z):yj(Z));return G}let H=Sj(q,U.props??{});if(U.type!==E7)H.ref=X?B:W;return h7(U,H)});return J.displayName=`${Z}.Slot`,J}var mQ=Symbol.for("radix.slottable");function dQ(Z){let J=(Y)=>("child"in Y)?Y.children(Y.child):Y.children;return J.displayName=`${Z}.Slottable`,J.__radixId=mQ,J}var Cj=(Z,J)=>{if("child"in Z.props){let Y=Z.props.child;if(!X6(Y))return null;return h7(Y,void 0,Z.props.children(Y.props.children))}return X6(J)?J:null};function Sj(Z,J){let Y={...J};for(let X in J){let G=Z[X],q=J[X];if(/^on[A-Z]/.test(X)){if(G&&q)Y[X]=(...Q)=>{let z=q(...Q);return G(...Q),z};else if(G)Y[X]=G}else if(X==="style")Y[X]={...G,...q};else if(X==="className")Y[X]=[G,q].filter(Boolean).join(" ")}return{...Z,...Y}}function xj(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}function Pj(Z){return X6(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===mQ}var Ej=Symbol.for("react.lazy");function uQ(Z){return Z!=null&&typeof Z==="object"&&"$$typeof"in Z&&Z.$$typeof===Ej&&"_payload"in Z&&hj(Z._payload)}function hj(Z){return typeof Z==="object"&&Z!==null&&"then"in Z}var yj=(Z)=>{return`${Z} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`},fj=(Z)=>{return`${Z} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`},IX=u[" use ".trim().toString()];m();function _X(Z){let J=Z+"CollectionProvider",[Y,X]=y7(J),[G,q]=Y(J,{collectionRef:{current:null},itemMap:new Map}),U=(V)=>{let{scope:A,children:F}=V,M=R(null),K=R(new Map).current;return _(G,{scope:A,itemMap:K,collectionRef:M,children:F})};U.displayName=J;let Q=Z+"CollectionSlot",z=q6(Q),W=C((V,A)=>{let{scope:F,children:M}=V,K=q(Q,F),$=o(A,K.collectionRef);return _(z,{ref:$,children:M})});W.displayName=Q;let B=Z+"CollectionItemSlot",H="data-radix-collection-item",j=q6(B),L=C((V,A)=>{let{scope:F,children:M,...K}=V,$=R(null),O=o(A,$),N=q(B,F);return P(()=>{return N.itemMap.set($,{ref:$,...K}),()=>void N.itemMap.delete($)}),_(j,{...{[H]:""},ref:O,children:M})});L.displayName=B;function D(V){let A=q(Z+"CollectionConsumer",V);return E(()=>{let M=A.collectionRef.current;if(!M)return[];let K=Array.from(M.querySelectorAll(`[${H}]`));return Array.from(A.itemMap.values()).sort((N,I)=>K.indexOf(N.ref.current)-K.indexOf(I.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:U,Slot:W,ItemSlot:L},D,X]}var cQ=new WeakMap,KV=class Z extends Map{#Z;constructor(J){super(J);this.#Z=[...super.keys()],cQ.set(this,!0)}set(J,Y){if(cQ.get(this))if(this.has(J))this.#Z[this.#Z.indexOf(J)]=J;else this.#Z.push(J);return super.set(J,Y),this}insert(J,Y,X){let G=this.has(Y),q=this.#Z.length,U=pQ(J),Q=U>=0?U:q+U,z=Q<0||Q>=q?-1:Q;if(z===this.size||G&&z===this.size-1||z===-1)return this.set(Y,X),this;let W=this.size+(G?0:1);if(U<0)Q++;let B=[...this.#Z],H,j=!1;for(let L=Q;L=this.size)G=this.size-1;return this.at(G)}keyFrom(J,Y){let X=this.indexOf(J);if(X===-1)return;let G=X+Y;if(G<0)G=0;if(G>=this.size)G=this.size-1;return this.keyAt(G)}find(J,Y){let X=0;for(let G of this){if(Reflect.apply(J,Y,[G,X,this]))return G;X++}return}findIndex(J,Y){let X=0;for(let G of this){if(Reflect.apply(J,Y,[G,X,this]))return X;X++}return-1}filter(J,Y){let X=[],G=0;for(let q of this){if(Reflect.apply(J,Y,[q,G,this]))X.push(q);G++}return new Z(X)}map(J,Y){let X=[],G=0;for(let q of this)X.push([q[0],Reflect.apply(J,Y,[q,G,this])]),G++;return new Z(X)}reduce(...J){let[Y,X]=J,G=0,q=X??this.at(0);for(let U of this){if(G===0&&J.length===1)q=U;else q=Reflect.apply(Y,this,[q,U,G,this]);G++}return q}reduceRight(...J){let[Y,X]=J,G=X??this.at(-1);for(let q=this.size-1;q>=0;q--){let U=this.at(q);if(q===this.size-1&&J.length===1)G=U;else G=Reflect.apply(Y,this,[G,U,q,this])}return G}toSorted(J){let Y=[...this.entries()].sort(J);return new Z(Y)}toReversed(){let J=new Z;for(let Y=this.size-1;Y>=0;Y--){let X=this.keyAt(Y),G=this.get(X);J.set(X,G)}return J}toSpliced(...J){let Y=[...this.entries()];return Y.splice(...J),new Z(Y)}slice(J,Y){let X=new Z,G=this.size-1;if(J===void 0)return X;if(J<0)J=J+this.size;if(Y!==void 0&&Y>0)G=Y-1;for(let q=J;q<=G;q++){let U=this.keyAt(q),Q=this.get(U);X.set(U,Q)}return X}every(J,Y){let X=0;for(let G of this){if(!Reflect.apply(J,Y,[G,X,this]))return!1;X++}return!0}some(J,Y){let X=0;for(let G of this){if(Reflect.apply(J,Y,[G,X,this]))return!0;X++}return!1}};function c9(Z,J){if("at"in Array.prototype)return Array.prototype.at.call(Z,J);let Y=gj(Z,J);return Y===-1?void 0:Z[Y]}function gj(Z,J){let Y=Z.length,X=pQ(J),G=X>=0?X:Y+X;return G<0||G>=Y?-1:G}function pQ(Z){return Z!==Z||Z===0?0:Math.trunc(Z)}m();var vj=n7(void 0);function TX(Z){let J=t7(vj);return Z||J||"ltr"}m();m();var lQ=m6(i6(),1);var uj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],d=uj.reduce((Z,J)=>{let Y=q6(`Primitive.${J}`),X=C((G,q)=>{let{asChild:U,...Q}=G,z=U?Y:J;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return _(z,{...Q,ref:q})});return X.displayName=`Primitive.${J}`,{...Z,[J]:X}},{});function iQ(Z,J){if(Z)lQ.flushSync(()=>Z.dispatchEvent(J))}m();function Y7(Z){let J=R(Z);return P(()=>{J.current=Z}),F0(()=>(...Y)=>J.current?.(...Y),[])}var mj="DismissableLayer",p9="dismissableLayer.update",dj="dismissableLayer.pointerDownOutside",cj="dismissableLayer.focusOutside",sQ,aQ=n7({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ZY=C((Z,J)=>{let{disableOutsidePointerEvents:Y=!1,deferPointerDownOutside:X=!1,onEscapeKeyDown:G,onPointerDownOutside:q,onFocusOutside:U,onInteractOutside:Q,onDismiss:z,...W}=Z,B=t7(aQ),[H,j]=S(null),L=H?.ownerDocument??globalThis?.document,[,D]=S({}),V=o(J,j),A=Array.from(B.layers),[F]=[...B.layersWithOutsidePointerEventsDisabled].slice(-1),M=F?A.indexOf(F):-1,K=H?A.indexOf(H):-1,$=B.layersWithOutsidePointerEventsDisabled.size>0,O=K>=M,N=R(!1),I=sj((x)=>{if(q?.(x),Q?.(x),!x.defaultPrevented)z?.()},{ownerDocument:L,deferPointerDownOutside:X,isDeferredPointerDownOutsideRef:N,dismissableSurfaces:B.dismissableSurfaces,shouldHandlePointerDownOutside:E((x)=>{if(!(x instanceof Node))return!1;let n=[...B.branches].some((s)=>s.contains(x));return O&&!n},[B.branches,O])}),w=rj((x)=>{if(X&&N.current)return;let n=x.target;if([...B.branches].some((J0)=>J0.contains(n)))return;if(U?.(x),Q?.(x),!x.defaultPrevented)z?.()},L),b=H?K===A.length-1:!1,k=Y7((x)=>{if(x.key!=="Escape")return;if(G?.(x),!x.defaultPrevented&&z)x.preventDefault(),z()});return P(()=>{if(!b)return;return L.addEventListener("keydown",k,{capture:!0}),()=>L.removeEventListener("keydown",k,{capture:!0})},[L,b,k]),P(()=>{if(!H)return;if(Y){if(B.layersWithOutsidePointerEventsDisabled.size===0)sQ=L.body.style.pointerEvents,L.body.style.pointerEvents="none";B.layersWithOutsidePointerEventsDisabled.add(H)}return B.layers.add(H),rQ(),()=>{if(Y){if(B.layersWithOutsidePointerEventsDisabled.delete(H),B.layersWithOutsidePointerEventsDisabled.size===0)L.body.style.pointerEvents=sQ}}},[H,L,Y,B]),P(()=>{return()=>{if(!H)return;B.layers.delete(H),B.layersWithOutsidePointerEventsDisabled.delete(H),rQ()}},[H,B]),P(()=>{let x=()=>D({});return document.addEventListener(p9,x),()=>document.removeEventListener(p9,x)},[]),_(d.div,{...W,ref:V,style:{pointerEvents:$?O?"auto":"none":void 0,...Z.style},onFocusCapture:l(Z.onFocusCapture,w.onFocusCapture),onBlurCapture:l(Z.onBlurCapture,w.onBlurCapture),onPointerDownCapture:l(Z.onPointerDownCapture,I.onPointerDownCapture)})});ZY.displayName=mj;var pj="DismissableLayerBranch",lj=C((Z,J)=>{let Y=t7(aQ),X=R(null),G=o(J,X);return P(()=>{let q=X.current;if(q)return Y.branches.add(q),()=>{Y.branches.delete(q)}},[Y.branches]),_(d.div,{...Z,ref:G})});lj.displayName=pj;var ij=()=>!0;function sj(Z,J){let{ownerDocument:Y=globalThis?.document,deferPointerDownOutside:X=!1,isDeferredPointerDownOutsideRef:G,dismissableSurfaces:q,shouldHandlePointerDownOutside:U=ij}=J,Q=Y7(Z),z=R(!1),W=R(!1),B=R(new Map),H=R(()=>{});return P(()=>{function j(){W.current=!1,G.current=!1,B.current.clear()}function L(){return Array.from(B.current.values()).some(Boolean)}function D(K){if(!W.current)return;let $=K.target;if(!($ instanceof Node&&[...q].some((N)=>N.contains($))))B.current.set(K.type,!0);if(K.type==="click")window.setTimeout(()=>{if(W.current)H.current()},0)}function V(K){if(W.current)B.current.set(K.type,!1)}let A=(K)=>{if(K.target&&!z.current){let O=function(){Y.removeEventListener("click",H.current);let I=L();if(j(),!I)oQ(dj,Q,N,{discrete:!0})};var $=O;if(!U(K.target)){Y.removeEventListener("click",H.current),j(),z.current=!1;return}let N={originalEvent:K};if(W.current=!0,G.current=X&&K.button===0,B.current.clear(),!X||K.button!==0)O();else Y.removeEventListener("click",H.current),H.current=O,Y.addEventListener("click",H.current,{once:!0})}else Y.removeEventListener("click",H.current),j();z.current=!1},F=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let K of F)Y.addEventListener(K,D,!0),Y.addEventListener(K,V);let M=window.setTimeout(()=>{Y.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(M),Y.removeEventListener("pointerdown",A),Y.removeEventListener("click",H.current);for(let K of F)Y.removeEventListener(K,D,!0),Y.removeEventListener(K,V)}},[Y,Q,X,G,q,U]),{onPointerDownCapture:()=>z.current=!0}}function rj(Z,J=globalThis?.document){let Y=Y7(Z),X=R(!1);return P(()=>{let G=(q)=>{if(q.target&&!X.current)oQ(cj,Y,{originalEvent:q},{discrete:!1})};return J.addEventListener("focusin",G),()=>J.removeEventListener("focusin",G)},[J,Y]),{onFocusCapture:()=>X.current=!0,onBlurCapture:()=>X.current=!1}}function rQ(){let Z=new CustomEvent(p9);document.dispatchEvent(Z)}function oQ(Z,J,Y,{discrete:X}){let G=Y.originalEvent.target,q=new CustomEvent(Z,{bubbles:!1,cancelable:!0,detail:Y});if(J)G.addEventListener(Z,J,{once:!0});if(X)iQ(G,q);else G.dispatchEvent(q)}m();var NX=0,r6=null;function tQ(){P(()=>{if(!r6)r6={start:nQ(),end:nQ()};let{start:Z,end:J}=r6;if(document.body.firstElementChild!==Z)document.body.insertAdjacentElement("afterbegin",Z);if(document.body.lastElementChild!==J)document.body.insertAdjacentElement("beforeend",J);return NX++,()=>{if(NX===1)r6?.start.remove(),r6?.end.remove(),r6=null;NX=Math.max(0,NX-1)}},[])}function nQ(){let Z=document.createElement("span");return Z.setAttribute("data-radix-focus-guard",""),Z.tabIndex=0,Z.style.outline="none",Z.style.opacity="0",Z.style.position="fixed",Z.style.pointerEvents="none",Z}m();var l9="focusScope.autoFocusOnMount",i9="focusScope.autoFocusOnUnmount",eQ={bubbles:!1,cancelable:!0},aj="FocusScope",s9=C((Z,J)=>{let{loop:Y=!1,trapped:X=!1,onMountAutoFocus:G,onUnmountAutoFocus:q,...U}=Z,[Q,z]=S(null),W=Y7(G),B=Y7(q),H=R(null),j=o(J,z),L=R({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P(()=>{if(X){let M=function(N){if(L.paused||!Q)return;let I=N.target;if(Q.contains(I))H.current=I;else TZ(H.current,{select:!0})},K=function(N){if(L.paused||!Q)return;let I=N.relatedTarget;if(I===null)return;if(!Q.contains(I))TZ(H.current,{select:!0})},$=function(N){if(document.activeElement!==document.body)return;for(let w of N)if(w.removedNodes.length>0)TZ(Q)};var V=M,A=K,F=$;document.addEventListener("focusin",M),document.addEventListener("focusout",K);let O=new MutationObserver($);if(Q)O.observe(Q,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",K),O.disconnect()}}},[X,Q,L.paused]),P(()=>{if(Q){Jz.add(L);let V=document.activeElement;if(!Q.contains(V)){let F=new CustomEvent(l9,eQ);if(Q.addEventListener(l9,W),Q.dispatchEvent(F),!F.defaultPrevented){if(oj(JL(Xz(Q)),{select:!0}),document.activeElement===V)TZ(Q)}}return()=>{Q.removeEventListener(l9,W),setTimeout(()=>{let F=new CustomEvent(i9,eQ);if(Q.addEventListener(i9,B),Q.dispatchEvent(F),!F.defaultPrevented)TZ(V??document.body,{select:!0});Q.removeEventListener(i9,B),Jz.remove(L)},0)}}},[Q,W,B,L]);let D=E((V)=>{if(!Y&&!X)return;if(L.paused)return;let A=V.key==="Tab"&&!V.altKey&&!V.ctrlKey&&!V.metaKey,F=document.activeElement;if(A&&F){let M=V.currentTarget,[K,$]=nj(M);if(!(K&&$)){if(F===M)V.preventDefault()}else if(!V.shiftKey&&F===$){if(V.preventDefault(),Y)TZ(K,{select:!0})}else if(V.shiftKey&&F===K){if(V.preventDefault(),Y)TZ($,{select:!0})}}},[Y,X,L.paused]);return _(d.div,{tabIndex:-1,...U,ref:j,onKeyDown:D})});s9.displayName=aj;function oj(Z,{select:J=!1}={}){let Y=document.activeElement;for(let X of Z)if(TZ(X,{select:J}),document.activeElement!==Y)return}function nj(Z){let J=Xz(Z),Y=Zz(J,Z),X=Zz(J.reverse(),Z);return[Y,X]}function Xz(Z){let J=[],Y=document.createTreeWalker(Z,NodeFilter.SHOW_ELEMENT,{acceptNode:(X)=>{let G=X.tagName==="INPUT"&&X.type==="hidden";if(X.disabled||X.hidden||G)return NodeFilter.FILTER_SKIP;return X.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(Y.nextNode())J.push(Y.currentNode);return J}function Zz(Z,J){let Y=typeof J.checkVisibility==="function"&&J.checkVisibility({checkVisibilityCSS:!0});for(let X of Z)if(!(Y?!X.checkVisibility({checkVisibilityCSS:!0}):tj(X,{upTo:J})))return X}function tj(Z,{upTo:J}){if(getComputedStyle(Z).visibility==="hidden")return!0;while(Z){if(J!==void 0&&Z===J)return!1;if(getComputedStyle(Z).display==="none")return!0;Z=Z.parentElement}return!1}function ej(Z){return Z instanceof HTMLInputElement&&"select"in Z}function TZ(Z,{select:J=!1}={}){if(Z&&Z.focus){let Y=document.activeElement;if(Z.focus({preventScroll:!0}),Z!==Y&&ej(Z)&&J)Z.select()}}var Jz=ZL();function ZL(){let Z=[];return{add(J){let Y=Z[0];if(J!==Y)Y?.pause();Z=Yz(Z,J),Z.unshift(J)},remove(J){Z=Yz(Z,J),Z[0]?.resume()}}}function Yz(Z,J){let Y=[...Z],X=Y.indexOf(J);if(X!==-1)Y.splice(X,1);return Y}function JL(Z){return Z.filter((J)=>J.tagName!=="A")}m();m();var K0=globalThis?.document?IZ:()=>{};var YL=u[" useId ".trim().toString()]||(()=>{return}),XL=0;function a6(Z){let[J,Y]=S(YL());return K0(()=>{if(!Z)Y((X)=>X??String(XL++))},[Z]),Z||(J?`radix-${J}`:"")}m();var Uz=["top","right","bottom","left"];var{min:f7,max:w7,round:YY,floor:XY}=Math,g7=(Z)=>({x:Z,y:Z}),GL={left:"right",right:"left",bottom:"top",top:"bottom"};function r9(Z,J,Y){return w7(Z,f7(J,Y))}function v7(Z,J){return typeof Z==="function"?Z(J):Z}function e7(Z){return Z.split("-")[0]}function U6(Z){return Z.split("-")[1]}function RX(Z){return Z==="x"?"y":"x"}function kX(Z){return Z==="y"?"height":"width"}function R7(Z){let J=Z[0];return J==="t"||J==="b"?"y":"x"}function bX(Z){return RX(R7(Z))}function Qz(Z,J,Y){if(Y===void 0)Y=!1;let X=U6(Z),G=bX(Z),q=kX(G),U=G==="x"?X===(Y?"end":"start")?"right":"left":X==="start"?"bottom":"top";if(J.reference[q]>J.floating[q])U=JY(U);return[U,JY(U)]}function zz(Z){let J=JY(Z);return[wX(Z),J,wX(J)]}function wX(Z){return Z.includes("start")?Z.replace("start","end"):Z.replace("end","start")}var Gz=["left","right"],qz=["right","left"],qL=["top","bottom"],UL=["bottom","top"];function QL(Z,J,Y){switch(Z){case"top":case"bottom":if(Y)return J?qz:Gz;return J?Gz:qz;case"left":case"right":return J?qL:UL;default:return[]}}function Wz(Z,J,Y,X){let G=U6(Z),q=QL(e7(Z),Y==="start",X);if(G){if(q=q.map((U)=>U+"-"+G),J)q=q.concat(q.map(wX))}return q}function JY(Z){let J=e7(Z);return GL[J]+Z.slice(J.length)}function zL(Z){var J,Y,X,G;return{top:(J=Z.top)!=null?J:0,right:(Y=Z.right)!=null?Y:0,bottom:(X=Z.bottom)!=null?X:0,left:(G=Z.left)!=null?G:0}}function a9(Z){return typeof Z!=="number"?zL(Z):{top:Z,right:Z,bottom:Z,left:Z}}function Q6(Z){let{x:J,y:Y,width:X,height:G}=Z;return{width:X,height:G,top:Y,left:J,right:J+X,bottom:Y+G,x:J,y:Y}}function Bz(Z,J,Y){let{reference:X,floating:G}=Z,q=R7(J),U=bX(J),Q=kX(U),z=e7(J),W=q==="y",B=X.x+X.width/2-G.width/2,H=X.y+X.height/2-G.height/2,j=X[Q]/2-G[Q]/2,L;switch(z){case"top":L={x:B,y:X.y-G.height};break;case"bottom":L={x:B,y:X.y+X.height};break;case"right":L={x:X.x+X.width,y:H};break;case"left":L={x:X.x-G.width,y:H};break;default:L={x:X.x,y:X.y}}let D=U6(J);if(D)L[U]+=j*(D==="end"?1:-1)*(Y&&W?-1:1);return L}async function Lz(Z,J){var Y;if(J===void 0)J={};let{x:X,y:G,platform:q,rects:U,elements:Q,strategy:z}=Z,{boundary:W="clippingAncestors",rootBoundary:B="viewport",elementContext:H="floating",altBoundary:j=!1,padding:L=0}=v7(J,Z),D=a9(L),A=Q[j?H==="floating"?"reference":"floating":H],F=Q6(await q.getClippingRect({element:((Y=await(q.isElement==null?void 0:q.isElement(A)))!=null?Y:!0)?A:A.contextElement||await(q.getDocumentElement==null?void 0:q.getDocumentElement(Q.floating)),boundary:W,rootBoundary:B,strategy:z})),M=H==="floating"?{x:X,y:G,width:U.floating.width,height:U.floating.height}:U.reference,K=await(q.getOffsetParent==null?void 0:q.getOffsetParent(Q.floating)),$=await(q.isElement==null?void 0:q.isElement(K))&&await(q.getScale==null?void 0:q.getScale(K))||{x:1,y:1},O=Q6(q.convertOffsetParentRelativeRectToViewportRelativeRect?await q.convertOffsetParentRelativeRectToViewportRelativeRect({elements:Q,rect:M,offsetParent:K,strategy:z}):M);return{top:(F.top-O.top+D.top)/$.y,bottom:(O.bottom-F.bottom+D.bottom)/$.y,left:(F.left-O.left+D.left)/$.x,right:(O.right-F.right+D.right)/$.x}}var WL=50,Mz=async(Z,J,Y)=>{let{placement:X="bottom",strategy:G="absolute",middleware:q=[],platform:U}=Y,Q=U.detectOverflow?U:{...U,detectOverflow:Lz},z=await(U.isRTL==null?void 0:U.isRTL(J)),W=await U.getElementRects({reference:Z,floating:J,strategy:G}),{x:B,y:H}=Bz(W,X,z),j=X,L=0,D={};for(let V=0;V({name:"arrow",options:Z,async fn(J){let{x:Y,y:X,placement:G,rects:q,platform:U,elements:Q,middlewareData:z}=J,{element:W,padding:B=0}=v7(Z,J)||{};if(W==null)return{};let H=a9(B),j={x:Y,y:X},L=bX(G),D=kX(L),V=await U.getDimensions(W),A=L==="y",F=A?"top":"left",M=A?"bottom":"right",K=A?"clientHeight":"clientWidth",$=q.reference[D]+q.reference[L]-j[L]-q.floating[D],O=j[L]-q.reference[L],N=await(U.getOffsetParent==null?void 0:U.getOffsetParent(W)),I=N?N[K]:0;if(!I||!await(U.isElement==null?void 0:U.isElement(N)))I=Q.floating[K]||q.floating[D];let w=$/2-O/2,b=I/2-V[D]/2-1,k=f7(H[F],b),x=f7(H[M],b),n=I-V[D]-x,s=I/2-V[D]/2+w,J0=r9(k,s,n),Y0=!z.arrow&&U6(G)!=null&&s!==J0&&q.reference[D]/2-(sJ0<=0)){var x,n;let J0=(((x=q.flip)==null?void 0:x.index)||0)+1,Y0=I[J0];if(Y0){if(!(H==="alignment"?M!==R7(Y0):!1)||k.every((f)=>R7(f.placement)===M?f.overflows[0]>0:!0))return{data:{index:J0,overflows:k},reset:{placement:Y0}}}let h=(n=k.filter((r)=>r.overflows[0]<=0).sort((r,f)=>r.overflows[1]-f.overflows[1])[0])==null?void 0:n.placement;if(!h)switch(L){case"bestFit":{var s;let r=(s=k.filter((f)=>{if(N){let t=R7(f.placement);return t===M||t==="y"}return!0}).map((f)=>[f.placement,f.overflows.filter((t)=>t>0).reduce((t,I0)=>t+I0,0)]).sort((f,t)=>f[1]-t[1])[0])==null?void 0:s[0];if(r)h=r;break}case"initialPlacement":h=Q;break}if(G!==h)return{reset:{placement:h}}}return{}}}};function Hz(Z,J){return{top:Z.top-J.height,right:Z.right-J.width,bottom:Z.bottom-J.height,left:Z.left-J.width}}function jz(Z){return Uz.some((J)=>Z[J]>=0)}var Vz=function(Z){if(Z===void 0)Z={};return{name:"hide",options:Z,async fn(J){let{rects:Y,platform:X}=J,{strategy:G="referenceHidden",...q}=v7(Z,J);switch(G){case"referenceHidden":{let U=await X.detectOverflow(J,{...q,elementContext:"reference"}),Q=Hz(U,Y.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:jz(Q)}}}case"escaped":{let U=await X.detectOverflow(J,{...q,altBoundary:!0}),Q=Hz(U,Y.floating);return{data:{escapedOffsets:Q,escaped:jz(Q)}}}default:return{}}}}};var Dz=new Set(["left","top"]);async function BL(Z,J){let{placement:Y,platform:X,elements:G}=Z,q=await(X.isRTL==null?void 0:X.isRTL(G.floating)),U=e7(Y),Q=U6(Y),z=R7(Y)==="y",W=Dz.has(U)?-1:1,B=q&&z?-1:1,H=v7(J,Z),{mainAxis:j,crossAxis:L,alignmentAxis:D}=typeof H==="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};if(Q&&typeof D==="number")L=Q==="end"?D*-1:D;return z?{x:L*B,y:j*W}:{x:j*W,y:L*B}}var $z=function(Z){if(Z===void 0)Z=0;return{name:"offset",options:Z,async fn(J){var Y,X;let{x:G,y:q,placement:U,middlewareData:Q}=J,z=await BL(J,Z);if(U===((Y=Q.offset)==null?void 0:Y.placement)&&(X=Q.arrow)!=null&&X.alignmentOffset)return{};return{x:G+z.x,y:q+z.y,data:{...z,placement:U}}}}},Az=function(Z){if(Z===void 0)Z={};return{name:"shift",options:Z,async fn(J){let{x:Y,y:X,placement:G,platform:q}=J,{mainAxis:U=!0,crossAxis:Q=!1,limiter:z={fn:(M)=>{let{x:K,y:$}=M;return{x:K,y:$}}},...W}=v7(Z,J),B={x:Y,y:X},H=await q.detectOverflow(J,W),j=R7(G),L=RX(j),D=B[L],V=B[j],A=(M,K)=>r9(K+H[M==="y"?"top":"left"],K,K-H[M==="y"?"bottom":"right"]);if(U)D=A(L,D);if(Q)V=A(j,V);let F=z.fn({...J,[L]:D,[j]:V});return{...F,data:{x:F.x-Y,y:F.y-X,enabled:{[L]:U,[j]:Q}}}}}},Oz=function(Z){if(Z===void 0)Z={};return{options:Z,fn(J){var Y,X;let{x:G,y:q,placement:U,rects:Q,middlewareData:z}=J,{offset:W=0,mainAxis:B=!0,crossAxis:H=!0}=v7(Z,J),j={x:G,y:q},L=R7(U),D=RX(L),V=j[D],A=j[L],F=v7(W,J),M=typeof F==="number"?{mainAxis:F,crossAxis:0}:{mainAxis:(Y=F.mainAxis)!=null?Y:0,crossAxis:(X=F.crossAxis)!=null?X:0};if(B){let O=D==="y"?"height":"width",N=Q.reference[D]-Q.floating[O]+M.mainAxis,I=Q.reference[D]+Q.reference[O]-M.mainAxis;if(VI)V=I}if(H){var K,$;let O=D==="y"?"width":"height",N=Dz.has(e7(U)),I=Q.reference[L]-Q.floating[O]+(N?((K=z.offset)==null?void 0:K[L])||0:0)+(N?0:M.crossAxis),w=Q.reference[L]+Q.reference[O]+(N?0:(($=z.offset)==null?void 0:$[L])||0)-(N?M.crossAxis:0);if(Aw)A=w}return{[D]:V,[L]:A}}}},Iz=function(Z){if(Z===void 0)Z={};return{name:"size",options:Z,async fn(J){let{placement:Y,rects:X,platform:G,elements:q}=J,{apply:U=()=>{},...Q}=v7(Z,J),z=await G.detectOverflow(J,Q),W=e7(Y),B=U6(Y),H=R7(Y)==="y",{width:j,height:L}=X.floating,D,V;if(W==="top"||W==="bottom")D=W,V=B===(await(G.isRTL==null?void 0:G.isRTL(q.floating))?"start":"end")?"left":"right";else V=W,D=B==="end"?"top":"bottom";let A=L-z.top-z.bottom,F=j-z.left-z.right,M=f7(L-z[D],A),K=f7(j-z[V],F),$=J.middlewareData.shift,O=!$,N=M,I=K;if($!=null&&$.enabled.x)I=F;if($!=null&&$.enabled.y)N=A;if(O&&!B)if(H)I=j-2*w7(z.left,z.right);else N=L-2*w7(z.top,z.bottom);await U({...J,availableWidth:I,availableHeight:N});let w=await G.getDimensions(q.floating);if(j!==w.width||L!==w.height)return{reset:{rects:!0}};return{}}}};function CX(){return typeof window<"u"}function B6(Z){if(Tz(Z))return(Z.nodeName||"").toLowerCase();return"#document"}function l0(Z){var J;return(Z==null||(J=Z.ownerDocument)==null?void 0:J.defaultView)||window}function u7(Z){var J;return(J=(Tz(Z)?Z.ownerDocument:Z.document)||window.document)==null?void 0:J.documentElement}function Tz(Z){if(!CX())return!1;return Z instanceof Node||Z instanceof l0(Z).Node}function k7(Z){if(!CX())return!1;return Z instanceof Element||Z instanceof l0(Z).Element}function ZZ(Z){if(!CX())return!1;return Z instanceof HTMLElement||Z instanceof l0(Z).HTMLElement}function _z(Z){if(!CX()||typeof ShadowRoot>"u")return!1;return Z instanceof ShadowRoot||Z instanceof l0(Z).ShadowRoot}function GY(Z){let{overflow:J,overflowX:Y,overflowY:X,display:G}=b7(Z);return/auto|scroll|overlay|hidden|clip/.test(J+X+Y)&&G!=="inline"&&G!=="contents"}function Nz(Z){return/^(table|td|th)$/.test(B6(Z))}function qY(Z){try{if(Z.matches(":popover-open"))return!0}catch(J){}try{return Z.matches(":modal")}catch(J){return!1}}var HL=/transform|translate|scale|rotate|perspective|filter/,jL=/paint|layout|strict|content/,z6=(Z)=>!!Z&&Z!=="none",o9;function SX(Z){let J=k7(Z)?b7(Z):Z;return z6(J.transform)||z6(J.translate)||z6(J.scale)||z6(J.rotate)||z6(J.perspective)||!xX()&&(z6(J.backdropFilter)||z6(J.filter))||HL.test(J.willChange||"")||jL.test(J.contain||"")}function wz(Z){let J=NZ(Z);while(ZZ(J)&&!o6(J)){if(SX(J))return J;else if(qY(J))return null;J=NZ(J)}return null}function xX(){if(o9==null)o9=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return o9}function o6(Z){return/^(html|body|#document)$/.test(B6(Z))}function b7(Z){return l0(Z).getComputedStyle(Z)}function UY(Z){if(k7(Z))return{scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop};return{scrollLeft:Z.scrollX,scrollTop:Z.scrollY}}function NZ(Z){if(B6(Z)==="html")return Z;let J=Z.assignedSlot||Z.parentNode||_z(Z)&&Z.host||u7(Z);return _z(J)?J.host:J}function Rz(Z){let J=NZ(Z);if(o6(J))return(Z.ownerDocument||Z).body;if(ZZ(J)&&GY(J))return J;return Rz(J)}function W6(Z,J,Y){var X;if(J===void 0)J=[];if(Y===void 0)Y=!0;let G=Rz(Z),q=G===((X=Z.ownerDocument)==null?void 0:X.body),U=l0(G);if(q){let Q=PX(U);return J.concat(U,U.visualViewport||[],GY(G)?G:[],Q&&Y?W6(Q):[])}else return J.concat(G,W6(G,[],Y))}function PX(Z){return Z.parent&&Object.getPrototypeOf(Z.parent)?Z.frameElement:null}function Cz(Z){let J=b7(Z),Y=parseFloat(J.width)||0,X=parseFloat(J.height)||0,G=ZZ(Z),q=G?Z.offsetWidth:Y,U=G?Z.offsetHeight:X,Q=YY(Y)!==q||YY(X)!==U;if(Q)Y=q,X=U;return{width:Y,height:X,$:Q}}function t9(Z){return!k7(Z)?Z.contextElement:Z}function n6(Z){let J=t9(Z);if(!ZZ(J))return g7(1);let Y=J.getBoundingClientRect(),{width:X,height:G,$:q}=Cz(J),U=(q?YY(Y.width):Y.width)/X,Q=(q?YY(Y.height):Y.height)/G;if(!U||!Number.isFinite(U))U=1;if(!Q||!Number.isFinite(Q))Q=1;return{x:U,y:Q}}var LL=g7(0);function Sz(Z){let J=l0(Z);if(!xX()||!J.visualViewport)return LL;return{x:J.visualViewport.offsetLeft,y:J.visualViewport.offsetTop}}function ML(Z,J,Y){if(J===void 0)J=!1;return!!Y&&J&&Y===l0(Z)}function H6(Z,J,Y,X){if(J===void 0)J=!1;if(Y===void 0)Y=!1;let G=Z.getBoundingClientRect(),q=t9(Z),U=g7(1);if(J)if(X){if(k7(X))U=n6(X)}else U=n6(Z);let Q=ML(q,Y,X)?Sz(q):g7(0),z=(G.left+Q.x)/U.x,W=(G.top+Q.y)/U.y,B=G.width/U.x,H=G.height/U.y;if(q&&X){let j=l0(q),L=k7(X)?l0(X):X,D=j,V=PX(D);while(V&&L!==D){let A=n6(V),F=V.getBoundingClientRect(),M=b7(V),K=F.left+(V.clientLeft+parseFloat(M.paddingLeft))*A.x,$=F.top+(V.clientTop+parseFloat(M.paddingTop))*A.y;z*=A.x,W*=A.y,B*=A.x,H*=A.y,z+=K,W+=$,D=l0(V),V=PX(D)}}return Q6({width:B,height:H,x:z,y:W})}function EX(Z,J){let Y=UY(Z).scrollLeft;if(!J)return H6(u7(Z)).left+Y;return J.left+Y}function xz(Z,J){let Y=Z.getBoundingClientRect(),X=Y.left+J.scrollLeft-EX(Z,Y),G=Y.top+J.scrollTop;return{x:X,y:G}}function FL(Z){let{elements:J,rect:Y,offsetParent:X,strategy:G}=Z,q=G==="fixed",U=u7(X),Q=J?qY(J.floating):!1;if(X===U||Q&&q)return Y;let z={scrollLeft:0,scrollTop:0},W=g7(1),B=g7(0),H=ZZ(X);if(H||!q){if(B6(X)!=="body"||GY(U))z=UY(X);if(H){let L=H6(X);W=n6(X),B.x=L.x+X.clientLeft,B.y=L.y+X.clientTop}}let j=U&&!H&&!q?xz(U,z):g7(0);return{width:Y.width*W.x,height:Y.height*W.y,x:Y.x*W.x-z.scrollLeft*W.x+B.x+j.x,y:Y.y*W.y-z.scrollTop*W.y+B.y+j.y}}function KL(Z){return Z.getClientRects?Array.from(Z.getClientRects()):[]}function VL(Z){let J=UY(Z),Y=Z.ownerDocument.body,X=w7(Z.scrollWidth,Z.clientWidth,Y.scrollWidth,Y.clientWidth),G=w7(Z.scrollHeight,Z.clientHeight,Y.scrollHeight,Y.clientHeight),q=-J.scrollLeft+EX(Z),U=-J.scrollTop;if(b7(Y).direction==="rtl")q+=w7(Z.clientWidth,Y.clientWidth)-X;return{width:X,height:G,x:q,y:U}}var DL=25;function $L(Z,J,Y){if(Y===void 0)Y="viewport";let X=Y==="layoutViewport",G=l0(Z),q=u7(Z),U=G.visualViewport,Q=q.clientWidth,z=q.clientHeight,W=0,B=0;if(U){let j=!xX()||J==="fixed";if(X){if(!j)W=-U.offsetLeft,B=-U.offsetTop}else if(Q=U.width,z=U.height,j)W=U.offsetLeft,B=U.offsetTop}if(EX(q)<=0){let j=q.ownerDocument,L=j.body,D=getComputedStyle(L),V=j.compatMode==="CSS1Compat"?parseFloat(D.marginLeft)+parseFloat(D.marginRight)||0:0,A=Math.abs(q.clientWidth-L.clientWidth-V),F=getComputedStyle(q).scrollbarGutter==="stable both-edges"?A/2:A;if(F<=DL)Q-=F}return{width:Q,height:z,x:W,y:B}}function AL(Z,J){let Y=H6(Z,!0,J==="fixed"),X=Y.top+Z.clientTop,G=Y.left+Z.clientLeft,q=n6(Z),U=Z.clientWidth*q.x,Q=Z.clientHeight*q.y,z=G*q.x,W=X*q.y;return{width:U,height:Q,x:z,y:W}}function kz(Z,J,Y){let X;if(J==="viewport"||J==="layoutViewport")X=$L(Z,Y,J);else if(J==="document")X=VL(u7(Z));else if(k7(J))X=AL(J,Y);else{let G=Sz(Z);X={x:J.x-G.x,y:J.y-G.y,width:J.width,height:J.height}}return Q6(X)}function OL(Z,J){let Y=J.get(Z);if(Y)return Y;let X=W6(Z,[],!1).filter((Q)=>k7(Q)&&B6(Q)!=="body"),G=null,q=b7(Z).position==="fixed",U=q?NZ(Z):Z;while(k7(U)&&!o6(U)){let Q=b7(U),z=SX(U),W=G?G.position:q?"fixed":"";if(!z&&(W==="fixed"||W==="absolute"&&Q.position==="static"))X=X.filter((H)=>H!==U);else G=Q;U=NZ(U)}return J.set(Z,X),X}function IL(Z){let{element:J,boundary:Y,rootBoundary:X,strategy:G}=Z,U=[...Y==="clippingAncestors"?qY(J)?[]:OL(J,this._c):[].concat(Y),X],Q=kz(J,U[0],G),z=Q.top,W=Q.right,B=Q.bottom,H=Q.left;for(let j=1;j{Q(!1,0.0000001)},1000);else Q(!1,k)}I=!1}try{X=new IntersectionObserver(w,{...N,root:q.ownerDocument})}catch(b){X=new IntersectionObserver(w,N)}X.observe(Z)}let z=l0(Z),W=()=>Q(Y);return z.addEventListener("resize",W),Q(!0),()=>{z.removeEventListener("resize",W),U()}}function e9(Z,J,Y,X){if(X===void 0)X={};let{ancestorScroll:G=!0,ancestorResize:q=!0,elementResize:U=typeof ResizeObserver==="function",layoutShift:Q=typeof IntersectionObserver==="function",animationFrame:z=!1}=X,W=t9(Z),B=G||q?[...W?W6(W):[],...J?W6(J):[]]:[];B.forEach((F)=>{G&&F.addEventListener("scroll",Y),q&&F.addEventListener("resize",Y)});let H=W&&Q?RL(W,Y,q):null,j=-1,L=null;if(U){if(L=new ResizeObserver((F)=>{let[M]=F;if(M&&M.target===W&&L&&J)L.unobserve(J),cancelAnimationFrame(j),j=requestAnimationFrame(()=>{var K;(K=L)==null||K.observe(J)});Y()}),W&&!z)L.observe(W);if(J)L.observe(J)}let D,V=z?H6(Z):null;if(z)A();function A(){let F=H6(Z);if(V&&!hz(V,F))Y();V=F,D=requestAnimationFrame(A)}return Y(),()=>{var F;if(B.forEach((M)=>{G&&M.removeEventListener("scroll",Y),q&&M.removeEventListener("resize",Y)}),H==null||H(),(F=L)==null||F.disconnect(),L=null,z)cancelAnimationFrame(D)}}var yz=$z;var fz=Az,gz=Kz,vz=Iz,uz=Vz,Z4=Fz;var mz=Oz,J4=(Z,J,Y)=>{let X=new Map,G=Y!=null?Y:{},q={...Ez,...G.platform,_c:X};return Mz(Z,J,{...G,platform:q})};m();m();var cz=m6(i6(),1),kL=typeof document<"u",bL=function(){},hX=kL?IZ:bL;function yX(Z,J){if(Z===J)return!0;if(typeof Z!==typeof J)return!1;if(typeof Z==="function"&&Z.toString()===J.toString())return!0;let Y,X,G;if(Z&&J&&typeof Z==="object"){if(Array.isArray(Z)){if(Y=Z.length,Y!==J.length)return!1;for(X=Y;X--!==0;)if(!yX(Z[X],J[X]))return!1;return!0}if(G=Object.keys(Z),Y=G.length,Y!==Object.keys(J).length)return!1;for(X=Y;X--!==0;)if(!{}.hasOwnProperty.call(J,G[X]))return!1;for(X=Y;X--!==0;){let q=G[X];if(q==="_owner"&&Z.$$typeof)continue;if(!yX(Z[q],J[q]))return!1}return!0}return Z!==Z&&J!==J}function pz(Z){if(typeof window>"u")return 1;return(Z.ownerDocument.defaultView||window).devicePixelRatio||1}function dz(Z,J){let Y=pz(Z);return Math.round(J*Y)/Y}function Y4(Z){let J=R(Z);return hX(()=>{J.current=Z}),J}function lz(Z){if(Z===void 0)Z={};let{placement:J="bottom",strategy:Y="absolute",middleware:X=[],platform:G,elements:{reference:q,floating:U}={},transform:Q=!0,whileElementsMounted:z,open:W}=Z,[B,H]=S({x:0,y:0,strategy:Y,placement:J,middlewareData:{},isPositioned:!1}),[j,L]=S(X);if(!yX(j,X))L(X);let[D,V]=S(null),[A,F]=S(null),M=E((f)=>{if(f!==N.current)N.current=f,V(f)},[]),K=E((f)=>{if(f!==I.current)I.current=f,F(f)},[]),$=q||D,O=U||A,N=R(null),I=R(null),w=R(B),b=z!=null,k=Y4(z),x=Y4(G),n=Y4(W),s=E(()=>{if(!N.current||!I.current)return;let f={placement:J,strategy:Y,middleware:j};if(x.current)f.platform=x.current;J4(N.current,I.current,f).then((t)=>{let I0={...t,isPositioned:n.current!==!1};if(J0.current&&!yX(w.current,I0))w.current=I0,cz.flushSync(()=>{H(I0)})})},[j,J,Y,x,n]);hX(()=>{if(W===!1&&w.current.isPositioned)w.current.isPositioned=!1,H((f)=>({...f,isPositioned:!1}))},[W]);let J0=R(!1);hX(()=>{return J0.current=!0,()=>{J0.current=!1}},[]),hX(()=>{if($)N.current=$;if(O)I.current=O;if($&&O){if(k.current)return k.current($,O,s);s()}},[$,O,s,k,b]);let Y0=F0(()=>({reference:N,floating:I,setReference:M,setFloating:K}),[M,K]),h=F0(()=>({reference:$,floating:O}),[$,O]),r=F0(()=>{let f={position:Y,left:0,top:0};if(!h.floating)return f;let t=dz(h.floating,B.x),I0=dz(h.floating,B.y);if(Q)return{...f,transform:"translate("+t+"px, "+I0+"px)",...pz(h.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:t,top:I0}},[Y,Q,h.floating,B.x,B.y]);return F0(()=>({...B,update:s,refs:Y0,elements:h,floatingStyles:r}),[B,s,Y0,h,r])}var CL=(Z)=>{function J(Y){return{}.hasOwnProperty.call(Y,"current")}return{name:"arrow",options:Z,fn(Y){let{element:X,padding:G}=typeof Z==="function"?Z(Y):Z;if(X&&J(X)){if(X.current!=null)return Z4({element:X.current,padding:G}).fn(Y);return{}}if(X)return Z4({element:X,padding:G}).fn(Y);return{}}}},iz=(Z,J)=>{let Y=yz(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}},sz=(Z,J)=>{let Y=fz(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}},rz=(Z,J)=>{return{fn:mz(Z).fn,options:[Z,J]}},az=(Z,J)=>{let Y=gz(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}},oz=(Z,J)=>{let Y=vz(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}};var nz=(Z,J)=>{let Y=uz(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}};var tz=(Z,J)=>{let Y=CL(Z);return{name:Y.name,fn:Y.fn,options:[Z,J]}};m();var SL="Arrow",ez=C((Z,J)=>{let{children:Y,width:X=10,height:G=5,...q}=Z;return _(d.svg,{...q,ref:J,width:X,height:G,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:Z.asChild?Y:_("polygon",{points:"0,0 30,0 15,10"})})});ez.displayName=SL;var Z5=ez;m();function fX(Z){let[J,Y]=S(void 0);return K0(()=>{if(Z){Y({width:Z.offsetWidth,height:Z.offsetHeight});let X=new ResizeObserver((G)=>{if(!Array.isArray(G))return;if(!G.length)return;let q=G[0],U,Q;if("borderBoxSize"in q){let z=q.borderBoxSize,W=Array.isArray(z)?z[0]:z;U=W.inlineSize,Q=W.blockSize}else U=Z.offsetWidth,Q=Z.offsetHeight;Y({width:U,height:Q})});return X.observe(Z,{box:"border-box"}),()=>X.unobserve(Z)}else Y(void 0)},[Z]),J}var X4="Popper",[J5,t6]=y7(X4),[PL,Y5]=J5(X4),X5=(Z)=>{let{__scopePopper:J,children:Y}=Z,[X,G]=S(null),[q,U]=S(void 0);return _(PL,{scope:J,anchor:X,onAnchorChange:G,placementState:q,setPlacementState:U,children:Y})};X5.displayName=X4;var G5="PopperAnchor",q5=C((Z,J)=>{let{__scopePopper:Y,virtualRef:X,...G}=Z,q=Y5(G5,Y),U=R(null),Q=q.onAnchorChange,z=E((D)=>{if(U.current=D,D)Q(D)},[Q]),W=o(J,z),B=R(null);P(()=>{if(!X)return;let D=B.current;if(B.current=X.current,D!==B.current)Q(B.current)});let H=q.placementState&&q4(q.placementState),j=H?.[0],L=H?.[1];return X?null:_(d.div,{"data-radix-popper-side":j,"data-radix-popper-align":L,...G,ref:W})});q5.displayName=G5;var G4="PopperContent",[EL,hL]=J5(G4),U5=C((Z,J)=>{let{__scopePopper:Y,side:X="bottom",sideOffset:G=0,align:q="center",alignOffset:U=0,arrowPadding:Q=0,avoidCollisions:z=!0,collisionBoundary:W=[],collisionPadding:B=0,sticky:H="partial",hideWhenDetached:j=!1,updatePositionStrategy:L="optimized",onPlaced:D,...V}=Z,A=Y5(G4,Y),[F,M]=S(null),K=o(J,M),[$,O]=S(null),N=fX($),I=N?.width??0,w=N?.height??0,b=X+(q!=="center"?"-"+q:""),k=typeof B==="number"?B:{top:0,right:0,bottom:0,left:0,...B},x=Array.isArray(W)?W:[W],n=x.length>0,s={padding:k,boundary:x.filter(fL),altBoundary:n},{refs:J0,floatingStyles:Y0,placement:h,isPositioned:r,middlewareData:f}=lz({strategy:"fixed",placement:b,whileElementsMounted:(...$0)=>{return e9(...$0,{animationFrame:L==="always"})},elements:{reference:A.anchor},middleware:[iz({mainAxis:G+w,alignmentAxis:U}),z&&sz({mainAxis:!0,crossAxis:!1,limiter:H==="partial"?rz():void 0,...s}),z&&az({...s}),oz({...s,apply:({elements:$0,rects:d0,availableWidth:W0,availableHeight:M0})=>{let{width:w0,height:a7}=d0.reference,M7=$0.floating.style;M7.setProperty("--radix-popper-available-width",`${W0}px`),M7.setProperty("--radix-popper-available-height",`${M0}px`),M7.setProperty("--radix-popper-anchor-width",`${w0}px`),M7.setProperty("--radix-popper-anchor-height",`${a7}px`)}}),$&&tz({element:$,padding:Q}),gL({arrowWidth:I,arrowHeight:w}),j&&nz({strategy:"referenceHidden",...s,boundary:n?s.boundary:void 0})]}),t=A.setPlacementState;K0(()=>{return t(h),()=>{t(void 0)}},[h,t]);let[I0,m0]=q4(h),D0=Y7(D);K0(()=>{if(r)D0?.()},[r,D0]);let N0=f.arrow?.x,s0=f.arrow?.y,u6=f.arrow?.centerOffset!==0,[Y6,v]=S();return K0(()=>{if(F)v(window.getComputedStyle(F).zIndex)},[F]),_("div",{ref:J0.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y0,transform:r?Y0.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y6,"--radix-popper-transform-origin":[f.transformOrigin?.x,f.transformOrigin?.y].join(" "),...f.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:Z.dir,children:_(EL,{scope:Y,placedSide:I0,placedAlign:m0,onArrowChange:O,arrowX:N0,arrowY:s0,shouldHideArrow:u6,children:_(d.div,{"data-side":I0,"data-align":m0,...V,ref:K,style:{...V.style,animation:!r?"none":void 0}})})})});U5.displayName=G4;var Q5="PopperArrow",yL={top:"bottom",right:"left",bottom:"top",left:"right"},z5=C(function(J,Y){let{__scopePopper:X,...G}=J,q=hL(Q5,X),U=yL[q.placedSide];return _("span",{ref:q.onArrowChange,style:{position:"absolute",left:q.arrowX,top:q.arrowY,[U]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[q.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[q.placedSide],visibility:q.shouldHideArrow?"hidden":void 0},children:_(Z5,{...G,ref:Y,style:{...G.style,display:"block"}})})});z5.displayName=Q5;function fL(Z){return Z!==null}var gL=(Z)=>({name:"transformOrigin",options:Z,fn(J){let{placement:Y,rects:X,middlewareData:G}=J,U=G.arrow?.centerOffset!==0,Q=U?0:Z.arrowWidth,z=U?0:Z.arrowHeight,[W,B]=q4(Y),H={start:"0%",center:"50%",end:"100%"}[B],j=(G.arrow?.x??0)+Q/2,L=(G.arrow?.y??0)+z/2,D="",V="";if(W==="bottom")D=U?H:`${j}px`,V=`${-z}px`;else if(W==="top")D=U?H:`${j}px`,V=`${X.floating.height+z}px`;else if(W==="right")D=`${-z}px`,V=U?H:`${L}px`;else if(W==="left")D=`${X.floating.width+z}px`,V=U?H:`${L}px`;return{data:{x:D,y:V}}}});function q4(Z){let[J,Y="center"]=Z.split("-");return[J,Y]}var gX=X5,vX=q5,uX=U5,mX=z5;m();var B5=m6(i6(),1);var vL="Portal",QY=C((Z,J)=>{let{container:Y,...X}=Z,[G,q]=S(!1);K0(()=>q(!0),[]);let U=Y||G&&globalThis?.document?.body;return U?B5.createPortal(_(d.div,{...X,ref:J}),U):null});QY.displayName=vL;m();m();function uL(Z,J){return tJ((Y,X)=>{return J[Y][X]??Y},Z)}var e6=(Z)=>{let{present:J,children:Y}=Z,X=mL(J),G=typeof Y==="function"?Y({present:X.isPresent}):o7.only(Y),q=dL(X.ref,cL(G));return typeof Y==="function"||X.isPresent?h7(G,{ref:q}):null};e6.displayName="Presence";function mL(Z){let[J,Y]=S(),X=R(null),G=R(Z),q=R("none"),U=R(void 0),Q=Z?"mounted":"unmounted",[z,W]=uL(Q,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P(()=>{if(z==="mounted")q.current=U.current??zY(X.current),U.current=void 0;else q.current="none"},[z]),K0(()=>{let B=X.current,H=G.current;if(H!==Z){let L=q.current,D=zY(B);if(Z)U.current=D,W("MOUNT");else if(D==="none"||B?.display==="none")W("UNMOUNT");else if(H&&L!==D)W("ANIMATION_OUT");else W("UNMOUNT");G.current=Z}},[Z,W]),K0(()=>{if(J){let B,H=J.ownerDocument.defaultView??window,j=(D)=>{let A=zY(X.current).includes(CSS.escape(D.animationName));if(D.target===J&&A){if(W("ANIMATION_END"),!G.current){let F=J.style.animationFillMode;J.style.animationFillMode="forwards",B=H.setTimeout(()=>{if(J.style.animationFillMode==="forwards")J.style.animationFillMode=F})}}},L=(D)=>{if(D.target===J)q.current=zY(X.current)};return J.addEventListener("animationstart",L),J.addEventListener("animationcancel",j),J.addEventListener("animationend",j),()=>{H.clearTimeout(B),J.removeEventListener("animationstart",L),J.removeEventListener("animationcancel",j),J.removeEventListener("animationend",j)}}else W("ANIMATION_END")},[J,W]),{isPresent:["mounted","unmountSuspended"].includes(z),ref:E((B)=>{if(B){let H=getComputedStyle(B);X.current=H,U.current=zY(H)}else X.current=null;Y(B)},[])}}function H5(Z,J){if(typeof Z==="function")return Z(J);else if(Z!==null&&Z!==void 0)Z.current=J}function dL(...Z){let J=R(Z);return J.current=Z,E((Y)=>{let X=J.current,G=!1,q=X.map((U)=>{let Q=H5(U,Y);if(!G&&typeof Q==="function")G=!0;return Q});if(G)return()=>{for(let U=0;U{},caller:X}){let[G,q,U]=lL({defaultProp:J,onChange:Y}),Q=Z!==void 0,z=Q?Z:G;{let B=R(Z!==void 0);P(()=>{let H=B.current;if(H!==Q)console.warn(`${X} is changing from ${H?"controlled":"uncontrolled"} to ${Q?"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.`);B.current=Q},[Q,X])}let W=E((B)=>{if(Q){let H=iL(B)?B(Z):B;if(H!==Z)U.current?.(H)}else q(B)},[Q,Z,q,U]);return[z,W]}function lL({defaultProp:Z,onChange:J}){let[Y,X]=S(Z),G=R(Y),q=R(J);return pL(()=>{q.current=J},[J]),P(()=>{if(G.current!==Y)q.current?.(Y),G.current=Y},[Y,G]),[Y,X,q]}function iL(Z){return typeof Z==="function"}var TD=Symbol("RADIX:SYNC_STATE");m();function dX(Z){let J=R({value:Z,previous:Z});return F0(()=>{if(J.current.value!==Z)J.current.previous=J.current.value,J.current.value=Z;return J.current.previous},[Z])}m();var U4=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"}),sL="VisuallyHidden",j5=C((Z,J)=>{return _(d.span,{...Z,ref:J,style:{...U4,...Z.style}})});j5.displayName=sL;var L5=j5;var aL=function(Z){if(typeof document>"u")return null;var J=Array.isArray(Z)?Z[0]:Z;return J.ownerDocument.body},ZJ=new WeakMap,cX=new WeakMap,pX={},Q4=0,M5=function(Z){return Z&&(Z.host||M5(Z.parentNode))},oL=function(Z,J){return J.map(function(Y){if(Z.contains(Y))return Y;var X=M5(Y);if(X&&Z.contains(X))return X;return console.error("aria-hidden",Y,"in not contained inside",Z,". Doing nothing"),null}).filter(function(Y){return Boolean(Y)})},nL=function(Z,J,Y,X){var G=oL(J,Array.isArray(Z)?Z:[Z]);if(!pX[Y])pX[Y]=new WeakMap;var q=pX[Y],U=[],Q=new Set,z=new Set(G),W=function(H){if(!H||Q.has(H))return;Q.add(H),W(H.parentNode)};G.forEach(W);var B=function(H){if(!H||z.has(H))return;Array.prototype.forEach.call(H.children,function(j){if(Q.has(j))B(j);else try{var L=j.getAttribute(X),D=L!==null&&L!=="false",V=(ZJ.get(j)||0)+1,A=(q.get(j)||0)+1;if(ZJ.set(j,V),q.set(j,A),U.push(j),V===1&&D)cX.set(j,!0);if(A===1)j.setAttribute(Y,"true");if(!D)j.setAttribute(X,"true")}catch(F){console.error("aria-hidden: cannot operate on ",j,F)}})};return B(J),Q.clear(),Q4++,function(){if(U.forEach(function(H){var j=ZJ.get(H)-1,L=q.get(H)-1;if(ZJ.set(H,j),q.set(H,L),!j){if(!cX.has(H))H.removeAttribute(X);cX.delete(H)}if(!L)H.removeAttribute(Y)}),Q4--,!Q4)ZJ=new WeakMap,ZJ=new WeakMap,cX=new WeakMap,pX={}}},F5=function(Z,J,Y){if(Y===void 0)Y="data-aria-hidden";var X=Array.from(Array.isArray(Z)?Z:[Z]),G=J||aL(Z);if(!G)return function(){return null};return X.push.apply(X,Array.from(G.querySelectorAll("[aria-live], script"))),nL(X,G,Y,"aria-hidden")};var r0=function(){return r0=Object.assign||function(J){for(var Y,X=1,G=arguments.length;X"u")return GM;var J=qM(Z),Y=document.documentElement.clientWidth,X=window.innerWidth;return{left:J[0],top:J[1],right:J[2],gap:Math.max(0,X-Y+J[2]-J[0])}};var UM=BY(),JJ="data-scroll-locked",QM=function(Z,J,Y,X){var{left:G,top:q,right:U,gap:Q}=Z;if(Y===void 0)Y="margin";return` + .`.concat(z4,` { + overflow: hidden `).concat(X,`; + padding-right: `).concat(Q,"px ").concat(X,`; } - body[`).concat(a6,`] { - overflow: hidden `).concat(J,`; + body[`).concat(JJ,`] { + overflow: hidden `).concat(X,`; overscroll-behavior: contain; - `).concat([G&&"position: relative ".concat(J,";"),Y==="margin"&&` - padding-left: `.concat(X,`px; + `).concat([J&&"position: relative ".concat(X,";"),Y==="margin"&&` + padding-left: `.concat(G,`px; padding-top: `).concat(q,`px; padding-right: `).concat(U,`px; margin-left:0; margin-top:0; - margin-right: `).concat(Q,"px ").concat(J,`; - `),Y==="padding"&&"padding-right: ".concat(Q,"px ").concat(J,";")].filter(Boolean).join(""),` + margin-right: `).concat(Q,"px ").concat(X,`; + `),Y==="padding"&&"padding-right: ".concat(Q,"px ").concat(X,";")].filter(Boolean).join(""),` } - .`).concat(B6,` { - right: `).concat(Q,"px ").concat(J,`; + .`).concat(L6,` { + right: `).concat(Q,"px ").concat(X,`; } - .`).concat(j6,` { - margin-right: `).concat(Q,"px ").concat(J,`; + .`).concat(M6,` { + margin-right: `).concat(Q,"px ").concat(X,`; } - .`).concat(B6," .").concat(B6,` { - right: 0 `).concat(J,`; + .`).concat(L6," .").concat(L6,` { + right: 0 `).concat(X,`; } - .`).concat(j6," .").concat(j6,` { - margin-right: 0 `).concat(J,`; + .`).concat(M6," .").concat(M6,` { + margin-right: 0 `).concat(X,`; } - body[`).concat(a6,`] { - `).concat(e8,": ").concat(Q,`px; + body[`).concat(JJ,`] { + `).concat(W4,": ").concat(Q,`px; } -`)},G5=function(){var Z=parseInt(document.body.getAttribute(a6)||"0",10);return isFinite(Z)?Z:0},uL=function(){P(function(){return document.body.setAttribute(a6,(G5()+1).toString()),function(){var Z=G5()-1;if(Z<=0)document.body.removeAttribute(a6);else document.body.setAttribute(a6,Z.toString())}},[])},z9=function(Z){var{noRelative:G,noImportant:Y,gapMode:J}=Z,X=J===void 0?"margin":J;uL();var q=A0(function(){return Q9(X)},[X]);return d0(gL,{styles:vL(q,!G,X,!Y?"!important":"")})};var H9=!1;if(typeof window<"u")try{o6=Object.defineProperty({},"passive",{get:function(){return H9=!0,!0}}),window.addEventListener("test",o6,o6),window.removeEventListener("test",o6,o6)}catch(Z){H9=!1}var o6,L6=H9?{passive:!1}:!1;var mL=function(Z){return Z.tagName==="TEXTAREA"},Y5=function(Z,G){if(!(Z instanceof Element))return!1;var Y=window.getComputedStyle(Z);return Y[G]!=="hidden"&&!(Y.overflowY===Y.overflowX&&!mL(Z)&&Y[G]==="visible")},dL=function(Z){return Y5(Z,"overflowY")},cL=function(Z){return Y5(Z,"overflowX")},W9=function(Z,G){var Y=G.ownerDocument,J=G;do{if(typeof ShadowRoot<"u"&&J instanceof ShadowRoot)J=J.host;var X=J5(Z,J);if(X){var q=X5(Z,J),U=q[1],Q=q[2];if(U>Q)return!0}J=J.parentNode}while(J&&J!==Y.body);return!1},pL=function(Z){var{scrollTop:G,scrollHeight:Y,clientHeight:J}=Z;return[G,Y,J]},lL=function(Z){var{scrollLeft:G,scrollWidth:Y,clientWidth:J}=Z;return[G,Y,J]},J5=function(Z,G){return Z==="v"?dL(G):cL(G)},X5=function(Z,G){return Z==="v"?pL(G):lL(G)},iL=function(Z,G){return Z==="h"&&G==="rtl"?-1:1},q5=function(Z,G,Y,J,X){var q=iL(Z,window.getComputedStyle(G).direction),U=q*J,Q=Y.target,z=G.contains(Q),H=!1,j=U>0,W=0,L=0;do{if(!Q)break;var M=X5(Z,Q),V=M[0],D=M[1],O=M[2],F=D-O-q*V;if(V||F){if(J5(Z,Q))W+=F,L+=V}var B=Q.parentNode;Q=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!z&&Q!==document.body||z&&(G.contains(Q)||G===Q));if(j&&(X&&Math.abs(W)<1||!X&&U>W))H=!0;else if(!j&&(X&&Math.abs(L)<1||!X&&-U>L))H=!0;return H};var yJ=function(Z){return"changedTouches"in Z?[Z.changedTouches[0].clientX,Z.changedTouches[0].clientY]:[0,0]},U5=function(Z){return[Z.deltaX,Z.deltaY]},Q5=function(Z){return Z&&"current"in Z?Z.current:Z},sL=function(Z,G){return Z[0]===G[0]&&Z[1]===G[1]},rL=function(Z){return` +`)},I5=function(){var Z=parseInt(document.body.getAttribute(JJ)||"0",10);return isFinite(Z)?Z:0},zM=function(){P(function(){return document.body.setAttribute(JJ,(I5()+1).toString()),function(){var Z=I5()-1;if(Z<=0)document.body.removeAttribute(JJ);else document.body.setAttribute(JJ,Z.toString())}},[])},D4=function(Z){var{noRelative:J,noImportant:Y,gapMode:X}=Z,G=X===void 0?"margin":X;zM();var q=F0(function(){return V4(G)},[G]);return c0(UM,{styles:QM(q,!J,G,!Y?"!important":"")})};var $4=!1;if(typeof window<"u")try{YJ=Object.defineProperty({},"passive",{get:function(){return $4=!0,!0}}),window.addEventListener("test",YJ,YJ),window.removeEventListener("test",YJ,YJ)}catch(Z){$4=!1}var YJ,F6=$4?{passive:!1}:!1;var WM=function(Z){return Z.tagName==="TEXTAREA"},_5=function(Z,J){if(!(Z instanceof Element))return!1;var Y=window.getComputedStyle(Z);return Y[J]!=="hidden"&&!(Y.overflowY===Y.overflowX&&!WM(Z)&&Y[J]==="visible")},BM=function(Z){return _5(Z,"overflowY")},HM=function(Z){return _5(Z,"overflowX")},A4=function(Z,J){var Y=J.ownerDocument,X=J;do{if(typeof ShadowRoot<"u"&&X instanceof ShadowRoot)X=X.host;var G=T5(Z,X);if(G){var q=N5(Z,X),U=q[1],Q=q[2];if(U>Q)return!0}X=X.parentNode}while(X&&X!==Y.body);return!1},jM=function(Z){var{scrollTop:J,scrollHeight:Y,clientHeight:X}=Z;return[J,Y,X]},LM=function(Z){var{scrollLeft:J,scrollWidth:Y,clientWidth:X}=Z;return[J,Y,X]},T5=function(Z,J){return Z==="v"?BM(J):HM(J)},N5=function(Z,J){return Z==="v"?jM(J):LM(J)},MM=function(Z,J){return Z==="h"&&J==="rtl"?-1:1},w5=function(Z,J,Y,X,G){var q=MM(Z,window.getComputedStyle(J).direction),U=q*X,Q=Y.target,z=J.contains(Q),W=!1,B=U>0,H=0,j=0;do{if(!Q)break;var L=N5(Z,Q),D=L[0],V=L[1],A=L[2],F=V-A-q*D;if(D||F){if(T5(Z,Q))H+=F,j+=D}var M=Q.parentNode;Q=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!z&&Q!==document.body||z&&(J.contains(Q)||J===Q));if(B&&(G&&Math.abs(H)<1||!G&&U>H))W=!0;else if(!B&&(G&&Math.abs(j)<1||!G&&-U>j))W=!0;return W};var rX=function(Z){return"changedTouches"in Z?[Z.changedTouches[0].clientX,Z.changedTouches[0].clientY]:[0,0]},R5=function(Z){return[Z.deltaX,Z.deltaY]},k5=function(Z){return Z&&"current"in Z?Z.current:Z},FM=function(Z,J){return Z[0]===J[0]&&Z[1]===J[1]},KM=function(Z){return` .block-interactivity-`.concat(Z,` {pointer-events: none;} .allow-interactivity-`).concat(Z,` {pointer-events: all;} -`)},aL=0,n6=[];function z5(Z){var G=N([]),Y=N([0,0]),J=N(),X=x(aL++)[0],q=x(JY)[0],U=N(Z);P(function(){U.current=Z},[Z]),P(function(){if(Z.inert){document.body.classList.add("block-interactivity-".concat(X));var D=az([Z.lockRef.current],(Z.shards||[]).map(Q5),!0).filter(Boolean);return D.forEach(function(O){return O.classList.add("allow-interactivity-".concat(X))}),function(){document.body.classList.remove("block-interactivity-".concat(X)),D.forEach(function(O){return O.classList.remove("allow-interactivity-".concat(X))})}}return},[Z.inert,Z.lockRef.current,Z.shards]);var Q=f(function(D,O){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!U.current.allowPinchZoom;var F=yJ(D),B=Y.current,K="deltaX"in D?D.deltaX:B[0]-F[0],A="deltaY"in D?D.deltaY:B[1]-F[1],$,w=D.target,I=Math.abs(K)>Math.abs(A)?"h":"v";if("touches"in D&&I==="h"&&w.type==="range")return!1;var R=window.getSelection(),k=R&&R.anchorNode,b=k?k===w||k.contains(w):!1;if(b)return!1;var C=W9(I,w);if(!C)return!0;if(C)$=I;else $=I==="v"?"h":"v",C=W9(I,w);if(!C)return!1;if(!J.current&&"changedTouches"in D&&(K||A))J.current=$;if(!$)return!0;var a=J.current||$;return q5(a,O,D,a==="h"?K:A,!0)},[]),z=f(function(D){var O=D;if(!n6.length||n6[n6.length-1]!==q)return;var F="deltaY"in O?U5(O):yJ(O),B=G.current.filter(function($){return $.name===O.type&&($.target===O.target||O.target===$.shadowParent)&&sL($.delta,F)})[0];if(B&&B.should){if(O.cancelable)O.preventDefault();return}if(!B){var K=(U.current.shards||[]).map(Q5).filter(Boolean).filter(function($){return $.contains(O.target)}),A=K.length>0?Q(O,K[0]):!U.current.noIsolation;if(A){if(O.cancelable)O.preventDefault()}}},[]),H=f(function(D,O,F,B){var K={name:D,delta:O,target:F,should:B,shadowParent:oL(F)};G.current.push(K),setTimeout(function(){G.current=G.current.filter(function(A){return A!==K})},1)},[]),j=f(function(D){Y.current=yJ(D),J.current=void 0},[]),W=f(function(D){H(D.type,U5(D),D.target,Q(D,Z.lockRef.current))},[]),L=f(function(D){H(D.type,yJ(D),D.target,Q(D,Z.lockRef.current))},[]);P(function(){return n6.push(q),Z.setCallbacks({onScrollCapture:W,onWheelCapture:W,onTouchMoveCapture:L}),document.addEventListener("wheel",z,L6),document.addEventListener("touchmove",z,L6),document.addEventListener("touchstart",j,L6),function(){n6=n6.filter(function(D){return D!==q}),document.removeEventListener("wheel",z,L6),document.removeEventListener("touchmove",z,L6),document.removeEventListener("touchstart",j,L6)}},[]);var{removeScrollBar:M,inert:V}=Z;return d0(E7,null,V?d0(q,{styles:rL(X)}):null,M?d0(z9,{noRelative:Z.noRelative,gapMode:Z.gapMode}):null)}function oL(Z){var G=null;while(Z!==null){if(Z instanceof ShadowRoot)G=Z.host,Z=Z.host;Z=Z.parentNode}return G}var H5=Y9(hJ,z5);var W5=S(function(Z,G){return d0(YY,s0({},Z,{ref:G,sideCar:H5}))});W5.classNames=YY.classNames;var B9=W5;var nL=[" ","Enter","ArrowUp","ArrowDown"],tL=[" ","Enter"],M6="Select",[gJ,vJ,eL]=MJ(M6),[F6,ZM]=IZ(M6,[eL,l8]),uJ=l8(),[GM,RZ]=F6(M6),[YM,JM]=F6(M6),XM="SelectProvider";function D9(Z){let{__scopeSelect:G,children:Y,open:J,defaultOpen:X,onOpenChange:q,value:U,defaultValue:Q,onValueChange:z,dir:H,name:j,autoComplete:W,disabled:L,required:M,form:V,internal_do_not_use_render:D}=Z,O=uJ(G),[F,B]=x(null),[K,A]=x(null),[$,w]=x(!1),I=FJ(H),[R,k]=GY({prop:J,defaultProp:X??!1,onChange:q,caller:M6}),[b,C]=GY({prop:U,defaultProp:Q,onChange:z,caller:M6}),a=N(null),l=N(b);P(()=>{let D0=V?F?.ownerDocument.getElementById(V):F?.form;if(D0 instanceof HTMLFormElement){let w0=()=>C(l.current);return D0.addEventListener("reset",w0),()=>D0.removeEventListener("reset",w0)}},[V,F,C]);let Z0=F?!!V||!!F.closest("form"):!0,[G0,E]=x(new Set),i=DJ(),y=Array.from(G0).map((D0)=>D0.props.value).join(";"),o=f((D0)=>{E((w0)=>new Set(w0).add(D0))},[]),I0=f((D0)=>{E((w0)=>{let i0=new Set(w0);return i0.delete(D0),i0})},[]),u0={required:M,trigger:F,onTriggerChange:B,valueNode:K,onValueNodeChange:A,valueNodeHasChildren:$,onValueNodeHasChildrenChange:w,contentId:i,value:b,onValueChange:C,open:R,onOpenChange:k,dir:I,triggerPointerDownPosRef:a,disabled:L,name:j,autoComplete:W,form:V,nativeOptions:G0,nativeSelectKey:y,isFormControl:Z0};return _(mz,{...O,children:_(GM,{scope:G,...u0,children:_(gJ.Provider,{scope:G,children:_(YM,{scope:G,onNativeOptionAdd:o,onNativeOptionRemove:I0,children:DM(D)?D(u0):Y})})})})}D9.displayName=XM;var B5=(Z)=>{let{__scopeSelect:G,children:Y,...J}=Z;return _(D9,{__scopeSelect:G,...J,internal_do_not_use_render:({isFormControl:X})=>G7(J6,{children:[Y,X?_(A9,{__scopeSelect:G}):null]})})};B5.displayName=M6;var j5="SelectTrigger",L5=S((Z,G)=>{let{__scopeSelect:Y,disabled:J=!1,...X}=Z,q=uJ(Y),U=RZ(j5,Y),Q=U.disabled||J,z=n(G,U.onTriggerChange),H=vJ(Y),j=N("touch"),[W,L,M]=m5((D)=>{let O=H().filter((K)=>!K.disabled),F=O.find((K)=>K.value===U.value),B=d5(O,D,F);if(B!==void 0)U.onValueChange(B.value)}),V=(D)=>{if(!Q)U.onOpenChange(!0),M();if(D)U.triggerPointerDownPosRef.current={x:Math.round(D.pageX),y:Math.round(D.pageY)}};return _(dz,{asChild:!0,...q,children:_(s.button,{type:"button",role:"combobox","aria-controls":U.open?U.contentId:void 0,"aria-expanded":U.open,"aria-required":U.required,"aria-autocomplete":"none",dir:U.dir,"data-state":U.open?"open":"closed",disabled:Q,"data-disabled":Q?"":void 0,"data-placeholder":mJ(U.value)?"":void 0,...X,ref:z,onClick:Y0(X.onClick,(D)=>{if(D.currentTarget.focus(),j.current!=="mouse")V(D)}),onPointerDown:Y0(X.onPointerDown,(D)=>{j.current=D.pointerType;let O=D.target;if(O.hasPointerCapture(D.pointerId))O.releasePointerCapture(D.pointerId);if(D.button===0&&D.ctrlKey===!1&&D.pointerType==="mouse")V(D),D.preventDefault()}),onKeyDown:Y0(X.onKeyDown,(D)=>{let O=W.current!=="";if(!(D.ctrlKey||D.altKey||D.metaKey)&&D.key.length===1)L(D.key);if(O&&D.key===" ")return;if(nL.includes(D.key))V(),D.preventDefault()})})})});L5.displayName=j5;var M5="SelectValue",F5=S((Z,G)=>{let{__scopeSelect:Y,className:J,style:X,children:q,placeholder:U="",...Q}=Z,z=RZ(M5,Y),{onValueNodeHasChildrenChange:H}=z,j=q!==void 0,W=n(G,z.onValueNodeChange);F0(()=>{H(j)},[H,j]);let L=mJ(z.value);return _(s.span,{...Q,asChild:L?!1:Q.asChild,ref:W,style:{pointerEvents:"none"},children:_(E7,{children:L?U:q},L?"placeholder":"value")})});F5.displayName=M5;var qM="SelectIcon",K5=S((Z,G)=>{let{__scopeSelect:Y,children:J,...X}=Z;return _(s.span,{"aria-hidden":!0,...X,ref:G,children:J||"▼"})});K5.displayName=qM;var D5="SelectPortal",[UM,QM]=F6(D5,{forceMount:void 0}),V5=(Z)=>{let{__scopeSelect:G,forceMount:Y,...J}=Z;return _(UM,{scope:Z.__scopeSelect,forceMount:Y,children:_(r8,{asChild:!0,...J})})};V5.displayName=D5;var wZ="SelectContent",A5=S((Z,G)=>{let Y=QM(wZ,Z.__scopeSelect),{forceMount:J=Y.forceMount,...X}=Z,q=RZ(wZ,Z.__scopeSelect),[U,Q]=x();return F0(()=>{Q(new DocumentFragment)},[]),_(a8,{present:J||q.open,children:({present:z})=>z?_(I5,{...X,ref:G}):_(O5,{...X,fragment:U})})});A5.displayName=wZ;var O5=S((Z,G)=>{let{__scopeSelect:Y,children:J,fragment:X}=Z;if(!X)return null;return K9.createPortal(_($5,{scope:Y,children:_(gJ.Slot,{scope:Y,children:_("div",{ref:G,children:J})})}),X)});O5.displayName="SelectContentFragment";var C7=10,[$5,NZ]=F6(wZ),zM="SelectContentImpl",HM=X6("SelectContent.RemoveScroll"),I5=S((Z,G)=>{let{__scopeSelect:Y}=Z,{position:J="item-aligned",onCloseAutoFocus:X,onEscapeKeyDown:q,onPointerDownOutside:U,side:Q,sideOffset:z,align:H,alignOffset:j,arrowPadding:W,collisionBoundary:L,collisionPadding:M,sticky:V,hideWhenDetached:D,avoidCollisions:O,...F}=Z,B=RZ(wZ,Y),[K,A]=x(null),[$,w]=x(null),I=n(G,A),[R,k]=x(null),[b,C]=x(null),a=vJ(Y),[l,Z0]=x(!1),G0=N(!1);P(()=>{if(K)return rz(K)},[K]),CQ();let E=f((v)=>{let[V0,...m0]=a().map((R0)=>R0.ref.current),[H0]=m0.slice(-1),M0=document.activeElement;for(let R0 of v){if(R0===M0)return;if(R0?.scrollIntoView({block:"nearest"}),R0===V0&&$)$.scrollTop=0;if(R0===H0&&$)$.scrollTop=$.scrollHeight;if(R0?.focus(),document.activeElement!==M0)return}},[a,$]),i=f(()=>E([R,K]),[E,R,K]);P(()=>{if(l)i()},[l,i]);let{onOpenChange:y,triggerPointerDownPosRef:o}=B;P(()=>{if(K){let v={x:0,y:0},V0=(H0)=>{v={x:Math.abs(Math.round(H0.pageX)-(o.current?.x??0)),y:Math.abs(Math.round(H0.pageY)-(o.current?.y??0))}},m0=(H0)=>{if(v.x<=10&&v.y<=10)H0.preventDefault();else if(!H0.composedPath().includes(K))y(!1);document.removeEventListener("pointermove",V0),o.current=null};if(o.current!==null)document.addEventListener("pointermove",V0),document.addEventListener("pointerup",m0,{capture:!0,once:!0});return()=>{document.removeEventListener("pointermove",V0),document.removeEventListener("pointerup",m0,{capture:!0})}}},[K,y,o]),P(()=>{let v=()=>y(!1);return window.addEventListener("blur",v),window.addEventListener("resize",v),()=>{window.removeEventListener("blur",v),window.removeEventListener("resize",v)}},[y]);let[I0,u0]=m5((v)=>{let V0=a().filter((M0)=>!M0.disabled),m0=V0.find((M0)=>M0.ref.current===document.activeElement),H0=d5(V0,v,m0);if(H0)setTimeout(()=>H0.ref.current?.focus())}),D0=f((v,V0,m0)=>{let H0=!G0.current&&!m0;if(B.value!==void 0&&B.value===V0||H0){if(k(v),H0)G0.current=!0}},[B.value]),w0=f(()=>K?.focus(),[K]),i0=f((v,V0,m0)=>{let H0=!G0.current&&!m0;if(B.value!==void 0&&B.value===V0||H0)C(v)},[B.value]),g6=J==="popper"?j9:T5,G6=g6===j9?{side:Q,sideOffset:z,align:H,alignOffset:j,arrowPadding:W,collisionBoundary:L,collisionPadding:M,sticky:V,hideWhenDetached:D,avoidCollisions:O}:{};return _($5,{scope:Y,content:K,viewport:$,onViewportChange:w,itemRefCallback:D0,selectedItem:R,onItemLeave:w0,itemTextRefCallback:i0,focusSelectedItem:i,selectedItemText:b,position:J,isPositioned:l,searchRef:I0,children:_(B9,{as:HM,allowPinchZoom:!0,children:_(E8,{asChild:!0,trapped:B.open,onMountAutoFocus:(v)=>{v.preventDefault()},onUnmountAutoFocus:Y0(X,(v)=>{B.trigger?.focus({preventScroll:!0}),v.preventDefault()}),children:_(S8,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:q,onPointerDownOutside:U,onFocusOutside:(v)=>v.preventDefault(),onDismiss:()=>B.onOpenChange(!1),children:_(g6,{role:"listbox",id:B.contentId,"data-state":B.open?"open":"closed",dir:B.dir,onContextMenu:(v)=>v.preventDefault(),...F,...G6,onPlaced:()=>Z0(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...F.style},onKeyDown:Y0(F.onKeyDown,(v)=>{let V0=v.ctrlKey||v.altKey||v.metaKey;if(v.key==="Tab")v.preventDefault();if(!V0&&v.key.length===1)u0(v.key);if(["ArrowUp","ArrowDown","Home","End"].includes(v.key)){let H0=a().filter((M0)=>!M0.disabled).map((M0)=>M0.ref.current);if(["ArrowUp","End"].includes(v.key))H0=H0.slice().reverse();if(["ArrowUp","ArrowDown"].includes(v.key)){let M0=v.target,R0=H0.indexOf(M0);H0=H0.slice(R0+1)}setTimeout(()=>E(H0)),v.preventDefault()}})})})})})})});I5.displayName=zM;var WM="SelectItemAlignedPosition",T5=S((Z,G)=>{let{__scopeSelect:Y,onPlaced:J,...X}=Z,q=RZ(wZ,Y),U=NZ(wZ,Y),[Q,z]=x(null),[H,j]=x(null),W=n(G,j),L=vJ(Y),M=N(!1),V=N(!0),{viewport:D,selectedItem:O,selectedItemText:F,focusSelectedItem:B}=U,K=f(()=>{if(q.trigger&&q.valueNode&&Q&&H&&D&&O&&F){let I=q.trigger.getBoundingClientRect(),R=H.getBoundingClientRect(),k=q.valueNode.getBoundingClientRect(),b=F.getBoundingClientRect();if(q.dir!=="rtl"){let M0=b.left-R.left,R0=k.left-M0,r7=I.left-R0,M7=I.width+r7,D8=Math.max(M7,R.width),V8=window.innerWidth-C7,A8=p6(R0,[C7,Math.max(C7,V8-D8)]);Q.style.minWidth=M7+"px",Q.style.left=A8+"px"}else{let M0=R.right-b.right,R0=window.innerWidth-k.right-M0,r7=window.innerWidth-I.right-R0,M7=I.width+r7,D8=Math.max(M7,R.width),V8=window.innerWidth-C7,A8=p6(R0,[C7,Math.max(C7,V8-D8)]);Q.style.minWidth=M7+"px",Q.style.right=A8+"px"}let C=L(),a=window.innerHeight-C7*2,l=D.scrollHeight,Z0=window.getComputedStyle(H),G0=parseInt(Z0.borderTopWidth,10),E=parseInt(Z0.paddingTop,10),i=parseInt(Z0.borderBottomWidth,10),y=parseInt(Z0.paddingBottom,10),o=G0+E+l+y+i,I0=Math.min(O.offsetHeight*5,o),u0=window.getComputedStyle(D),D0=parseInt(u0.paddingTop,10),w0=parseInt(u0.paddingBottom,10),i0=I.top+I.height/2-C7,g6=a-i0,G6=O.offsetHeight/2,v=O.offsetTop+G6,V0=G0+E+v,m0=o-V0;if(V0<=i0){let M0=C.length>0&&O===C[C.length-1].ref.current;Q.style.bottom="0px";let R0=H.clientHeight-D.offsetTop-D.offsetHeight,r7=Math.max(g6,G6+(M0?w0:0)+R0+i),M7=V0+r7;Q.style.height=M7+"px"}else{let M0=C.length>0&&O===C[0].ref.current;Q.style.top="0px";let r7=Math.max(i0,G0+D.offsetTop+(M0?D0:0)+G6)+m0;Q.style.height=r7+"px",D.scrollTop=V0-i0+D.offsetTop}Q.style.margin=`${C7}px 0`,Q.style.minHeight=I0+"px",Q.style.maxHeight=a+"px",J?.(),requestAnimationFrame(()=>M.current=!0)}},[L,q.trigger,q.valueNode,Q,H,D,O,F,q.dir,J]);F0(()=>K(),[K]);let[A,$]=x();F0(()=>{if(H)$(window.getComputedStyle(H).zIndex)},[H]);let w=f((I)=>{if(I&&V.current===!0)K(),B?.(),V.current=!1},[K,B]);return _(jM,{scope:Y,contentWrapper:Q,shouldExpandOnScrollRef:M,onScrollButtonChange:w,children:_("div",{ref:z,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:_(s.div,{...X,ref:W,style:{boxSizing:"border-box",maxHeight:"100%",...X.style}})})})});T5.displayName=WM;var BM="SelectPopperPosition",j9=S((Z,G)=>{let{__scopeSelect:Y,align:J="start",collisionPadding:X=C7,...q}=Z,U=uJ(Y);return _(cz,{...U,...q,ref:G,align:J,collisionPadding:X,style:{boxSizing:"border-box",...q.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)"}}})});j9.displayName=BM;var[jM,V9]=F6(wZ,{}),L9="SelectViewport",_5=S((Z,G)=>{let{__scopeSelect:Y,nonce:J,...X}=Z,q=NZ(L9,Y),U=V9(L9,Y),Q=n(G,q.onViewportChange),z=N(0);return G7(J6,{children:[_("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:J}),_(gJ.Slot,{scope:Y,children:_(s.div,{"data-radix-select-viewport":"",role:"presentation",...X,ref:Q,style:{position:"relative",flex:1,overflow:"hidden auto",...X.style},onScroll:Y0(X.onScroll,(H)=>{let j=H.currentTarget,{contentWrapper:W,shouldExpandOnScrollRef:L}=U;if(L?.current&&W){let M=Math.abs(z.current-j.scrollTop);if(M>0){let V=window.innerHeight-C7*2,D=parseFloat(W.style.minHeight),O=parseFloat(W.style.height),F=Math.max(D,O);if(F0?A:0,W.style.justifyContent="flex-end"}}}z.current=j.scrollTop})})})]})});_5.displayName=L9;var w5="SelectGroup",[LM,MM]=F6(w5),R5=S((Z,G)=>{let{__scopeSelect:Y,...J}=Z,X=DJ();return _(LM,{scope:Y,id:X,children:_(s.div,{role:"group","aria-labelledby":X,...J,ref:G})})});R5.displayName=w5;var N5="SelectLabel",b5=S((Z,G)=>{let{__scopeSelect:Y,...J}=Z,X=MM(N5,Y);return _(s.div,{id:X.id,...J,ref:G})});b5.displayName=N5;var fJ="SelectItem",[FM,k5]=F6(fJ),C5=S((Z,G)=>{let{__scopeSelect:Y,value:J,disabled:X=!1,textValue:q,...U}=Z,Q=RZ(fJ,Y),z=NZ(fJ,Y),H=Q.value===J,[j,W]=x(q??""),[L,M]=x(!1),V=Y7((K)=>z.itemRefCallback?.(K,J,X)),D=n(G,V),O=DJ(),F=N("touch"),B=()=>{if(!X)Q.onValueChange(J),Q.onOpenChange(!1)};return _(FM,{scope:Y,value:J,disabled:X,textId:O,isSelected:H,onItemTextChange:f((K)=>{W((A)=>A||(K?.textContent??"").trim())},[]),children:_(gJ.ItemSlot,{scope:Y,value:J,disabled:X,textValue:j,children:_(s.div,{role:"option","aria-labelledby":O,"data-highlighted":L?"":void 0,"aria-selected":H&&L,"data-state":H?"checked":"unchecked","aria-disabled":X||void 0,"data-disabled":X?"":void 0,tabIndex:X?void 0:-1,...U,ref:D,onFocus:Y0(U.onFocus,()=>M(!0)),onBlur:Y0(U.onBlur,()=>M(!1)),onClick:Y0(U.onClick,()=>{if(F.current!=="mouse")B()}),onPointerUp:Y0(U.onPointerUp,()=>{if(F.current==="mouse")B()}),onPointerDown:Y0(U.onPointerDown,(K)=>{F.current=K.pointerType}),onPointerMove:Y0(U.onPointerMove,(K)=>{if(F.current=K.pointerType,X)z.onItemLeave?.();else if(F.current==="mouse")K.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y0(U.onPointerLeave,(K)=>{if(K.currentTarget===document.activeElement)z.onItemLeave?.()}),onKeyDown:Y0(U.onKeyDown,(K)=>{if(X||K.target!==K.currentTarget)return;if(z.searchRef?.current!==""&&K.key===" ")return;if(tL.includes(K.key))B();if(K.key===" ")K.preventDefault()})})})})});C5.displayName=fJ;var XY="SelectItemText",S5=S((Z,G)=>{let{__scopeSelect:Y,className:J,style:X,...q}=Z,U=RZ(XY,Y),Q=NZ(XY,Y),z=k5(XY,Y),H=JM(XY,Y),[j,W]=x(null),L=Y7((B)=>Q.itemTextRefCallback?.(B,z.value,z.disabled)),M=n(G,W,z.onItemTextChange,L),V=j?.textContent,D=A0(()=>_("option",{value:z.value,disabled:z.disabled,children:V},z.value),[z.disabled,z.value,V]),{onNativeOptionAdd:O,onNativeOptionRemove:F}=H;return F0(()=>{return O(D),()=>F(D)},[O,F,D]),G7(J6,{children:[_(s.span,{id:z.textId,...q,ref:M}),z.isSelected&&U.valueNode&&!U.valueNodeHasChildren&&!mJ(U.value)?K9.createPortal(q.children,U.valueNode):null]})});S5.displayName=XY;var x5="SelectItemIndicator",P5=S((Z,G)=>{let{__scopeSelect:Y,...J}=Z;return k5(x5,Y).isSelected?_(s.span,{"aria-hidden":!0,...J,ref:G}):null});P5.displayName=x5;var M9="SelectScrollUpButton",E5=S((Z,G)=>{let Y=NZ(M9,Z.__scopeSelect),J=V9(M9,Z.__scopeSelect),[X,q]=x(!1),U=n(G,J.onScrollButtonChange);return F0(()=>{if(Y.viewport&&Y.isPositioned){let z=function(){let j=H.scrollTop>0;q(j)};var Q=z;let H=Y.viewport;return z(),H.addEventListener("scroll",z),()=>H.removeEventListener("scroll",z)}},[Y.viewport,Y.isPositioned]),X?_(y5,{...Z,ref:U,onAutoScroll:()=>{let{viewport:Q,selectedItem:z}=Y;if(Q&&z)Q.scrollTop=Q.scrollTop-z.offsetHeight}}):null});E5.displayName=M9;var F9="SelectScrollDownButton",h5=S((Z,G)=>{let Y=NZ(F9,Z.__scopeSelect),J=V9(F9,Z.__scopeSelect),[X,q]=x(!1),U=n(G,J.onScrollButtonChange);return F0(()=>{if(Y.viewport&&Y.isPositioned){let z=function(){let j=H.scrollHeight-H.clientHeight,W=Math.ceil(H.scrollTop)H.removeEventListener("scroll",z)}},[Y.viewport,Y.isPositioned]),X?_(y5,{...Z,ref:U,onAutoScroll:()=>{let{viewport:Q,selectedItem:z}=Y;if(Q&&z)Q.scrollTop=Q.scrollTop+z.offsetHeight}}):null});h5.displayName=F9;var y5=S((Z,G)=>{let{__scopeSelect:Y,onAutoScroll:J,...X}=Z,q=NZ("SelectScrollButton",Y),U=N(null),Q=vJ(Y),z=f(()=>{if(U.current!==null)window.clearInterval(U.current),U.current=null},[]);return P(()=>{return()=>z()},[z]),F0(()=>{Q().find((j)=>j.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[Q]),_(s.div,{"aria-hidden":!0,...X,ref:G,style:{flexShrink:0,...X.style},onPointerDown:Y0(X.onPointerDown,()=>{if(U.current===null)U.current=window.setInterval(J,50)}),onPointerMove:Y0(X.onPointerMove,()=>{if(q.onItemLeave?.(),U.current===null)U.current=window.setInterval(J,50)}),onPointerLeave:Y0(X.onPointerLeave,()=>{z()})})}),KM="SelectSeparator",f5=S((Z,G)=>{let{__scopeSelect:Y,...J}=Z;return _(s.div,{"aria-hidden":!0,...J,ref:G})});f5.displayName=KM;var g5="SelectArrow",v5=S((Z,G)=>{let{__scopeSelect:Y,...J}=Z,X=uJ(Y);return NZ(g5,Y).position==="popper"?_(pz,{...X,...J,ref:G}):null});v5.displayName=g5;var u5="SelectBubbleInput",A9=S(({__scopeSelect:Z,...G},Y)=>{let J=RZ(u5,Z),{value:X,onValueChange:q,required:U,disabled:Q,name:z,autoComplete:H,form:j}=J,{nativeOptions:W,nativeSelectKey:L}=J,M=N(null),V=n(Y,M),D=X??"",O=CJ(D),F=Array.from(W).some((B)=>(B.props.value??"")==="");return P(()=>{let B=M.current;if(!B)return;let K=window.HTMLSelectElement.prototype,$=Object.getOwnPropertyDescriptor(K,"value").set;if(O!==D&&$){let w=new Event("change",{bubbles:!0});$.call(B,D),B.dispatchEvent(w)}},[O,D]),G7(s.select,{"aria-hidden":!0,required:U,tabIndex:-1,name:z,autoComplete:H,disabled:Q,form:j,onChange:(B)=>q(B.target.value),...G,style:{...o8,...G.style},ref:V,defaultValue:D,children:[mJ(X)&&!F?_("option",{value:""}):null,Array.from(W)]},L)});A9.displayName=u5;function DM(Z){return typeof Z==="function"}function mJ(Z){return Z===""||Z===void 0}function m5(Z){let G=Y7(Z),Y=N(""),J=N(0),X=f((U)=>{let Q=Y.current+U;G(Q),function z(H){if(Y.current=H,window.clearTimeout(J.current),H!=="")J.current=window.setTimeout(()=>z(""),1000)}(Q)},[G]),q=f(()=>{Y.current="",window.clearTimeout(J.current)},[]);return P(()=>{return()=>window.clearTimeout(J.current)},[]),[Y,X,q]}function d5(Z,G,Y){let X=G.length>1&&Array.from(G).every((H)=>H===G[0])?G[0]:G,q=Y?Z.indexOf(Y):-1,U=VM(Z,Math.max(q,0));if(X.length===1)U=U.filter((H)=>H!==Y);let z=U.find((H)=>H.textValue.toLowerCase().startsWith(X.toLowerCase()));return z!==Y?z:void 0}function VM(Z,G){return Z.map((Y,J)=>Z[(G+J)%Z.length])}m();var K6={};lG(K6,{unstable_ThumbTrigger:()=>_9,unstable_ThumbProvider:()=>T9,unstable_SliderThumbTrigger:()=>_9,unstable_SliderThumbProvider:()=>T9,unstable_SliderBubbleInput:()=>w9,unstable_BubbleInput:()=>w9,createSliderScope:()=>$M,Track:()=>n5,Thumb:()=>YH,SliderTrack:()=>n5,SliderThumb:()=>YH,SliderRange:()=>t5,Slider:()=>i5,Root:()=>i5,Range:()=>t5});var c5=["PageUp","PageDown"],p5=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],l5={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},t6="Slider",[O9,AM,OM]=MJ(t6),[I9,$M]=IZ(t6,[OM]),[IM,qY]=I9(t6),i5=S((Z,G)=>{let{name:Y,min:J=0,max:X=100,step:q=1,orientation:U="horizontal",disabled:Q=!1,minStepsBetweenThumbs:z=0,defaultValue:H=[J],value:j,onValueChange:W=()=>{},onValueCommit:L=()=>{},inverted:M=!1,form:V,...D}=Z,O=N(new Set),F=N(0),B=N(!1),A=U==="horizontal"?TM:_M,[$,w]=x(null),I=n(G,w),[R=[],k]=GY({prop:j,defaultProp:H,onChange:(E)=>{[...O.current][F.current]?.focus({preventScroll:!0,focusVisible:B.current}),B.current=!1,W(E)}}),b=N(R),C=N(R);P(()=>{let E=V?$?.ownerDocument.getElementById(V):$?.closest("form");if(E instanceof HTMLFormElement){let i=()=>k(C.current);return E.addEventListener("reset",i),()=>E.removeEventListener("reset",i)}},[$,V,k]);function a(E){let i=bM(R,E);G0(E,i)}function l(E){G0(E,F.current)}function Z0(){let E=b.current[F.current];if(R[F.current]!==E)L(R)}function G0(E,i,{commit:y}={commit:!1}){let o=qH(q),I0=cJ(Math.round((E-J)/q)*q+J,o),u0=p6(I0,[J,X]);k((D0=[])=>{let w0=RM(D0,u0,i);if(SM(w0,z*q)){F.current=w0.indexOf(u0);let i0=String(w0)!==String(D0);if(i0&&y)L(w0);return i0?w0:D0}else return D0})}return _(IM,{scope:Z.__scopeSlider,name:Y,disabled:Q,min:J,max:X,valueIndexToChangeRef:F,thumbs:O.current,values:R,orientation:U,form:V,children:_(O9.Provider,{scope:Z.__scopeSlider,children:_(O9.Slot,{scope:Z.__scopeSlider,children:_(A,{"aria-disabled":Q,"data-disabled":Q?"":void 0,...D,ref:I,onPointerDown:Y0(D.onPointerDown,()=>{if(!Q)b.current=R,B.current=!1}),min:J,max:X,inverted:M,onSlideStart:Q?void 0:a,onSlideMove:Q?void 0:l,onSlideEnd:Q?void 0:Z0,onHomeKeyDown:()=>{if(!Q)B.current=!0,G0(J,0,{commit:!0})},onEndKeyDown:()=>{if(!Q)B.current=!0,G0(X,R.length-1,{commit:!0})},onStepKeyDown:({event:E,direction:i})=>{if(!Q){B.current=!0;let I0=c5.includes(E.key)||E.shiftKey&&p5.includes(E.key)?10:1,u0=F.current,D0=R[u0],w0=xM(D0,{min:J,step:q,direction:i,multiplier:I0});G0(w0,u0,{commit:!0})}}})})})})});i5.displayName=t6;var[s5,r5]=I9(t6,{startEdge:"left",endEdge:"right",size:"width",direction:1}),TM=S((Z,G)=>{let{min:Y,max:J,dir:X,inverted:q,onSlideStart:U,onSlideMove:Q,onSlideEnd:z,onStepKeyDown:H,...j}=Z,[W,L]=x(null),M=n(G,L),V=N(void 0),D=FJ(X),O=D==="ltr",F=O&&!q||!O&&q;function B(K){let A=V.current||W.getBoundingClientRect(),$=[0,A.width],I=R9($,F?[Y,J]:[J,Y]);return V.current=A,I(K-A.left)}return _(s5,{scope:Z.__scopeSlider,startEdge:F?"left":"right",endEdge:F?"right":"left",direction:F?1:-1,size:"width",children:_(a5,{dir:D,"data-orientation":"horizontal",...j,ref:M,style:{...j.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:(K)=>{let A=B(K.clientX);U?.(A)},onSlideMove:(K)=>{let A=B(K.clientX);Q?.(A)},onSlideEnd:()=>{V.current=void 0,z?.()},onStepKeyDown:(K)=>{let $=l5[F?"from-left":"from-right"].includes(K.key);H?.({event:K,direction:$?-1:1})}})})}),_M=S((Z,G)=>{let{min:Y,max:J,inverted:X,onSlideStart:q,onSlideMove:U,onSlideEnd:Q,onStepKeyDown:z,...H}=Z,j=N(null),W=n(G,j),L=N(void 0),M=!X;function V(D){let O=L.current||j.current.getBoundingClientRect(),F=[0,O.height],K=R9(F,M?[J,Y]:[Y,J]);return L.current=O,K(D-O.top)}return _(s5,{scope:Z.__scopeSlider,startEdge:M?"bottom":"top",endEdge:M?"top":"bottom",size:"height",direction:M?1:-1,children:_(a5,{"data-orientation":"vertical",...H,ref:W,style:{...H.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:(D)=>{let O=V(D.clientY);q?.(O)},onSlideMove:(D)=>{let O=V(D.clientY);U?.(O)},onSlideEnd:()=>{L.current=void 0,Q?.()},onStepKeyDown:(D)=>{let F=l5[M?"from-bottom":"from-top"].includes(D.key);z?.({event:D,direction:F?-1:1})}})})}),a5=S((Z,G)=>{let{__scopeSlider:Y,onSlideStart:J,onSlideMove:X,onSlideEnd:q,onHomeKeyDown:U,onEndKeyDown:Q,onStepKeyDown:z,...H}=Z,j=qY(t6,Y);return _(s.span,{...H,ref:G,onKeyDown:Y0(Z.onKeyDown,(W)=>{if(W.key==="Home")U(W),W.preventDefault();else if(W.key==="End")Q(W),W.preventDefault();else if(c5.concat(p5).includes(W.key))z(W),W.preventDefault()}),onPointerDown:Y0(Z.onPointerDown,(W)=>{let L=W.target;if(L.setPointerCapture(W.pointerId),W.preventDefault(),j.thumbs.has(L))L.focus({preventScroll:!0,focusVisible:!1});else J(W)}),onPointerMove:Y0(Z.onPointerMove,(W)=>{if(W.target.hasPointerCapture(W.pointerId))X(W)}),onPointerUp:Y0(Z.onPointerUp,(W)=>{let L=W.target;if(L.hasPointerCapture(W.pointerId))L.releasePointerCapture(W.pointerId),q(W)})})}),o5="SliderTrack",n5=S((Z,G)=>{let{__scopeSlider:Y,...J}=Z,X=qY(o5,Y);return _(s.span,{"data-disabled":X.disabled?"":void 0,"data-orientation":X.orientation,...J,ref:G})});n5.displayName=o5;var $9="SliderRange",t5=S((Z,G)=>{let{__scopeSlider:Y,...J}=Z,X=qY($9,Y),q=r5($9,Y),U=N(null),Q=n(G,U),z=X.values.length,H=X.values.map((L)=>XH(L,X.min,X.max)),j=z>1?Math.min(...H):0,W=100-Math.max(...H);return _(s.span,{"data-orientation":X.orientation,"data-disabled":X.disabled?"":void 0,...J,ref:Q,style:{...Z.style,[q.startEdge]:j+"%",[q.endEdge]:W+"%"}})});t5.displayName=$9;var e5="SliderThumb",[wM,ZH]=I9(e5),GH="SliderThumbProvider";function T9(Z){let{__scopeSlider:G,name:Y,children:J,internal_do_not_use_render:X}=Z,q=qY(GH,G),U=AM(G),[Q,z]=x(null),H=A0(()=>Q?U().findIndex((O)=>O.ref.current===Q):-1,[U,Q]),j=kJ(Q),W=Q?!!q.form||!!Q.closest("form"):!0,L=q.values[H],M=Y??(q.name?q.name+(q.values.length>1?"[]":""):void 0),V=L===void 0?0:XH(L,q.min,q.max);P(()=>{if(Q)return q.thumbs.add(Q),()=>{q.thumbs.delete(Q)}},[Q,q.thumbs]);let D={value:L,name:M,form:q.form,isFormControl:W,index:H,thumb:Q,onThumbChange:z,percent:V,size:j};return _(wM,{scope:G,...D,children:PM(X)?X(D):J})}T9.displayName=GH;var dJ="SliderThumbTrigger",_9=S((Z,G)=>{let{__scopeSlider:Y,...J}=Z,X=qY(dJ,Y),q=r5(dJ,Y),{index:U,value:Q,percent:z,size:H,onThumbChange:j}=ZH(dJ,Y),W=n(G,j),L=NM(U,X.values.length),M=H?.[q.size],V=M?kM(M,z,q.direction):0;return _("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[q.startEdge]:`calc(${z}% + ${V}px)`},children:_(O9.ItemSlot,{scope:Y,children:_(s.span,{role:"slider","aria-label":Z["aria-label"]||L,"aria-valuemin":X.min,"aria-valuenow":Q,"aria-valuemax":X.max,"aria-orientation":X.orientation,"data-orientation":X.orientation,"data-disabled":X.disabled?"":void 0,tabIndex:X.disabled?void 0:0,...J,ref:W,style:Q===void 0?{display:"none"}:Z.style,onFocus:Y0(Z.onFocus,()=>{X.valueIndexToChangeRef.current=U})})})})});_9.displayName=dJ;var YH=S((Z,G)=>{let{__scopeSlider:Y,name:J,...X}=Z;return _(T9,{__scopeSlider:Y,name:J,internal_do_not_use_render:({index:q,isFormControl:U})=>G7(J6,{children:[_(_9,{...X,ref:G,__scopeSlider:Y}),U?_(w9,{__scopeSlider:Y},q):null]})})});YH.displayName=e5;var JH="SliderBubbleInput",w9=S(({__scopeSlider:Z,...G},Y)=>{let{value:J,name:X,form:q}=ZH(JH,Z),U=N(null),Q=n(U,Y),z=CJ(J);return P(()=>{let H=U.current;if(!H)return;let j=window.HTMLInputElement.prototype,L=Object.getOwnPropertyDescriptor(j,"value").set;if(z!==J&&L){let M=new Event("input",{bubbles:!0});L.call(H,J),H.dispatchEvent(M)}},[z,J]),_(s.input,{style:{display:"none"},name:X,form:q,...G,ref:Q,defaultValue:J})});w9.displayName=JH;function RM(Z=[],G,Y){let J=[...Z];return J[Y]=G,J.sort((X,q)=>X-q)}function XH(Z,G,Y){let q=100/(Y-G)*(Z-G);return p6(q,[0,100])}function NM(Z,G){if(G>2)return`Value ${Z+1} of ${G}`;else if(G===2)return["Minimum","Maximum"][Z];else return}function bM(Z,G){if(Z.length===1)return 0;let Y=Z.map((X)=>Math.abs(X-G)),J=Math.min(...Y);return Y.indexOf(J)}function kM(Z,G,Y){let J=Z/2,X=50,q=R9([0,50],[0,J]);return(J-q(G)*Y)*Y}function CM(Z){return Z.slice(0,-1).map((G,Y)=>Z[Y+1]-G)}function SM(Z,G){if(G>0){let Y=CM(Z);return Math.min(...Y)>=G}return!0}function R9(Z,G){return(Y)=>{if(Z[0]===Z[1]||G[0]===G[1])return G[0];let J=(G[1]-G[0])/(Z[1]-Z[0]);return G[0]+J*(Y-Z[0])}}function qH(Z){if(!Number.isFinite(Z))return 0;let G=Z.toString();if(G.includes("e")){let[J,X]=G.split("e"),q=J.split(".")[1]||"",U=Number(X);return Math.max(0,q.length-U)}let Y=G.split(".")[1];return Y?Y.length:0}function cJ(Z,G){let Y=Math.pow(10,G);return Math.round(Z*Y)/Y}function xM(Z,{min:G,step:Y,direction:J,multiplier:X}){let q=qH(Y),U=(Z-G)/Y,Q=Math.round(U),z=cJ(Q*Y+G,q)===cJ(Z,q),H;if(z)H=Q+X*J;else if(J>0)H=Math.ceil(U);else H=Math.floor(U);return cJ(H*Y+G,q)}function PM(Z){return typeof Z==="function"}var DU=v6(Nj(),1);function KU(Z,G){Z.dispatchEvent(new Event(G,{bubbles:!0}))}function bj(Z){return Z.getAttribute("aria-label")||Z.labels?.[0]?.textContent?.trim()||"Control"}function H3(Z,G){let Y=document.createElement("span");Y.className="radix-select-host",Z.insertAdjacentElement("afterend",Y);let J=DU.createRoot(Y),X={host:Y,root:J,render(){let q=Array.from(Z.options).filter((z)=>z.value.length>0).map((z)=>({description:z.title,disabled:z.disabled,label:z.textContent||z.value,value:z.value})),U=q.some((z)=>z.value===Z.value)?Z.value:void 0,Q=Z.options[0]?.textContent||"请选择";J.render(G7(J7.Root,{disabled:Z.disabled,value:U,onValueChange:(z)=>{Z.value=z,KU(Z,"change"),X.render()},children:[G7(J7.Trigger,{className:"radix-select-trigger","aria-label":bj(Z),children:[_(J7.Value,{placeholder:Q}),_(J7.Icon,{className:"radix-select-icon","aria-hidden":"true",children:_("svg",{viewBox:"0 0 24 24",children:_("path",{d:"m7 9 5 5 5-5"})})})]}),_(J7.Portal,{children:_(J7.Content,{className:"radix-select-content",position:"popper",sideOffset:5,children:_(J7.Viewport,{className:"radix-select-viewport",children:q.map((z)=>G7(J7.Item,{className:"radix-select-item",disabled:z.disabled,title:z.description,value:z.value,children:[_(J7.ItemText,{children:z.label}),_(J7.ItemIndicator,{className:"radix-select-indicator","aria-hidden":"true",children:"✓"})]},z.value))})})})]}))}};G.push(X)}function W3(Z,G){let Y=document.createElement("span");Y.className="radix-slider-host",Z.insertAdjacentElement("afterend",Y);let J=DU.createRoot(Y),X={host:Y,root:J,render(){let q=Number(Z.min),U=Number(Z.max),Q=Number(Z.step),z=Number(Z.value);J.render(G7(K6.Root,{"aria-label":bj(Z),className:"radix-slider-root",disabled:Z.disabled,max:Number.isFinite(U)?U:100,min:Number.isFinite(q)?q:0,step:Number.isFinite(Q)&&Q>0?Q:1,value:[Number.isFinite(z)?z:0],onValueChange:([H])=>{if(H===void 0)return;Z.value=String(H),KU(Z,"input"),X.render()},onValueCommit:()=>KU(Z,"change"),children:[_(K6.Track,{className:"radix-slider-track",children:_(K6.Range,{className:"radix-slider-range"})}),_(K6.Thumb,{className:"radix-slider-thumb"})]}))}};G.push(X)}function hO(Z=document){let G=[];return Z.querySelectorAll("select[data-radix-select]").forEach((Y)=>{Y.classList.add("radix-native-control"),Y.hidden=!0,Y.tabIndex=-1,Y.setAttribute("aria-hidden","true"),H3(Y,G)}),Z.querySelectorAll('input[type="range"][data-radix-slider]').forEach((Y)=>{Y.classList.add("radix-native-control"),Y.hidden=!0,Y.tabIndex=-1,Y.setAttribute("aria-hidden","true"),W3(Y,G)}),G.forEach((Y)=>Y.render()),{destroy(){G.forEach((Y)=>{Y.root.unmount(),Y.host.remove()}),G.length=0},sync(){G.forEach((Y)=>Y.render())}}}export{hO as mountRadixControls}; +`)},VM=0,XJ=[];function b5(Z){var J=R([]),Y=R([0,0]),X=R(),G=S(VM++)[0],q=S(BY)[0],U=R(Z);P(function(){U.current=Z},[Z]),P(function(){if(Z.inert){document.body.classList.add("block-interactivity-".concat(G));var V=K5([Z.lockRef.current],(Z.shards||[]).map(k5),!0).filter(Boolean);return V.forEach(function(A){return A.classList.add("allow-interactivity-".concat(G))}),function(){document.body.classList.remove("block-interactivity-".concat(G)),V.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(G))})}}return},[Z.inert,Z.lockRef.current,Z.shards]);var Q=E(function(V,A){if("touches"in V&&V.touches.length===2||V.type==="wheel"&&V.ctrlKey)return!U.current.allowPinchZoom;var F=rX(V),M=Y.current,K="deltaX"in V?V.deltaX:M[0]-F[0],$="deltaY"in V?V.deltaY:M[1]-F[1],O,N=V.target,I=Math.abs(K)>Math.abs($)?"h":"v";if("touches"in V&&I==="h"&&N.type==="range")return!1;var w=window.getSelection(),b=w&&w.anchorNode,k=b?b===N||b.contains(N):!1;if(k)return!1;var x=A4(I,N);if(!x)return!0;if(x)O=I;else O=I==="v"?"h":"v",x=A4(I,N);if(!x)return!1;if(!X.current&&"changedTouches"in V&&(K||$))X.current=O;if(!O)return!0;var n=X.current||O;return w5(n,A,V,n==="h"?K:$,!0)},[]),z=E(function(V){var A=V;if(!XJ.length||XJ[XJ.length-1]!==q)return;var F="deltaY"in A?R5(A):rX(A),M=J.current.filter(function(O){return O.name===A.type&&(O.target===A.target||A.target===O.shadowParent)&&FM(O.delta,F)})[0];if(M&&M.should){if(A.cancelable)A.preventDefault();return}if(!M){var K=(U.current.shards||[]).map(k5).filter(Boolean).filter(function(O){return O.contains(A.target)}),$=K.length>0?Q(A,K[0]):!U.current.noIsolation;if($){if(A.cancelable)A.preventDefault()}}},[]),W=E(function(V,A,F,M){var K={name:V,delta:A,target:F,should:M,shadowParent:DM(F)};J.current.push(K),setTimeout(function(){J.current=J.current.filter(function($){return $!==K})},1)},[]),B=E(function(V){Y.current=rX(V),X.current=void 0},[]),H=E(function(V){W(V.type,R5(V),V.target,Q(V,Z.lockRef.current))},[]),j=E(function(V){W(V.type,rX(V),V.target,Q(V,Z.lockRef.current))},[]);P(function(){return XJ.push(q),Z.setCallbacks({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:j}),document.addEventListener("wheel",z,F6),document.addEventListener("touchmove",z,F6),document.addEventListener("touchstart",B,F6),function(){XJ=XJ.filter(function(V){return V!==q}),document.removeEventListener("wheel",z,F6),document.removeEventListener("touchmove",z,F6),document.removeEventListener("touchstart",B,F6)}},[]);var{removeScrollBar:L,inert:D}=Z;return c0(E7,null,D?c0(q,{styles:KM(G)}):null,L?c0(D4,{noRelative:Z.noRelative,gapMode:Z.gapMode}):null)}function DM(Z){var J=null;while(Z!==null){if(Z instanceof ShadowRoot)J=Z.host,Z=Z.host;Z=Z.parentNode}return J}var C5=j4(sX,b5);var S5=C(function(Z,J){return c0(WY,r0({},Z,{ref:J,sideCar:C5}))});S5.classNames=WY.classNames;var O4=S5;var $M=[" ","Enter","ArrowUp","ArrowDown"],AM=[" ","Enter"],K6="Select",[oX,nX,OM]=_X(K6),[V6,IM]=y7(K6,[OM,t6]),tX=t6(),[_M,RZ]=V6(K6),[TM,NM]=V6(K6),wM="SelectProvider";function R4(Z){let{__scopeSelect:J,children:Y,open:X,defaultOpen:G,onOpenChange:q,value:U,defaultValue:Q,onValueChange:z,dir:W,name:B,autoComplete:H,disabled:j,required:L,form:D,internal_do_not_use_render:V}=Z,A=tX(J),[F,M]=S(null),[K,$]=S(null),[O,N]=S(!1),I=TX(W),[w,b]=j6({prop:X,defaultProp:G??!1,onChange:q,caller:K6}),[k,x]=j6({prop:U,defaultProp:Q,onChange:z,caller:K6}),n=R(null),s=R(k);P(()=>{let D0=D?F?.ownerDocument.getElementById(D):F?.form;if(D0 instanceof HTMLFormElement){let N0=()=>x(s.current);return D0.addEventListener("reset",N0),()=>D0.removeEventListener("reset",N0)}},[D,F,x]);let J0=F?!!D||!!F.closest("form"):!0,[Y0,h]=S(new Set),r=a6(),f=Array.from(Y0).map((D0)=>D0.props.value).join(";"),t=E((D0)=>{h((N0)=>new Set(N0).add(D0))},[]),I0=E((D0)=>{h((N0)=>{let s0=new Set(N0);return s0.delete(D0),s0})},[]),m0={required:L,trigger:F,onTriggerChange:M,valueNode:K,onValueNodeChange:$,valueNodeHasChildren:O,onValueNodeHasChildrenChange:N,contentId:r,value:k,onValueChange:x,open:w,onOpenChange:b,dir:I,triggerPointerDownPosRef:n,disabled:j,name:B,autoComplete:H,form:D,nativeOptions:Y0,nativeSelectKey:f,isFormControl:J0};return _(gX,{...A,children:_(_M,{scope:J,...m0,children:_(oX.Provider,{scope:J,children:_(TM,{scope:J,onNativeOptionAdd:t,onNativeOptionRemove:I0,children:vM(V)?V(m0):Y})})})})}R4.displayName=wM;var x5=(Z)=>{let{__scopeSelect:J,children:Y,...X}=Z;return _(R4,{__scopeSelect:J,...X,internal_do_not_use_render:({isFormControl:G})=>h0(G6,{children:[Y,G?_(b4,{__scopeSelect:J}):null]})})};x5.displayName=K6;var P5="SelectTrigger",E5=C((Z,J)=>{let{__scopeSelect:Y,disabled:X=!1,...G}=Z,q=tX(Y),U=RZ(P5,Y),Q=U.disabled||X,z=o(J,U.onTriggerChange),W=nX(Y),B=R("touch"),[H,j,L]=zW((V)=>{let A=W().filter((K)=>!K.disabled),F=A.find((K)=>K.value===U.value),M=WW(A,V,F);if(M!==void 0)U.onValueChange(M.value)}),D=(V)=>{if(!Q)U.onOpenChange(!0),L();if(V)U.triggerPointerDownPosRef.current={x:Math.round(V.pageX),y:Math.round(V.pageY)}};return _(vX,{asChild:!0,...q,children:_(d.button,{type:"button",role:"combobox","aria-controls":U.open?U.contentId:void 0,"aria-expanded":U.open,"aria-required":U.required,"aria-autocomplete":"none",dir:U.dir,"data-state":U.open?"open":"closed",disabled:Q,"data-disabled":Q?"":void 0,"data-placeholder":eX(U.value)?"":void 0,...G,ref:z,onClick:l(G.onClick,(V)=>{if(V.currentTarget.focus(),B.current!=="mouse")D(V)}),onPointerDown:l(G.onPointerDown,(V)=>{B.current=V.pointerType;let A=V.target;if(A.hasPointerCapture(V.pointerId))A.releasePointerCapture(V.pointerId);if(V.button===0&&V.ctrlKey===!1&&V.pointerType==="mouse")D(V),V.preventDefault()}),onKeyDown:l(G.onKeyDown,(V)=>{let A=H.current!=="";if(!(V.ctrlKey||V.altKey||V.metaKey)&&V.key.length===1)j(V.key);if(A&&V.key===" ")return;if($M.includes(V.key))D(),V.preventDefault()})})})});E5.displayName=P5;var h5="SelectValue",y5=C((Z,J)=>{let{__scopeSelect:Y,className:X,style:G,children:q,placeholder:U="",...Q}=Z,z=RZ(h5,Y),{onValueNodeHasChildrenChange:W}=z,B=q!==void 0,H=o(J,z.onValueNodeChange);K0(()=>{W(B)},[W,B]);let j=eX(z.value);return _(d.span,{...Q,asChild:j?!1:Q.asChild,ref:H,style:{pointerEvents:"none"},children:_(E7,{children:j?U:q},j?"placeholder":"value")})});y5.displayName=h5;var RM="SelectIcon",f5=C((Z,J)=>{let{__scopeSelect:Y,children:X,...G}=Z;return _(d.span,{"aria-hidden":!0,...G,ref:J,children:X||"▼"})});f5.displayName=RM;var g5="SelectPortal",[kM,bM]=V6(g5,{forceMount:void 0}),v5=(Z)=>{let{__scopeSelect:J,forceMount:Y,...X}=Z;return _(kM,{scope:Z.__scopeSelect,forceMount:Y,children:_(QY,{asChild:!0,...X})})};v5.displayName=g5;var wZ="SelectContent",u5=C((Z,J)=>{let Y=bM(wZ,Z.__scopeSelect),{forceMount:X=Y.forceMount,...G}=Z,q=RZ(wZ,Z.__scopeSelect),[U,Q]=S();return K0(()=>{Q(new DocumentFragment)},[]),_(e6,{present:X||q.open,children:({present:z})=>z?_(c5,{...G,ref:J}):_(m5,{...G,fragment:U})})});u5.displayName=wZ;var m5=C((Z,J)=>{let{__scopeSelect:Y,children:X,fragment:G}=Z;if(!G)return null;return w4.createPortal(_(d5,{scope:Y,children:_(oX.Slot,{scope:Y,children:_("div",{ref:J,children:X})})}),G)});m5.displayName="SelectContentFragment";var C7=10,[d5,kZ]=V6(wZ),CM="SelectContentImpl",SM=q6("SelectContent.RemoveScroll"),c5=C((Z,J)=>{let{__scopeSelect:Y}=Z,{position:X="item-aligned",onCloseAutoFocus:G,onEscapeKeyDown:q,onPointerDownOutside:U,side:Q,sideOffset:z,align:W,alignOffset:B,arrowPadding:H,collisionBoundary:j,collisionPadding:L,sticky:D,hideWhenDetached:V,avoidCollisions:A,...F}=Z,M=RZ(wZ,Y),[K,$]=S(null),[O,N]=S(null),I=o(J,$),[w,b]=S(null),[k,x]=S(null),n=nX(Y),[s,J0]=S(!1),Y0=R(!1);P(()=>{if(K)return F5(K)},[K]),tQ();let h=E((v)=>{let[$0,...d0]=n().map((w0)=>w0.ref.current),[W0]=d0.slice(-1),M0=document.activeElement;for(let w0 of v){if(w0===M0)return;if(w0?.scrollIntoView({block:"nearest"}),w0===$0&&O)O.scrollTop=0;if(w0===W0&&O)O.scrollTop=O.scrollHeight;if(w0?.focus(),document.activeElement!==M0)return}},[n,O]),r=E(()=>h([w,K]),[h,w,K]);P(()=>{if(s)r()},[s,r]);let{onOpenChange:f,triggerPointerDownPosRef:t}=M;P(()=>{if(K){let v={x:0,y:0},$0=(W0)=>{v={x:Math.abs(Math.round(W0.pageX)-(t.current?.x??0)),y:Math.abs(Math.round(W0.pageY)-(t.current?.y??0))}},d0=(W0)=>{if(v.x<=10&&v.y<=10)W0.preventDefault();else if(!W0.composedPath().includes(K))f(!1);document.removeEventListener("pointermove",$0),t.current=null};if(t.current!==null)document.addEventListener("pointermove",$0),document.addEventListener("pointerup",d0,{capture:!0,once:!0});return()=>{document.removeEventListener("pointermove",$0),document.removeEventListener("pointerup",d0,{capture:!0})}}},[K,f,t]),P(()=>{let v=()=>f(!1);return window.addEventListener("blur",v),window.addEventListener("resize",v),()=>{window.removeEventListener("blur",v),window.removeEventListener("resize",v)}},[f]);let[I0,m0]=zW((v)=>{let $0=n().filter((M0)=>!M0.disabled),d0=$0.find((M0)=>M0.ref.current===document.activeElement),W0=WW($0,v,d0);if(W0)setTimeout(()=>W0.ref.current?.focus())}),D0=E((v,$0,d0)=>{let W0=!Y0.current&&!d0;if(M.value!==void 0&&M.value===$0||W0){if(b(v),W0)Y0.current=!0}},[M.value]),N0=E(()=>K?.focus(),[K]),s0=E((v,$0,d0)=>{let W0=!Y0.current&&!d0;if(M.value!==void 0&&M.value===$0||W0)x(v)},[M.value]),u6=X==="popper"?I4:p5,Y6=u6===I4?{side:Q,sideOffset:z,align:W,alignOffset:B,arrowPadding:H,collisionBoundary:j,collisionPadding:L,sticky:D,hideWhenDetached:V,avoidCollisions:A}:{};return _(d5,{scope:Y,content:K,viewport:O,onViewportChange:N,itemRefCallback:D0,selectedItem:w,onItemLeave:N0,itemTextRefCallback:s0,focusSelectedItem:r,selectedItemText:k,position:X,isPositioned:s,searchRef:I0,children:_(O4,{as:SM,allowPinchZoom:!0,children:_(s9,{asChild:!0,trapped:M.open,onMountAutoFocus:(v)=>{v.preventDefault()},onUnmountAutoFocus:l(G,(v)=>{M.trigger?.focus({preventScroll:!0}),v.preventDefault()}),children:_(ZY,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:q,onPointerDownOutside:U,onFocusOutside:(v)=>v.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:_(u6,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:(v)=>v.preventDefault(),...F,...Y6,onPlaced:()=>J0(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...F.style},onKeyDown:l(F.onKeyDown,(v)=>{let $0=v.ctrlKey||v.altKey||v.metaKey;if(v.key==="Tab")v.preventDefault();if(!$0&&v.key.length===1)m0(v.key);if(["ArrowUp","ArrowDown","Home","End"].includes(v.key)){let W0=n().filter((M0)=>!M0.disabled).map((M0)=>M0.ref.current);if(["ArrowUp","End"].includes(v.key))W0=W0.slice().reverse();if(["ArrowUp","ArrowDown"].includes(v.key)){let M0=v.target,w0=W0.indexOf(M0);W0=W0.slice(w0+1)}setTimeout(()=>h(W0)),v.preventDefault()}})})})})})})});c5.displayName=CM;var xM="SelectItemAlignedPosition",p5=C((Z,J)=>{let{__scopeSelect:Y,onPlaced:X,...G}=Z,q=RZ(wZ,Y),U=kZ(wZ,Y),[Q,z]=S(null),[W,B]=S(null),H=o(J,B),j=nX(Y),L=R(!1),D=R(!0),{viewport:V,selectedItem:A,selectedItemText:F,focusSelectedItem:M}=U,K=E(()=>{if(q.trigger&&q.valueNode&&Q&&W&&V&&A&&F){let I=q.trigger.getBoundingClientRect(),w=W.getBoundingClientRect(),b=q.valueNode.getBoundingClientRect(),k=F.getBoundingClientRect();if(q.dir!=="rtl"){let M0=k.left-w.left,w0=b.left-M0,a7=I.left-w0,M7=I.width+a7,S9=Math.max(M7,w.width),x9=window.innerWidth-C7,P9=s6(w0,[C7,Math.max(C7,x9-S9)]);Q.style.minWidth=M7+"px",Q.style.left=P9+"px"}else{let M0=w.right-k.right,w0=window.innerWidth-b.right-M0,a7=window.innerWidth-I.right-w0,M7=I.width+a7,S9=Math.max(M7,w.width),x9=window.innerWidth-C7,P9=s6(w0,[C7,Math.max(C7,x9-S9)]);Q.style.minWidth=M7+"px",Q.style.right=P9+"px"}let x=j(),n=window.innerHeight-C7*2,s=V.scrollHeight,J0=window.getComputedStyle(W),Y0=parseInt(J0.borderTopWidth,10),h=parseInt(J0.paddingTop,10),r=parseInt(J0.borderBottomWidth,10),f=parseInt(J0.paddingBottom,10),t=Y0+h+s+f+r,I0=Math.min(A.offsetHeight*5,t),m0=window.getComputedStyle(V),D0=parseInt(m0.paddingTop,10),N0=parseInt(m0.paddingBottom,10),s0=I.top+I.height/2-C7,u6=n-s0,Y6=A.offsetHeight/2,v=A.offsetTop+Y6,$0=Y0+h+v,d0=t-$0;if($0<=s0){let M0=x.length>0&&A===x[x.length-1].ref.current;Q.style.bottom="0px";let w0=W.clientHeight-V.offsetTop-V.offsetHeight,a7=Math.max(u6,Y6+(M0?N0:0)+w0+r),M7=$0+a7;Q.style.height=M7+"px"}else{let M0=x.length>0&&A===x[0].ref.current;Q.style.top="0px";let a7=Math.max(s0,Y0+V.offsetTop+(M0?D0:0)+Y6)+d0;Q.style.height=a7+"px",V.scrollTop=$0-s0+V.offsetTop}Q.style.margin=`${C7}px 0`,Q.style.minHeight=I0+"px",Q.style.maxHeight=n+"px",X?.(),requestAnimationFrame(()=>L.current=!0)}},[j,q.trigger,q.valueNode,Q,W,V,A,F,q.dir,X]);K0(()=>K(),[K]);let[$,O]=S();K0(()=>{if(W)O(window.getComputedStyle(W).zIndex)},[W]);let N=E((I)=>{if(I&&D.current===!0)K(),M?.(),D.current=!1},[K,M]);return _(EM,{scope:Y,contentWrapper:Q,shouldExpandOnScrollRef:L,onScrollButtonChange:N,children:_("div",{ref:z,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:$},children:_(d.div,{...G,ref:H,style:{boxSizing:"border-box",maxHeight:"100%",...G.style}})})})});p5.displayName=xM;var PM="SelectPopperPosition",I4=C((Z,J)=>{let{__scopeSelect:Y,align:X="start",collisionPadding:G=C7,...q}=Z,U=tX(Y);return _(uX,{...U,...q,ref:J,align:X,collisionPadding:G,style:{boxSizing:"border-box",...q.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)"}}})});I4.displayName=PM;var[EM,k4]=V6(wZ,{}),_4="SelectViewport",l5=C((Z,J)=>{let{__scopeSelect:Y,nonce:X,...G}=Z,q=kZ(_4,Y),U=k4(_4,Y),Q=o(J,q.onViewportChange),z=R(0);return h0(G6,{children:[_("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:X}),_(oX.Slot,{scope:Y,children:_(d.div,{"data-radix-select-viewport":"",role:"presentation",...G,ref:Q,style:{position:"relative",flex:1,overflow:"hidden auto",...G.style},onScroll:l(G.onScroll,(W)=>{let B=W.currentTarget,{contentWrapper:H,shouldExpandOnScrollRef:j}=U;if(j?.current&&H){let L=Math.abs(z.current-B.scrollTop);if(L>0){let D=window.innerHeight-C7*2,V=parseFloat(H.style.minHeight),A=parseFloat(H.style.height),F=Math.max(V,A);if(F0?$:0,H.style.justifyContent="flex-end"}}}z.current=B.scrollTop})})})]})});l5.displayName=_4;var i5="SelectGroup",[hM,yM]=V6(i5),s5=C((Z,J)=>{let{__scopeSelect:Y,...X}=Z,G=a6();return _(hM,{scope:Y,id:G,children:_(d.div,{role:"group","aria-labelledby":G,...X,ref:J})})});s5.displayName=i5;var r5="SelectLabel",a5=C((Z,J)=>{let{__scopeSelect:Y,...X}=Z,G=yM(r5,Y);return _(d.div,{id:G.id,...X,ref:J})});a5.displayName=r5;var aX="SelectItem",[fM,o5]=V6(aX),n5=C((Z,J)=>{let{__scopeSelect:Y,value:X,disabled:G=!1,textValue:q,...U}=Z,Q=RZ(aX,Y),z=kZ(aX,Y),W=Q.value===X,[B,H]=S(q??""),[j,L]=S(!1),D=Y7((K)=>z.itemRefCallback?.(K,X,G)),V=o(J,D),A=a6(),F=R("touch"),M=()=>{if(!G)Q.onValueChange(X),Q.onOpenChange(!1)};return _(fM,{scope:Y,value:X,disabled:G,textId:A,isSelected:W,onItemTextChange:E((K)=>{H(($)=>$||(K?.textContent??"").trim())},[]),children:_(oX.ItemSlot,{scope:Y,value:X,disabled:G,textValue:B,children:_(d.div,{role:"option","aria-labelledby":A,"data-highlighted":j?"":void 0,"aria-selected":W&&j,"data-state":W?"checked":"unchecked","aria-disabled":G||void 0,"data-disabled":G?"":void 0,tabIndex:G?void 0:-1,...U,ref:V,onFocus:l(U.onFocus,()=>L(!0)),onBlur:l(U.onBlur,()=>L(!1)),onClick:l(U.onClick,()=>{if(F.current!=="mouse")M()}),onPointerUp:l(U.onPointerUp,()=>{if(F.current==="mouse")M()}),onPointerDown:l(U.onPointerDown,(K)=>{F.current=K.pointerType}),onPointerMove:l(U.onPointerMove,(K)=>{if(F.current=K.pointerType,G)z.onItemLeave?.();else if(F.current==="mouse")K.currentTarget.focus({preventScroll:!0})}),onPointerLeave:l(U.onPointerLeave,(K)=>{if(K.currentTarget===document.activeElement)z.onItemLeave?.()}),onKeyDown:l(U.onKeyDown,(K)=>{if(G||K.target!==K.currentTarget)return;if(z.searchRef?.current!==""&&K.key===" ")return;if(AM.includes(K.key))M();if(K.key===" ")K.preventDefault()})})})})});n5.displayName=aX;var HY="SelectItemText",t5=C((Z,J)=>{let{__scopeSelect:Y,className:X,style:G,...q}=Z,U=RZ(HY,Y),Q=kZ(HY,Y),z=o5(HY,Y),W=NM(HY,Y),[B,H]=S(null),j=Y7((M)=>Q.itemTextRefCallback?.(M,z.value,z.disabled)),L=o(J,H,z.onItemTextChange,j),D=B?.textContent,V=F0(()=>_("option",{value:z.value,disabled:z.disabled,children:D},z.value),[z.disabled,z.value,D]),{onNativeOptionAdd:A,onNativeOptionRemove:F}=W;return K0(()=>{return A(V),()=>F(V)},[A,F,V]),h0(G6,{children:[_(d.span,{id:z.textId,...q,ref:L}),z.isSelected&&U.valueNode&&!U.valueNodeHasChildren&&!eX(U.value)?w4.createPortal(q.children,U.valueNode):null]})});t5.displayName=HY;var e5="SelectItemIndicator",ZW=C((Z,J)=>{let{__scopeSelect:Y,...X}=Z;return o5(e5,Y).isSelected?_(d.span,{"aria-hidden":!0,...X,ref:J}):null});ZW.displayName=e5;var T4="SelectScrollUpButton",JW=C((Z,J)=>{let Y=kZ(T4,Z.__scopeSelect),X=k4(T4,Z.__scopeSelect),[G,q]=S(!1),U=o(J,X.onScrollButtonChange);return K0(()=>{if(Y.viewport&&Y.isPositioned){let z=function(){let B=W.scrollTop>0;q(B)};var Q=z;let W=Y.viewport;return z(),W.addEventListener("scroll",z),()=>W.removeEventListener("scroll",z)}},[Y.viewport,Y.isPositioned]),G?_(XW,{...Z,ref:U,onAutoScroll:()=>{let{viewport:Q,selectedItem:z}=Y;if(Q&&z)Q.scrollTop=Q.scrollTop-z.offsetHeight}}):null});JW.displayName=T4;var N4="SelectScrollDownButton",YW=C((Z,J)=>{let Y=kZ(N4,Z.__scopeSelect),X=k4(N4,Z.__scopeSelect),[G,q]=S(!1),U=o(J,X.onScrollButtonChange);return K0(()=>{if(Y.viewport&&Y.isPositioned){let z=function(){let B=W.scrollHeight-W.clientHeight,H=Math.ceil(W.scrollTop)W.removeEventListener("scroll",z)}},[Y.viewport,Y.isPositioned]),G?_(XW,{...Z,ref:U,onAutoScroll:()=>{let{viewport:Q,selectedItem:z}=Y;if(Q&&z)Q.scrollTop=Q.scrollTop+z.offsetHeight}}):null});YW.displayName=N4;var XW=C((Z,J)=>{let{__scopeSelect:Y,onAutoScroll:X,...G}=Z,q=kZ("SelectScrollButton",Y),U=R(null),Q=nX(Y),z=E(()=>{if(U.current!==null)window.clearInterval(U.current),U.current=null},[]);return P(()=>{return()=>z()},[z]),K0(()=>{Q().find((B)=>B.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[Q]),_(d.div,{"aria-hidden":!0,...G,ref:J,style:{flexShrink:0,...G.style},onPointerDown:l(G.onPointerDown,()=>{if(U.current===null)U.current=window.setInterval(X,50)}),onPointerMove:l(G.onPointerMove,()=>{if(q.onItemLeave?.(),U.current===null)U.current=window.setInterval(X,50)}),onPointerLeave:l(G.onPointerLeave,()=>{z()})})}),gM="SelectSeparator",GW=C((Z,J)=>{let{__scopeSelect:Y,...X}=Z;return _(d.div,{"aria-hidden":!0,...X,ref:J})});GW.displayName=gM;var qW="SelectArrow",UW=C((Z,J)=>{let{__scopeSelect:Y,...X}=Z,G=tX(Y);return kZ(qW,Y).position==="popper"?_(mX,{...G,...X,ref:J}):null});UW.displayName=qW;var QW="SelectBubbleInput",b4=C(({__scopeSelect:Z,...J},Y)=>{let X=RZ(QW,Z),{value:G,onValueChange:q,required:U,disabled:Q,name:z,autoComplete:W,form:B}=X,{nativeOptions:H,nativeSelectKey:j}=X,L=R(null),D=o(Y,L),V=G??"",A=dX(V),F=Array.from(H).some((M)=>(M.props.value??"")==="");return P(()=>{let M=L.current;if(!M)return;let K=window.HTMLSelectElement.prototype,O=Object.getOwnPropertyDescriptor(K,"value").set;if(A!==V&&O){let N=new Event("change",{bubbles:!0});O.call(M,V),M.dispatchEvent(N)}},[A,V]),h0(d.select,{"aria-hidden":!0,required:U,tabIndex:-1,name:z,autoComplete:W,disabled:Q,form:B,onChange:(M)=>q(M.target.value),...J,style:{...U4,...J.style},ref:D,defaultValue:V,children:[eX(G)&&!F?_("option",{value:""}):null,Array.from(H)]},j)});b4.displayName=QW;function vM(Z){return typeof Z==="function"}function eX(Z){return Z===""||Z===void 0}function zW(Z){let J=Y7(Z),Y=R(""),X=R(0),G=E((U)=>{let Q=Y.current+U;J(Q),function z(W){if(Y.current=W,window.clearTimeout(X.current),W!=="")X.current=window.setTimeout(()=>z(""),1000)}(Q)},[J]),q=E(()=>{Y.current="",window.clearTimeout(X.current)},[]);return P(()=>{return()=>window.clearTimeout(X.current)},[]),[Y,G,q]}function WW(Z,J,Y){let G=J.length>1&&Array.from(J).every((W)=>W===J[0])?J[0]:J,q=Y?Z.indexOf(Y):-1,U=uM(Z,Math.max(q,0));if(G.length===1)U=U.filter((W)=>W!==Y);let z=U.find((W)=>W.textValue.toLowerCase().startsWith(G.toLowerCase()));return z!==Y?z:void 0}function uM(Z,J){return Z.map((Y,X)=>Z[(J+X)%Z.length])}m();var D6={};d6(D6,{unstable_ThumbTrigger:()=>E4,unstable_ThumbProvider:()=>P4,unstable_SliderThumbTrigger:()=>E4,unstable_SliderThumbProvider:()=>P4,unstable_SliderBubbleInput:()=>h4,unstable_BubbleInput:()=>h4,createSliderScope:()=>cM,Track:()=>DW,Thumb:()=>_W,SliderTrack:()=>DW,SliderThumb:()=>_W,SliderRange:()=>$W,Slider:()=>LW,Root:()=>LW,Range:()=>$W});var BW=["PageUp","PageDown"],HW=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],jW={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},GJ="Slider",[C4,mM,dM]=_X(GJ),[x4,cM]=y7(GJ,[dM]),[pM,jY]=x4(GJ),LW=C((Z,J)=>{let{name:Y,min:X=0,max:G=100,step:q=1,orientation:U="horizontal",disabled:Q=!1,minStepsBetweenThumbs:z=0,defaultValue:W=[X],value:B,onValueChange:H=()=>{},onValueCommit:j=()=>{},inverted:L=!1,form:D,...V}=Z,A=R(new Set),F=R(0),M=R(!1),$=U==="horizontal"?lM:iM,[O,N]=S(null),I=o(J,N),[w=[],b]=j6({prop:B,defaultProp:W,onChange:(h)=>{[...A.current][F.current]?.focus({preventScroll:!0,focusVisible:M.current}),M.current=!1,H(h)}}),k=R(w),x=R(w);P(()=>{let h=D?O?.ownerDocument.getElementById(D):O?.closest("form");if(h instanceof HTMLFormElement){let r=()=>b(x.current);return h.addEventListener("reset",r),()=>h.removeEventListener("reset",r)}},[O,D,b]);function n(h){let r=oM(w,h);Y0(h,r)}function s(h){Y0(h,F.current)}function J0(){let h=k.current[F.current];if(w[F.current]!==h)j(w)}function Y0(h,r,{commit:f}={commit:!1}){let t=wW(q),I0=J8(Math.round((h-X)/q)*q+X,t),m0=s6(I0,[X,G]);b((D0=[])=>{let N0=rM(D0,m0,r);if(eM(N0,z*q)){F.current=N0.indexOf(m0);let s0=String(N0)!==String(D0);if(s0&&f)j(N0);return s0?N0:D0}else return D0})}return _(pM,{scope:Z.__scopeSlider,name:Y,disabled:Q,min:X,max:G,valueIndexToChangeRef:F,thumbs:A.current,values:w,orientation:U,form:D,children:_(C4.Provider,{scope:Z.__scopeSlider,children:_(C4.Slot,{scope:Z.__scopeSlider,children:_($,{"aria-disabled":Q,"data-disabled":Q?"":void 0,...V,ref:I,onPointerDown:l(V.onPointerDown,()=>{if(!Q)k.current=w,M.current=!1}),min:X,max:G,inverted:L,onSlideStart:Q?void 0:n,onSlideMove:Q?void 0:s,onSlideEnd:Q?void 0:J0,onHomeKeyDown:()=>{if(!Q)M.current=!0,Y0(X,0,{commit:!0})},onEndKeyDown:()=>{if(!Q)M.current=!0,Y0(G,w.length-1,{commit:!0})},onStepKeyDown:({event:h,direction:r})=>{if(!Q){M.current=!0;let I0=BW.includes(h.key)||h.shiftKey&&HW.includes(h.key)?10:1,m0=F.current,D0=w[m0],N0=ZF(D0,{min:X,step:q,direction:r,multiplier:I0});Y0(N0,m0,{commit:!0})}}})})})})});LW.displayName=GJ;var[MW,FW]=x4(GJ,{startEdge:"left",endEdge:"right",size:"width",direction:1}),lM=C((Z,J)=>{let{min:Y,max:X,dir:G,inverted:q,onSlideStart:U,onSlideMove:Q,onSlideEnd:z,onStepKeyDown:W,...B}=Z,[H,j]=S(null),L=o(J,j),D=R(void 0),V=TX(G),A=V==="ltr",F=A&&!q||!A&&q;function M(K){let $=D.current||H.getBoundingClientRect(),O=[0,$.width],I=y4(O,F?[Y,X]:[X,Y]);return D.current=$,I(K-$.left)}return _(MW,{scope:Z.__scopeSlider,startEdge:F?"left":"right",endEdge:F?"right":"left",direction:F?1:-1,size:"width",children:_(KW,{dir:V,"data-orientation":"horizontal",...B,ref:L,style:{...B.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:(K)=>{let $=M(K.clientX);U?.($)},onSlideMove:(K)=>{let $=M(K.clientX);Q?.($)},onSlideEnd:()=>{D.current=void 0,z?.()},onStepKeyDown:(K)=>{let O=jW[F?"from-left":"from-right"].includes(K.key);W?.({event:K,direction:O?-1:1})}})})}),iM=C((Z,J)=>{let{min:Y,max:X,inverted:G,onSlideStart:q,onSlideMove:U,onSlideEnd:Q,onStepKeyDown:z,...W}=Z,B=R(null),H=o(J,B),j=R(void 0),L=!G;function D(V){let A=j.current||B.current.getBoundingClientRect(),F=[0,A.height],K=y4(F,L?[X,Y]:[Y,X]);return j.current=A,K(V-A.top)}return _(MW,{scope:Z.__scopeSlider,startEdge:L?"bottom":"top",endEdge:L?"top":"bottom",size:"height",direction:L?1:-1,children:_(KW,{"data-orientation":"vertical",...W,ref:H,style:{...W.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:(V)=>{let A=D(V.clientY);q?.(A)},onSlideMove:(V)=>{let A=D(V.clientY);U?.(A)},onSlideEnd:()=>{j.current=void 0,Q?.()},onStepKeyDown:(V)=>{let F=jW[L?"from-bottom":"from-top"].includes(V.key);z?.({event:V,direction:F?-1:1})}})})}),KW=C((Z,J)=>{let{__scopeSlider:Y,onSlideStart:X,onSlideMove:G,onSlideEnd:q,onHomeKeyDown:U,onEndKeyDown:Q,onStepKeyDown:z,...W}=Z,B=jY(GJ,Y);return _(d.span,{...W,ref:J,onKeyDown:l(Z.onKeyDown,(H)=>{if(H.key==="Home")U(H),H.preventDefault();else if(H.key==="End")Q(H),H.preventDefault();else if(BW.concat(HW).includes(H.key))z(H),H.preventDefault()}),onPointerDown:l(Z.onPointerDown,(H)=>{let j=H.target;if(j.setPointerCapture(H.pointerId),H.preventDefault(),B.thumbs.has(j))j.focus({preventScroll:!0,focusVisible:!1});else X(H)}),onPointerMove:l(Z.onPointerMove,(H)=>{if(H.target.hasPointerCapture(H.pointerId))G(H)}),onPointerUp:l(Z.onPointerUp,(H)=>{let j=H.target;if(j.hasPointerCapture(H.pointerId))j.releasePointerCapture(H.pointerId),q(H)})})}),VW="SliderTrack",DW=C((Z,J)=>{let{__scopeSlider:Y,...X}=Z,G=jY(VW,Y);return _(d.span,{"data-disabled":G.disabled?"":void 0,"data-orientation":G.orientation,...X,ref:J})});DW.displayName=VW;var S4="SliderRange",$W=C((Z,J)=>{let{__scopeSlider:Y,...X}=Z,G=jY(S4,Y),q=FW(S4,Y),U=R(null),Q=o(J,U),z=G.values.length,W=G.values.map((j)=>NW(j,G.min,G.max)),B=z>1?Math.min(...W):0,H=100-Math.max(...W);return _(d.span,{"data-orientation":G.orientation,"data-disabled":G.disabled?"":void 0,...X,ref:Q,style:{...Z.style,[q.startEdge]:B+"%",[q.endEdge]:H+"%"}})});$W.displayName=S4;var AW="SliderThumb",[sM,OW]=x4(AW),IW="SliderThumbProvider";function P4(Z){let{__scopeSlider:J,name:Y,children:X,internal_do_not_use_render:G}=Z,q=jY(IW,J),U=mM(J),[Q,z]=S(null),W=F0(()=>Q?U().findIndex((A)=>A.ref.current===Q):-1,[U,Q]),B=fX(Q),H=Q?!!q.form||!!Q.closest("form"):!0,j=q.values[W],L=Y??(q.name?q.name+(q.values.length>1?"[]":""):void 0),D=j===void 0?0:NW(j,q.min,q.max);P(()=>{if(Q)return q.thumbs.add(Q),()=>{q.thumbs.delete(Q)}},[Q,q.thumbs]);let V={value:j,name:L,form:q.form,isFormControl:H,index:W,thumb:Q,onThumbChange:z,percent:D,size:B};return _(sM,{scope:J,...V,children:JF(G)?G(V):X})}P4.displayName=IW;var Z8="SliderThumbTrigger",E4=C((Z,J)=>{let{__scopeSlider:Y,...X}=Z,G=jY(Z8,Y),q=FW(Z8,Y),{index:U,value:Q,percent:z,size:W,onThumbChange:B}=OW(Z8,Y),H=o(J,B),j=aM(U,G.values.length),L=W?.[q.size],D=L?nM(L,z,q.direction):0;return _("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[q.startEdge]:`calc(${z}% + ${D}px)`},children:_(C4.ItemSlot,{scope:Y,children:_(d.span,{role:"slider","aria-label":Z["aria-label"]||j,"aria-valuemin":G.min,"aria-valuenow":Q,"aria-valuemax":G.max,"aria-orientation":G.orientation,"data-orientation":G.orientation,"data-disabled":G.disabled?"":void 0,tabIndex:G.disabled?void 0:0,...X,ref:H,style:Q===void 0?{display:"none"}:Z.style,onFocus:l(Z.onFocus,()=>{G.valueIndexToChangeRef.current=U})})})})});E4.displayName=Z8;var _W=C((Z,J)=>{let{__scopeSlider:Y,name:X,...G}=Z;return _(P4,{__scopeSlider:Y,name:X,internal_do_not_use_render:({index:q,isFormControl:U})=>h0(G6,{children:[_(E4,{...G,ref:J,__scopeSlider:Y}),U?_(h4,{__scopeSlider:Y},q):null]})})});_W.displayName=AW;var TW="SliderBubbleInput",h4=C(({__scopeSlider:Z,...J},Y)=>{let{value:X,name:G,form:q}=OW(TW,Z),U=R(null),Q=o(U,Y),z=dX(X);return P(()=>{let W=U.current;if(!W)return;let B=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(B,"value").set;if(z!==X&&j){let L=new Event("input",{bubbles:!0});j.call(W,X),W.dispatchEvent(L)}},[z,X]),_(d.input,{style:{display:"none"},name:G,form:q,...J,ref:Q,defaultValue:X})});h4.displayName=TW;function rM(Z=[],J,Y){let X=[...Z];return X[Y]=J,X.sort((G,q)=>G-q)}function NW(Z,J,Y){let q=100/(Y-J)*(Z-J);return s6(q,[0,100])}function aM(Z,J){if(J>2)return`Value ${Z+1} of ${J}`;else if(J===2)return["Minimum","Maximum"][Z];else return}function oM(Z,J){if(Z.length===1)return 0;let Y=Z.map((G)=>Math.abs(G-J)),X=Math.min(...Y);return Y.indexOf(X)}function nM(Z,J,Y){let X=Z/2,G=50,q=y4([0,50],[0,X]);return(X-q(J)*Y)*Y}function tM(Z){return Z.slice(0,-1).map((J,Y)=>Z[Y+1]-J)}function eM(Z,J){if(J>0){let Y=tM(Z);return Math.min(...Y)>=J}return!0}function y4(Z,J){return(Y)=>{if(Z[0]===Z[1]||J[0]===J[1])return J[0];let X=(J[1]-J[0])/(Z[1]-Z[0]);return J[0]+X*(Y-Z[0])}}function wW(Z){if(!Number.isFinite(Z))return 0;let J=Z.toString();if(J.includes("e")){let[X,G]=J.split("e"),q=X.split(".")[1]||"",U=Number(G);return Math.max(0,q.length-U)}let Y=J.split(".")[1];return Y?Y.length:0}function J8(Z,J){let Y=Math.pow(10,J);return Math.round(Z*Y)/Y}function ZF(Z,{min:J,step:Y,direction:X,multiplier:G}){let q=wW(Y),U=(Z-J)/Y,Q=Math.round(U),z=J8(Q*Y+J,q)===J8(Z,q),W;if(z)W=Q+G*X;else if(X>0)W=Math.ceil(U);else W=Math.floor(U);return J8(W*Y+J,q)}function JF(Z){return typeof Z==="function"}m();var JZ={};d6(JZ,{createTooltipScope:()=>YF,Trigger:()=>AF,TooltipTrigger:()=>d4,TooltipProvider:()=>u4,TooltipPortal:()=>p4,TooltipContent:()=>l4,TooltipArrow:()=>i4,Tooltip:()=>m4,Root:()=>$F,Provider:()=>DF,Portal:()=>OF,Content:()=>IF,Arrow:()=>_F});var[Y8,YF]=y7("Tooltip",[t6]),X8=t6(),RW="TooltipProvider",XF=700,f4="tooltip.open",[GF,v4]=Y8(RW),u4=(Z)=>{let{__scopeTooltip:J,delayDuration:Y=XF,skipDelayDuration:X=300,disableHoverableContent:G=!1,children:q}=Z,U=R(!0),Q=R(!1),z=R(0);return P(()=>{let W=z.current;return()=>window.clearTimeout(W)},[]),_(GF,{scope:J,isOpenDelayedRef:U,delayDuration:Y,onOpen:E(()=>{if(X<=0)return;window.clearTimeout(z.current),U.current=!1},[X]),onClose:E(()=>{if(X<=0)return;window.clearTimeout(z.current),z.current=window.setTimeout(()=>U.current=!0,X)},[X]),isPointerInTransitRef:Q,onPointerInTransitChange:E((W)=>{Q.current=W},[]),disableHoverableContent:G,children:q})};u4.displayName=RW;var LY="Tooltip",[qF,MY]=Y8(LY),m4=(Z)=>{let{__scopeTooltip:J,children:Y,open:X,defaultOpen:G,onOpenChange:q,disableHoverableContent:U,delayDuration:Q}=Z,z=v4(LY,Z.__scopeTooltip),W=X8(J),[B,H]=S(null),j=a6(),L=R(0),D=U??z.disableHoverableContent,V=Q??z.delayDuration,A=R(!1),[F,M]=j6({prop:X,defaultProp:G??!1,onChange:(I)=>{if(I)z.onOpen(),document.dispatchEvent(new CustomEvent(f4));else z.onClose();q?.(I)},caller:LY}),K=F0(()=>{return F?A.current?"delayed-open":"instant-open":"closed"},[F]),$=E(()=>{window.clearTimeout(L.current),L.current=0,A.current=!1,M(!0)},[M]),O=E(()=>{window.clearTimeout(L.current),L.current=0,M(!1)},[M]),N=E(()=>{window.clearTimeout(L.current),L.current=window.setTimeout(()=>{A.current=!0,M(!0),L.current=0},V)},[V,M]);return P(()=>{return()=>{if(L.current)window.clearTimeout(L.current),L.current=0}},[]),_(gX,{...W,children:_(qF,{scope:J,contentId:j,open:F,stateAttribute:K,trigger:B,onTriggerChange:H,onTriggerEnter:E(()=>{if(z.isOpenDelayedRef.current)N();else $()},[z.isOpenDelayedRef,N,$]),onTriggerLeave:E(()=>{if(D)O();else window.clearTimeout(L.current),L.current=0},[O,D]),onOpen:$,onClose:O,disableHoverableContent:D,children:Y})})};m4.displayName=LY;var g4="TooltipTrigger",d4=C((Z,J)=>{let{__scopeTooltip:Y,...X}=Z,G=MY(g4,Y),q=v4(g4,Y),U=X8(Y),Q=R(null),z=o(J,Q,G.onTriggerChange),W=R(!1),B=R(!1),H=E(()=>W.current=!1,[]);return P(()=>{return()=>document.removeEventListener("pointerup",H)},[H]),_(vX,{asChild:!0,...U,children:_(d.button,{"aria-describedby":G.open?G.contentId:void 0,"data-state":G.stateAttribute,...X,ref:z,onPointerMove:l(Z.onPointerMove,(j)=>{if(j.pointerType==="touch")return;if(!B.current&&!q.isPointerInTransitRef.current)G.onTriggerEnter(),B.current=!0}),onPointerLeave:l(Z.onPointerLeave,()=>{G.onTriggerLeave(),B.current=!1}),onPointerDown:l(Z.onPointerDown,()=>{if(G.open)G.onClose();W.current=!0,document.addEventListener("pointerup",H,{once:!0})}),onFocus:l(Z.onFocus,()=>{if(!W.current)G.onOpen()}),onBlur:l(Z.onBlur,G.onClose),onClick:l(Z.onClick,G.onClose)})})});d4.displayName=g4;var c4="TooltipPortal",[UF,QF]=Y8(c4,{forceMount:void 0}),p4=(Z)=>{let{__scopeTooltip:J,forceMount:Y,children:X,container:G}=Z,q=MY(c4,J);return _(UF,{scope:J,forceMount:Y,children:_(e6,{present:Y||q.open,children:_(QY,{asChild:!0,container:G,children:X})})})};p4.displayName=c4;var qJ="TooltipContent",l4=C((Z,J)=>{let Y=QF(qJ,Z.__scopeTooltip),{forceMount:X=Y.forceMount,side:G="top",...q}=Z,U=MY(qJ,Z.__scopeTooltip);return _(e6,{present:X||U.open,children:U.disableHoverableContent?_(kW,{side:G,...q,ref:J}):_(zF,{side:G,...q,ref:J})})}),zF=C((Z,J)=>{let Y=MY(qJ,Z.__scopeTooltip),X=v4(qJ,Z.__scopeTooltip),G=R(null),q=o(J,G),[U,Q]=S(null),{trigger:z,onClose:W}=Y,B=G.current,{onPointerInTransitChange:H}=X,j=E(()=>{Q(null),H(!1)},[H]),L=E((D,V)=>{let A=D.currentTarget,F={x:D.clientX,y:D.clientY},M=jF(F,A.getBoundingClientRect()),K=LF(F,M),$=MF(V.getBoundingClientRect()),O=KF([...K,...$]);Q(O),H(!0)},[H]);return P(()=>{return()=>j()},[j]),P(()=>{if(z&&B){let D=(A)=>L(A,B),V=(A)=>L(A,z);return z.addEventListener("pointerleave",D),B.addEventListener("pointerleave",V),()=>{z.removeEventListener("pointerleave",D),B.removeEventListener("pointerleave",V)}}},[z,B,L,j]),P(()=>{if(U){let D=(V)=>{let A=V.target,F={x:V.clientX,y:V.clientY},M=z?.contains(A)||B?.contains(A),K=!FF(F,U);if(M)j();else if(K)j(),W()};return document.addEventListener("pointermove",D),()=>document.removeEventListener("pointermove",D)}},[z,B,U,W,j]),_(kW,{...Z,ref:q})}),[WF,BF]=Y8(LY,{isInside:!1}),HF=dQ("TooltipContent"),kW=C((Z,J)=>{let{__scopeTooltip:Y,children:X,"aria-label":G,onEscapeKeyDown:q,onPointerDownOutside:U,...Q}=Z,z=MY(qJ,Y),W=X8(Y),{onClose:B}=z;return P(()=>{return document.addEventListener(f4,B),()=>document.removeEventListener(f4,B)},[B]),P(()=>{if(z.trigger){let H=(j)=>{if(j.target instanceof Node&&j.target.contains(z.trigger))B()};return window.addEventListener("scroll",H,{capture:!0}),()=>window.removeEventListener("scroll",H,{capture:!0})}},[z.trigger,B]),_(ZY,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:q,onPointerDownOutside:U,onFocusOutside:(H)=>H.preventDefault(),onDismiss:B,children:h0(uX,{"data-state":z.stateAttribute,...W,...Q,ref:J,style:{...Q.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:[_(HF,{children:X}),_(WF,{scope:Y,isInside:!0,children:_(L5,{id:z.contentId,role:"tooltip",children:G||X})})]})})});l4.displayName=qJ;var bW="TooltipArrow",i4=C((Z,J)=>{let{__scopeTooltip:Y,...X}=Z,G=X8(Y);return BF(bW,Y).isInside?null:_(mX,{...G,...X,ref:J})});i4.displayName=bW;function jF(Z,J){let Y=Math.abs(J.top-Z.y),X=Math.abs(J.bottom-Z.y),G=Math.abs(J.right-Z.x),q=Math.abs(J.left-Z.x);switch(Math.min(Y,X,G,q)){case q:return"left";case G:return"right";case Y:return"top";case X:return"bottom";default:throw Error("unreachable")}}function LF(Z,J,Y=5){let X=[];switch(J){case"top":X.push({x:Z.x-Y,y:Z.y+Y},{x:Z.x+Y,y:Z.y+Y});break;case"bottom":X.push({x:Z.x-Y,y:Z.y-Y},{x:Z.x+Y,y:Z.y-Y});break;case"left":X.push({x:Z.x+Y,y:Z.y-Y},{x:Z.x+Y,y:Z.y+Y});break;case"right":X.push({x:Z.x-Y,y:Z.y-Y},{x:Z.x-Y,y:Z.y+Y});break}return X}function MF(Z){let{top:J,right:Y,bottom:X,left:G}=Z;return[{x:G,y:J},{x:Y,y:J},{x:Y,y:X},{x:G,y:X}]}function FF(Z,J){let{x:Y,y:X}=Z,G=!1;for(let q=0,U=J.length-1;qX!==j>X&&Y<(H-W)*(X-B)/(j-B)+W)G=!G}return G}function KF(Z){let J=Z.slice();return J.sort((Y,X)=>{if(Y.xX.x)return 1;else if(Y.yX.y)return 1;else return 0}),VF(J)}function VF(Z){if(Z.length<=1)return Z.slice();let J=[];for(let X=0;X=2){let q=J[J.length-1],U=J[J.length-2];if((q.x-U.x)*(G.y-U.y)>=(q.y-U.y)*(G.x-U.x))J.pop();else break}J.push(G)}J.pop();let Y=[];for(let X=Z.length-1;X>=0;X--){let G=Z[X];while(Y.length>=2){let q=Y[Y.length-1],U=Y[Y.length-2];if((q.x-U.x)*(G.y-U.y)>=(q.y-U.y)*(G.x-U.x))Y.pop();else break}Y.push(G)}if(Y.pop(),J.length===1&&Y.length===1&&J[0].x===Y[0].x&&J[0].y===Y[0].y)return J;else return J.concat(Y)}var DF=u4,$F=m4,AF=d4,OF=p4,IF=l4,_F=i4;var fU=m6(n2(),1);function yU(Z,J){Z.dispatchEvent(new Event(J,{bubbles:!0}))}function t2(Z){return Z.getAttribute("aria-label")||Z.labels?.[0]?.textContent?.trim()||"Control"}function e3(Z,J){let Y=document.createElement("span");Y.className="radix-select-host",Z.insertAdjacentElement("afterend",Y);let X=fU.createRoot(Y),G={host:Y,root:X,render(){let q=Array.from(Z.options).filter((z)=>z.value.length>0).map((z)=>({description:z.title,disabled:z.disabled,label:z.textContent||z.value,value:z.value})),U=q.some((z)=>z.value===Z.value)?Z.value:void 0,Q=Z.options[0]?.textContent||"请选择";X.render(h0(X7.Root,{disabled:Z.disabled,value:U,onValueChange:(z)=>{Z.value=z,yU(Z,"change"),G.render()},children:[h0(X7.Trigger,{className:"radix-select-trigger","aria-label":t2(Z),children:[_(X7.Value,{placeholder:Q}),_(X7.Icon,{className:"radix-select-icon","aria-hidden":"true",children:_("svg",{viewBox:"0 0 24 24",children:_("path",{d:"m7 9 5 5 5-5"})})})]}),_(X7.Portal,{children:_(X7.Content,{className:"radix-select-content",position:"popper",sideOffset:5,children:_(X7.Viewport,{className:"radix-select-viewport",children:q.map((z)=>h0(X7.Item,{className:"radix-select-item",disabled:z.disabled,title:z.description,value:z.value,children:[_(X7.ItemText,{children:z.label}),_(X7.ItemIndicator,{className:"radix-select-indicator","aria-hidden":"true",children:"✓"})]},z.value))})})})]}))}};J.push(G)}function ZV(Z,J){let Y=document.createElement("span");Y.className="radix-slider-host",Z.insertAdjacentElement("afterend",Y);let X=fU.createRoot(Y),G={host:Y,root:X,render(){let q=Number(Z.min),U=Number(Z.max),Q=Number(Z.step),z=Number(Z.value),W=Z.labels?.[0]?.querySelector("output")?.textContent||Z.value;X.render(_(JZ.Provider,{delayDuration:260,children:h0(D6.Root,{"aria-label":t2(Z),className:"radix-slider-root",disabled:Z.disabled,max:Number.isFinite(U)?U:100,min:Number.isFinite(q)?q:0,step:Number.isFinite(Q)&&Q>0?Q:1,value:[Number.isFinite(z)?z:0],onValueChange:([B])=>{if(B===void 0)return;Z.value=String(B),yU(Z,"input"),G.render()},onValueCommit:()=>yU(Z,"change"),children:[_(D6.Track,{className:"radix-slider-track",children:_(D6.Range,{className:"radix-slider-range"})}),h0(JZ.Root,{children:[_(JZ.Trigger,{asChild:!0,children:_(D6.Thumb,{className:"radix-slider-thumb"})}),_(JZ.Portal,{children:h0(JZ.Content,{className:"radix-tooltip-content",sideOffset:7,children:[W,_(JZ.Arrow,{className:"radix-tooltip-arrow"})]})})]})]})}))}};J.push(G)}function hO(Z=document){let J=[];return Z.querySelectorAll("select[data-radix-select]").forEach((Y)=>{Y.classList.add("radix-native-control"),Y.hidden=!0,Y.tabIndex=-1,Y.setAttribute("aria-hidden","true"),e3(Y,J)}),Z.querySelectorAll('input[type="range"][data-radix-slider]').forEach((Y)=>{Y.classList.add("radix-native-control"),Y.hidden=!0,Y.tabIndex=-1,Y.setAttribute("aria-hidden","true"),ZV(Y,J)}),J.forEach((Y)=>Y.render()),{destroy(){J.forEach((Y)=>{Y.root.unmount(),Y.host.remove()}),J.length=0},sync(){J.forEach((Y)=>Y.render())}}}export{hO as mountRadixControls}; diff --git a/packages/plugins/relight-studio/package/assets/styles.css b/packages/plugins/relight-studio/package/assets/styles.css index f1df7e5..1aa99c8 100644 --- a/packages/plugins/relight-studio/package/assets/styles.css +++ b/packages/plugins/relight-studio/package/assets/styles.css @@ -1,19 +1,31 @@ :root { - color-scheme: dark; + color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; - --bg: #0b0b0e; - --panel: #121216; - --panel-raised: #18181e; - --line: rgba(255, 255, 255, 0.09); - --line-strong: rgba(255, 255, 255, 0.16); - --text: #f6f5f3; - --muted: #94939b; - --accent: #ffb94a; - --accent-strong: #ffd07a; - --accent-soft: rgba(255, 185, 74, 0.13); - --danger: #ff7474; - --success: #5bdda8; + --bg: #f7f5fb; + --panel: #ffffff; + --panel-raised: #fdfcfe; + --line: #e8e5eb; + --line-strong: #d9d5dd; + --text: #211f26; + --muted: #706d78; + --accent: #6e56cf; + --accent-strong: #5b43c0; + --accent-soft: #f1edff; + --accent-hover: #e8e1ff; + --danger: #ce2c31; + --success: #2a7e3b; + --violet-1: #fdfcfe; + --violet-2: #faf8ff; + --violet-3: #f4f0fe; + --violet-4: #ebe4ff; + --violet-5: #e1d9ff; + --violet-7: #c4b8f3; + --violet-9: #6e56cf; + --violet-11: #6550b9; + --violet-12: #2f265f; + --shadow-sm: 0 1px 2px rgba(37, 29, 55, 0.05), 0 2px 8px rgba(37, 29, 55, 0.04); + --shadow-md: 0 12px 32px rgba(47, 38, 95, 0.08), 0 2px 8px rgba(37, 29, 55, 0.04); } * { @@ -61,20 +73,20 @@ textarea:focus-visible, min-width: 620px; flex-direction: column; background: - radial-gradient(circle at 22% -20%, rgba(255, 170, 55, 0.12), transparent 34%), - linear-gradient(160deg, #0e0e12, #09090b 68%); + radial-gradient(circle at 12% -20%, rgba(110, 86, 207, 0.11), transparent 37%), + linear-gradient(145deg, #fbfaff 0%, var(--bg) 58%, #f3f0f9 100%); } .topbar { z-index: 5; display: flex; - min-height: 64px; + min-height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); - padding: 0 18px; - background: rgba(12, 12, 15, 0.88); - backdrop-filter: blur(14px); + padding: 0 20px; + background: rgba(255, 255, 255, 0.86); + backdrop-filter: blur(18px); } .brand, @@ -95,16 +107,16 @@ textarea:focus-visible, width: 38px; height: 38px; place-items: center; - border: 1px solid rgba(255, 205, 119, 0.24); - border-radius: 11px; - background: linear-gradient(145deg, rgba(255, 195, 86, 0.2), rgba(255, 139, 52, 0.05)); - box-shadow: inset 0 0 18px rgba(255, 183, 70, 0.08), 0 6px 24px rgba(0, 0, 0, 0.26); + border: 1px solid var(--violet-5); + border-radius: 12px; + background: linear-gradient(145deg, #f6f2ff, #ece5ff); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm); } .brand-mark svg { width: 27px; fill: none; - stroke: var(--accent-strong); + stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; @@ -112,18 +124,29 @@ textarea:focus-visible, .brand-title { font-size: 16px; - font-weight: 680; - letter-spacing: 0.02em; + font-weight: 700; + letter-spacing: -0.01em; } .brand-subtitle { - margin-top: 3px; - color: #777780; + margin-top: 2px; + color: #9692a0; font-size: 9px; font-weight: 650; letter-spacing: 0.12em; } +.brand-badge { + border: 1px solid var(--violet-5); + border-radius: 999px; + padding: 4px 8px; + color: var(--violet-11); + background: var(--violet-3); + font-size: 8px; + font-weight: 760; + letter-spacing: 0.1em; +} + .topbar-actions { gap: 8px; } @@ -136,8 +159,8 @@ textarea:focus-visible, border: 1px solid var(--line); border-radius: 999px; padding: 0 11px; - color: var(--muted); - background: rgba(255, 255, 255, 0.035); + color: #777480; + background: #faf9fb; font-size: 11px; } @@ -145,18 +168,18 @@ textarea:focus-visible, width: 6px; height: 6px; border-radius: 50%; - background: #777780; + background: #a5a2ad; } .connection-pill.is-connected { - color: #c8eedf; - border-color: rgba(93, 223, 170, 0.18); - background: rgba(42, 171, 119, 0.08); + color: #277c3b; + border-color: #b7dfba; + background: #f1faf2; } .connection-pill.is-connected .connection-dot { background: var(--success); - box-shadow: 0 0 9px rgba(91, 221, 168, 0.72); + box-shadow: 0 0 0 3px rgba(42, 126, 59, 0.12); } .icon-button { @@ -166,14 +189,17 @@ textarea:focus-visible, cursor: pointer; place-items: center; border: 1px solid var(--line); - border-radius: 9px; - background: rgba(255, 255, 255, 0.035); + border-radius: 10px; + color: #5f5c67; + background: #ffffff; + box-shadow: var(--shadow-sm); transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; } .icon-button:hover { - border-color: var(--line-strong); - background: rgba(255, 255, 255, 0.07); + border-color: var(--violet-7); + color: var(--accent); + background: var(--violet-2); transform: translateY(-1px); } @@ -202,24 +228,70 @@ textarea:focus-visible, display: grid; min-height: 0; flex: 1; - grid-template-columns: minmax(0, 1fr) 348px; - gap: 12px; - padding: 12px; + grid-template-columns: minmax(0, 1fr) 360px; + gap: 14px; + padding: 14px; } .preview-panel, .control-panel { min-height: 0; border: 1px solid var(--line); - border-radius: 15px; - background: rgba(18, 18, 22, 0.92); - box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); + border-radius: 16px; + background: var(--panel); + box-shadow: var(--shadow-md); } .preview-panel { display: grid; overflow: hidden; - grid-template-rows: minmax(0, 1fr) 55px; + grid-template-rows: 50px minmax(0, 1fr) 58px; +} + +.preview-panel-heading { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 15px 0 17px; + border-bottom: 1px solid var(--line); +} + +.preview-panel-heading > div { + display: flex; + align-items: baseline; + gap: 9px; +} + +.panel-eyebrow { + color: var(--violet-11); + font-size: 8px; + font-weight: 760; + letter-spacing: 0.14em; +} + +.preview-panel-heading strong { + font-size: 12px; + font-weight: 680; +} + +.preview-mode-pill { + display: inline-flex; + align-items: center; + gap: 6px; + border: 1px solid var(--line); + border-radius: 999px; + padding: 5px 8px; + color: #777480; + background: #faf9fb; + font-size: 9px; +} + +.preview-mode-pill > span { + width: 5px; + height: 5px; + border-radius: 50%; + background: var(--accent); + box-shadow: 0 0 0 3px rgba(110, 86, 207, 0.12); } .preview { @@ -227,16 +299,16 @@ textarea:focus-visible, min-height: 0; overflow: hidden; background: - linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), - linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px), - radial-gradient(circle at 50% 42%, #25252b, #0a0a0d 72%); + linear-gradient(rgba(110, 86, 207, 0.035) 1px, transparent 1px), + linear-gradient(90deg, rgba(110, 86, 207, 0.035) 1px, transparent 1px), + radial-gradient(circle at 50% 40%, #ffffff 0%, #f7f4fc 54%, #f0edf6 100%); background-size: 30px 30px, 30px 30px, auto; } .preview::after { position: absolute; inset: 0; - border: 1px solid rgba(255, 255, 255, 0.035); + border: 1px solid rgba(110, 86, 207, 0.04); content: ""; pointer-events: none; } @@ -259,7 +331,7 @@ textarea:focus-visible, width: 280px; height: 280px; border-radius: 50%; - background: radial-gradient(circle, rgba(255, 183, 76, 0.09), transparent 67%); + background: radial-gradient(circle, rgba(139, 112, 230, 0.18), transparent 67%); filter: blur(18px); pointer-events: none; transform: translate(-42%, -42%); @@ -282,56 +354,58 @@ textarea:focus-visible, .empty-light { position: relative; - width: 104px; - height: 104px; - margin-bottom: 8px; + width: 110px; + height: 110px; + margin-bottom: 10px; } .empty-light svg { position: relative; z-index: 1; width: 100%; - fill: rgba(255, 255, 255, 0.025); - stroke: #8c8990; + fill: rgba(255, 255, 255, 0.72); + stroke: #8b7fc1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; - filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32)); + filter: drop-shadow(0 12px 20px rgba(75, 55, 135, 0.16)); } .empty-light circle { - fill: rgba(255, 190, 85, 0.28); - stroke: var(--accent-strong); + fill: var(--violet-4); + stroke: var(--accent); } .empty-beam { position: absolute; inset: 16px; border-radius: 50%; - background: rgba(255, 186, 72, 0.25); - box-shadow: 0 0 38px rgba(255, 177, 61, 0.34), 0 0 80px rgba(255, 152, 36, 0.14); + background: rgba(139, 112, 230, 0.22); + box-shadow: 0 0 40px rgba(110, 86, 207, 0.24), 0 0 90px rgba(139, 112, 230, 0.13); animation: breathe 2.8s ease-in-out infinite; } .empty-eyebrow, .section-kicker { - color: var(--accent); + color: var(--violet-11); font-size: 9px; font-weight: 720; letter-spacing: 0.18em; } .empty-state h1 { - margin: 9px 0 7px; - font-size: 22px; - font-weight: 660; + margin: 10px 0 8px; + color: var(--violet-12); + font-size: 23px; + font-weight: 720; + letter-spacing: -0.025em; } .empty-state p { max-width: 440px; margin: 0; color: var(--muted); - font-size: 12px; + font-size: 11px; line-height: 1.65; } @@ -351,20 +425,33 @@ textarea:focus-visible, } .primary-button { - min-height: 36px; + display: inline-flex; + min-height: 38px; + align-items: center; + gap: 8px; border-radius: 10px; padding: 0 17px; - color: #211508; - background: linear-gradient(135deg, #ffd177, #f2a83e); - box-shadow: 0 8px 24px rgba(235, 151, 37, 0.2); - font-size: 12px; + color: #ffffff; + background: var(--accent); + box-shadow: 0 7px 18px rgba(87, 65, 178, 0.2); + font-size: 11px; font-weight: 680; } +.primary-button svg { + width: 15px; + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 1.8; +} + .primary-button:hover, .generate-button:not(:disabled):hover { transform: translateY(-1px); - background: linear-gradient(135deg, #ffdc92, #ffb54e); + background: var(--accent-strong); + box-shadow: 0 9px 22px rgba(87, 65, 178, 0.24); } .primary-button:disabled, @@ -376,21 +463,37 @@ textarea:disabled { opacity: 0.45; } -.feature-tags { +.empty-steps { display: flex; - flex-wrap: wrap; + align-items: center; justify-content: center; - gap: 6px; - margin-top: 20px; + gap: 9px; + margin-top: 22px; + color: #787482; + font-size: 9px; } -.feature-tags span { - border: 1px solid var(--line); - border-radius: 999px; - padding: 4px 9px; - color: #85848c; - background: rgba(255, 255, 255, 0.025); - font-size: 10px; +.empty-steps span { + display: inline-flex; + align-items: center; + gap: 5px; +} + +.empty-steps b { + display: grid; + width: 18px; + height: 18px; + place-items: center; + border-radius: 50%; + color: var(--violet-11); + background: var(--violet-3); + font-size: 8px; +} + +.empty-steps i { + width: 20px; + height: 1px; + background: var(--violet-5); } .light-handle { @@ -411,7 +514,7 @@ textarea:disabled { width: 90px; height: 90px; border-radius: 50%; - background: radial-gradient(circle, rgba(255, 216, 139, 0.3), rgba(255, 180, 61, 0.08) 36%, transparent 70%); + background: radial-gradient(circle, rgba(235, 228, 255, 0.56), rgba(139, 112, 230, 0.16) 36%, transparent 70%); content: ""; pointer-events: none; transform: translate(-50%, -50%); @@ -421,14 +524,14 @@ textarea:disabled { position: absolute; inset: 12px; border-radius: 50%; - background: #fff3cf; - box-shadow: 0 0 15px #ffc45e; + background: #ffffff; + box-shadow: 0 0 15px #8b70e6; } .light-handle-ring { position: absolute; inset: 4px; - border: 1px solid rgba(255, 229, 175, 0.8); + border: 1px solid rgba(235, 228, 255, 0.92); border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18); } @@ -465,8 +568,8 @@ textarea:disabled { .compare-button:hover, .compare-button[aria-pressed="true"] { - border-color: rgba(255, 196, 100, 0.4); - background: rgba(54, 38, 18, 0.78); + border-color: rgba(196, 184, 243, 0.72); + background: rgba(47, 38, 95, 0.82); } .compare-button svg { @@ -502,16 +605,16 @@ textarea:disabled { .drag-hint { inset: 12px; - border: 1px dashed rgba(255, 193, 89, 0.56); + border: 1px dashed var(--violet-7); border-radius: 13px; - color: var(--accent-strong); - background: rgba(31, 22, 10, 0.82); + color: var(--violet-12); + background: rgba(244, 240, 254, 0.92); } .spinner { width: 17px; height: 17px; - border: 2px solid rgba(255, 255, 255, 0.15); + border: 2px solid rgba(110, 86, 207, 0.18); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; @@ -523,8 +626,8 @@ textarea:disabled { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); - padding: 0 13px 0 16px; - background: rgba(17, 17, 21, 0.96); + padding: 0 14px 0 17px; + background: #ffffff; } .source-copy { @@ -535,7 +638,7 @@ textarea:disabled { } .source-label { - color: #777680; + color: #908d98; font-size: 9px; font-weight: 680; letter-spacing: 0.1em; @@ -544,7 +647,7 @@ textarea:disabled { .source-status { max-width: min(42vw, 500px); overflow: hidden; - color: #c1c0c5; + color: #5f5c67; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; @@ -561,13 +664,16 @@ textarea:disabled { border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; - background: rgba(255, 255, 255, 0.04); + color: #5f5c67; + background: #ffffff; + box-shadow: var(--shadow-sm); font-size: 10px; } .secondary-button:hover { - border-color: var(--line-strong); - background: rgba(255, 255, 255, 0.075); + border-color: var(--violet-7); + color: var(--accent); + background: var(--violet-2); } .select-shell, @@ -596,10 +702,11 @@ textarea:disabled { gap: 8px; width: 100%; border: 1px solid var(--line); - border-radius: 9px; + border-radius: 10px; overflow: hidden; - color: #c2c1c6; - background: #19191e; + color: #4f4c57; + background: #ffffff; + box-shadow: var(--shadow-sm); text-align: left; text-overflow: ellipsis; white-space: nowrap; @@ -619,15 +726,15 @@ textarea:disabled { .radix-select-icon svg { width: 13px; fill: none; - stroke: #8b8a91; + stroke: #777480; stroke-width: 1.8; pointer-events: none; } .radix-select-trigger:hover, .radix-select-trigger[data-state="open"] { - border-color: var(--line-strong); - background: #202026; + border-color: var(--violet-7); + background: var(--violet-2); } .radix-select-trigger[data-disabled] { @@ -641,10 +748,10 @@ textarea:disabled { max-height: min(280px, var(--radix-select-content-available-height)); overflow: hidden; border: 1px solid var(--line-strong); - border-radius: 10px; - color: #d8d7db; - background: rgba(27, 27, 32, 0.98); - box-shadow: 0 16px 44px rgba(0, 0, 0, 0.46); + border-radius: 12px; + color: #4f4c57; + background: rgba(255, 255, 255, 0.98); + box-shadow: 0 16px 44px rgba(47, 38, 95, 0.16), 0 2px 8px rgba(37, 29, 55, 0.06); backdrop-filter: blur(18px); } @@ -666,8 +773,8 @@ textarea:disabled { } .radix-select-item[data-highlighted] { - color: #fff4df; - background: rgba(255, 185, 74, 0.13); + color: var(--violet-12); + background: var(--violet-3); } .radix-select-item[data-disabled] { @@ -684,12 +791,12 @@ textarea:disabled { .control-panel { overflow-x: hidden; overflow-y: auto; - scrollbar-color: #37363d transparent; + scrollbar-color: #d4cfdd transparent; scrollbar-width: thin; } .control-section { - padding: 18px 17px; + padding: 19px 18px; } .control-section + .control-section { @@ -711,64 +818,69 @@ textarea:disabled { .section-heading h2 { margin: 5px 0 0; font-size: 14px; - font-weight: 650; + color: var(--violet-12); + font-weight: 680; } .text-button { border-radius: 7px; padding: 5px 7px; - color: #8f8e95; + color: #777480; background: transparent; font-size: 10px; } .text-button:hover { - color: var(--accent-strong); + color: var(--accent); background: var(--accent-soft); } .preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 7px; + gap: 8px; } .preset-card { display: flex; min-width: 0; - min-height: 43px; + min-height: 48px; cursor: pointer; align-items: center; gap: 8px; border: 1px solid var(--line); - border-radius: 10px; - padding: 6px 8px; + border-radius: 11px; + padding: 7px 8px; color: inherit; - background: rgba(255, 255, 255, 0.025); + color: #5f5c67; + background: #ffffff; + box-shadow: var(--shadow-sm); font-size: 10px; text-align: left; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; } .preset-card:hover { - border-color: var(--line-strong); - background: rgba(255, 255, 255, 0.05); + border-color: var(--violet-7); + color: var(--violet-12); + background: var(--violet-2); transform: translateY(-1px); } .preset-card.is-active { - border-color: rgba(255, 190, 83, 0.46); + border-color: var(--violet-7); + color: var(--violet-12); background: var(--accent-soft); - box-shadow: inset 0 0 0 1px rgba(255, 198, 105, 0.05); + box-shadow: inset 0 0 0 1px rgba(110, 86, 207, 0.05); } .preset-swatch { flex: none; width: 28px; height: 28px; - border: 1px solid rgba(255, 255, 255, 0.13); + border: 1px solid rgba(47, 38, 95, 0.08); border-radius: 8px; - box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.09); + box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.18), 0 2px 5px rgba(47, 38, 95, 0.08); } .swatch-cinematic { background: linear-gradient(135deg, #e79a4e, #162b4e 65%, #5bc9df); } @@ -789,12 +901,13 @@ textarea:disabled { grid-template-columns: 74px minmax(0, 1fr) 42px; align-items: center; gap: 8px; - color: #a7a6ac; + color: #65626d; font-size: 10px; } .slider-row output { - color: #d2d1d5; + color: var(--violet-11); + font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; } @@ -811,7 +924,7 @@ input[type="range"] { input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; - background: linear-gradient(to right, var(--accent) var(--range-progress), #36363d var(--range-progress)); + background: linear-gradient(to right, var(--accent) var(--range-progress), var(--violet-4) var(--range-progress)); } input[type="range"]::-webkit-slider-thumb { @@ -819,14 +932,14 @@ input[type="range"]::-webkit-slider-thumb { height: 12px; margin-top: -4.5px; appearance: none; - border: 2px solid #1a1815; + border: 2px solid #ffffff; border-radius: 50%; - background: #ffd37f; - box-shadow: 0 0 0 1px rgba(255, 207, 120, 0.36); + background: var(--accent); + box-shadow: 0 0 0 1px var(--violet-7); } input[type="range"]:hover::-webkit-slider-thumb { - background: #ffe1a7; + background: var(--accent-strong); transform: scale(1.08); } @@ -868,40 +981,57 @@ input[type="range"]:hover::-webkit-slider-thumb { .radix-slider-track { position: relative; flex: 1; - height: 3px; + height: 4px; overflow: hidden; border-radius: 999px; - background: #36363d; + background: var(--violet-4); } .radix-slider-range { position: absolute; height: 100%; border-radius: inherit; - background: var(--accent); + background: linear-gradient(90deg, #8b70e6, var(--accent)); } .radix-slider-thumb { display: block; - width: 12px; - height: 12px; - border: 2px solid #1a1815; + width: 14px; + height: 14px; + border: 2px solid #ffffff; border-radius: 50%; outline: none; - background: #ffd37f; - box-shadow: 0 0 0 1px rgba(255, 207, 120, 0.36); + background: var(--accent); + box-shadow: 0 0 0 1px var(--violet-7), 0 2px 5px rgba(47, 38, 95, 0.18); transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease; } .radix-slider-thumb:hover, .radix-slider-thumb:focus-visible { - background: #ffe1a7; - box-shadow: 0 0 0 3px rgba(255, 185, 74, 0.2); + background: var(--accent-strong); + box-shadow: 0 0 0 4px rgba(110, 86, 207, 0.15), 0 2px 5px rgba(47, 38, 95, 0.18); transform: scale(1.08); } +.radix-tooltip-content { + z-index: 140; + border-radius: 7px; + padding: 5px 8px; + color: #ffffff; + background: var(--violet-12); + box-shadow: 0 6px 18px rgba(47, 38, 95, 0.2); + font-size: 9px; + font-weight: 650; + font-variant-numeric: tabular-nums; + animation: tooltip-in 120ms ease-out; +} + +.radix-tooltip-arrow { + fill: var(--violet-12); +} + .generation-section { - background: linear-gradient(160deg, rgba(255, 182, 68, 0.04), transparent 58%); + background: linear-gradient(155deg, var(--violet-2), #ffffff 64%); } .generation-status { @@ -910,15 +1040,15 @@ input[type="range"]:hover::-webkit-slider-thumb { border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; - color: #8f8e95; - background: rgba(255, 255, 255, 0.025); + color: #777480; + background: #ffffff; font-size: 9px; } .field-label { display: block; margin: 10px 0 6px; - color: #8d8c94; + color: #777480; font-size: 9px; font-weight: 650; letter-spacing: 0.04em; @@ -935,16 +1065,17 @@ textarea { min-height: 66px; resize: vertical; border: 1px solid var(--line); - border-radius: 9px; + border-radius: 10px; padding: 9px 10px; - color: #d5d4d8; - background: #151519; + color: #3f3c46; + background: #ffffff; + box-shadow: inset 0 1px 2px rgba(37, 29, 55, 0.03); font-size: 10px; line-height: 1.5; } textarea::placeholder { - color: #616069; + color: #aaa7b1; } .generate-button { @@ -954,9 +1085,9 @@ textarea::placeholder { place-items: center; margin-top: 12px; border-radius: 10px; - color: #211508; - background: linear-gradient(135deg, #ffd177, #f2a83e); - box-shadow: 0 8px 24px rgba(235, 151, 37, 0.16); + color: #ffffff; + background: var(--accent); + box-shadow: 0 8px 22px rgba(87, 65, 178, 0.19); font-size: 11px; font-weight: 720; } @@ -970,8 +1101,8 @@ textarea::placeholder { .generate-button-busy .spinner { width: 14px; height: 14px; - border-color: rgba(32, 21, 8, 0.22); - border-top-color: #2c1d0b; + border-color: rgba(255, 255, 255, 0.28); + border-top-color: #ffffff; } .generate-button.is-busy .generate-button-label { @@ -984,7 +1115,7 @@ textarea::placeholder { .generation-help { margin: 9px 1px 0; - color: #777680; + color: #8a8792; font-size: 9px; line-height: 1.55; } @@ -994,27 +1125,27 @@ textarea::placeholder { border: 1px solid rgba(91, 221, 168, 0.2); border-radius: 9px; padding: 9px 10px; - color: #bcebd8; - background: rgba(36, 142, 99, 0.08); + color: #277c3b; + background: #f1faf2; font-size: 9px; line-height: 1.5; } .generation-result[data-kind="error"] { border-color: rgba(255, 116, 116, 0.24); - color: #ffc0c0; - background: rgba(110, 37, 43, 0.1); + color: #b4232a; + background: #fff5f5; } .notice-card { display: flex; gap: 9px; margin: 0 13px 16px; - border: 1px solid rgba(255, 190, 83, 0.15); + border: 1px solid var(--violet-5); border-radius: 11px; padding: 11px; - color: #a9a6a0; - background: rgba(255, 181, 65, 0.055); + color: #777480; + background: var(--violet-2); } .notice-card svg { @@ -1022,7 +1153,7 @@ textarea::placeholder { width: 15px; margin-top: 1px; fill: none; - stroke: #dca651; + stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; @@ -1030,7 +1161,7 @@ textarea::placeholder { .notice-card strong { display: block; - color: #d9c29a; + color: var(--violet-12); font-size: 10px; font-weight: 650; } @@ -1050,9 +1181,9 @@ textarea::placeholder { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 13px; - color: #dddce0; - background: rgba(27, 27, 32, 0.96); - box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38); + color: #ffffff; + background: rgba(47, 38, 95, 0.96); + box-shadow: 0 14px 36px rgba(47, 38, 95, 0.22); font-size: 11px; line-height: 1.45; backdrop-filter: blur(14px); @@ -1060,14 +1191,14 @@ textarea::placeholder { .toast[data-kind="error"] { border-color: rgba(255, 116, 116, 0.3); - color: #ffc0c0; - background: rgba(46, 21, 24, 0.96); + color: #ffffff; + background: rgba(126, 28, 35, 0.96); } .toast[data-kind="warning"] { border-color: rgba(255, 190, 83, 0.28); - color: #ffe0aa; - background: rgba(49, 34, 14, 0.96); + color: #ffffff; + background: rgba(110, 70, 20, 0.96); } .is-hidden { @@ -1094,6 +1225,13 @@ textarea::placeholder { } } +@keyframes tooltip-in { + from { + opacity: 0; + transform: translateY(2px) scale(0.98); + } +} + @media (max-width: 900px) { .workspace { grid-template-columns: minmax(0, 1fr) 304px; @@ -1112,6 +1250,26 @@ textarea::placeholder { } } +@media (max-width: 720px) { + .workspace { + grid-template-columns: minmax(0, 1fr) 280px; + } + + .brand-badge, + .connection-pill { + display: none; + } + + .slider-row { + grid-template-columns: 68px minmax(0, 1fr) 38px; + gap: 6px; + } + + .empty-steps i { + width: 10px; + } +} + @media (max-height: 650px) { .topbar { min-height: 54px; diff --git a/packages/plugins/relight-studio/package/index.html b/packages/plugins/relight-studio/package/index.html index 856b51c..cfbc2be 100644 --- a/packages/plugins/relight-studio/package/index.html +++ b/packages/plugins/relight-studio/package/index.html @@ -21,8 +21,9 @@
重打光
-
RELIGHT STUDIO · 灯光预览与 AI 生成
+
RELIGHT STUDIO
+ AI LIGHTING
@@ -47,6 +48,13 @@
+
+
+ CANVAS PREVIEW + 灯光画布 +
+ 实时预览 +
@@ -59,14 +67,21 @@
-
LIGHTING WORKBENCH
-

连接一张 Canvas 图片

-

将图片节点连接到此插件即可预览并生成。也可临时载入本地图片,只用于灯光预览。

+
START A NEW RELIGHT
+

为画面重新设计光线

+

连接一张 Canvas 图片,选择光线氛围并精细调整。也可先用本地图片体验实时灯光预览。

- +
-
- 光影图片日落霓虹电影感 +
+ 1连接图片 + + 2设计光线 + + 3生成到 Canvas
diff --git a/packages/plugins/relight-studio/package/manifest.json b/packages/plugins/relight-studio/package/manifest.json index 8028282..6e2eb8b 100644 --- a/packages/plugins/relight-studio/package/manifest.json +++ b/packages/plugins/relight-studio/package/manifest.json @@ -3,7 +3,7 @@ "id": "relight-studio", "name": "重打光", "description": "连接一张 Canvas 图片,通过宿主统一的 AI 生图能力生成不同主光方向、色温与电影氛围的重打光结果。", - "version": "0.1.1", + "version": "0.1.2", "entry": "index.html", "capabilities": [ "canvas.connectedImages.read", diff --git a/packages/plugins/relight-studio/src/radix-controls.tsx b/packages/plugins/relight-studio/src/radix-controls.tsx index 393d2d6..2b71eca 100644 --- a/packages/plugins/relight-studio/src/radix-controls.tsx +++ b/packages/plugins/relight-studio/src/radix-controls.tsx @@ -1,4 +1,4 @@ -import { Select, Slider } from "radix-ui" +import { Select, Slider, Tooltip } from "radix-ui" import { createRoot, type Root } from "react-dom/client" interface MountedControl { @@ -93,28 +93,41 @@ function mountSlider(input: HTMLInputElement, controls: MountedControl[]) { const maximum = Number(input.max) const step = Number(input.step) const value = Number(input.value) + const displayValue = input.labels?.[0]?.querySelector("output")?.textContent || input.value root.render( - 0 ? step : 1} - value={[Number.isFinite(value) ? value : 0]} - onValueChange={([next]) => { - if (next === undefined) return - input.value = String(next) - dispatchNativeControl(input, "input") - mounted.render() - }} - onValueCommit={() => dispatchNativeControl(input, "change")} - > - - - - - , + + 0 ? step : 1} + value={[Number.isFinite(value) ? value : 0]} + onValueChange={([next]) => { + if (next === undefined) return + input.value = String(next) + dispatchNativeControl(input, "input") + mounted.render() + }} + onValueCommit={() => dispatchNativeControl(input, "change")} + > + + + + + + + + + + {displayValue} + + + + + + , ) }, } diff --git a/tooling/relight-studio.test.js b/tooling/relight-studio.test.js index 07d7aa5..28a3e22 100644 --- a/tooling/relight-studio.test.js +++ b/tooling/relight-studio.test.js @@ -35,7 +35,7 @@ describe("relight-studio package", () => { id: "relight-studio", name: "重打光", description: manifest.description, - version: "0.1.1", + version: "0.1.2", license: "MIT", compatibility: { pluginSchema: "convax.plugin/3", @@ -151,7 +151,7 @@ describe("relight-studio package", () => { expect(app.slice(flushStart, flushEnd)).toContain("(!allowDuringGeneration && generationInFlight)") }) - test("ships Radix Select and Slider as a self-contained local browser bundle", async () => { + test("ships Radix Select, Slider, and Tooltip as a self-contained local browser bundle", async () => { const workspace = await readJson(path.join(sourceRoot, "package.json")) expect(workspace.scripts).toMatchObject({ build: "bun scripts/build.ts", @@ -170,9 +170,10 @@ describe("relight-studio package", () => { ]) expect(html.match(/data-radix-select/g)).toHaveLength(2) expect(html.match(/data-radix-slider/g)).toHaveLength(8) - expect(source).toContain('import { Select, Slider } from "radix-ui"') + expect(source).toContain('import { Select, Slider, Tooltip } from "radix-ui"') expect(source).toContain("