@stackable-labs/embeddables 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ var K2=Object.defineProperty;var X2=(pr,nn,In)=>nn in pr?K2(pr,nn,{enumerable:!0
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Eu;function Iv(){if(Eu)return Te;Eu=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),h=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=h&&A[h]||A["@@iterator"],typeof A=="function"?A:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function C(A,U,ee){this.props=A,this.context=U,this.refs=k,this.updater=ee||S}C.prototype.isReactComponent={},C.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,U,"setState")},C.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=C.prototype;function P(A,U,ee){this.props=A,this.context=U,this.refs=k,this.updater=ee||S}var R=P.prototype=new N;R.constructor=P,E(R,C.prototype),R.isPureReactComponent=!0;var j=Array.isArray,$=Object.prototype.hasOwnProperty,z={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function D(A,U,ee){var re,ne={},se=null,Z=null;if(U!=null)for(re in U.ref!==void 0&&(Z=U.ref),U.key!==void 0&&(se=""+U.key),U)$.call(U,re)&&!O.hasOwnProperty(re)&&(ne[re]=U[re]);var J=arguments.length-2;if(J===1)ne.children=ee;else if(1<J){for(var ae=Array(J),Ce=0;Ce<J;Ce++)ae[Ce]=arguments[Ce+2];ne.children=ae}if(A&&A.defaultProps)for(re in J=A.defaultProps,J)ne[re]===void 0&&(ne[re]=J[re]);return{$$typeof:n,type:A,key:se,ref:Z,props:ne,_owner:z.current}}function K(A,U){return{$$typeof:n,type:A.type,key:U,ref:A.ref,props:A.props,_owner:A._owner}}function oe(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function fe(A){var U={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return U[ee]})}var ge=/\/+/g;function he(A,U){return typeof A=="object"&&A!==null&&A.key!=null?fe(""+A.key):U.toString(36)}function ve(A,U,ee,re,ne){var se=typeof A;(se==="undefined"||se==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(se){case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case n:case o:Z=!0}}if(Z)return Z=A,ne=ne(Z),A=re===""?"."+he(Z,0):re,j(ne)?(ee="",A!=null&&(ee=A.replace(ge,"$&/")+"/"),ve(ne,U,ee,"",function(Ce){return Ce})):ne!=null&&(oe(ne)&&(ne=K(ne,ee+(!ne.key||Z&&Z.key===ne.key?"":(""+ne.key).replace(ge,"$&/")+"/")+A)),U.push(ne)),1;if(Z=0,re=re===""?".":re+":",j(A))for(var J=0;J<A.length;J++){se=A[J];var ae=re+he(se,J);Z+=ve(se,U,ee,ae,ne)}else if(ae=b(A),typeof ae=="function")for(A=ae.call(A),J=0;!(se=A.next()).done;)se=se.value,ae=re+he(se,J++),Z+=ve(se,U,ee,ae,ne);else if(se==="object")throw U=String(A),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Z}function Se(A,U,ee){if(A==null)return A;var re=[],ne=0;return ve(A,re,"","",function(se){return U.call(ee,se,ne++)}),re}function G(A){if(A._status===-1){var U=A._result;U=U(),U.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=U)}if(A._status===1)return A._result.default;throw A._result}var te={current:null},H={transition:null},q={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:H,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Se,forEach:function(A,U,ee){Se(A,function(){U.apply(this,arguments)},ee)},count:function(A){var U=0;return Se(A,function(){U++}),U},toArray:function(A){return Se(A,function(U){return U})||[]},only:function(A){if(!oe(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Te.Component=C,Te.Fragment=i,Te.Profiler=l,Te.PureComponent=P,Te.StrictMode=a,Te.Suspense=m,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Te.act=B,Te.cloneElement=function(A,U,ee){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var re=E({},A.props),ne=A.key,se=A.ref,Z=A._owner;if(U!=null){if(U.ref!==void 0&&(se=U.ref,Z=z.current),U.key!==void 0&&(ne=""+U.key),A.type&&A.type.defaultProps)var J=A.type.defaultProps;for(ae in U)$.call(U,ae)&&!O.hasOwnProperty(ae)&&(re[ae]=U[ae]===void 0&&J!==void 0?J[ae]:U[ae])}var ae=arguments.length-2;if(ae===1)re.children=ee;else if(1<ae){J=Array(ae);for(var Ce=0;Ce<ae;Ce++)J[Ce]=arguments[Ce+2];re.children=J}return{$$typeof:n,type:A.type,key:ne,ref:se,props:re,_owner:Z}},Te.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},Te.createElement=D,Te.createFactory=function(A){var U=D.bind(null,A);return U.type=A,U},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:p,render:A}},Te.isValidElement=oe,Te.lazy=function(A){return{$$typeof:w,_payload:{_status:-1,_result:A},_init:G}},Te.memo=function(A,U){return{$$typeof:g,type:A,compare:U===void 0?null:U}},Te.startTransition=function(A){var U=H.transition;H.transition={};try{A()}finally{H.transition=U}},Te.unstable_act=B,Te.useCallback=function(A,U){return te.current.useCallback(A,U)},Te.useContext=function(A){return te.current.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A){return te.current.useDeferredValue(A)},Te.useEffect=function(A,U){return te.current.useEffect(A,U)},Te.useId=function(){return te.current.useId()},Te.useImperativeHandle=function(A,U,ee){return te.current.useImperativeHandle(A,U,ee)},Te.useInsertionEffect=function(A,U){return te.current.useInsertionEffect(A,U)},Te.useLayoutEffect=function(A,U){return te.current.useLayoutEffect(A,U)},Te.useMemo=function(A,U){return te.current.useMemo(A,U)},Te.useReducer=function(A,U,ee){return te.current.useReducer(A,U,ee)},Te.useRef=function(A){return te.current.useRef(A)},Te.useState=function(A){return te.current.useState(A)},Te.useSyncExternalStore=function(A,U,ee){return te.current.useSyncExternalStore(A,U,ee)},Te.useTransition=function(){return te.current.useTransition()},Te.version="18.3.1",Te}var _u;function Si(){return _u||(_u=1,Ra.exports=Iv()),Ra.exports}/**
9
+ */var Eu;function Iv(){if(Eu)return Te;Eu=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),h=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=h&&A[h]||A["@@iterator"],typeof A=="function"?A:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function C(A,U,ee){this.props=A,this.context=U,this.refs=k,this.updater=ee||S}C.prototype.isReactComponent={},C.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,U,"setState")},C.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=C.prototype;function P(A,U,ee){this.props=A,this.context=U,this.refs=k,this.updater=ee||S}var R=P.prototype=new N;R.constructor=P,E(R,C.prototype),R.isPureReactComponent=!0;var j=Array.isArray,$=Object.prototype.hasOwnProperty,z={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function D(A,U,ee){var re,ne={},se=null,Z=null;if(U!=null)for(re in U.ref!==void 0&&(Z=U.ref),U.key!==void 0&&(se=""+U.key),U)$.call(U,re)&&!O.hasOwnProperty(re)&&(ne[re]=U[re]);var J=arguments.length-2;if(J===1)ne.children=ee;else if(1<J){for(var ae=Array(J),Ce=0;Ce<J;Ce++)ae[Ce]=arguments[Ce+2];ne.children=ae}if(A&&A.defaultProps)for(re in J=A.defaultProps,J)ne[re]===void 0&&(ne[re]=J[re]);return{$$typeof:n,type:A,key:se,ref:Z,props:ne,_owner:z.current}}function X(A,U){return{$$typeof:n,type:A.type,key:U,ref:A.ref,props:A.props,_owner:A._owner}}function oe(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function fe(A){var U={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return U[ee]})}var ge=/\/+/g;function he(A,U){return typeof A=="object"&&A!==null&&A.key!=null?fe(""+A.key):U.toString(36)}function ve(A,U,ee,re,ne){var se=typeof A;(se==="undefined"||se==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(se){case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case n:case o:Z=!0}}if(Z)return Z=A,ne=ne(Z),A=re===""?"."+he(Z,0):re,j(ne)?(ee="",A!=null&&(ee=A.replace(ge,"$&/")+"/"),ve(ne,U,ee,"",function(Ce){return Ce})):ne!=null&&(oe(ne)&&(ne=X(ne,ee+(!ne.key||Z&&Z.key===ne.key?"":(""+ne.key).replace(ge,"$&/")+"/")+A)),U.push(ne)),1;if(Z=0,re=re===""?".":re+":",j(A))for(var J=0;J<A.length;J++){se=A[J];var ae=re+he(se,J);Z+=ve(se,U,ee,ae,ne)}else if(ae=b(A),typeof ae=="function")for(A=ae.call(A),J=0;!(se=A.next()).done;)se=se.value,ae=re+he(se,J++),Z+=ve(se,U,ee,ae,ne);else if(se==="object")throw U=String(A),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Z}function Se(A,U,ee){if(A==null)return A;var re=[],ne=0;return ve(A,re,"","",function(se){return U.call(ee,se,ne++)}),re}function G(A){if(A._status===-1){var U=A._result;U=U(),U.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=U)}if(A._status===1)return A._result.default;throw A._result}var te={current:null},H={transition:null},q={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:H,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Se,forEach:function(A,U,ee){Se(A,function(){U.apply(this,arguments)},ee)},count:function(A){var U=0;return Se(A,function(){U++}),U},toArray:function(A){return Se(A,function(U){return U})||[]},only:function(A){if(!oe(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Te.Component=C,Te.Fragment=i,Te.Profiler=l,Te.PureComponent=P,Te.StrictMode=a,Te.Suspense=m,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Te.act=B,Te.cloneElement=function(A,U,ee){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var re=E({},A.props),ne=A.key,se=A.ref,Z=A._owner;if(U!=null){if(U.ref!==void 0&&(se=U.ref,Z=z.current),U.key!==void 0&&(ne=""+U.key),A.type&&A.type.defaultProps)var J=A.type.defaultProps;for(ae in U)$.call(U,ae)&&!O.hasOwnProperty(ae)&&(re[ae]=U[ae]===void 0&&J!==void 0?J[ae]:U[ae])}var ae=arguments.length-2;if(ae===1)re.children=ee;else if(1<ae){J=Array(ae);for(var Ce=0;Ce<ae;Ce++)J[Ce]=arguments[Ce+2];re.children=J}return{$$typeof:n,type:A.type,key:ne,ref:se,props:re,_owner:Z}},Te.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},Te.createElement=D,Te.createFactory=function(A){var U=D.bind(null,A);return U.type=A,U},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:p,render:A}},Te.isValidElement=oe,Te.lazy=function(A){return{$$typeof:w,_payload:{_status:-1,_result:A},_init:G}},Te.memo=function(A,U){return{$$typeof:g,type:A,compare:U===void 0?null:U}},Te.startTransition=function(A){var U=H.transition;H.transition={};try{A()}finally{H.transition=U}},Te.unstable_act=B,Te.useCallback=function(A,U){return te.current.useCallback(A,U)},Te.useContext=function(A){return te.current.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A){return te.current.useDeferredValue(A)},Te.useEffect=function(A,U){return te.current.useEffect(A,U)},Te.useId=function(){return te.current.useId()},Te.useImperativeHandle=function(A,U,ee){return te.current.useImperativeHandle(A,U,ee)},Te.useInsertionEffect=function(A,U){return te.current.useInsertionEffect(A,U)},Te.useLayoutEffect=function(A,U){return te.current.useLayoutEffect(A,U)},Te.useMemo=function(A,U){return te.current.useMemo(A,U)},Te.useReducer=function(A,U,ee){return te.current.useReducer(A,U,ee)},Te.useRef=function(A){return te.current.useRef(A)},Te.useState=function(A){return te.current.useState(A)},Te.useSyncExternalStore=function(A,U,ee){return te.current.useSyncExternalStore(A,U,ee)},Te.useTransition=function(){return te.current.useTransition()},Te.version="18.3.1",Te}var _u;function Si(){return _u||(_u=1,Ra.exports=Iv()),Ra.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -22,7 +22,7 @@ var K2=Object.defineProperty;var X2=(pr,nn,In)=>nn in pr?K2(pr,nn,{enumerable:!0
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Pu;function Mv(){return Pu||(Pu=1,(function(n){function o(H,q){var B=H.length;H.push(q);e:for(;0<B;){var A=B-1>>>1,U=H[A];if(0<l(U,q))H[A]=q,H[B]=U,B=A;else break e}}function i(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var q=H[0],B=H.pop();if(B!==q){H[0]=B;e:for(var A=0,U=H.length,ee=U>>>1;A<ee;){var re=2*(A+1)-1,ne=H[re],se=re+1,Z=H[se];if(0>l(ne,B))se<U&&0>l(Z,ne)?(H[A]=Z,H[se]=B,A=se):(H[A]=ne,H[re]=B,A=re);else if(se<U&&0>l(Z,B))H[A]=Z,H[se]=B,A=se;else break e}}return q}function l(H,q){var B=H.sortIndex-q.sortIndex;return B!==0?B:H.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],g=[],w=1,h=null,b=3,S=!1,E=!1,k=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(H){for(var q=i(g);q!==null;){if(q.callback===null)a(g);else if(q.startTime<=H)a(g),q.sortIndex=q.expirationTime,o(m,q);else break;q=i(g)}}function j(H){if(k=!1,R(H),!E)if(i(m)!==null)E=!0,G($);else{var q=i(g);q!==null&&te(j,q.startTime-H)}}function $(H,q){E=!1,k&&(k=!1,N(D),D=-1),S=!0;var B=b;try{for(R(q),h=i(m);h!==null&&(!(h.expirationTime>q)||H&&!fe());){var A=h.callback;if(typeof A=="function"){h.callback=null,b=h.priorityLevel;var U=A(h.expirationTime<=q);q=n.unstable_now(),typeof U=="function"?h.callback=U:h===i(m)&&a(m),R(q)}else a(m);h=i(m)}if(h!==null)var ee=!0;else{var re=i(g);re!==null&&te(j,re.startTime-q),ee=!1}return ee}finally{h=null,b=B,S=!1}}var z=!1,O=null,D=-1,K=5,oe=-1;function fe(){return!(n.unstable_now()-oe<K)}function ge(){if(O!==null){var H=n.unstable_now();oe=H;var q=!0;try{q=O(!0,H)}finally{q?he():(z=!1,O=null)}}else z=!1}var he;if(typeof P=="function")he=function(){P(ge)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Se=ve.port2;ve.port1.onmessage=ge,he=function(){Se.postMessage(null)}}else he=function(){C(ge,0)};function G(H){O=H,z||(z=!0,he())}function te(H,q){D=C(function(){H(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_continueExecution=function(){E||S||(E=!0,G($))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_getFirstCallbackNode=function(){return i(m)},n.unstable_next=function(H){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var B=b;b=q;try{return H()}finally{b=B}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var B=b;b=H;try{return q()}finally{b=B}},n.unstable_scheduleCallback=function(H,q,B){var A=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,H={id:w++,callback:q,priorityLevel:H,startTime:B,expirationTime:U,sortIndex:-1},B>A?(H.sortIndex=B,o(g,H),i(m)===null&&H===i(g)&&(k?(N(D),D=-1):k=!0,te(j,B-A))):(H.sortIndex=U,o(m,H),E||S||(E=!0,G($))),H},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(H){var q=b;return function(){var B=b;b=q;try{return H.apply(this,arguments)}finally{b=B}}}})(Ia)),Ia}var Tu;function zv(){return Tu||(Tu=1,Ta.exports=Mv()),Ta.exports}/**
25
+ */var Pu;function Mv(){return Pu||(Pu=1,(function(n){function o(H,q){var B=H.length;H.push(q);e:for(;0<B;){var A=B-1>>>1,U=H[A];if(0<l(U,q))H[A]=q,H[B]=U,B=A;else break e}}function i(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var q=H[0],B=H.pop();if(B!==q){H[0]=B;e:for(var A=0,U=H.length,ee=U>>>1;A<ee;){var re=2*(A+1)-1,ne=H[re],se=re+1,Z=H[se];if(0>l(ne,B))se<U&&0>l(Z,ne)?(H[A]=Z,H[se]=B,A=se):(H[A]=ne,H[re]=B,A=re);else if(se<U&&0>l(Z,B))H[A]=Z,H[se]=B,A=se;else break e}}return q}function l(H,q){var B=H.sortIndex-q.sortIndex;return B!==0?B:H.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],g=[],w=1,h=null,b=3,S=!1,E=!1,k=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(H){for(var q=i(g);q!==null;){if(q.callback===null)a(g);else if(q.startTime<=H)a(g),q.sortIndex=q.expirationTime,o(m,q);else break;q=i(g)}}function j(H){if(k=!1,R(H),!E)if(i(m)!==null)E=!0,G($);else{var q=i(g);q!==null&&te(j,q.startTime-H)}}function $(H,q){E=!1,k&&(k=!1,N(D),D=-1),S=!0;var B=b;try{for(R(q),h=i(m);h!==null&&(!(h.expirationTime>q)||H&&!fe());){var A=h.callback;if(typeof A=="function"){h.callback=null,b=h.priorityLevel;var U=A(h.expirationTime<=q);q=n.unstable_now(),typeof U=="function"?h.callback=U:h===i(m)&&a(m),R(q)}else a(m);h=i(m)}if(h!==null)var ee=!0;else{var re=i(g);re!==null&&te(j,re.startTime-q),ee=!1}return ee}finally{h=null,b=B,S=!1}}var z=!1,O=null,D=-1,X=5,oe=-1;function fe(){return!(n.unstable_now()-oe<X)}function ge(){if(O!==null){var H=n.unstable_now();oe=H;var q=!0;try{q=O(!0,H)}finally{q?he():(z=!1,O=null)}}else z=!1}var he;if(typeof P=="function")he=function(){P(ge)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Se=ve.port2;ve.port1.onmessage=ge,he=function(){Se.postMessage(null)}}else he=function(){C(ge,0)};function G(H){O=H,z||(z=!0,he())}function te(H,q){D=C(function(){H(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_continueExecution=function(){E||S||(E=!0,G($))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_getFirstCallbackNode=function(){return i(m)},n.unstable_next=function(H){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var B=b;b=q;try{return H()}finally{b=B}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var B=b;b=H;try{return q()}finally{b=B}},n.unstable_scheduleCallback=function(H,q,B){var A=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,H={id:w++,callback:q,priorityLevel:H,startTime:B,expirationTime:U,sortIndex:-1},B>A?(H.sortIndex=B,o(g,H),i(m)===null&&H===i(g)&&(k?(N(D),D=-1):k=!0,te(j,B-A))):(H.sortIndex=U,o(m,H),E||S||(E=!0,G($))),H},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(H){var q=b;return function(){var B=b;b=q;try{return H.apply(this,arguments)}finally{b=B}}}})(Ia)),Ia}var Tu;function zv(){return Tu||(Tu=1,Ta.exports=Mv()),Ta.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var K2=Object.defineProperty;var X2=(pr,nn,In)=>nn in pr?K2(pr,nn,{enumerable:!0
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Iu;function Lv(){if(Iu)return wt;Iu=1;var n=Si(),o=zv();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,w={},h={};function b(e){return m.call(h,e)?!0:m.call(w,e)?!1:g.test(e)?h[e]=!0:(w[e]=!0,!1)}function S(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,r,s){if(t===null||typeof t>"u"||S(e,t,r,s))return!0;if(s)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,r,s,c,d,x){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=c,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=x}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function P(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,t,r,s){var c=C.hasOwnProperty(t)?C[t]:null;(c!==null?c.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E(t,r,c,s)&&(r=null),s||c===null?b(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):c.mustUseProperty?e[c.propertyName]=r===null?c.type===3?!1:"":r:(t=c.attributeName,s=c.attributeNamespace,r===null?e.removeAttribute(t):(c=c.type,r=c===3||c===4&&r===!0?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}var j=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),z=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),fe=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),H=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,A;function U(e){if(A===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return`
33
+ */var Iu;function Lv(){if(Iu)return wt;Iu=1;var n=Si(),o=zv();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,w={},h={};function b(e){return m.call(h,e)?!0:m.call(w,e)?!1:g.test(e)?h[e]=!0:(w[e]=!0,!1)}function S(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,r,s){if(t===null||typeof t>"u"||S(e,t,r,s))return!0;if(s)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,r,s,c,d,x){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=c,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=x}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function P(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(N,P);C[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,t,r,s){var c=C.hasOwnProperty(t)?C[t]:null;(c!==null?c.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E(t,r,c,s)&&(r=null),s||c===null?b(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):c.mustUseProperty?e[c.propertyName]=r===null?c.type===3?!1:"":r:(t=c.attributeName,s=c.attributeNamespace,r===null?e.removeAttribute(t):(c=c.type,r=c===3||c===4&&r===!0?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}var j=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),z=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),fe=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),H=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,A;function U(e){if(A===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return`
34
34
  `+A+e}var ee=!1;function re(e,t){if(!e||ee)return"";ee=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(F){var s=F}Reflect.construct(e,[],t)}else{try{t.call()}catch(F){s=F}e.call(t.prototype)}else{try{throw Error()}catch(F){s=F}e()}}catch(F){if(F&&s&&typeof F.stack=="string"){for(var c=F.stack.split(`
35
35
  `),d=s.stack.split(`
36
36
  `),x=c.length-1,_=d.length-1;1<=x&&0<=_&&c[x]!==d[_];)_--;for(;1<=x&&0<=_;x--,_--)if(c[x]!==d[_]){if(x!==1||_!==1)do if(x--,_--,0>_||c[x]!==d[_]){var T=`
37
- `+c[x].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=x&&0<=_);break}}}finally{ee=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?U(e):""}function ne(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case z:return"Portal";case K:return"Profiler";case D:return"StrictMode";case he:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fe:return(e.displayName||"Context")+".Consumer";case oe:return(e._context.displayName||"Context")+".Provider";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function Z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(t);case 8:return t===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function J(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=ae(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){s=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=ae(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Fe(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Be(e,t){var r=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function un(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=J(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kt(e,t){t=t.checked,t!=null&&R(e,"checked",t,!1)}function gt(e,t){Kt(e,t);var r=J(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tt(e,t.type,r):t.hasOwnProperty("defaultValue")&&tt(e,t.type,J(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kr(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function tt(e,t,r){(t!=="number"||Fe(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Sr=Array.isArray;function Bn(e,t,r,s){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&s&&(e[r].defaultSelected=!0)}else{for(r=""+J(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function st(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bn(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(Sr(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:J(r)}}function ys(e,t){var r=J(t.value),s=J(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function ws(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Er,eo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,c){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Er=Er||document.createElement("div"),Er.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Un=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Un.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function xs(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function bs(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,c=xs(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,c):e[r]=c}}var ks=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function to(e,t){if(t){if(ks[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function $o(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _r=null;function Lt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bo=null,Vn=null,kn=null;function Ho(e){if(e=li(e)){if(typeof Bo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Us(t),Bo(e.stateNode,e.type,t))}}function _e(e){Vn?kn?kn.push(e):kn=[e]:Vn=e}function Ge(){if(Vn){var e=Vn,t=kn;if(kn=Vn=null,Ho(e),t)for(e=0;e<t.length;e++)Ho(t[e])}}function Ze(e,t){return e(t)}function dt(){}var Wn=!1;function Xe(e,t,r){if(Wn)return e(t,r);Wn=!0;try{return Ze(e,t,r)}finally{Wn=!1,(Vn!==null||kn!==null)&&(dt(),Ge())}}function nt(e,t){var r=e.stateNode;if(r===null)return null;var s=Us(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var Gn=!1;if(p)try{var at={};Object.defineProperty(at,"passive",{get:function(){Gn=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Gn=!1}function Pt(e,t,r,s,c,d,x,_,T){var F=Array.prototype.slice.call(arguments,3);try{t.apply(r,F)}catch(W){this.onError(W)}}var Yn=!1,Ot=null,Uo=!1,Ul=null,tE={onError:function(e){Yn=!0,Ot=e}};function nE(e,t,r,s,c,d,x,_,T){Yn=!1,Ot=null,Pt.apply(tE,arguments)}function rE(e,t,r,s,c,d,x,_,T){if(nE.apply(this,arguments),Yn){if(Yn){var F=Ot;Yn=!1,Ot=null}else throw Error(i(198));Uo||(Uo=!0,Ul=F)}}function Nr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function eh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function th(e){if(Nr(e)!==e)throw Error(i(188))}function oE(e){var t=e.alternate;if(!t){if(t=Nr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,s=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){r=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return th(c),e;if(d===s)return th(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==s.return)r=c,s=d;else{for(var x=!1,_=c.child;_;){if(_===r){x=!0,r=c,s=d;break}if(_===s){x=!0,s=c,r=d;break}_=_.sibling}if(!x){for(_=d.child;_;){if(_===r){x=!0,r=d,s=c;break}if(_===s){x=!0,s=d,r=c;break}_=_.sibling}if(!x)throw Error(i(189))}}if(r.alternate!==s)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function nh(e){return e=oE(e),e!==null?rh(e):null}function rh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rh(e);if(t!==null)return t;e=e.sibling}return null}var oh=o.unstable_scheduleCallback,ih=o.unstable_cancelCallback,iE=o.unstable_shouldYield,sE=o.unstable_requestPaint,Ye=o.unstable_now,aE=o.unstable_getCurrentPriorityLevel,Vl=o.unstable_ImmediatePriority,sh=o.unstable_UserBlockingPriority,Ss=o.unstable_NormalPriority,lE=o.unstable_LowPriority,ah=o.unstable_IdlePriority,Cs=null,dn=null;function cE(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(Cs,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:fE,uE=Math.log,dE=Math.LN2;function fE(e){return e>>>=0,e===0?32:31-(uE(e)/dE|0)|0}var Es=64,_s=4194304;function Vo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ns(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes,x=r&268435455;if(x!==0){var _=x&~c;_!==0?s=Vo(_):(d&=x,d!==0&&(s=Vo(d)))}else x=r&~c,x!==0?s=Vo(x):d!==0&&(s=Vo(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&c)===0&&(c=s&-s,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-Xt(t),c=1<<r,s|=e[r],t&=~c;return s}function pE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mE(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var x=31-Xt(d),_=1<<x,T=c[x];T===-1?((_&r)===0||(_&s)!==0)&&(c[x]=pE(_,t)):T<=t&&(e.expiredLanes|=_),d&=~_}}function Wl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lh(){var e=Es;return Es<<=1,(Es&4194240)===0&&(Es=64),e}function Gl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Wo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=r}function hE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<r;){var c=31-Xt(r),d=1<<c;t[c]=0,s[c]=-1,e[c]=-1,r&=~d}}function Yl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Xt(r),c=1<<s;c&t|e[s]&t&&(e[s]|=t),r&=~c}}var ze=0;function ch(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var uh,Kl,dh,fh,ph,Xl=!1,Rs=[],Kn=null,Xn=null,Qn=null,Go=new Map,Yo=new Map,qn=[],gE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mh(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Go.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yo.delete(t.pointerId)}}function Ko(e,t,r,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},t!==null&&(t=li(t),t!==null&&Kl(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function vE(e,t,r,s,c){switch(t){case"focusin":return Kn=Ko(Kn,e,t,r,s,c),!0;case"dragenter":return Xn=Ko(Xn,e,t,r,s,c),!0;case"mouseover":return Qn=Ko(Qn,e,t,r,s,c),!0;case"pointerover":var d=c.pointerId;return Go.set(d,Ko(Go.get(d)||null,e,t,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Yo.set(d,Ko(Yo.get(d)||null,e,t,r,s,c)),!0}return!1}function hh(e){var t=Rr(e.target);if(t!==null){var r=Nr(t);if(r!==null){if(t=r.tag,t===13){if(t=eh(r),t!==null){e.blockedOn=t,ph(e.priority,function(){dh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ql(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);_r=s,r.target.dispatchEvent(s),_r=null}else return t=li(r),t!==null&&Kl(t),e.blockedOn=r,!1;t.shift()}return!0}function gh(e,t,r){Ps(e)&&r.delete(t)}function yE(){Xl=!1,Kn!==null&&Ps(Kn)&&(Kn=null),Xn!==null&&Ps(Xn)&&(Xn=null),Qn!==null&&Ps(Qn)&&(Qn=null),Go.forEach(gh),Yo.forEach(gh)}function Xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Xl||(Xl=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yE)))}function Qo(e){function t(c){return Xo(c,e)}if(0<Rs.length){Xo(Rs[0],e);for(var r=1;r<Rs.length;r++){var s=Rs[r];s.blockedOn===e&&(s.blockedOn=null)}}for(Kn!==null&&Xo(Kn,e),Xn!==null&&Xo(Xn,e),Qn!==null&&Xo(Qn,e),Go.forEach(t),Yo.forEach(t),r=0;r<qn.length;r++)s=qn[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<qn.length&&(r=qn[0],r.blockedOn===null);)hh(r),r.blockedOn===null&&qn.shift()}var no=j.ReactCurrentBatchConfig,Ts=!0;function wE(e,t,r,s){var c=ze,d=no.transition;no.transition=null;try{ze=1,Ql(e,t,r,s)}finally{ze=c,no.transition=d}}function xE(e,t,r,s){var c=ze,d=no.transition;no.transition=null;try{ze=4,Ql(e,t,r,s)}finally{ze=c,no.transition=d}}function Ql(e,t,r,s){if(Ts){var c=ql(e,t,r,s);if(c===null)mc(e,t,s,Is,r),mh(e,s);else if(vE(c,e,t,r,s))s.stopPropagation();else if(mh(e,s),t&4&&-1<gE.indexOf(e)){for(;c!==null;){var d=li(c);if(d!==null&&uh(d),d=ql(e,t,r,s),d===null&&mc(e,t,s,Is,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else mc(e,t,s,null,r)}}var Is=null;function ql(e,t,r,s){if(Is=null,e=Lt(s),e=Rr(e),e!==null)if(t=Nr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=eh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Is=e,null}function vh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(aE()){case Vl:return 1;case sh:return 4;case Ss:case lE:return 16;case ah:return 536870912;default:return 16}default:return 16}}var Zn=null,Zl=null,As=null;function yh(){if(As)return As;var e,t=Zl,r=t.length,s,c="value"in Zn?Zn.value:Zn.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var x=r-e;for(s=1;s<=x&&t[r-s]===c[d-s];s++);return As=c.slice(e,1<s?1-s:void 0)}function js(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ms(){return!0}function wh(){return!1}function Tt(e){function t(r,s,c,d,x){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(r=e[_],this[_]=r?r(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ms:wh,this.isPropagationStopped=wh,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ms)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ms)},persist:function(){},isPersistent:Ms}),t}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=Tt(ro),qo=B({},ro,{view:0,detail:0}),bE=Tt(qo),ec,tc,Zo,zs=B({},qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zo&&(Zo&&e.type==="mousemove"?(ec=e.screenX-Zo.screenX,tc=e.screenY-Zo.screenY):tc=ec=0,Zo=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),xh=Tt(zs),kE=B({},zs,{dataTransfer:0}),SE=Tt(kE),CE=B({},qo,{relatedTarget:0}),nc=Tt(CE),EE=B({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),_E=Tt(EE),NE=B({},ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),RE=Tt(NE),PE=B({},ro,{data:0}),bh=Tt(PE),TE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IE={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"},AE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AE[e])?!!t[e]:!1}function rc(){return jE}var ME=B({},qo,{key:function(e){if(e.key){var t=TE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=js(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(e){return e.type==="keypress"?js(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?js(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zE=Tt(ME),LE=B({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kh=Tt(LE),OE=B({},qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),DE=Tt(OE),FE=B({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),$E=Tt(FE),BE=B({},zs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HE=Tt(BE),UE=[9,13,27,32],oc=p&&"CompositionEvent"in window,Jo=null;p&&"documentMode"in document&&(Jo=document.documentMode);var VE=p&&"TextEvent"in window&&!Jo,Sh=p&&(!oc||Jo&&8<Jo&&11>=Jo),Ch=" ",Eh=!1;function _h(e,t){switch(e){case"keyup":return UE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function WE(e,t){switch(e){case"compositionend":return Nh(t);case"keypress":return t.which!==32?null:(Eh=!0,Ch);case"textInput":return e=t.data,e===Ch&&Eh?null:e;default:return null}}function GE(e,t){if(oo)return e==="compositionend"||!oc&&_h(e,t)?(e=yh(),As=Zl=Zn=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sh&&t.locale!=="ko"?null:t.data;default:return null}}var YE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YE[e.type]:t==="textarea"}function Ph(e,t,r,s){_e(s),t=$s(t,"onChange"),0<t.length&&(r=new Jl("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var ei=null,ti=null;function KE(e){Yh(e,0)}function Ls(e){var t=co(e);if(Re(t))return e}function XE(e,t){if(e==="change")return t}var Th=!1;if(p){var ic;if(p){var sc="oninput"in document;if(!sc){var Ih=document.createElement("div");Ih.setAttribute("oninput","return;"),sc=typeof Ih.oninput=="function"}ic=sc}else ic=!1;Th=ic&&(!document.documentMode||9<document.documentMode)}function Ah(){ei&&(ei.detachEvent("onpropertychange",jh),ti=ei=null)}function jh(e){if(e.propertyName==="value"&&Ls(ti)){var t=[];Ph(t,ti,e,Lt(e)),Xe(KE,t)}}function QE(e,t,r){e==="focusin"?(Ah(),ei=t,ti=r,ei.attachEvent("onpropertychange",jh)):e==="focusout"&&Ah()}function qE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ls(ti)}function ZE(e,t){if(e==="click")return Ls(t)}function JE(e,t){if(e==="input"||e==="change")return Ls(t)}function e2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:e2;function ni(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var c=r[s];if(!m.call(t,c)||!Qt(e[c],t[c]))return!1}return!0}function Mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,t){var r=Mh(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mh(r)}}function Lh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Fe(e.document)}return t}function ac(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function t2(e){var t=Oh(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Lh(r.ownerDocument.documentElement,r)){if(s!==null&&ac(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=r.textContent.length,d=Math.min(s.start,c);s=s.end===void 0?d:Math.min(s.end,c),!e.extend&&d>s&&(c=s,s=d,d=c),c=zh(r,d);var x=zh(r,s);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(x.node,x.offset)):(t.setEnd(x.node,x.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var n2=p&&"documentMode"in document&&11>=document.documentMode,io=null,lc=null,ri=null,cc=!1;function Dh(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cc||io==null||io!==Fe(s)||(s=io,"selectionStart"in s&&ac(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ri&&ni(ri,s)||(ri=s,s=$s(lc,"onSelect"),0<s.length&&(t=new Jl("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=io)))}function Os(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var so={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},uc={},Fh={};p&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function Ds(e){if(uc[e])return uc[e];if(!so[e])return e;var t=so[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Fh)return uc[e]=t[r];return e}var $h=Ds("animationend"),Bh=Ds("animationiteration"),Hh=Ds("animationstart"),Uh=Ds("transitionend"),Vh=new Map,Wh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jn(e,t){Vh.set(e,t),u(t,[e])}for(var dc=0;dc<Wh.length;dc++){var fc=Wh[dc],r2=fc.toLowerCase(),o2=fc[0].toUpperCase()+fc.slice(1);Jn(r2,"on"+o2)}Jn($h,"onAnimationEnd"),Jn(Bh,"onAnimationIteration"),Jn(Hh,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(Uh,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),i2=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function Gh(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,rE(s,t,void 0,e),e.currentTarget=null}function Yh(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],c=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var x=s.length-1;0<=x;x--){var _=s[x],T=_.instance,F=_.currentTarget;if(_=_.listener,T!==d&&c.isPropagationStopped())break e;Gh(c,_,F),d=T}else for(x=0;x<s.length;x++){if(_=s[x],T=_.instance,F=_.currentTarget,_=_.listener,T!==d&&c.isPropagationStopped())break e;Gh(c,_,F),d=T}}}if(Uo)throw e=Ul,Uo=!1,Ul=null,e}function Oe(e,t){var r=t[xc];r===void 0&&(r=t[xc]=new Set);var s=e+"__bubble";r.has(s)||(Kh(t,e,2,!1),r.add(s))}function pc(e,t,r){var s=0;t&&(s|=4),Kh(r,e,s,t)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function ii(e){if(!e[Fs]){e[Fs]=!0,a.forEach(function(r){r!=="selectionchange"&&(i2.has(r)||pc(r,!1,e),pc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fs]||(t[Fs]=!0,pc("selectionchange",!1,t))}}function Kh(e,t,r,s){switch(vh(t)){case 1:var c=wE;break;case 4:c=xE;break;default:c=Ql}r=c.bind(null,t,r,e),c=void 0,!Gn||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function mc(e,t,r,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var _=s.stateNode.containerInfo;if(_===c||_.nodeType===8&&_.parentNode===c)break;if(x===4)for(x=s.return;x!==null;){var T=x.tag;if((T===3||T===4)&&(T=x.stateNode.containerInfo,T===c||T.nodeType===8&&T.parentNode===c))return;x=x.return}for(;_!==null;){if(x=Rr(_),x===null)return;if(T=x.tag,T===5||T===6){s=d=x;continue e}_=_.parentNode}}s=s.return}Xe(function(){var F=d,W=Lt(r),Y=[];e:{var V=Vh.get(e);if(V!==void 0){var ie=Jl,ue=e;switch(e){case"keypress":if(js(r)===0)break e;case"keydown":case"keyup":ie=zE;break;case"focusin":ue="focus",ie=nc;break;case"focusout":ue="blur",ie=nc;break;case"beforeblur":case"afterblur":ie=nc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=SE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=DE;break;case $h:case Bh:case Hh:ie=_E;break;case Uh:ie=$E;break;case"scroll":ie=bE;break;case"wheel":ie=HE;break;case"copy":case"cut":case"paste":ie=RE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=kh}var pe=(t&4)!==0,Ke=!pe&&e==="scroll",M=pe?V!==null?V+"Capture":null:V;pe=[];for(var I=F,L;I!==null;){L=I;var Q=L.stateNode;if(L.tag===5&&Q!==null&&(L=Q,M!==null&&(Q=nt(I,M),Q!=null&&pe.push(si(I,Q,L)))),Ke)break;I=I.return}0<pe.length&&(V=new ie(V,ue,null,r,W),Y.push({event:V,listeners:pe}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",V&&r!==_r&&(ue=r.relatedTarget||r.fromElement)&&(Rr(ue)||ue[Sn]))break e;if((ie||V)&&(V=W.window===W?W:(V=W.ownerDocument)?V.defaultView||V.parentWindow:window,ie?(ue=r.relatedTarget||r.toElement,ie=F,ue=ue?Rr(ue):null,ue!==null&&(Ke=Nr(ue),ue!==Ke||ue.tag!==5&&ue.tag!==6)&&(ue=null)):(ie=null,ue=F),ie!==ue)){if(pe=xh,Q="onMouseLeave",M="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(pe=kh,Q="onPointerLeave",M="onPointerEnter",I="pointer"),Ke=ie==null?V:co(ie),L=ue==null?V:co(ue),V=new pe(Q,I+"leave",ie,r,W),V.target=Ke,V.relatedTarget=L,Q=null,Rr(W)===F&&(pe=new pe(M,I+"enter",ue,r,W),pe.target=L,pe.relatedTarget=Ke,Q=pe),Ke=Q,ie&&ue)t:{for(pe=ie,M=ue,I=0,L=pe;L;L=ao(L))I++;for(L=0,Q=M;Q;Q=ao(Q))L++;for(;0<I-L;)pe=ao(pe),I--;for(;0<L-I;)M=ao(M),L--;for(;I--;){if(pe===M||M!==null&&pe===M.alternate)break t;pe=ao(pe),M=ao(M)}pe=null}else pe=null;ie!==null&&Xh(Y,V,ie,pe,!1),ue!==null&&Ke!==null&&Xh(Y,Ke,ue,pe,!0)}}e:{if(V=F?co(F):window,ie=V.nodeName&&V.nodeName.toLowerCase(),ie==="select"||ie==="input"&&V.type==="file")var me=XE;else if(Rh(V))if(Th)me=JE;else{me=qE;var xe=QE}else(ie=V.nodeName)&&ie.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(me=ZE);if(me&&(me=me(e,F))){Ph(Y,me,r,W);break e}xe&&xe(e,V,F),e==="focusout"&&(xe=V._wrapperState)&&xe.controlled&&V.type==="number"&&tt(V,"number",V.value)}switch(xe=F?co(F):window,e){case"focusin":(Rh(xe)||xe.contentEditable==="true")&&(io=xe,lc=F,ri=null);break;case"focusout":ri=lc=io=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Dh(Y,r,W);break;case"selectionchange":if(n2)break;case"keydown":case"keyup":Dh(Y,r,W)}var be;if(oc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else oo?_h(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(Sh&&r.locale!=="ko"&&(oo||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&oo&&(be=yh()):(Zn=W,Zl="value"in Zn?Zn.value:Zn.textContent,oo=!0)),xe=$s(F,Ee),0<xe.length&&(Ee=new bh(Ee,e,null,r,W),Y.push({event:Ee,listeners:xe}),be?Ee.data=be:(be=Nh(r),be!==null&&(Ee.data=be)))),(be=VE?WE(e,r):GE(e,r))&&(F=$s(F,"onBeforeInput"),0<F.length&&(W=new bh("onBeforeInput","beforeinput",null,r,W),Y.push({event:W,listeners:F}),W.data=be))}Yh(Y,t)})}function si(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $s(e,t){for(var r=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=nt(e,r),d!=null&&s.unshift(si(e,d,c)),d=nt(e,t),d!=null&&s.push(si(e,d,c))),e=e.return}return s}function ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xh(e,t,r,s,c){for(var d=t._reactName,x=[];r!==null&&r!==s;){var _=r,T=_.alternate,F=_.stateNode;if(T!==null&&T===s)break;_.tag===5&&F!==null&&(_=F,c?(T=nt(r,d),T!=null&&x.unshift(si(r,T,_))):c||(T=nt(r,d),T!=null&&x.push(si(r,T,_)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var s2=/\r\n?/g,a2=/\u0000|\uFFFD/g;function Qh(e){return(typeof e=="string"?e:""+e).replace(s2,`
37
+ `+c[x].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=x&&0<=_);break}}}finally{ee=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?U(e):""}function ne(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case z:return"Portal";case X:return"Profiler";case D:return"StrictMode";case he:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fe:return(e.displayName||"Context")+".Consumer";case oe:return(e._context.displayName||"Context")+".Provider";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function Z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(t);case 8:return t===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function J(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=ae(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){s=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=ae(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Fe(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Be(e,t){var r=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function un(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=J(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kt(e,t){t=t.checked,t!=null&&R(e,"checked",t,!1)}function gt(e,t){Kt(e,t);var r=J(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tt(e,t.type,r):t.hasOwnProperty("defaultValue")&&tt(e,t.type,J(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kr(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function tt(e,t,r){(t!=="number"||Fe(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Sr=Array.isArray;function Bn(e,t,r,s){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&s&&(e[r].defaultSelected=!0)}else{for(r=""+J(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function st(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bn(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(Sr(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:J(r)}}function ys(e,t){var r=J(t.value),s=J(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function ws(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Er,eo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,c){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Er=Er||document.createElement("div"),Er.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Un=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Un.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function xs(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function bs(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,c=xs(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,c):e[r]=c}}var ks=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function to(e,t){if(t){if(ks[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function $o(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _r=null;function Lt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bo=null,Vn=null,kn=null;function Ho(e){if(e=li(e)){if(typeof Bo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Us(t),Bo(e.stateNode,e.type,t))}}function _e(e){Vn?kn?kn.push(e):kn=[e]:Vn=e}function Ge(){if(Vn){var e=Vn,t=kn;if(kn=Vn=null,Ho(e),t)for(e=0;e<t.length;e++)Ho(t[e])}}function Ze(e,t){return e(t)}function dt(){}var Wn=!1;function Xe(e,t,r){if(Wn)return e(t,r);Wn=!0;try{return Ze(e,t,r)}finally{Wn=!1,(Vn!==null||kn!==null)&&(dt(),Ge())}}function nt(e,t){var r=e.stateNode;if(r===null)return null;var s=Us(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var Gn=!1;if(p)try{var at={};Object.defineProperty(at,"passive",{get:function(){Gn=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Gn=!1}function Pt(e,t,r,s,c,d,x,_,T){var F=Array.prototype.slice.call(arguments,3);try{t.apply(r,F)}catch(W){this.onError(W)}}var Yn=!1,Ot=null,Uo=!1,Ul=null,tE={onError:function(e){Yn=!0,Ot=e}};function nE(e,t,r,s,c,d,x,_,T){Yn=!1,Ot=null,Pt.apply(tE,arguments)}function rE(e,t,r,s,c,d,x,_,T){if(nE.apply(this,arguments),Yn){if(Yn){var F=Ot;Yn=!1,Ot=null}else throw Error(i(198));Uo||(Uo=!0,Ul=F)}}function Nr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function eh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function th(e){if(Nr(e)!==e)throw Error(i(188))}function oE(e){var t=e.alternate;if(!t){if(t=Nr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,s=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){r=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return th(c),e;if(d===s)return th(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==s.return)r=c,s=d;else{for(var x=!1,_=c.child;_;){if(_===r){x=!0,r=c,s=d;break}if(_===s){x=!0,s=c,r=d;break}_=_.sibling}if(!x){for(_=d.child;_;){if(_===r){x=!0,r=d,s=c;break}if(_===s){x=!0,s=d,r=c;break}_=_.sibling}if(!x)throw Error(i(189))}}if(r.alternate!==s)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function nh(e){return e=oE(e),e!==null?rh(e):null}function rh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rh(e);if(t!==null)return t;e=e.sibling}return null}var oh=o.unstable_scheduleCallback,ih=o.unstable_cancelCallback,iE=o.unstable_shouldYield,sE=o.unstable_requestPaint,Ye=o.unstable_now,aE=o.unstable_getCurrentPriorityLevel,Vl=o.unstable_ImmediatePriority,sh=o.unstable_UserBlockingPriority,Ss=o.unstable_NormalPriority,lE=o.unstable_LowPriority,ah=o.unstable_IdlePriority,Cs=null,dn=null;function cE(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(Cs,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:fE,uE=Math.log,dE=Math.LN2;function fE(e){return e>>>=0,e===0?32:31-(uE(e)/dE|0)|0}var Es=64,_s=4194304;function Vo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ns(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes,x=r&268435455;if(x!==0){var _=x&~c;_!==0?s=Vo(_):(d&=x,d!==0&&(s=Vo(d)))}else x=r&~c,x!==0?s=Vo(x):d!==0&&(s=Vo(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&c)===0&&(c=s&-s,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-Xt(t),c=1<<r,s|=e[r],t&=~c;return s}function pE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mE(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var x=31-Xt(d),_=1<<x,T=c[x];T===-1?((_&r)===0||(_&s)!==0)&&(c[x]=pE(_,t)):T<=t&&(e.expiredLanes|=_),d&=~_}}function Wl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lh(){var e=Es;return Es<<=1,(Es&4194240)===0&&(Es=64),e}function Gl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Wo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=r}function hE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<r;){var c=31-Xt(r),d=1<<c;t[c]=0,s[c]=-1,e[c]=-1,r&=~d}}function Yl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Xt(r),c=1<<s;c&t|e[s]&t&&(e[s]|=t),r&=~c}}var ze=0;function ch(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var uh,Kl,dh,fh,ph,Xl=!1,Rs=[],Kn=null,Xn=null,Qn=null,Go=new Map,Yo=new Map,qn=[],gE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mh(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Go.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yo.delete(t.pointerId)}}function Ko(e,t,r,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},t!==null&&(t=li(t),t!==null&&Kl(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function vE(e,t,r,s,c){switch(t){case"focusin":return Kn=Ko(Kn,e,t,r,s,c),!0;case"dragenter":return Xn=Ko(Xn,e,t,r,s,c),!0;case"mouseover":return Qn=Ko(Qn,e,t,r,s,c),!0;case"pointerover":var d=c.pointerId;return Go.set(d,Ko(Go.get(d)||null,e,t,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Yo.set(d,Ko(Yo.get(d)||null,e,t,r,s,c)),!0}return!1}function hh(e){var t=Rr(e.target);if(t!==null){var r=Nr(t);if(r!==null){if(t=r.tag,t===13){if(t=eh(r),t!==null){e.blockedOn=t,ph(e.priority,function(){dh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ql(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);_r=s,r.target.dispatchEvent(s),_r=null}else return t=li(r),t!==null&&Kl(t),e.blockedOn=r,!1;t.shift()}return!0}function gh(e,t,r){Ps(e)&&r.delete(t)}function yE(){Xl=!1,Kn!==null&&Ps(Kn)&&(Kn=null),Xn!==null&&Ps(Xn)&&(Xn=null),Qn!==null&&Ps(Qn)&&(Qn=null),Go.forEach(gh),Yo.forEach(gh)}function Xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Xl||(Xl=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yE)))}function Qo(e){function t(c){return Xo(c,e)}if(0<Rs.length){Xo(Rs[0],e);for(var r=1;r<Rs.length;r++){var s=Rs[r];s.blockedOn===e&&(s.blockedOn=null)}}for(Kn!==null&&Xo(Kn,e),Xn!==null&&Xo(Xn,e),Qn!==null&&Xo(Qn,e),Go.forEach(t),Yo.forEach(t),r=0;r<qn.length;r++)s=qn[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<qn.length&&(r=qn[0],r.blockedOn===null);)hh(r),r.blockedOn===null&&qn.shift()}var no=j.ReactCurrentBatchConfig,Ts=!0;function wE(e,t,r,s){var c=ze,d=no.transition;no.transition=null;try{ze=1,Ql(e,t,r,s)}finally{ze=c,no.transition=d}}function xE(e,t,r,s){var c=ze,d=no.transition;no.transition=null;try{ze=4,Ql(e,t,r,s)}finally{ze=c,no.transition=d}}function Ql(e,t,r,s){if(Ts){var c=ql(e,t,r,s);if(c===null)mc(e,t,s,Is,r),mh(e,s);else if(vE(c,e,t,r,s))s.stopPropagation();else if(mh(e,s),t&4&&-1<gE.indexOf(e)){for(;c!==null;){var d=li(c);if(d!==null&&uh(d),d=ql(e,t,r,s),d===null&&mc(e,t,s,Is,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else mc(e,t,s,null,r)}}var Is=null;function ql(e,t,r,s){if(Is=null,e=Lt(s),e=Rr(e),e!==null)if(t=Nr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=eh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Is=e,null}function vh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(aE()){case Vl:return 1;case sh:return 4;case Ss:case lE:return 16;case ah:return 536870912;default:return 16}default:return 16}}var Zn=null,Zl=null,As=null;function yh(){if(As)return As;var e,t=Zl,r=t.length,s,c="value"in Zn?Zn.value:Zn.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var x=r-e;for(s=1;s<=x&&t[r-s]===c[d-s];s++);return As=c.slice(e,1<s?1-s:void 0)}function js(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ms(){return!0}function wh(){return!1}function Tt(e){function t(r,s,c,d,x){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(r=e[_],this[_]=r?r(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ms:wh,this.isPropagationStopped=wh,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ms)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ms)},persist:function(){},isPersistent:Ms}),t}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=Tt(ro),qo=B({},ro,{view:0,detail:0}),bE=Tt(qo),ec,tc,Zo,zs=B({},qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zo&&(Zo&&e.type==="mousemove"?(ec=e.screenX-Zo.screenX,tc=e.screenY-Zo.screenY):tc=ec=0,Zo=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),xh=Tt(zs),kE=B({},zs,{dataTransfer:0}),SE=Tt(kE),CE=B({},qo,{relatedTarget:0}),nc=Tt(CE),EE=B({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),_E=Tt(EE),NE=B({},ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),RE=Tt(NE),PE=B({},ro,{data:0}),bh=Tt(PE),TE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IE={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"},AE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AE[e])?!!t[e]:!1}function rc(){return jE}var ME=B({},qo,{key:function(e){if(e.key){var t=TE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=js(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(e){return e.type==="keypress"?js(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?js(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zE=Tt(ME),LE=B({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kh=Tt(LE),OE=B({},qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),DE=Tt(OE),FE=B({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),$E=Tt(FE),BE=B({},zs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HE=Tt(BE),UE=[9,13,27,32],oc=p&&"CompositionEvent"in window,Jo=null;p&&"documentMode"in document&&(Jo=document.documentMode);var VE=p&&"TextEvent"in window&&!Jo,Sh=p&&(!oc||Jo&&8<Jo&&11>=Jo),Ch=" ",Eh=!1;function _h(e,t){switch(e){case"keyup":return UE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function WE(e,t){switch(e){case"compositionend":return Nh(t);case"keypress":return t.which!==32?null:(Eh=!0,Ch);case"textInput":return e=t.data,e===Ch&&Eh?null:e;default:return null}}function GE(e,t){if(oo)return e==="compositionend"||!oc&&_h(e,t)?(e=yh(),As=Zl=Zn=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sh&&t.locale!=="ko"?null:t.data;default:return null}}var YE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YE[e.type]:t==="textarea"}function Ph(e,t,r,s){_e(s),t=$s(t,"onChange"),0<t.length&&(r=new Jl("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var ei=null,ti=null;function KE(e){Yh(e,0)}function Ls(e){var t=co(e);if(Re(t))return e}function XE(e,t){if(e==="change")return t}var Th=!1;if(p){var ic;if(p){var sc="oninput"in document;if(!sc){var Ih=document.createElement("div");Ih.setAttribute("oninput","return;"),sc=typeof Ih.oninput=="function"}ic=sc}else ic=!1;Th=ic&&(!document.documentMode||9<document.documentMode)}function Ah(){ei&&(ei.detachEvent("onpropertychange",jh),ti=ei=null)}function jh(e){if(e.propertyName==="value"&&Ls(ti)){var t=[];Ph(t,ti,e,Lt(e)),Xe(KE,t)}}function QE(e,t,r){e==="focusin"?(Ah(),ei=t,ti=r,ei.attachEvent("onpropertychange",jh)):e==="focusout"&&Ah()}function qE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ls(ti)}function ZE(e,t){if(e==="click")return Ls(t)}function JE(e,t){if(e==="input"||e==="change")return Ls(t)}function e2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:e2;function ni(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var c=r[s];if(!m.call(t,c)||!Qt(e[c],t[c]))return!1}return!0}function Mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,t){var r=Mh(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mh(r)}}function Lh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Fe(e.document)}return t}function ac(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function t2(e){var t=Oh(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Lh(r.ownerDocument.documentElement,r)){if(s!==null&&ac(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=r.textContent.length,d=Math.min(s.start,c);s=s.end===void 0?d:Math.min(s.end,c),!e.extend&&d>s&&(c=s,s=d,d=c),c=zh(r,d);var x=zh(r,s);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(x.node,x.offset)):(t.setEnd(x.node,x.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var n2=p&&"documentMode"in document&&11>=document.documentMode,io=null,lc=null,ri=null,cc=!1;function Dh(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cc||io==null||io!==Fe(s)||(s=io,"selectionStart"in s&&ac(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ri&&ni(ri,s)||(ri=s,s=$s(lc,"onSelect"),0<s.length&&(t=new Jl("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=io)))}function Os(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var so={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},uc={},Fh={};p&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function Ds(e){if(uc[e])return uc[e];if(!so[e])return e;var t=so[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Fh)return uc[e]=t[r];return e}var $h=Ds("animationend"),Bh=Ds("animationiteration"),Hh=Ds("animationstart"),Uh=Ds("transitionend"),Vh=new Map,Wh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jn(e,t){Vh.set(e,t),u(t,[e])}for(var dc=0;dc<Wh.length;dc++){var fc=Wh[dc],r2=fc.toLowerCase(),o2=fc[0].toUpperCase()+fc.slice(1);Jn(r2,"on"+o2)}Jn($h,"onAnimationEnd"),Jn(Bh,"onAnimationIteration"),Jn(Hh,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(Uh,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),i2=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function Gh(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,rE(s,t,void 0,e),e.currentTarget=null}function Yh(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],c=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var x=s.length-1;0<=x;x--){var _=s[x],T=_.instance,F=_.currentTarget;if(_=_.listener,T!==d&&c.isPropagationStopped())break e;Gh(c,_,F),d=T}else for(x=0;x<s.length;x++){if(_=s[x],T=_.instance,F=_.currentTarget,_=_.listener,T!==d&&c.isPropagationStopped())break e;Gh(c,_,F),d=T}}}if(Uo)throw e=Ul,Uo=!1,Ul=null,e}function Oe(e,t){var r=t[xc];r===void 0&&(r=t[xc]=new Set);var s=e+"__bubble";r.has(s)||(Kh(t,e,2,!1),r.add(s))}function pc(e,t,r){var s=0;t&&(s|=4),Kh(r,e,s,t)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function ii(e){if(!e[Fs]){e[Fs]=!0,a.forEach(function(r){r!=="selectionchange"&&(i2.has(r)||pc(r,!1,e),pc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fs]||(t[Fs]=!0,pc("selectionchange",!1,t))}}function Kh(e,t,r,s){switch(vh(t)){case 1:var c=wE;break;case 4:c=xE;break;default:c=Ql}r=c.bind(null,t,r,e),c=void 0,!Gn||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function mc(e,t,r,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var _=s.stateNode.containerInfo;if(_===c||_.nodeType===8&&_.parentNode===c)break;if(x===4)for(x=s.return;x!==null;){var T=x.tag;if((T===3||T===4)&&(T=x.stateNode.containerInfo,T===c||T.nodeType===8&&T.parentNode===c))return;x=x.return}for(;_!==null;){if(x=Rr(_),x===null)return;if(T=x.tag,T===5||T===6){s=d=x;continue e}_=_.parentNode}}s=s.return}Xe(function(){var F=d,W=Lt(r),Y=[];e:{var V=Vh.get(e);if(V!==void 0){var ie=Jl,ue=e;switch(e){case"keypress":if(js(r)===0)break e;case"keydown":case"keyup":ie=zE;break;case"focusin":ue="focus",ie=nc;break;case"focusout":ue="blur",ie=nc;break;case"beforeblur":case"afterblur":ie=nc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=SE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=DE;break;case $h:case Bh:case Hh:ie=_E;break;case Uh:ie=$E;break;case"scroll":ie=bE;break;case"wheel":ie=HE;break;case"copy":case"cut":case"paste":ie=RE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=kh}var pe=(t&4)!==0,Ke=!pe&&e==="scroll",M=pe?V!==null?V+"Capture":null:V;pe=[];for(var I=F,L;I!==null;){L=I;var Q=L.stateNode;if(L.tag===5&&Q!==null&&(L=Q,M!==null&&(Q=nt(I,M),Q!=null&&pe.push(si(I,Q,L)))),Ke)break;I=I.return}0<pe.length&&(V=new ie(V,ue,null,r,W),Y.push({event:V,listeners:pe}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",V&&r!==_r&&(ue=r.relatedTarget||r.fromElement)&&(Rr(ue)||ue[Sn]))break e;if((ie||V)&&(V=W.window===W?W:(V=W.ownerDocument)?V.defaultView||V.parentWindow:window,ie?(ue=r.relatedTarget||r.toElement,ie=F,ue=ue?Rr(ue):null,ue!==null&&(Ke=Nr(ue),ue!==Ke||ue.tag!==5&&ue.tag!==6)&&(ue=null)):(ie=null,ue=F),ie!==ue)){if(pe=xh,Q="onMouseLeave",M="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(pe=kh,Q="onPointerLeave",M="onPointerEnter",I="pointer"),Ke=ie==null?V:co(ie),L=ue==null?V:co(ue),V=new pe(Q,I+"leave",ie,r,W),V.target=Ke,V.relatedTarget=L,Q=null,Rr(W)===F&&(pe=new pe(M,I+"enter",ue,r,W),pe.target=L,pe.relatedTarget=Ke,Q=pe),Ke=Q,ie&&ue)t:{for(pe=ie,M=ue,I=0,L=pe;L;L=ao(L))I++;for(L=0,Q=M;Q;Q=ao(Q))L++;for(;0<I-L;)pe=ao(pe),I--;for(;0<L-I;)M=ao(M),L--;for(;I--;){if(pe===M||M!==null&&pe===M.alternate)break t;pe=ao(pe),M=ao(M)}pe=null}else pe=null;ie!==null&&Xh(Y,V,ie,pe,!1),ue!==null&&Ke!==null&&Xh(Y,Ke,ue,pe,!0)}}e:{if(V=F?co(F):window,ie=V.nodeName&&V.nodeName.toLowerCase(),ie==="select"||ie==="input"&&V.type==="file")var me=XE;else if(Rh(V))if(Th)me=JE;else{me=qE;var xe=QE}else(ie=V.nodeName)&&ie.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(me=ZE);if(me&&(me=me(e,F))){Ph(Y,me,r,W);break e}xe&&xe(e,V,F),e==="focusout"&&(xe=V._wrapperState)&&xe.controlled&&V.type==="number"&&tt(V,"number",V.value)}switch(xe=F?co(F):window,e){case"focusin":(Rh(xe)||xe.contentEditable==="true")&&(io=xe,lc=F,ri=null);break;case"focusout":ri=lc=io=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Dh(Y,r,W);break;case"selectionchange":if(n2)break;case"keydown":case"keyup":Dh(Y,r,W)}var be;if(oc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else oo?_h(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(Sh&&r.locale!=="ko"&&(oo||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&oo&&(be=yh()):(Zn=W,Zl="value"in Zn?Zn.value:Zn.textContent,oo=!0)),xe=$s(F,Ee),0<xe.length&&(Ee=new bh(Ee,e,null,r,W),Y.push({event:Ee,listeners:xe}),be?Ee.data=be:(be=Nh(r),be!==null&&(Ee.data=be)))),(be=VE?WE(e,r):GE(e,r))&&(F=$s(F,"onBeforeInput"),0<F.length&&(W=new bh("onBeforeInput","beforeinput",null,r,W),Y.push({event:W,listeners:F}),W.data=be))}Yh(Y,t)})}function si(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $s(e,t){for(var r=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=nt(e,r),d!=null&&s.unshift(si(e,d,c)),d=nt(e,t),d!=null&&s.push(si(e,d,c))),e=e.return}return s}function ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xh(e,t,r,s,c){for(var d=t._reactName,x=[];r!==null&&r!==s;){var _=r,T=_.alternate,F=_.stateNode;if(T!==null&&T===s)break;_.tag===5&&F!==null&&(_=F,c?(T=nt(r,d),T!=null&&x.unshift(si(r,T,_))):c||(T=nt(r,d),T!=null&&x.push(si(r,T,_)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var s2=/\r\n?/g,a2=/\u0000|\uFFFD/g;function Qh(e){return(typeof e=="string"?e:""+e).replace(s2,`
38
38
  `).replace(a2,"")}function Bs(e,t,r){if(t=Qh(t),Qh(e)!==t&&r)throw Error(i(425))}function Hs(){}var hc=null,gc=null;function vc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yc=typeof setTimeout=="function"?setTimeout:void 0,l2=typeof clearTimeout=="function"?clearTimeout:void 0,qh=typeof Promise=="function"?Promise:void 0,c2=typeof queueMicrotask=="function"?queueMicrotask:typeof qh<"u"?function(e){return qh.resolve(null).then(e).catch(u2)}:yc;function u2(e){setTimeout(function(){throw e})}function wc(e,t){var r=t,s=0;do{var c=r.nextSibling;if(e.removeChild(r),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(s===0){e.removeChild(c),Qo(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=c}while(r);Qo(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var lo=Math.random().toString(36).slice(2),fn="__reactFiber$"+lo,ai="__reactProps$"+lo,Sn="__reactContainer$"+lo,xc="__reactEvents$"+lo,d2="__reactListeners$"+lo,f2="__reactHandles$"+lo;function Rr(e){var t=e[fn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Sn]||r[fn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Zh(e);e!==null;){if(r=e[fn])return r;e=Zh(e)}return t}e=r,r=e.parentNode}return null}function li(e){return e=e[fn]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function co(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Us(e){return e[ai]||null}var bc=[],uo=-1;function tr(e){return{current:e}}function De(e){0>uo||(e.current=bc[uo],bc[uo]=null,uo--)}function Le(e,t){uo++,bc[uo]=e.current,e.current=t}var nr={},ft=tr(nr),kt=tr(!1),Pr=nr;function fo(e,t){var r=e.type.contextTypes;if(!r)return nr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in r)c[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function St(e){return e=e.childContextTypes,e!=null}function Vs(){De(kt),De(ft)}function Jh(e,t,r){if(ft.current!==nr)throw Error(i(168));Le(ft,t),Le(kt,r)}function eg(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var c in s)if(!(c in t))throw Error(i(108,Z(e)||"Unknown",c));return B({},r,s)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Pr=ft.current,Le(ft,e),Le(kt,kt.current),!0}function tg(e,t,r){var s=e.stateNode;if(!s)throw Error(i(169));r?(e=eg(e,t,Pr),s.__reactInternalMemoizedMergedChildContext=e,De(kt),De(ft),Le(ft,e)):De(kt),Le(kt,r)}var Cn=null,Gs=!1,kc=!1;function ng(e){Cn===null?Cn=[e]:Cn.push(e)}function p2(e){Gs=!0,ng(e)}function rr(){if(!kc&&Cn!==null){kc=!0;var e=0,t=ze;try{var r=Cn;for(ze=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}Cn=null,Gs=!1}catch(c){throw Cn!==null&&(Cn=Cn.slice(e+1)),oh(Vl,rr),c}finally{ze=t,kc=!1}}return null}var po=[],mo=0,Ys=null,Ks=0,Dt=[],Ft=0,Tr=null,En=1,_n="";function Ir(e,t){po[mo++]=Ks,po[mo++]=Ys,Ys=e,Ks=t}function rg(e,t,r){Dt[Ft++]=En,Dt[Ft++]=_n,Dt[Ft++]=Tr,Tr=e;var s=En;e=_n;var c=32-Xt(s)-1;s&=~(1<<c),r+=1;var d=32-Xt(t)+c;if(30<d){var x=c-c%5;d=(s&(1<<x)-1).toString(32),s>>=x,c-=x,En=1<<32-Xt(t)+c|r<<c|s,_n=d+e}else En=1<<d|r<<c|s,_n=e}function Sc(e){e.return!==null&&(Ir(e,1),rg(e,1,0))}function Cc(e){for(;e===Ys;)Ys=po[--mo],po[mo]=null,Ks=po[--mo],po[mo]=null;for(;e===Tr;)Tr=Dt[--Ft],Dt[Ft]=null,_n=Dt[--Ft],Dt[Ft]=null,En=Dt[--Ft],Dt[Ft]=null}var It=null,At=null,$e=!1,qt=null;function og(e,t){var r=Ut(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function ig(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,At=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Tr!==null?{id:En,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ut(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,It=e,At=null,!0):!1;default:return!1}}function Ec(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _c(e){if($e){var t=At;if(t){var r=t;if(!ig(e,t)){if(Ec(e))throw Error(i(418));t=er(r.nextSibling);var s=It;t&&ig(e,t)?og(s,r):(e.flags=e.flags&-4097|2,$e=!1,It=e)}}else{if(Ec(e))throw Error(i(418));e.flags=e.flags&-4097|2,$e=!1,It=e}}}function sg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function Xs(e){if(e!==It)return!1;if(!$e)return sg(e),$e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vc(e.type,e.memoizedProps)),t&&(t=At)){if(Ec(e))throw ag(),Error(i(418));for(;t;)og(e,t),t=er(t.nextSibling)}if(sg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){At=er(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}At=null}}else At=It?er(e.stateNode.nextSibling):null;return!0}function ag(){for(var e=At;e;)e=er(e.nextSibling)}function ho(){At=It=null,$e=!1}function Nc(e){qt===null?qt=[e]:qt.push(e)}var m2=j.ReactCurrentBatchConfig;function ci(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(i(309));var s=r.stateNode}if(!s)throw Error(i(147,e));var c=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(x){var _=c.refs;x===null?delete _[d]:_[d]=x},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Qs(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lg(e){var t=e._init;return t(e._payload)}function cg(e){function t(M,I){if(e){var L=M.deletions;L===null?(M.deletions=[I],M.flags|=16):L.push(I)}}function r(M,I){if(!e)return null;for(;I!==null;)t(M,I),I=I.sibling;return null}function s(M,I){for(M=new Map;I!==null;)I.key!==null?M.set(I.key,I):M.set(I.index,I),I=I.sibling;return M}function c(M,I){return M=dr(M,I),M.index=0,M.sibling=null,M}function d(M,I,L){return M.index=L,e?(L=M.alternate,L!==null?(L=L.index,L<I?(M.flags|=2,I):L):(M.flags|=2,I)):(M.flags|=1048576,I)}function x(M){return e&&M.alternate===null&&(M.flags|=2),M}function _(M,I,L,Q){return I===null||I.tag!==6?(I=yu(L,M.mode,Q),I.return=M,I):(I=c(I,L),I.return=M,I)}function T(M,I,L,Q){var me=L.type;return me===O?W(M,I,L.props.children,Q,L.key):I!==null&&(I.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===G&&lg(me)===I.type)?(Q=c(I,L.props),Q.ref=ci(M,I,L),Q.return=M,Q):(Q=xa(L.type,L.key,L.props,null,M.mode,Q),Q.ref=ci(M,I,L),Q.return=M,Q)}function F(M,I,L,Q){return I===null||I.tag!==4||I.stateNode.containerInfo!==L.containerInfo||I.stateNode.implementation!==L.implementation?(I=wu(L,M.mode,Q),I.return=M,I):(I=c(I,L.children||[]),I.return=M,I)}function W(M,I,L,Q,me){return I===null||I.tag!==7?(I=Fr(L,M.mode,Q,me),I.return=M,I):(I=c(I,L),I.return=M,I)}function Y(M,I,L){if(typeof I=="string"&&I!==""||typeof I=="number")return I=yu(""+I,M.mode,L),I.return=M,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case $:return L=xa(I.type,I.key,I.props,null,M.mode,L),L.ref=ci(M,null,I),L.return=M,L;case z:return I=wu(I,M.mode,L),I.return=M,I;case G:var Q=I._init;return Y(M,Q(I._payload),L)}if(Sr(I)||q(I))return I=Fr(I,M.mode,L,null),I.return=M,I;Qs(M,I)}return null}function V(M,I,L,Q){var me=I!==null?I.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return me!==null?null:_(M,I,""+L,Q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case $:return L.key===me?T(M,I,L,Q):null;case z:return L.key===me?F(M,I,L,Q):null;case G:return me=L._init,V(M,I,me(L._payload),Q)}if(Sr(L)||q(L))return me!==null?null:W(M,I,L,Q,null);Qs(M,L)}return null}function ie(M,I,L,Q,me){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return M=M.get(L)||null,_(I,M,""+Q,me);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:return M=M.get(Q.key===null?L:Q.key)||null,T(I,M,Q,me);case z:return M=M.get(Q.key===null?L:Q.key)||null,F(I,M,Q,me);case G:var xe=Q._init;return ie(M,I,L,xe(Q._payload),me)}if(Sr(Q)||q(Q))return M=M.get(L)||null,W(I,M,Q,me,null);Qs(I,Q)}return null}function ue(M,I,L,Q){for(var me=null,xe=null,be=I,Ee=I=0,it=null;be!==null&&Ee<L.length;Ee++){be.index>Ee?(it=be,be=null):it=be.sibling;var Me=V(M,be,L[Ee],Q);if(Me===null){be===null&&(be=it);break}e&&be&&Me.alternate===null&&t(M,be),I=d(Me,I,Ee),xe===null?me=Me:xe.sibling=Me,xe=Me,be=it}if(Ee===L.length)return r(M,be),$e&&Ir(M,Ee),me;if(be===null){for(;Ee<L.length;Ee++)be=Y(M,L[Ee],Q),be!==null&&(I=d(be,I,Ee),xe===null?me=be:xe.sibling=be,xe=be);return $e&&Ir(M,Ee),me}for(be=s(M,be);Ee<L.length;Ee++)it=ie(be,M,Ee,L[Ee],Q),it!==null&&(e&&it.alternate!==null&&be.delete(it.key===null?Ee:it.key),I=d(it,I,Ee),xe===null?me=it:xe.sibling=it,xe=it);return e&&be.forEach(function(fr){return t(M,fr)}),$e&&Ir(M,Ee),me}function pe(M,I,L,Q){var me=q(L);if(typeof me!="function")throw Error(i(150));if(L=me.call(L),L==null)throw Error(i(151));for(var xe=me=null,be=I,Ee=I=0,it=null,Me=L.next();be!==null&&!Me.done;Ee++,Me=L.next()){be.index>Ee?(it=be,be=null):it=be.sibling;var fr=V(M,be,Me.value,Q);if(fr===null){be===null&&(be=it);break}e&&be&&fr.alternate===null&&t(M,be),I=d(fr,I,Ee),xe===null?me=fr:xe.sibling=fr,xe=fr,be=it}if(Me.done)return r(M,be),$e&&Ir(M,Ee),me;if(be===null){for(;!Me.done;Ee++,Me=L.next())Me=Y(M,Me.value,Q),Me!==null&&(I=d(Me,I,Ee),xe===null?me=Me:xe.sibling=Me,xe=Me);return $e&&Ir(M,Ee),me}for(be=s(M,be);!Me.done;Ee++,Me=L.next())Me=ie(be,M,Ee,Me.value,Q),Me!==null&&(e&&Me.alternate!==null&&be.delete(Me.key===null?Ee:Me.key),I=d(Me,I,Ee),xe===null?me=Me:xe.sibling=Me,xe=Me);return e&&be.forEach(function(Y2){return t(M,Y2)}),$e&&Ir(M,Ee),me}function Ke(M,I,L,Q){if(typeof L=="object"&&L!==null&&L.type===O&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case $:e:{for(var me=L.key,xe=I;xe!==null;){if(xe.key===me){if(me=L.type,me===O){if(xe.tag===7){r(M,xe.sibling),I=c(xe,L.props.children),I.return=M,M=I;break e}}else if(xe.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===G&&lg(me)===xe.type){r(M,xe.sibling),I=c(xe,L.props),I.ref=ci(M,xe,L),I.return=M,M=I;break e}r(M,xe);break}else t(M,xe);xe=xe.sibling}L.type===O?(I=Fr(L.props.children,M.mode,Q,L.key),I.return=M,M=I):(Q=xa(L.type,L.key,L.props,null,M.mode,Q),Q.ref=ci(M,I,L),Q.return=M,M=Q)}return x(M);case z:e:{for(xe=L.key;I!==null;){if(I.key===xe)if(I.tag===4&&I.stateNode.containerInfo===L.containerInfo&&I.stateNode.implementation===L.implementation){r(M,I.sibling),I=c(I,L.children||[]),I.return=M,M=I;break e}else{r(M,I);break}else t(M,I);I=I.sibling}I=wu(L,M.mode,Q),I.return=M,M=I}return x(M);case G:return xe=L._init,Ke(M,I,xe(L._payload),Q)}if(Sr(L))return ue(M,I,L,Q);if(q(L))return pe(M,I,L,Q);Qs(M,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,I!==null&&I.tag===6?(r(M,I.sibling),I=c(I,L),I.return=M,M=I):(r(M,I),I=yu(L,M.mode,Q),I.return=M,M=I),x(M)):r(M,I)}return Ke}var go=cg(!0),ug=cg(!1),qs=tr(null),Zs=null,vo=null,Rc=null;function Pc(){Rc=vo=Zs=null}function Tc(e){var t=qs.current;De(qs),e._currentValue=t}function Ic(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function yo(e,t){Zs=e,Rc=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Rc!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Zs===null)throw Error(i(308));vo=e,Zs.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var Ar=null;function Ac(e){Ar===null?Ar=[e]:Ar.push(e)}function dg(e,t,r,s){var c=t.interleaved;return c===null?(r.next=r,Ac(t)):(r.next=c.next,c.next=r),t.interleaved=r,Nn(e,s)}function Nn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var or=!1;function jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ae&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,Nn(e,r)}return c=s.interleaved,c===null?(t.next=t,Ac(s)):(t.next=c.next,c.next=t),s.interleaved=t,Nn(e,r)}function Js(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Yl(e,r)}}function pg(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var x={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?c=d=x:d=d.next=x,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ea(e,t,r,s){var c=e.updateQueue;or=!1;var d=c.firstBaseUpdate,x=c.lastBaseUpdate,_=c.shared.pending;if(_!==null){c.shared.pending=null;var T=_,F=T.next;T.next=null,x===null?d=F:x.next=F,x=T;var W=e.alternate;W!==null&&(W=W.updateQueue,_=W.lastBaseUpdate,_!==x&&(_===null?W.firstBaseUpdate=F:_.next=F,W.lastBaseUpdate=T))}if(d!==null){var Y=c.baseState;x=0,W=F=T=null,_=d;do{var V=_.lane,ie=_.eventTime;if((s&V)===V){W!==null&&(W=W.next={eventTime:ie,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ue=e,pe=_;switch(V=t,ie=r,pe.tag){case 1:if(ue=pe.payload,typeof ue=="function"){Y=ue.call(ie,Y,V);break e}Y=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=pe.payload,V=typeof ue=="function"?ue.call(ie,Y,V):ue,V==null)break e;Y=B({},Y,V);break e;case 2:or=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,V=c.effects,V===null?c.effects=[_]:V.push(_))}else ie={eventTime:ie,lane:V,tag:_.tag,payload:_.payload,callback:_.callback,next:null},W===null?(F=W=ie,T=Y):W=W.next=ie,x|=V;if(_=_.next,_===null){if(_=c.shared.pending,_===null)break;V=_,_=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);if(W===null&&(T=Y),c.baseState=T,c.firstBaseUpdate=F,c.lastBaseUpdate=W,t=c.shared.interleaved,t!==null){c=t;do x|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);zr|=x,e.lanes=x,e.memoizedState=Y}}function mg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],c=s.callback;if(c!==null){if(s.callback=null,s=r,typeof c!="function")throw Error(i(191,c));c.call(s)}}}var ui={},pn=tr(ui),di=tr(ui),fi=tr(ui);function jr(e){if(e===ui)throw Error(i(174));return e}function Mc(e,t){switch(Le(fi,t),Le(di,e),Le(pn,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fo(t,e)}De(pn),Le(pn,t)}function wo(){De(pn),De(di),De(fi)}function hg(e){jr(fi.current);var t=jr(pn.current),r=Fo(t,e.type);t!==r&&(Le(di,e),Le(pn,r))}function zc(e){di.current===e&&(De(pn),De(di))}var He=tr(0);function ta(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lc=[];function Oc(){for(var e=0;e<Lc.length;e++)Lc[e]._workInProgressVersionPrimary=null;Lc.length=0}var na=j.ReactCurrentDispatcher,Dc=j.ReactCurrentBatchConfig,Mr=0,Ue=null,Je=null,rt=null,ra=!1,pi=!1,mi=0,h2=0;function pt(){throw Error(i(321))}function Fc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Qt(e[r],t[r]))return!1;return!0}function $c(e,t,r,s,c,d){if(Mr=d,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=e===null||e.memoizedState===null?w2:x2,e=r(s,c),pi){d=0;do{if(pi=!1,mi=0,25<=d)throw Error(i(301));d+=1,rt=Je=null,t.updateQueue=null,na.current=b2,e=r(s,c)}while(pi)}if(na.current=sa,t=Je!==null&&Je.next!==null,Mr=0,rt=Je=Ue=null,ra=!1,t)throw Error(i(300));return e}function Bc(){var e=mi!==0;return mi=0,e}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ue.memoizedState=rt=e:rt=rt.next=e,rt}function Bt(){if(Je===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?Ue.memoizedState:rt.next;if(t!==null)rt=t,Je=e;else{if(e===null)throw Error(i(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},rt===null?Ue.memoizedState=rt=e:rt=rt.next=e}return rt}function hi(e,t){return typeof t=="function"?t(e):t}function Hc(e){var t=Bt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=Je,c=s.baseQueue,d=r.pending;if(d!==null){if(c!==null){var x=c.next;c.next=d.next,d.next=x}s.baseQueue=c=d,r.pending=null}if(c!==null){d=c.next,s=s.baseState;var _=x=null,T=null,F=d;do{var W=F.lane;if((Mr&W)===W)T!==null&&(T=T.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),s=F.hasEagerState?F.eagerState:e(s,F.action);else{var Y={lane:W,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};T===null?(_=T=Y,x=s):T=T.next=Y,Ue.lanes|=W,zr|=W}F=F.next}while(F!==null&&F!==d);T===null?x=s:T.next=_,Qt(s,t.memoizedState)||(Ct=!0),t.memoizedState=s,t.baseState=x,t.baseQueue=T,r.lastRenderedState=s}if(e=r.interleaved,e!==null){c=e;do d=c.lane,Ue.lanes|=d,zr|=d,c=c.next;while(c!==e)}else c===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Uc(e){var t=Bt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=r.dispatch,c=r.pending,d=t.memoizedState;if(c!==null){r.pending=null;var x=c=c.next;do d=e(d,x.action),x=x.next;while(x!==c);Qt(d,t.memoizedState)||(Ct=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,s]}function gg(){}function vg(e,t){var r=Ue,s=Bt(),c=t(),d=!Qt(s.memoizedState,c);if(d&&(s.memoizedState=c,Ct=!0),s=s.queue,Vc(xg.bind(null,r,s,e),[e]),s.getSnapshot!==t||d||rt!==null&&rt.memoizedState.tag&1){if(r.flags|=2048,gi(9,wg.bind(null,r,s,c,t),void 0,null),ot===null)throw Error(i(349));(Mr&30)!==0||yg(r,t,c)}return c}function yg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function wg(e,t,r,s){t.value=r,t.getSnapshot=s,bg(t)&&kg(e)}function xg(e,t,r){return r(function(){bg(t)&&kg(e)})}function bg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qt(e,r)}catch{return!0}}function kg(e){var t=Nn(e,1);t!==null&&tn(t,e,1,-1)}function Sg(e){var t=mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=y2.bind(null,Ue,e),[t.memoizedState,e]}function gi(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e)),e}function Cg(){return Bt().memoizedState}function oa(e,t,r,s){var c=mn();Ue.flags|=e,c.memoizedState=gi(1|t,r,void 0,s===void 0?null:s)}function ia(e,t,r,s){var c=Bt();s=s===void 0?null:s;var d=void 0;if(Je!==null){var x=Je.memoizedState;if(d=x.destroy,s!==null&&Fc(s,x.deps)){c.memoizedState=gi(t,r,d,s);return}}Ue.flags|=e,c.memoizedState=gi(1|t,r,d,s)}function Eg(e,t){return oa(8390656,8,e,t)}function Vc(e,t){return ia(2048,8,e,t)}function _g(e,t){return ia(4,2,e,t)}function Ng(e,t){return ia(4,4,e,t)}function Rg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pg(e,t,r){return r=r!=null?r.concat([e]):null,ia(4,4,Rg.bind(null,t,e),r)}function Wc(){}function Tg(e,t){var r=Bt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Fc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function Ig(e,t){var r=Bt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Fc(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function Ag(e,t,r){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=r):(Qt(r,t)||(r=lh(),Ue.lanes|=r,zr|=r,e.baseState=!0),t)}function g2(e,t){var r=ze;ze=r!==0&&4>r?r:4,e(!0);var s=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ze=r,Dc.transition=s}}function jg(){return Bt().memoizedState}function v2(e,t,r){var s=cr(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},Mg(e))zg(t,r);else if(r=dg(e,t,r,s),r!==null){var c=yt();tn(r,e,s,c),Lg(r,t,s)}}function y2(e,t,r){var s=cr(e),c={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(Mg(e))zg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,_=d(x,r);if(c.hasEagerState=!0,c.eagerState=_,Qt(_,x)){var T=t.interleaved;T===null?(c.next=c,Ac(t)):(c.next=T.next,T.next=c),t.interleaved=c;return}}catch{}finally{}r=dg(e,t,c,s),r!==null&&(c=yt(),tn(r,e,s,c),Lg(r,t,s))}}function Mg(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function zg(e,t){pi=ra=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Lg(e,t,r){if((r&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Yl(e,r)}}var sa={readContext:$t,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},w2={readContext:$t,useCallback:function(e,t){return mn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:Eg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,oa(4194308,4,Rg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var r=mn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=mn();return t=r!==void 0?r(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=v2.bind(null,Ue,e),[s.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:Sg,useDebugValue:Wc,useDeferredValue:function(e){return mn().memoizedState=e},useTransition:function(){var e=Sg(!1),t=e[0];return e=g2.bind(null,e[1]),mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=Ue,c=mn();if($e){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),ot===null)throw Error(i(349));(Mr&30)!==0||yg(s,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,Eg(xg.bind(null,s,d,e),[e]),s.flags|=2048,gi(9,wg.bind(null,s,d,r,t),void 0,null),r},useId:function(){var e=mn(),t=ot.identifierPrefix;if($e){var r=_n,s=En;r=(s&~(1<<32-Xt(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=mi++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=h2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},x2={readContext:$t,useCallback:Tg,useContext:$t,useEffect:Vc,useImperativeHandle:Pg,useInsertionEffect:_g,useLayoutEffect:Ng,useMemo:Ig,useReducer:Hc,useRef:Cg,useState:function(){return Hc(hi)},useDebugValue:Wc,useDeferredValue:function(e){var t=Bt();return Ag(t,Je.memoizedState,e)},useTransition:function(){var e=Hc(hi)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:gg,useSyncExternalStore:vg,useId:jg,unstable_isNewReconciler:!1},b2={readContext:$t,useCallback:Tg,useContext:$t,useEffect:Vc,useImperativeHandle:Pg,useInsertionEffect:_g,useLayoutEffect:Ng,useMemo:Ig,useReducer:Uc,useRef:Cg,useState:function(){return Uc(hi)},useDebugValue:Wc,useDeferredValue:function(e){var t=Bt();return Je===null?t.memoizedState=e:Ag(t,Je.memoizedState,e)},useTransition:function(){var e=Uc(hi)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:gg,useSyncExternalStore:vg,useId:jg,unstable_isNewReconciler:!1};function Zt(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Gc(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:B({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var aa={isMounted:function(e){return(e=e._reactInternals)?Nr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=yt(),c=cr(e),d=Rn(s,c);d.payload=t,r!=null&&(d.callback=r),t=ir(e,d,c),t!==null&&(tn(t,e,c,s),Js(t,e,c))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=yt(),c=cr(e),d=Rn(s,c);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=ir(e,d,c),t!==null&&(tn(t,e,c,s),Js(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=yt(),s=cr(e),c=Rn(r,s);c.tag=2,t!=null&&(c.callback=t),t=ir(e,c,s),t!==null&&(tn(t,e,s,r),Js(t,e,s))}};function Og(e,t,r,s,c,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,x):t.prototype&&t.prototype.isPureReactComponent?!ni(r,s)||!ni(c,d):!0}function Dg(e,t,r){var s=!1,c=nr,d=t.contextType;return typeof d=="object"&&d!==null?d=$t(d):(c=St(t)?Pr:ft.current,s=t.contextTypes,d=(s=s!=null)?fo(e,c):nr),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=aa,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function Fg(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&aa.enqueueReplaceState(t,t.state,null)}function Yc(e,t,r,s){var c=e.stateNode;c.props=r,c.state=e.memoizedState,c.refs={},jc(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=$t(d):(d=St(t)?Pr:ft.current,c.context=fo(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Gc(e,t,d,r),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&aa.enqueueReplaceState(c,c.state,null),ea(e,r,c,s),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function xo(e,t){try{var r="",s=t;do r+=ne(s),s=s.return;while(s);var c=r}catch(d){c=`
39
39
  Error generating stack: `+d.message+`
40
- `+d.stack}return{value:e,source:t,stack:c,digest:null}}function Kc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Xc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var k2=typeof WeakMap=="function"?WeakMap:Map;function $g(e,t,r){r=Rn(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){ma||(ma=!0,uu=s),Xc(e,t)},r}function Bg(e,t,r){r=Rn(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var c=t.value;r.payload=function(){return s(c)},r.callback=function(){Xc(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){Xc(e,t),typeof s!="function"&&(ar===null?ar=new Set([this]):ar.add(this));var x=t.stack;this.componentDidCatch(t.value,{componentStack:x!==null?x:""})}),r}function Hg(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new k2;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(r)||(c.add(r),e=L2.bind(null,e,t,r),t.then(e,e))}function Ug(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vg(e,t,r,s,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Rn(-1,1),t.tag=2,ir(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var S2=j.ReactCurrentOwner,Ct=!1;function vt(e,t,r,s){t.child=e===null?ug(t,null,r,s):go(t,e.child,r,s)}function Wg(e,t,r,s,c){r=r.render;var d=t.ref;return yo(t,c),s=$c(e,t,r,s,d,c),r=Bc(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&r&&Sc(t),t.flags|=1,vt(e,t,s,c),t.child)}function Gg(e,t,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!vu(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Yg(e,t,d,s,c)):(e=xa(r.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var x=d.memoizedProps;if(r=r.compare,r=r!==null?r:ni,r(x,s)&&e.ref===t.ref)return Pn(e,t,c)}return t.flags|=1,e=dr(d,s),e.ref=t.ref,e.return=t,t.child=e}function Yg(e,t,r,s,c){if(e!==null){var d=e.memoizedProps;if(ni(d,s)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=s=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,Pn(e,t,c)}return Qc(e,t,r,s,c)}function Kg(e,t,r){var s=t.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(ko,jt),jt|=r;else{if((r&1073741824)===0)return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(ko,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:r,Le(ko,jt),jt|=s}else d!==null?(s=d.baseLanes|r,t.memoizedState=null):s=r,Le(ko,jt),jt|=s;return vt(e,t,c,r),t.child}function Xg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Qc(e,t,r,s,c){var d=St(r)?Pr:ft.current;return d=fo(t,d),yo(t,c),r=$c(e,t,r,s,d,c),s=Bc(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&s&&Sc(t),t.flags|=1,vt(e,t,r,c),t.child)}function Qg(e,t,r,s,c){if(St(r)){var d=!0;Ws(t)}else d=!1;if(yo(t,c),t.stateNode===null)ca(e,t),Dg(t,r,s),Yc(t,r,s,c),s=!0;else if(e===null){var x=t.stateNode,_=t.memoizedProps;x.props=_;var T=x.context,F=r.contextType;typeof F=="object"&&F!==null?F=$t(F):(F=St(r)?Pr:ft.current,F=fo(t,F));var W=r.getDerivedStateFromProps,Y=typeof W=="function"||typeof x.getSnapshotBeforeUpdate=="function";Y||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==s||T!==F)&&Fg(t,x,s,F),or=!1;var V=t.memoizedState;x.state=V,ea(t,s,x,c),T=t.memoizedState,_!==s||V!==T||kt.current||or?(typeof W=="function"&&(Gc(t,r,W,s),T=t.memoizedState),(_=or||Og(t,r,_,s,V,T,F))?(Y||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(t.flags|=4194308)):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=T),x.props=s,x.state=T,x.context=F,s=_):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{x=t.stateNode,fg(e,t),_=t.memoizedProps,F=t.type===t.elementType?_:Zt(t.type,_),x.props=F,Y=t.pendingProps,V=x.context,T=r.contextType,typeof T=="object"&&T!==null?T=$t(T):(T=St(r)?Pr:ft.current,T=fo(t,T));var ie=r.getDerivedStateFromProps;(W=typeof ie=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==Y||V!==T)&&Fg(t,x,s,T),or=!1,V=t.memoizedState,x.state=V,ea(t,s,x,c);var ue=t.memoizedState;_!==Y||V!==ue||kt.current||or?(typeof ie=="function"&&(Gc(t,r,ie,s),ue=t.memoizedState),(F=or||Og(t,r,F,s,V,ue,T)||!1)?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(s,ue,T),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(s,ue,T)),typeof x.componentDidUpdate=="function"&&(t.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ue),x.props=s,x.state=ue,x.context=T,s=F):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),s=!1)}return qc(e,t,r,s,d,c)}function qc(e,t,r,s,c,d){Xg(e,t);var x=(t.flags&128)!==0;if(!s&&!x)return c&&tg(t,r,!1),Pn(e,t,d);s=t.stateNode,S2.current=t;var _=x&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&x?(t.child=go(t,e.child,null,d),t.child=go(t,null,_,d)):vt(e,t,_,d),t.memoizedState=s.state,c&&tg(t,r,!0),t.child}function qg(e){var t=e.stateNode;t.pendingContext?Jh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jh(e,t.context,!1),Mc(e,t.containerInfo)}function Zg(e,t,r,s,c){return ho(),Nc(c),t.flags|=256,vt(e,t,r,s),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jg(e,t,r){var s=t.pendingProps,c=He.current,d=!1,x=(t.flags&128)!==0,_;if((_=x)||(_=e!==null&&e.memoizedState===null?!1:(c&2)!==0),_?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Le(He,c&1),e===null)return _c(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(x=s.children,e=s.fallback,d?(s=t.mode,d=t.child,x={mode:"hidden",children:x},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=x):d=ba(x,s,0,null),e=Fr(e,s,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Jc(r),t.memoizedState=Zc,e):eu(t,x));if(c=e.memoizedState,c!==null&&(_=c.dehydrated,_!==null))return C2(e,t,x,s,_,c,r);if(d){d=s.fallback,x=t.mode,c=e.child,_=c.sibling;var T={mode:"hidden",children:s.children};return(x&1)===0&&t.child!==c?(s=t.child,s.childLanes=0,s.pendingProps=T,t.deletions=null):(s=dr(c,T),s.subtreeFlags=c.subtreeFlags&14680064),_!==null?d=dr(_,d):(d=Fr(d,x,r,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,x=e.child.memoizedState,x=x===null?Jc(r):{baseLanes:x.baseLanes|r,cachePool:null,transitions:x.transitions},d.memoizedState=x,d.childLanes=e.childLanes&~r,t.memoizedState=Zc,s}return d=e.child,e=d.sibling,s=dr(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function eu(e,t){return t=ba({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function la(e,t,r,s){return s!==null&&Nc(s),go(t,e.child,null,r),e=eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C2(e,t,r,s,c,d,x){if(r)return t.flags&256?(t.flags&=-257,s=Kc(Error(i(422))),la(e,t,x,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,c=t.mode,s=ba({mode:"visible",children:s.children},c,0,null),d=Fr(d,c,x,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&go(t,e.child,null,x),t.child.memoizedState=Jc(x),t.memoizedState=Zc,d);if((t.mode&1)===0)return la(e,t,x,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var _=s.dgst;return s=_,d=Error(i(419)),s=Kc(d,s,void 0),la(e,t,x,s)}if(_=(x&e.childLanes)!==0,Ct||_){if(s=ot,s!==null){switch(x&-x){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(s.suspendedLanes|x))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,Nn(e,c),tn(s,e,c,-1))}return gu(),s=Kc(Error(i(421))),la(e,t,x,s)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=O2.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,At=er(c.nextSibling),It=t,$e=!0,qt=null,e!==null&&(Dt[Ft++]=En,Dt[Ft++]=_n,Dt[Ft++]=Tr,En=e.id,_n=e.overflow,Tr=t),t=eu(t,s.children),t.flags|=4096,t)}function ev(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ic(e.return,t,r)}function tu(e,t,r,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=r,d.tailMode=c)}function tv(e,t,r){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(vt(e,t,s.children,r),s=He.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ev(e,r,t);else if(e.tag===19)ev(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Le(He,s),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&ta(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),tu(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&ta(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}tu(t,!0,r,null,d);break;case"together":tu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ca(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=dr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=dr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function E2(e,t,r){switch(t.tag){case 3:qg(t),ho();break;case 5:hg(t);break;case 1:St(t.type)&&Ws(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,c=t.memoizedProps.value;Le(qs,s._currentValue),s._currentValue=c;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Le(He,He.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Jg(e,t,r):(Le(He,He.current&1),e=Pn(e,t,r),e!==null?e.sibling:null);Le(He,He.current&1);break;case 19:if(s=(r&t.childLanes)!==0,(e.flags&128)!==0){if(s)return tv(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Le(He,He.current),s)break;return null;case 22:case 23:return t.lanes=0,Kg(e,t,r)}return Pn(e,t,r)}var nv,nu,rv,ov;nv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},nu=function(){},rv=function(e,t,r,s){var c=e.memoizedProps;if(c!==s){e=t.stateNode,jr(pn.current);var d=null;switch(r){case"input":c=Be(e,c),s=Be(e,s),d=[];break;case"select":c=B({},c,{value:void 0}),s=B({},s,{value:void 0}),d=[];break;case"textarea":c=st(e,c),s=st(e,s),d=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Hs)}to(r,s);var x;r=null;for(F in c)if(!s.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var _=c[F];for(x in _)_.hasOwnProperty(x)&&(r||(r={}),r[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?d||(d=[]):(d=d||[]).push(F,null));for(F in s){var T=s[F];if(_=c!=null?c[F]:void 0,s.hasOwnProperty(F)&&T!==_&&(T!=null||_!=null))if(F==="style")if(_){for(x in _)!_.hasOwnProperty(x)||T&&T.hasOwnProperty(x)||(r||(r={}),r[x]="");for(x in T)T.hasOwnProperty(x)&&_[x]!==T[x]&&(r||(r={}),r[x]=T[x])}else r||(d||(d=[]),d.push(F,r)),r=T;else F==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,_=_?_.__html:void 0,T!=null&&_!==T&&(d=d||[]).push(F,T)):F==="children"?typeof T!="string"&&typeof T!="number"||(d=d||[]).push(F,""+T):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(T!=null&&F==="onScroll"&&Oe("scroll",e),d||_===T||(d=[])):(d=d||[]).push(F,T))}r&&(d=d||[]).push("style",r);var F=d;(t.updateQueue=F)&&(t.flags|=4)}},ov=function(e,t,r,s){r!==s&&(t.flags|=4)};function vi(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags&14680064,s|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function _2(e,t,r){var s=t.pendingProps;switch(Cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return St(t.type)&&Vs(),mt(t),null;case 3:return s=t.stateNode,wo(),De(kt),De(ft),Oc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Xs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(pu(qt),qt=null))),nu(e,t),mt(t),null;case 5:zc(t);var c=jr(fi.current);if(r=t.type,e!==null&&t.stateNode!=null)rv(e,t,r,s,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return mt(t),null}if(e=jr(pn.current),Xs(t)){s=t.stateNode,r=t.type;var d=t.memoizedProps;switch(s[fn]=t,s[ai]=d,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",s),Oe("close",s);break;case"iframe":case"object":case"embed":Oe("load",s);break;case"video":case"audio":for(c=0;c<oi.length;c++)Oe(oi[c],s);break;case"source":Oe("error",s);break;case"img":case"image":case"link":Oe("error",s),Oe("load",s);break;case"details":Oe("toggle",s);break;case"input":un(s,d),Oe("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},Oe("invalid",s);break;case"textarea":bn(s,d),Oe("invalid",s)}to(r,d),c=null;for(var x in d)if(d.hasOwnProperty(x)){var _=d[x];x==="children"?typeof _=="string"?s.textContent!==_&&(d.suppressHydrationWarning!==!0&&Bs(s.textContent,_,e),c=["children",_]):typeof _=="number"&&s.textContent!==""+_&&(d.suppressHydrationWarning!==!0&&Bs(s.textContent,_,e),c=["children",""+_]):l.hasOwnProperty(x)&&_!=null&&x==="onScroll"&&Oe("scroll",s)}switch(r){case"input":Ne(s),kr(s,d,!0);break;case"textarea":Ne(s),ws(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=Hs)}s=c,t.updateQueue=s,s!==null&&(t.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cr(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=x.createElement(r,{is:s.is}):(e=x.createElement(r),r==="select"&&(x=e,s.multiple?x.multiple=!0:s.size&&(x.size=s.size))):e=x.createElementNS(e,r),e[fn]=t,e[ai]=s,nv(e,t,!1,!1),t.stateNode=e;e:{switch(x=$o(r,s),r){case"dialog":Oe("cancel",e),Oe("close",e),c=s;break;case"iframe":case"object":case"embed":Oe("load",e),c=s;break;case"video":case"audio":for(c=0;c<oi.length;c++)Oe(oi[c],e);c=s;break;case"source":Oe("error",e),c=s;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),c=s;break;case"details":Oe("toggle",e),c=s;break;case"input":un(e,s),c=Be(e,s),Oe("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=B({},s,{value:void 0}),Oe("invalid",e);break;case"textarea":bn(e,s),c=st(e,s),Oe("invalid",e);break;default:c=s}to(r,c),_=c;for(d in _)if(_.hasOwnProperty(d)){var T=_[d];d==="style"?bs(e,T):d==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&eo(e,T)):d==="children"?typeof T=="string"?(r!=="textarea"||T!=="")&&zt(e,T):typeof T=="number"&&zt(e,""+T):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?T!=null&&d==="onScroll"&&Oe("scroll",e):T!=null&&R(e,d,T,x))}switch(r){case"input":Ne(e),kr(e,s,!1);break;case"textarea":Ne(e),ws(e);break;case"option":s.value!=null&&e.setAttribute("value",""+J(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Bn(e,!!s.multiple,d,!1):s.defaultValue!=null&&Bn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Hs)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mt(t),null;case 6:if(e&&t.stateNode!=null)ov(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(r=jr(fi.current),jr(pn.current),Xs(t)){if(s=t.stateNode,r=t.memoizedProps,s[fn]=t,(d=s.nodeValue!==r)&&(e=It,e!==null))switch(e.tag){case 3:Bs(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bs(s.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[fn]=t,t.stateNode=s}return mt(t),null;case 13:if(De(He),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($e&&At!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ag(),ho(),t.flags|=98560,d=!1;else if(d=Xs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[fn]=t}else ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),d=!1}else qt!==null&&(pu(qt),qt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(He.current&1)!==0?et===0&&(et=3):gu())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return wo(),nu(e,t),e===null&&ii(t.stateNode.containerInfo),mt(t),null;case 10:return Tc(t.type._context),mt(t),null;case 17:return St(t.type)&&Vs(),mt(t),null;case 19:if(De(He),d=t.memoizedState,d===null)return mt(t),null;if(s=(t.flags&128)!==0,x=d.rendering,x===null)if(s)vi(d,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(x=ta(e),x!==null){for(t.flags|=128,vi(d,!1),s=x.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)d=r,e=s,d.flags&=14680066,x=d.alternate,x===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=x.childLanes,d.lanes=x.lanes,d.child=x.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=x.memoizedProps,d.memoizedState=x.memoizedState,d.updateQueue=x.updateQueue,d.type=x.type,e=x.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(He,He.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ye()>So&&(t.flags|=128,s=!0,vi(d,!1),t.lanes=4194304)}else{if(!s)if(e=ta(x),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!$e)return mt(t),null}else 2*Ye()-d.renderingStartTime>So&&r!==1073741824&&(t.flags|=128,s=!0,vi(d,!1),t.lanes=4194304);d.isBackwards?(x.sibling=t.child,t.child=x):(r=d.last,r!==null?r.sibling=x:t.child=x,d.last=x)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ye(),t.sibling=null,r=He.current,Le(He,s?r&1|2:r&1),t):(mt(t),null);case 22:case 23:return hu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(jt&1073741824)!==0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function N2(e,t){switch(Cc(t),t.tag){case 1:return St(t.type)&&Vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),De(kt),De(ft),Oc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return zc(t),null;case 13:if(De(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(He),null;case 4:return wo(),null;case 10:return Tc(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var ua=!1,ht=!1,R2=typeof WeakSet=="function"?WeakSet:Set,le=null;function bo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ve(e,t,s)}else r.current=null}function ru(e,t,r){try{r()}catch(s){Ve(e,t,s)}}var iv=!1;function P2(e,t){if(hc=Ts,e=Oh(),ac(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var x=0,_=-1,T=-1,F=0,W=0,Y=e,V=null;t:for(;;){for(var ie;Y!==r||c!==0&&Y.nodeType!==3||(_=x+c),Y!==d||s!==0&&Y.nodeType!==3||(T=x+s),Y.nodeType===3&&(x+=Y.nodeValue.length),(ie=Y.firstChild)!==null;)V=Y,Y=ie;for(;;){if(Y===e)break t;if(V===r&&++F===c&&(_=x),V===d&&++W===s&&(T=x),(ie=Y.nextSibling)!==null)break;Y=V,V=Y.parentNode}Y=ie}r=_===-1||T===-1?null:{start:_,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(gc={focusedElem:e,selectionRange:r},Ts=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var ue=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var pe=ue.memoizedProps,Ke=ue.memoizedState,M=t.stateNode,I=M.getSnapshotBeforeUpdate(t.elementType===t.type?pe:Zt(t.type,pe),Ke);M.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var L=t.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Q){Ve(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return ue=iv,iv=!1,ue}function yi(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&ru(t,r,d)}c=c.next}while(c!==s)}}function da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function ou(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sv(e){var t=e.alternate;t!==null&&(e.alternate=null,sv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[ai],delete t[xc],delete t[d2],delete t[f2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function av(e){return e.tag===5||e.tag===3||e.tag===4}function lv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||av(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iu(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Hs));else if(s!==4&&(e=e.child,e!==null))for(iu(e,t,r),e=e.sibling;e!==null;)iu(e,t,r),e=e.sibling}function su(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(su(e,t,r),e=e.sibling;e!==null;)su(e,t,r),e=e.sibling}var lt=null,Jt=!1;function sr(e,t,r){for(r=r.child;r!==null;)cv(e,t,r),r=r.sibling}function cv(e,t,r){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Cs,r)}catch{}switch(r.tag){case 5:ht||bo(r,t);case 6:var s=lt,c=Jt;lt=null,sr(e,t,r),lt=s,Jt=c,lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):lt.removeChild(r.stateNode));break;case 18:lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?wc(e.parentNode,r):e.nodeType===1&&wc(e,r),Qo(e)):wc(lt,r.stateNode));break;case 4:s=lt,c=Jt,lt=r.stateNode.containerInfo,Jt=!0,sr(e,t,r),lt=s,Jt=c;break;case 0:case 11:case 14:case 15:if(!ht&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var d=c,x=d.destroy;d=d.tag,x!==void 0&&((d&2)!==0||(d&4)!==0)&&ru(r,t,x),c=c.next}while(c!==s)}sr(e,t,r);break;case 1:if(!ht&&(bo(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(_){Ve(r,t,_)}sr(e,t,r);break;case 21:sr(e,t,r);break;case 22:r.mode&1?(ht=(s=ht)||r.memoizedState!==null,sr(e,t,r),ht=s):sr(e,t,r);break;default:sr(e,t,r)}}function uv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new R2),t.forEach(function(s){var c=D2.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];try{var d=e,x=t,_=x;e:for(;_!==null;){switch(_.tag){case 5:lt=_.stateNode,Jt=!1;break e;case 3:lt=_.stateNode.containerInfo,Jt=!0;break e;case 4:lt=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(lt===null)throw Error(i(160));cv(d,x,c),lt=null,Jt=!1;var T=c.alternate;T!==null&&(T.return=null),c.return=null}catch(F){Ve(c,t,F)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dv(t,e),t=t.sibling}function dv(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),hn(e),s&4){try{yi(3,e,e.return),da(3,e)}catch(pe){Ve(e,e.return,pe)}try{yi(5,e,e.return)}catch(pe){Ve(e,e.return,pe)}}break;case 1:en(t,e),hn(e),s&512&&r!==null&&bo(r,r.return);break;case 5:if(en(t,e),hn(e),s&512&&r!==null&&bo(r,r.return),e.flags&32){var c=e.stateNode;try{zt(c,"")}catch(pe){Ve(e,e.return,pe)}}if(s&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,x=r!==null?r.memoizedProps:d,_=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{_==="input"&&d.type==="radio"&&d.name!=null&&Kt(c,d),$o(_,x);var F=$o(_,d);for(x=0;x<T.length;x+=2){var W=T[x],Y=T[x+1];W==="style"?bs(c,Y):W==="dangerouslySetInnerHTML"?eo(c,Y):W==="children"?zt(c,Y):R(c,W,Y,F)}switch(_){case"input":gt(c,d);break;case"textarea":ys(c,d);break;case"select":var V=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var ie=d.value;ie!=null?Bn(c,!!d.multiple,ie,!1):V!==!!d.multiple&&(d.defaultValue!=null?Bn(c,!!d.multiple,d.defaultValue,!0):Bn(c,!!d.multiple,d.multiple?[]:"",!1))}c[ai]=d}catch(pe){Ve(e,e.return,pe)}}break;case 6:if(en(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(pe){Ve(e,e.return,pe)}}break;case 3:if(en(t,e),hn(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Qo(t.containerInfo)}catch(pe){Ve(e,e.return,pe)}break;case 4:en(t,e),hn(e);break;case 13:en(t,e),hn(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(cu=Ye())),s&4&&uv(e);break;case 22:if(W=r!==null&&r.memoizedState!==null,e.mode&1?(ht=(F=ht)||W,en(t,e),ht=F):en(t,e),hn(e),s&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!W&&(e.mode&1)!==0)for(le=e,W=e.child;W!==null;){for(Y=le=W;le!==null;){switch(V=le,ie=V.child,V.tag){case 0:case 11:case 14:case 15:yi(4,V,V.return);break;case 1:bo(V,V.return);var ue=V.stateNode;if(typeof ue.componentWillUnmount=="function"){s=V,r=V.return;try{t=s,ue.props=t.memoizedProps,ue.state=t.memoizedState,ue.componentWillUnmount()}catch(pe){Ve(s,r,pe)}}break;case 5:bo(V,V.return);break;case 22:if(V.memoizedState!==null){mv(Y);continue}}ie!==null?(ie.return=V,le=ie):mv(Y)}W=W.sibling}e:for(W=null,Y=e;;){if(Y.tag===5){if(W===null){W=Y;try{c=Y.stateNode,F?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(_=Y.stateNode,T=Y.memoizedProps.style,x=T!=null&&T.hasOwnProperty("display")?T.display:null,_.style.display=xs("display",x))}catch(pe){Ve(e,e.return,pe)}}}else if(Y.tag===6){if(W===null)try{Y.stateNode.nodeValue=F?"":Y.memoizedProps}catch(pe){Ve(e,e.return,pe)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;W===Y&&(W=null),Y=Y.return}W===Y&&(W=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:en(t,e),hn(e),s&4&&uv(e);break;case 21:break;default:en(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(av(r)){var s=r;break e}r=r.return}throw Error(i(160))}switch(s.tag){case 5:var c=s.stateNode;s.flags&32&&(zt(c,""),s.flags&=-33);var d=lv(e);su(e,d,c);break;case 3:case 4:var x=s.stateNode.containerInfo,_=lv(e);iu(e,_,x);break;default:throw Error(i(161))}}catch(T){Ve(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T2(e,t,r){le=e,fv(e)}function fv(e,t,r){for(var s=(e.mode&1)!==0;le!==null;){var c=le,d=c.child;if(c.tag===22&&s){var x=c.memoizedState!==null||ua;if(!x){var _=c.alternate,T=_!==null&&_.memoizedState!==null||ht;_=ua;var F=ht;if(ua=x,(ht=T)&&!F)for(le=c;le!==null;)x=le,T=x.child,x.tag===22&&x.memoizedState!==null?hv(c):T!==null?(T.return=x,le=T):hv(c);for(;d!==null;)le=d,fv(d),d=d.sibling;le=c,ua=_,ht=F}pv(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,le=d):pv(e)}}function pv(e){for(;le!==null;){var t=le;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||da(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ht)if(r===null)s.componentDidMount();else{var c=t.elementType===t.type?r.memoizedProps:Zt(t.type,r.memoizedProps);s.componentDidUpdate(c,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&mg(t,d,s);break;case 3:var x=t.updateQueue;if(x!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}mg(t,x,r)}break;case 5:var _=t.stateNode;if(r===null&&t.flags&4){r=_;var T=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&r.focus();break;case"img":T.src&&(r.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var F=t.alternate;if(F!==null){var W=F.memoizedState;if(W!==null){var Y=W.dehydrated;Y!==null&&Qo(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ht||t.flags&512&&ou(t)}catch(V){Ve(t,t.return,V)}}if(t===e){le=null;break}if(r=t.sibling,r!==null){r.return=t.return,le=r;break}le=t.return}}function mv(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var r=t.sibling;if(r!==null){r.return=t.return,le=r;break}le=t.return}}function hv(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{da(4,t)}catch(T){Ve(t,r,T)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var c=t.return;try{s.componentDidMount()}catch(T){Ve(t,c,T)}}var d=t.return;try{ou(t)}catch(T){Ve(t,d,T)}break;case 5:var x=t.return;try{ou(t)}catch(T){Ve(t,x,T)}}}catch(T){Ve(t,t.return,T)}if(t===e){le=null;break}var _=t.sibling;if(_!==null){_.return=t.return,le=_;break}le=t.return}}var I2=Math.ceil,fa=j.ReactCurrentDispatcher,au=j.ReactCurrentOwner,Ht=j.ReactCurrentBatchConfig,Ae=0,ot=null,Qe=null,ct=0,jt=0,ko=tr(0),et=0,wi=null,zr=0,pa=0,lu=0,xi=null,Et=null,cu=0,So=1/0,Tn=null,ma=!1,uu=null,ar=null,ha=!1,lr=null,ga=0,bi=0,du=null,va=-1,ya=0;function yt(){return(Ae&6)!==0?Ye():va!==-1?va:va=Ye()}function cr(e){return(e.mode&1)===0?1:(Ae&2)!==0&&ct!==0?ct&-ct:m2.transition!==null?(ya===0&&(ya=lh()),ya):(e=ze,e!==0||(e=window.event,e=e===void 0?16:vh(e.type)),e)}function tn(e,t,r,s){if(50<bi)throw bi=0,du=null,Error(i(185));Wo(e,r,s),((Ae&2)===0||e!==ot)&&(e===ot&&((Ae&2)===0&&(pa|=r),et===4&&ur(e,ct)),_t(e,s),r===1&&Ae===0&&(t.mode&1)===0&&(So=Ye()+500,Gs&&rr()))}function _t(e,t){var r=e.callbackNode;mE(e,t);var s=Ns(e,e===ot?ct:0);if(s===0)r!==null&&ih(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&ih(r),t===1)e.tag===0?p2(vv.bind(null,e)):ng(vv.bind(null,e)),c2(function(){(Ae&6)===0&&rr()}),r=null;else{switch(ch(s)){case 1:r=Vl;break;case 4:r=sh;break;case 16:r=Ss;break;case 536870912:r=ah;break;default:r=Ss}r=Ev(r,gv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function gv(e,t){if(va=-1,ya=0,(Ae&6)!==0)throw Error(i(327));var r=e.callbackNode;if(Co()&&e.callbackNode!==r)return null;var s=Ns(e,e===ot?ct:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=wa(e,s);else{t=s;var c=Ae;Ae|=2;var d=wv();(ot!==e||ct!==t)&&(Tn=null,So=Ye()+500,Or(e,t));do try{M2();break}catch(_){yv(e,_)}while(!0);Pc(),fa.current=d,Ae=c,Qe!==null?t=0:(ot=null,ct=0,t=et)}if(t!==0){if(t===2&&(c=Wl(e),c!==0&&(s=c,t=fu(e,c))),t===1)throw r=wi,Or(e,0),ur(e,s),_t(e,Ye()),r;if(t===6)ur(e,s);else{if(c=e.current.alternate,(s&30)===0&&!A2(c)&&(t=wa(e,s),t===2&&(d=Wl(e),d!==0&&(s=d,t=fu(e,d))),t===1))throw r=wi,Or(e,0),ur(e,s),_t(e,Ye()),r;switch(e.finishedWork=c,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Dr(e,Et,Tn);break;case 3:if(ur(e,s),(s&130023424)===s&&(t=cu+500-Ye(),10<t)){if(Ns(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){yt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=yc(Dr.bind(null,e,Et,Tn),t);break}Dr(e,Et,Tn);break;case 4:if(ur(e,s),(s&4194240)===s)break;for(t=e.eventTimes,c=-1;0<s;){var x=31-Xt(s);d=1<<x,x=t[x],x>c&&(c=x),s&=~d}if(s=c,s=Ye()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*I2(s/1960))-s,10<s){e.timeoutHandle=yc(Dr.bind(null,e,Et,Tn),s);break}Dr(e,Et,Tn);break;case 5:Dr(e,Et,Tn);break;default:throw Error(i(329))}}}return _t(e,Ye()),e.callbackNode===r?gv.bind(null,e):null}function fu(e,t){var r=xi;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=wa(e,t),e!==2&&(t=Et,Et=r,t!==null&&pu(t)),e}function pu(e){Et===null?Et=e:Et.push.apply(Et,e)}function A2(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var c=r[s],d=c.getSnapshot;c=c.value;try{if(!Qt(d(),c))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ur(e,t){for(t&=~lu,t&=~pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),s=1<<r;e[r]=-1,t&=~s}}function vv(e){if((Ae&6)!==0)throw Error(i(327));Co();var t=Ns(e,0);if((t&1)===0)return _t(e,Ye()),null;var r=wa(e,t);if(e.tag!==0&&r===2){var s=Wl(e);s!==0&&(t=s,r=fu(e,s))}if(r===1)throw r=wi,Or(e,0),ur(e,t),_t(e,Ye()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,Et,Tn),_t(e,Ye()),null}function mu(e,t){var r=Ae;Ae|=1;try{return e(t)}finally{Ae=r,Ae===0&&(So=Ye()+500,Gs&&rr())}}function Lr(e){lr!==null&&lr.tag===0&&(Ae&6)===0&&Co();var t=Ae;Ae|=1;var r=Ht.transition,s=ze;try{if(Ht.transition=null,ze=1,e)return e()}finally{ze=s,Ht.transition=r,Ae=t,(Ae&6)===0&&rr()}}function hu(){jt=ko.current,De(ko)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,l2(r)),Qe!==null)for(r=Qe.return;r!==null;){var s=r;switch(Cc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Vs();break;case 3:wo(),De(kt),De(ft),Oc();break;case 5:zc(s);break;case 4:wo();break;case 13:De(He);break;case 19:De(He);break;case 10:Tc(s.type._context);break;case 22:case 23:hu()}r=r.return}if(ot=e,Qe=e=dr(e.current,null),ct=jt=t,et=0,wi=null,lu=pa=zr=0,Et=xi=null,Ar!==null){for(t=0;t<Ar.length;t++)if(r=Ar[t],s=r.interleaved,s!==null){r.interleaved=null;var c=s.next,d=r.pending;if(d!==null){var x=d.next;d.next=c,s.next=x}r.pending=s}Ar=null}return e}function yv(e,t){do{var r=Qe;try{if(Pc(),na.current=sa,ra){for(var s=Ue.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}ra=!1}if(Mr=0,rt=Je=Ue=null,pi=!1,mi=0,au.current=null,r===null||r.return===null){et=1,wi=t,Qe=null;break}e:{var d=e,x=r.return,_=r,T=t;if(t=ct,_.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=T,W=_,Y=W.tag;if((W.mode&1)===0&&(Y===0||Y===11||Y===15)){var V=W.alternate;V?(W.updateQueue=V.updateQueue,W.memoizedState=V.memoizedState,W.lanes=V.lanes):(W.updateQueue=null,W.memoizedState=null)}var ie=Ug(x);if(ie!==null){ie.flags&=-257,Vg(ie,x,_,d,t),ie.mode&1&&Hg(d,F,t),t=ie,T=F;var ue=t.updateQueue;if(ue===null){var pe=new Set;pe.add(T),t.updateQueue=pe}else ue.add(T);break e}else{if((t&1)===0){Hg(d,F,t),gu();break e}T=Error(i(426))}}else if($e&&_.mode&1){var Ke=Ug(x);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Vg(Ke,x,_,d,t),Nc(xo(T,_));break e}}d=T=xo(T,_),et!==4&&(et=2),xi===null?xi=[d]:xi.push(d),d=x;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var M=$g(d,T,t);pg(d,M);break e;case 1:_=T;var I=d.type,L=d.stateNode;if((d.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(ar===null||!ar.has(L)))){d.flags|=65536,t&=-t,d.lanes|=t;var Q=Bg(d,_,t);pg(d,Q);break e}}d=d.return}while(d!==null)}bv(r)}catch(me){t=me,Qe===r&&r!==null&&(Qe=r=r.return);continue}break}while(!0)}function wv(){var e=fa.current;return fa.current=sa,e===null?sa:e}function gu(){(et===0||et===3||et===2)&&(et=4),ot===null||(zr&268435455)===0&&(pa&268435455)===0||ur(ot,ct)}function wa(e,t){var r=Ae;Ae|=2;var s=wv();(ot!==e||ct!==t)&&(Tn=null,Or(e,t));do try{j2();break}catch(c){yv(e,c)}while(!0);if(Pc(),Ae=r,fa.current=s,Qe!==null)throw Error(i(261));return ot=null,ct=0,et}function j2(){for(;Qe!==null;)xv(Qe)}function M2(){for(;Qe!==null&&!iE();)xv(Qe)}function xv(e){var t=Cv(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?bv(e):Qe=t,au.current=null}function bv(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=_2(r,t,jt),r!==null){Qe=r;return}}else{if(r=N2(r,t),r!==null){r.flags&=32767,Qe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Qe=null;return}}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);et===0&&(et=5)}function Dr(e,t,r){var s=ze,c=Ht.transition;try{Ht.transition=null,ze=1,z2(e,t,r,s)}finally{Ht.transition=c,ze=s}return null}function z2(e,t,r,s){do Co();while(lr!==null);if((Ae&6)!==0)throw Error(i(327));r=e.finishedWork;var c=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(hE(e,d),e===ot&&(Qe=ot=null,ct=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||ha||(ha=!0,Ev(Ss,function(){return Co(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Ht.transition,Ht.transition=null;var x=ze;ze=1;var _=Ae;Ae|=4,au.current=null,P2(e,r),dv(r,e),t2(gc),Ts=!!hc,gc=hc=null,e.current=r,T2(r),sE(),Ae=_,ze=x,Ht.transition=d}else e.current=r;if(ha&&(ha=!1,lr=e,ga=c),d=e.pendingLanes,d===0&&(ar=null),cE(r.stateNode),_t(e,Ye()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)c=t[r],s(c.value,{componentStack:c.stack,digest:c.digest});if(ma)throw ma=!1,e=uu,uu=null,e;return(ga&1)!==0&&e.tag!==0&&Co(),d=e.pendingLanes,(d&1)!==0?e===du?bi++:(bi=0,du=e):bi=0,rr(),null}function Co(){if(lr!==null){var e=ch(ga),t=Ht.transition,r=ze;try{if(Ht.transition=null,ze=16>e?16:e,lr===null)var s=!1;else{if(e=lr,lr=null,ga=0,(Ae&6)!==0)throw Error(i(331));var c=Ae;for(Ae|=4,le=e.current;le!==null;){var d=le,x=d.child;if((le.flags&16)!==0){var _=d.deletions;if(_!==null){for(var T=0;T<_.length;T++){var F=_[T];for(le=F;le!==null;){var W=le;switch(W.tag){case 0:case 11:case 15:yi(8,W,d)}var Y=W.child;if(Y!==null)Y.return=W,le=Y;else for(;le!==null;){W=le;var V=W.sibling,ie=W.return;if(sv(W),W===F){le=null;break}if(V!==null){V.return=ie,le=V;break}le=ie}}}var ue=d.alternate;if(ue!==null){var pe=ue.child;if(pe!==null){ue.child=null;do{var Ke=pe.sibling;pe.sibling=null,pe=Ke}while(pe!==null)}}le=d}}if((d.subtreeFlags&2064)!==0&&x!==null)x.return=d,le=x;else e:for(;le!==null;){if(d=le,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:yi(9,d,d.return)}var M=d.sibling;if(M!==null){M.return=d.return,le=M;break e}le=d.return}}var I=e.current;for(le=I;le!==null;){x=le;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,le=L;else e:for(x=I;le!==null;){if(_=le,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:da(9,_)}}catch(me){Ve(_,_.return,me)}if(_===x){le=null;break e}var Q=_.sibling;if(Q!==null){Q.return=_.return,le=Q;break e}le=_.return}}if(Ae=c,rr(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(Cs,e)}catch{}s=!0}return s}finally{ze=r,Ht.transition=t}}return!1}function kv(e,t,r){t=xo(r,t),t=$g(e,t,1),e=ir(e,t,1),t=yt(),e!==null&&(Wo(e,1,t),_t(e,t))}function Ve(e,t,r){if(e.tag===3)kv(e,e,r);else for(;t!==null;){if(t.tag===3){kv(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ar===null||!ar.has(s))){e=xo(r,e),e=Bg(t,e,1),t=ir(t,e,1),e=yt(),t!==null&&(Wo(t,1,e),_t(t,e));break}}t=t.return}}function L2(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&r,ot===e&&(ct&r)===r&&(et===4||et===3&&(ct&130023424)===ct&&500>Ye()-cu?Or(e,0):lu|=r),_t(e,t)}function Sv(e,t){t===0&&((e.mode&1)===0?t=1:(t=_s,_s<<=1,(_s&130023424)===0&&(_s=4194304)));var r=yt();e=Nn(e,t),e!==null&&(Wo(e,t,r),_t(e,r))}function O2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Sv(e,r)}function D2(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Sv(e,r)}var Cv;Cv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Ct=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ct=!1,E2(e,t,r);Ct=(e.flags&131072)!==0}else Ct=!1,$e&&(t.flags&1048576)!==0&&rg(t,Ks,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ca(e,t),e=t.pendingProps;var c=fo(t,ft.current);yo(t,r),c=$c(null,t,s,e,c,r);var d=Bc();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(s)?(d=!0,Ws(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,jc(t),c.updater=aa,t.stateNode=c,c._reactInternals=t,Yc(t,s,e,r),t=qc(null,t,s,!0,d,r)):(t.tag=0,$e&&d&&Sc(t),vt(null,t,c,r),t=t.child),t;case 16:s=t.elementType;e:{switch(ca(e,t),e=t.pendingProps,c=s._init,s=c(s._payload),t.type=s,c=t.tag=$2(s),e=Zt(s,e),c){case 0:t=Qc(null,t,s,e,r);break e;case 1:t=Qg(null,t,s,e,r);break e;case 11:t=Wg(null,t,s,e,r);break e;case 14:t=Gg(null,t,s,Zt(s.type,e),r);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Qc(e,t,s,c,r);case 1:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Qg(e,t,s,c,r);case 3:e:{if(qg(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,c=d.element,fg(e,t),ea(t,s,null,r);var x=t.memoizedState;if(s=x.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=xo(Error(i(423)),t),t=Zg(e,t,s,r,c);break e}else if(s!==c){c=xo(Error(i(424)),t),t=Zg(e,t,s,r,c);break e}else for(At=er(t.stateNode.containerInfo.firstChild),It=t,$e=!0,qt=null,r=ug(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ho(),s===c){t=Pn(e,t,r);break e}vt(e,t,s,r)}t=t.child}return t;case 5:return hg(t),e===null&&_c(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,x=c.children,vc(s,c)?x=null:d!==null&&vc(s,d)&&(t.flags|=32),Xg(e,t),vt(e,t,x,r),t.child;case 6:return e===null&&_c(t),null;case 13:return Jg(e,t,r);case 4:return Mc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=go(t,null,s,r):vt(e,t,s,r),t.child;case 11:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Wg(e,t,s,c,r);case 7:return vt(e,t,t.pendingProps,r),t.child;case 8:return vt(e,t,t.pendingProps.children,r),t.child;case 12:return vt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,c=t.pendingProps,d=t.memoizedProps,x=c.value,Le(qs,s._currentValue),s._currentValue=x,d!==null)if(Qt(d.value,x)){if(d.children===c.children&&!kt.current){t=Pn(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var _=d.dependencies;if(_!==null){x=d.child;for(var T=_.firstContext;T!==null;){if(T.context===s){if(d.tag===1){T=Rn(-1,r&-r),T.tag=2;var F=d.updateQueue;if(F!==null){F=F.shared;var W=F.pending;W===null?T.next=T:(T.next=W.next,W.next=T),F.pending=T}}d.lanes|=r,T=d.alternate,T!==null&&(T.lanes|=r),Ic(d.return,r,t),_.lanes|=r;break}T=T.next}}else if(d.tag===10)x=d.type===t.type?null:d.child;else if(d.tag===18){if(x=d.return,x===null)throw Error(i(341));x.lanes|=r,_=x.alternate,_!==null&&(_.lanes|=r),Ic(x,r,t),x=d.sibling}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===t){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}vt(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,s=t.pendingProps.children,yo(t,r),c=$t(c),s=s(c),t.flags|=1,vt(e,t,s,r),t.child;case 14:return s=t.type,c=Zt(s,t.pendingProps),c=Zt(s.type,c),Gg(e,t,s,c,r);case 15:return Yg(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),ca(e,t),t.tag=1,St(s)?(e=!0,Ws(t)):e=!1,yo(t,r),Dg(t,s,c),Yc(t,s,c,r),qc(null,t,s,!0,e,r);case 19:return tv(e,t,r);case 22:return Kg(e,t,r)}throw Error(i(156,t.tag))};function Ev(e,t){return oh(e,t)}function F2(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,r,s){return new F2(e,t,r,s)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $2(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ge)return 11;if(e===Se)return 14}return 2}function dr(e,t){var r=e.alternate;return r===null?(r=Ut(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xa(e,t,r,s,c,d){var x=2;if(s=e,typeof e=="function")vu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case O:return Fr(r.children,c,d,t);case D:x=8,c|=8;break;case K:return e=Ut(12,r,t,c|2),e.elementType=K,e.lanes=d,e;case he:return e=Ut(13,r,t,c),e.elementType=he,e.lanes=d,e;case ve:return e=Ut(19,r,t,c),e.elementType=ve,e.lanes=d,e;case te:return ba(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:x=10;break e;case fe:x=9;break e;case ge:x=11;break e;case Se:x=14;break e;case G:x=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ut(x,r,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function Fr(e,t,r,s){return e=Ut(7,e,s,t),e.lanes=r,e}function ba(e,t,r,s){return e=Ut(22,e,s,t),e.elementType=te,e.lanes=r,e.stateNode={isHidden:!1},e}function yu(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function wu(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function B2(e,t,r,s,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function xu(e,t,r,s,c,d,x,_,T){return e=new B2(e,t,r,_,T),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Ut(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},jc(d),e}function H2(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function _v(e){if(!e)return nr;e=e._reactInternals;e:{if(Nr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(St(r))return eg(e,r,t)}return t}function Nv(e,t,r,s,c,d,x,_,T){return e=xu(r,s,!0,e,c,d,x,_,T),e.context=_v(null),r=e.current,s=yt(),c=cr(r),d=Rn(s,c),d.callback=t??null,ir(r,d,c),e.current.lanes=c,Wo(e,c,s),_t(e,s),e}function ka(e,t,r,s){var c=t.current,d=yt(),x=cr(c);return r=_v(r),t.context===null?t.context=r:t.pendingContext=r,t=Rn(d,x),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=ir(c,t,x),e!==null&&(tn(e,c,x,d),Js(e,c,x)),x}function Sa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bu(e,t){Rv(e,t),(e=e.alternate)&&Rv(e,t)}function U2(){return null}var Pv=typeof reportError=="function"?reportError:function(e){console.error(e)};function ku(e){this._internalRoot=e}Ca.prototype.render=ku.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ka(e,t,null,null)},Ca.prototype.unmount=ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lr(function(){ka(null,e,null,null)}),t[Sn]=null}};function Ca(e){this._internalRoot=e}Ca.prototype.unstable_scheduleHydration=function(e){if(e){var t=fh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qn.length&&t!==0&&t<qn[r].priority;r++);qn.splice(r,0,e),r===0&&hh(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tv(){}function V2(e,t,r,s,c){if(c){if(typeof s=="function"){var d=s;s=function(){var F=Sa(x);d.call(F)}}var x=Nv(t,s,e,0,null,!1,!1,"",Tv);return e._reactRootContainer=x,e[Sn]=x.current,ii(e.nodeType===8?e.parentNode:e),Lr(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var _=s;s=function(){var F=Sa(T);_.call(F)}}var T=xu(e,0,!1,null,null,!1,!1,"",Tv);return e._reactRootContainer=T,e[Sn]=T.current,ii(e.nodeType===8?e.parentNode:e),Lr(function(){ka(t,T,r,s)}),T}function _a(e,t,r,s,c){var d=r._reactRootContainer;if(d){var x=d;if(typeof c=="function"){var _=c;c=function(){var T=Sa(x);_.call(T)}}ka(t,x,e,c)}else x=V2(r,t,e,c,s);return Sa(x)}uh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Vo(t.pendingLanes);r!==0&&(Yl(t,r|1),_t(t,Ye()),(Ae&6)===0&&(So=Ye()+500,rr()))}break;case 13:Lr(function(){var s=Nn(e,1);if(s!==null){var c=yt();tn(s,e,1,c)}}),bu(e,1)}},Kl=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var r=yt();tn(t,e,134217728,r)}bu(e,134217728)}},dh=function(e){if(e.tag===13){var t=cr(e),r=Nn(e,t);if(r!==null){var s=yt();tn(r,e,t,s)}bu(e,t)}},fh=function(){return ze},ph=function(e,t){var r=ze;try{return ze=e,t()}finally{ze=r}},Bo=function(e,t,r){switch(t){case"input":if(gt(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var c=Us(s);if(!c)throw Error(i(90));Re(s),gt(s,c)}}}break;case"textarea":ys(e,r);break;case"select":t=r.value,t!=null&&Bn(e,!!r.multiple,t,!1)}},Ze=mu,dt=Lr;var W2={usingClientEntryPoint:!1,Events:[li,co,Us,_e,Ge,mu]},ki={findFiberByHostInstance:Rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G2={bundleType:ki.bundleType,version:ki.version,rendererPackageName:ki.rendererPackageName,rendererConfig:ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nh(e),e===null?null:e.stateNode},findFiberByHostInstance:ki.findFiberByHostInstance||U2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{Cs=Na.inject(G2),dn=Na}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W2,wt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(i(200));return H2(e,t,null,r)},wt.createRoot=function(e,t){if(!Su(e))throw Error(i(299));var r=!1,s="",c=Pv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=xu(e,1,!1,null,null,r,!1,s,c),e[Sn]=t.current,ii(e.nodeType===8?e.parentNode:e),new ku(t)},wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=nh(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Lr(e)},wt.hydrate=function(e,t,r){if(!Ea(t))throw Error(i(200));return _a(null,e,t,!0,r)},wt.hydrateRoot=function(e,t,r){if(!Su(e))throw Error(i(405));var s=r!=null&&r.hydratedSources||null,c=!1,d="",x=Pv;if(r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(x=r.onRecoverableError)),t=Nv(t,null,e,1,r??null,c,!1,d,x),e[Sn]=t.current,ii(e),s)for(e=0;e<s.length;e++)r=s[e],c=r._getVersion,c=c(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,c]:t.mutableSourceEagerHydrationData.push(r,c);return new Ca(t)},wt.render=function(e,t,r){if(!Ea(t))throw Error(i(200));return _a(null,e,t,!1,r)},wt.unmountComponentAtNode=function(e){if(!Ea(e))throw Error(i(40));return e._reactRootContainer?(Lr(function(){_a(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},wt.unstable_batchedUpdates=mu,wt.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Ea(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return _a(e,t,r,!1,s)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var Au;function ju(){if(Au)return Pa.exports;Au=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),Pa.exports=Lv(),Pa.exports}var Mu;function Ov(){if(Mu)return Ci;Mu=1;var n=ju();return Ci.createRoot=n.createRoot,Ci.hydrateRoot=n.hydrateRoot,Ci}var Dv=Ov();const Fv='/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-800:oklch(43.2% .095 166.913);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-800:oklch(45.9% .187 3.815);--color-gray-800:oklch(27.8% .033 256.848);--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans,ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);--default-mono-font-family:var(--font-geist-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-colored:0 0 #0000;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*,:before,:after{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}:host{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.right-8{right:calc(var(--spacing) * 8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-8{bottom:calc(var(--spacing) * 8)}.bottom-24{bottom:calc(var(--spacing) * 24)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-1000{z-index:1000}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.-mt-2\\.5{margin-top:calc(var(--spacing) * -2.5)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-4{margin-right:calc(var(--spacing) * 4)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2\\.5{margin-left:calc(var(--spacing) * -2.5)}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-48{height:calc(var(--spacing) * 48)}.h-64{height:calc(var(--spacing) * 64)}.h-\\[700px\\]{height:700px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[900px\\]{width:900px}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.border-zinc-200{border-color:#e4e4e4}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-foreground\\/35{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/35{background-color:color-mix(in oklab,var(--foreground) 35%,transparent)}}.bg-foreground\\/70{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/70{background-color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.bg-gray-100{background-color:#f3f4f6}.bg-muted{background-color:var(--muted)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.\\!text-muted-foreground{color:var(--muted-foreground)!important}.text-amber-800{color:var(--color-amber-800)}.text-blue-800{color:var(--color-blue-800)}.text-destructive{color:var(--destructive)}.text-emerald-800{color:var(--color-emerald-800)}.text-foreground,.text-foreground\\/70{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/70{color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.text-foreground\\/75{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/75{color:color-mix(in oklab,var(--foreground) 75%,transparent)}}.text-gray-800{color:var(--color-gray-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-pink-800{color:var(--color-pink-800)}.text-purple-800{color:var(--color-purple-800)}.text-red-800{color:var(--color-red-800)}.text-zinc-300{color:#d4d4d4}.text-zinc-500{color:#727272}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.16\\)\\,0_0_0_1px_rgba\\(0\\,0\\,0\\,0\\.22\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#ffffff29), 0 0 0 1px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-zinc-200{--tw-ring-color:oklch(92% 0 0)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:color-mix(in oklab,var(--foreground) 55%,transparent)}}.group-hover\\/resize\\:opacity-100:is(:where(.group\\/resize):hover *){opacity:1}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-accent\\/70:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-accent\\/70:hover{background-color:color-mix(in oklab,var(--accent) 70%,transparent)}}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-zinc-900:hover{color:#181818}.hover\\:opacity-100:hover{opacity:1}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.dark\\:border-zinc-300:is(.dark *){border-color:#d4d4d4}.dark\\:bg-background:is(.dark *){background-color:var(--background)}.dark\\:bg-white:is(.dark *){background-color:#fff}.dark\\:ring-zinc-300:is(.dark *){--tw-ring-color:oklch(87.1% 0 0)}@media(hover:hover){.dark\\:group-hover\\/resize\\:bg-white:is(.dark *):is(:where(.group\\/resize):hover *){background-color:#fff}}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-90[data-state=open]>svg{rotate:90deg}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:host{--radius:.625rem;--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08)}:host([theme=dark]),:host(.dark){--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439)}@keyframes sparkle-swipe-in{0%{opacity:0;color:#facc15;filter:drop-shadow(-8px 8px #a855f700)}28%{opacity:1;color:#d8b4fe;filter:drop-shadow(-2px 2px 8px #a855f7cc)}55%{color:#a855f7;filter:drop-shadow(3px -3px 10px #a855f7f2)}to{opacity:1;color:#facc15;filter:drop-shadow(0 0 #a855f700)}}@keyframes sparkle-twinkle{0%,to{opacity:.82;filter:drop-shadow(0 0 #facc1500)}50%{opacity:1;filter:drop-shadow(0 0 7px #facc1580)}}.sparkle-icon{color:#facc15;vertical-align:middle;transform-origin:50%;will-change:transform,filter,color,opacity;line-height:1;animation:1.15s cubic-bezier(.22,1,.36,1) sparkle-swipe-in,2.1s ease-in-out 1.15s infinite sparkle-twinkle;display:inline-block;transform:rotate(10deg)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var v=Si();const X=nn(v),zu=pr({__proto__:null,default:X},[v]),$v=()=>{try{return"6353fd3b-0e54-4fb6-9b24-c1c4e0b1449a"}catch{return"dev"}},mr=new Map,Bv=async(n,o)=>{const i=mr.get(n.id);if(i)return i;if(!n.bundleUrl)return console.warn(`[SandboxManager] Extension ${n.id} is missing bundleUrl — skipping sandbox creation`),null;const a=document.createElement("iframe");if(a.setAttribute("sandbox","allow-scripts allow-same-origin"),a.style.display="none",a.style.width="0",a.style.height="0",a.style.border="none",n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js")){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),a.src=p.toString(),console.warn(`[SandboxManager] Creating dev sandbox for ${n.id}, injecting __extensionId via query param, url: ${p.toString()}`)}else{let p="";try{const g=$v();p=await(await fetch(`${n.bundleUrl}?_b=${g}`)).text()}catch(g){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,g)}const m=`<!DOCTYPE html>
40
+ `+d.stack}return{value:e,source:t,stack:c,digest:null}}function Kc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Xc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var k2=typeof WeakMap=="function"?WeakMap:Map;function $g(e,t,r){r=Rn(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){ma||(ma=!0,uu=s),Xc(e,t)},r}function Bg(e,t,r){r=Rn(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var c=t.value;r.payload=function(){return s(c)},r.callback=function(){Xc(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){Xc(e,t),typeof s!="function"&&(ar===null?ar=new Set([this]):ar.add(this));var x=t.stack;this.componentDidCatch(t.value,{componentStack:x!==null?x:""})}),r}function Hg(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new k2;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(r)||(c.add(r),e=L2.bind(null,e,t,r),t.then(e,e))}function Ug(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vg(e,t,r,s,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Rn(-1,1),t.tag=2,ir(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var S2=j.ReactCurrentOwner,Ct=!1;function vt(e,t,r,s){t.child=e===null?ug(t,null,r,s):go(t,e.child,r,s)}function Wg(e,t,r,s,c){r=r.render;var d=t.ref;return yo(t,c),s=$c(e,t,r,s,d,c),r=Bc(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&r&&Sc(t),t.flags|=1,vt(e,t,s,c),t.child)}function Gg(e,t,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!vu(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Yg(e,t,d,s,c)):(e=xa(r.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var x=d.memoizedProps;if(r=r.compare,r=r!==null?r:ni,r(x,s)&&e.ref===t.ref)return Pn(e,t,c)}return t.flags|=1,e=dr(d,s),e.ref=t.ref,e.return=t,t.child=e}function Yg(e,t,r,s,c){if(e!==null){var d=e.memoizedProps;if(ni(d,s)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=s=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,Pn(e,t,c)}return Qc(e,t,r,s,c)}function Kg(e,t,r){var s=t.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(ko,jt),jt|=r;else{if((r&1073741824)===0)return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(ko,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:r,Le(ko,jt),jt|=s}else d!==null?(s=d.baseLanes|r,t.memoizedState=null):s=r,Le(ko,jt),jt|=s;return vt(e,t,c,r),t.child}function Xg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Qc(e,t,r,s,c){var d=St(r)?Pr:ft.current;return d=fo(t,d),yo(t,c),r=$c(e,t,r,s,d,c),s=Bc(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&s&&Sc(t),t.flags|=1,vt(e,t,r,c),t.child)}function Qg(e,t,r,s,c){if(St(r)){var d=!0;Ws(t)}else d=!1;if(yo(t,c),t.stateNode===null)ca(e,t),Dg(t,r,s),Yc(t,r,s,c),s=!0;else if(e===null){var x=t.stateNode,_=t.memoizedProps;x.props=_;var T=x.context,F=r.contextType;typeof F=="object"&&F!==null?F=$t(F):(F=St(r)?Pr:ft.current,F=fo(t,F));var W=r.getDerivedStateFromProps,Y=typeof W=="function"||typeof x.getSnapshotBeforeUpdate=="function";Y||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==s||T!==F)&&Fg(t,x,s,F),or=!1;var V=t.memoizedState;x.state=V,ea(t,s,x,c),T=t.memoizedState,_!==s||V!==T||kt.current||or?(typeof W=="function"&&(Gc(t,r,W,s),T=t.memoizedState),(_=or||Og(t,r,_,s,V,T,F))?(Y||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(t.flags|=4194308)):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=T),x.props=s,x.state=T,x.context=F,s=_):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{x=t.stateNode,fg(e,t),_=t.memoizedProps,F=t.type===t.elementType?_:Zt(t.type,_),x.props=F,Y=t.pendingProps,V=x.context,T=r.contextType,typeof T=="object"&&T!==null?T=$t(T):(T=St(r)?Pr:ft.current,T=fo(t,T));var ie=r.getDerivedStateFromProps;(W=typeof ie=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==Y||V!==T)&&Fg(t,x,s,T),or=!1,V=t.memoizedState,x.state=V,ea(t,s,x,c);var ue=t.memoizedState;_!==Y||V!==ue||kt.current||or?(typeof ie=="function"&&(Gc(t,r,ie,s),ue=t.memoizedState),(F=or||Og(t,r,F,s,V,ue,T)||!1)?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(s,ue,T),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(s,ue,T)),typeof x.componentDidUpdate=="function"&&(t.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ue),x.props=s,x.state=ue,x.context=T,s=F):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),s=!1)}return qc(e,t,r,s,d,c)}function qc(e,t,r,s,c,d){Xg(e,t);var x=(t.flags&128)!==0;if(!s&&!x)return c&&tg(t,r,!1),Pn(e,t,d);s=t.stateNode,S2.current=t;var _=x&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&x?(t.child=go(t,e.child,null,d),t.child=go(t,null,_,d)):vt(e,t,_,d),t.memoizedState=s.state,c&&tg(t,r,!0),t.child}function qg(e){var t=e.stateNode;t.pendingContext?Jh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jh(e,t.context,!1),Mc(e,t.containerInfo)}function Zg(e,t,r,s,c){return ho(),Nc(c),t.flags|=256,vt(e,t,r,s),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jg(e,t,r){var s=t.pendingProps,c=He.current,d=!1,x=(t.flags&128)!==0,_;if((_=x)||(_=e!==null&&e.memoizedState===null?!1:(c&2)!==0),_?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Le(He,c&1),e===null)return _c(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(x=s.children,e=s.fallback,d?(s=t.mode,d=t.child,x={mode:"hidden",children:x},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=x):d=ba(x,s,0,null),e=Fr(e,s,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Jc(r),t.memoizedState=Zc,e):eu(t,x));if(c=e.memoizedState,c!==null&&(_=c.dehydrated,_!==null))return C2(e,t,x,s,_,c,r);if(d){d=s.fallback,x=t.mode,c=e.child,_=c.sibling;var T={mode:"hidden",children:s.children};return(x&1)===0&&t.child!==c?(s=t.child,s.childLanes=0,s.pendingProps=T,t.deletions=null):(s=dr(c,T),s.subtreeFlags=c.subtreeFlags&14680064),_!==null?d=dr(_,d):(d=Fr(d,x,r,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,x=e.child.memoizedState,x=x===null?Jc(r):{baseLanes:x.baseLanes|r,cachePool:null,transitions:x.transitions},d.memoizedState=x,d.childLanes=e.childLanes&~r,t.memoizedState=Zc,s}return d=e.child,e=d.sibling,s=dr(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function eu(e,t){return t=ba({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function la(e,t,r,s){return s!==null&&Nc(s),go(t,e.child,null,r),e=eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C2(e,t,r,s,c,d,x){if(r)return t.flags&256?(t.flags&=-257,s=Kc(Error(i(422))),la(e,t,x,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,c=t.mode,s=ba({mode:"visible",children:s.children},c,0,null),d=Fr(d,c,x,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&go(t,e.child,null,x),t.child.memoizedState=Jc(x),t.memoizedState=Zc,d);if((t.mode&1)===0)return la(e,t,x,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var _=s.dgst;return s=_,d=Error(i(419)),s=Kc(d,s,void 0),la(e,t,x,s)}if(_=(x&e.childLanes)!==0,Ct||_){if(s=ot,s!==null){switch(x&-x){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(s.suspendedLanes|x))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,Nn(e,c),tn(s,e,c,-1))}return gu(),s=Kc(Error(i(421))),la(e,t,x,s)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=O2.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,At=er(c.nextSibling),It=t,$e=!0,qt=null,e!==null&&(Dt[Ft++]=En,Dt[Ft++]=_n,Dt[Ft++]=Tr,En=e.id,_n=e.overflow,Tr=t),t=eu(t,s.children),t.flags|=4096,t)}function ev(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ic(e.return,t,r)}function tu(e,t,r,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=r,d.tailMode=c)}function tv(e,t,r){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(vt(e,t,s.children,r),s=He.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ev(e,r,t);else if(e.tag===19)ev(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Le(He,s),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&ta(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),tu(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&ta(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}tu(t,!0,r,null,d);break;case"together":tu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ca(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=dr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=dr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function E2(e,t,r){switch(t.tag){case 3:qg(t),ho();break;case 5:hg(t);break;case 1:St(t.type)&&Ws(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,c=t.memoizedProps.value;Le(qs,s._currentValue),s._currentValue=c;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Le(He,He.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Jg(e,t,r):(Le(He,He.current&1),e=Pn(e,t,r),e!==null?e.sibling:null);Le(He,He.current&1);break;case 19:if(s=(r&t.childLanes)!==0,(e.flags&128)!==0){if(s)return tv(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Le(He,He.current),s)break;return null;case 22:case 23:return t.lanes=0,Kg(e,t,r)}return Pn(e,t,r)}var nv,nu,rv,ov;nv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},nu=function(){},rv=function(e,t,r,s){var c=e.memoizedProps;if(c!==s){e=t.stateNode,jr(pn.current);var d=null;switch(r){case"input":c=Be(e,c),s=Be(e,s),d=[];break;case"select":c=B({},c,{value:void 0}),s=B({},s,{value:void 0}),d=[];break;case"textarea":c=st(e,c),s=st(e,s),d=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Hs)}to(r,s);var x;r=null;for(F in c)if(!s.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var _=c[F];for(x in _)_.hasOwnProperty(x)&&(r||(r={}),r[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?d||(d=[]):(d=d||[]).push(F,null));for(F in s){var T=s[F];if(_=c!=null?c[F]:void 0,s.hasOwnProperty(F)&&T!==_&&(T!=null||_!=null))if(F==="style")if(_){for(x in _)!_.hasOwnProperty(x)||T&&T.hasOwnProperty(x)||(r||(r={}),r[x]="");for(x in T)T.hasOwnProperty(x)&&_[x]!==T[x]&&(r||(r={}),r[x]=T[x])}else r||(d||(d=[]),d.push(F,r)),r=T;else F==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,_=_?_.__html:void 0,T!=null&&_!==T&&(d=d||[]).push(F,T)):F==="children"?typeof T!="string"&&typeof T!="number"||(d=d||[]).push(F,""+T):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(T!=null&&F==="onScroll"&&Oe("scroll",e),d||_===T||(d=[])):(d=d||[]).push(F,T))}r&&(d=d||[]).push("style",r);var F=d;(t.updateQueue=F)&&(t.flags|=4)}},ov=function(e,t,r,s){r!==s&&(t.flags|=4)};function vi(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags&14680064,s|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function _2(e,t,r){var s=t.pendingProps;switch(Cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return St(t.type)&&Vs(),mt(t),null;case 3:return s=t.stateNode,wo(),De(kt),De(ft),Oc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Xs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(pu(qt),qt=null))),nu(e,t),mt(t),null;case 5:zc(t);var c=jr(fi.current);if(r=t.type,e!==null&&t.stateNode!=null)rv(e,t,r,s,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return mt(t),null}if(e=jr(pn.current),Xs(t)){s=t.stateNode,r=t.type;var d=t.memoizedProps;switch(s[fn]=t,s[ai]=d,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",s),Oe("close",s);break;case"iframe":case"object":case"embed":Oe("load",s);break;case"video":case"audio":for(c=0;c<oi.length;c++)Oe(oi[c],s);break;case"source":Oe("error",s);break;case"img":case"image":case"link":Oe("error",s),Oe("load",s);break;case"details":Oe("toggle",s);break;case"input":un(s,d),Oe("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},Oe("invalid",s);break;case"textarea":bn(s,d),Oe("invalid",s)}to(r,d),c=null;for(var x in d)if(d.hasOwnProperty(x)){var _=d[x];x==="children"?typeof _=="string"?s.textContent!==_&&(d.suppressHydrationWarning!==!0&&Bs(s.textContent,_,e),c=["children",_]):typeof _=="number"&&s.textContent!==""+_&&(d.suppressHydrationWarning!==!0&&Bs(s.textContent,_,e),c=["children",""+_]):l.hasOwnProperty(x)&&_!=null&&x==="onScroll"&&Oe("scroll",s)}switch(r){case"input":Ne(s),kr(s,d,!0);break;case"textarea":Ne(s),ws(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=Hs)}s=c,t.updateQueue=s,s!==null&&(t.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cr(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=x.createElement(r,{is:s.is}):(e=x.createElement(r),r==="select"&&(x=e,s.multiple?x.multiple=!0:s.size&&(x.size=s.size))):e=x.createElementNS(e,r),e[fn]=t,e[ai]=s,nv(e,t,!1,!1),t.stateNode=e;e:{switch(x=$o(r,s),r){case"dialog":Oe("cancel",e),Oe("close",e),c=s;break;case"iframe":case"object":case"embed":Oe("load",e),c=s;break;case"video":case"audio":for(c=0;c<oi.length;c++)Oe(oi[c],e);c=s;break;case"source":Oe("error",e),c=s;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),c=s;break;case"details":Oe("toggle",e),c=s;break;case"input":un(e,s),c=Be(e,s),Oe("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=B({},s,{value:void 0}),Oe("invalid",e);break;case"textarea":bn(e,s),c=st(e,s),Oe("invalid",e);break;default:c=s}to(r,c),_=c;for(d in _)if(_.hasOwnProperty(d)){var T=_[d];d==="style"?bs(e,T):d==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&eo(e,T)):d==="children"?typeof T=="string"?(r!=="textarea"||T!=="")&&zt(e,T):typeof T=="number"&&zt(e,""+T):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?T!=null&&d==="onScroll"&&Oe("scroll",e):T!=null&&R(e,d,T,x))}switch(r){case"input":Ne(e),kr(e,s,!1);break;case"textarea":Ne(e),ws(e);break;case"option":s.value!=null&&e.setAttribute("value",""+J(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Bn(e,!!s.multiple,d,!1):s.defaultValue!=null&&Bn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Hs)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mt(t),null;case 6:if(e&&t.stateNode!=null)ov(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(r=jr(fi.current),jr(pn.current),Xs(t)){if(s=t.stateNode,r=t.memoizedProps,s[fn]=t,(d=s.nodeValue!==r)&&(e=It,e!==null))switch(e.tag){case 3:Bs(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bs(s.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[fn]=t,t.stateNode=s}return mt(t),null;case 13:if(De(He),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($e&&At!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ag(),ho(),t.flags|=98560,d=!1;else if(d=Xs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[fn]=t}else ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),d=!1}else qt!==null&&(pu(qt),qt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(He.current&1)!==0?et===0&&(et=3):gu())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return wo(),nu(e,t),e===null&&ii(t.stateNode.containerInfo),mt(t),null;case 10:return Tc(t.type._context),mt(t),null;case 17:return St(t.type)&&Vs(),mt(t),null;case 19:if(De(He),d=t.memoizedState,d===null)return mt(t),null;if(s=(t.flags&128)!==0,x=d.rendering,x===null)if(s)vi(d,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(x=ta(e),x!==null){for(t.flags|=128,vi(d,!1),s=x.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)d=r,e=s,d.flags&=14680066,x=d.alternate,x===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=x.childLanes,d.lanes=x.lanes,d.child=x.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=x.memoizedProps,d.memoizedState=x.memoizedState,d.updateQueue=x.updateQueue,d.type=x.type,e=x.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(He,He.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ye()>So&&(t.flags|=128,s=!0,vi(d,!1),t.lanes=4194304)}else{if(!s)if(e=ta(x),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!$e)return mt(t),null}else 2*Ye()-d.renderingStartTime>So&&r!==1073741824&&(t.flags|=128,s=!0,vi(d,!1),t.lanes=4194304);d.isBackwards?(x.sibling=t.child,t.child=x):(r=d.last,r!==null?r.sibling=x:t.child=x,d.last=x)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ye(),t.sibling=null,r=He.current,Le(He,s?r&1|2:r&1),t):(mt(t),null);case 22:case 23:return hu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(jt&1073741824)!==0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function N2(e,t){switch(Cc(t),t.tag){case 1:return St(t.type)&&Vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),De(kt),De(ft),Oc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return zc(t),null;case 13:if(De(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(He),null;case 4:return wo(),null;case 10:return Tc(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var ua=!1,ht=!1,R2=typeof WeakSet=="function"?WeakSet:Set,le=null;function bo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ve(e,t,s)}else r.current=null}function ru(e,t,r){try{r()}catch(s){Ve(e,t,s)}}var iv=!1;function P2(e,t){if(hc=Ts,e=Oh(),ac(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var x=0,_=-1,T=-1,F=0,W=0,Y=e,V=null;t:for(;;){for(var ie;Y!==r||c!==0&&Y.nodeType!==3||(_=x+c),Y!==d||s!==0&&Y.nodeType!==3||(T=x+s),Y.nodeType===3&&(x+=Y.nodeValue.length),(ie=Y.firstChild)!==null;)V=Y,Y=ie;for(;;){if(Y===e)break t;if(V===r&&++F===c&&(_=x),V===d&&++W===s&&(T=x),(ie=Y.nextSibling)!==null)break;Y=V,V=Y.parentNode}Y=ie}r=_===-1||T===-1?null:{start:_,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(gc={focusedElem:e,selectionRange:r},Ts=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var ue=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var pe=ue.memoizedProps,Ke=ue.memoizedState,M=t.stateNode,I=M.getSnapshotBeforeUpdate(t.elementType===t.type?pe:Zt(t.type,pe),Ke);M.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var L=t.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Q){Ve(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return ue=iv,iv=!1,ue}function yi(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&ru(t,r,d)}c=c.next}while(c!==s)}}function da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function ou(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sv(e){var t=e.alternate;t!==null&&(e.alternate=null,sv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[ai],delete t[xc],delete t[d2],delete t[f2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function av(e){return e.tag===5||e.tag===3||e.tag===4}function lv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||av(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iu(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Hs));else if(s!==4&&(e=e.child,e!==null))for(iu(e,t,r),e=e.sibling;e!==null;)iu(e,t,r),e=e.sibling}function su(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(su(e,t,r),e=e.sibling;e!==null;)su(e,t,r),e=e.sibling}var lt=null,Jt=!1;function sr(e,t,r){for(r=r.child;r!==null;)cv(e,t,r),r=r.sibling}function cv(e,t,r){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Cs,r)}catch{}switch(r.tag){case 5:ht||bo(r,t);case 6:var s=lt,c=Jt;lt=null,sr(e,t,r),lt=s,Jt=c,lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):lt.removeChild(r.stateNode));break;case 18:lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?wc(e.parentNode,r):e.nodeType===1&&wc(e,r),Qo(e)):wc(lt,r.stateNode));break;case 4:s=lt,c=Jt,lt=r.stateNode.containerInfo,Jt=!0,sr(e,t,r),lt=s,Jt=c;break;case 0:case 11:case 14:case 15:if(!ht&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var d=c,x=d.destroy;d=d.tag,x!==void 0&&((d&2)!==0||(d&4)!==0)&&ru(r,t,x),c=c.next}while(c!==s)}sr(e,t,r);break;case 1:if(!ht&&(bo(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(_){Ve(r,t,_)}sr(e,t,r);break;case 21:sr(e,t,r);break;case 22:r.mode&1?(ht=(s=ht)||r.memoizedState!==null,sr(e,t,r),ht=s):sr(e,t,r);break;default:sr(e,t,r)}}function uv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new R2),t.forEach(function(s){var c=D2.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];try{var d=e,x=t,_=x;e:for(;_!==null;){switch(_.tag){case 5:lt=_.stateNode,Jt=!1;break e;case 3:lt=_.stateNode.containerInfo,Jt=!0;break e;case 4:lt=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(lt===null)throw Error(i(160));cv(d,x,c),lt=null,Jt=!1;var T=c.alternate;T!==null&&(T.return=null),c.return=null}catch(F){Ve(c,t,F)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dv(t,e),t=t.sibling}function dv(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),hn(e),s&4){try{yi(3,e,e.return),da(3,e)}catch(pe){Ve(e,e.return,pe)}try{yi(5,e,e.return)}catch(pe){Ve(e,e.return,pe)}}break;case 1:en(t,e),hn(e),s&512&&r!==null&&bo(r,r.return);break;case 5:if(en(t,e),hn(e),s&512&&r!==null&&bo(r,r.return),e.flags&32){var c=e.stateNode;try{zt(c,"")}catch(pe){Ve(e,e.return,pe)}}if(s&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,x=r!==null?r.memoizedProps:d,_=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{_==="input"&&d.type==="radio"&&d.name!=null&&Kt(c,d),$o(_,x);var F=$o(_,d);for(x=0;x<T.length;x+=2){var W=T[x],Y=T[x+1];W==="style"?bs(c,Y):W==="dangerouslySetInnerHTML"?eo(c,Y):W==="children"?zt(c,Y):R(c,W,Y,F)}switch(_){case"input":gt(c,d);break;case"textarea":ys(c,d);break;case"select":var V=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var ie=d.value;ie!=null?Bn(c,!!d.multiple,ie,!1):V!==!!d.multiple&&(d.defaultValue!=null?Bn(c,!!d.multiple,d.defaultValue,!0):Bn(c,!!d.multiple,d.multiple?[]:"",!1))}c[ai]=d}catch(pe){Ve(e,e.return,pe)}}break;case 6:if(en(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(pe){Ve(e,e.return,pe)}}break;case 3:if(en(t,e),hn(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Qo(t.containerInfo)}catch(pe){Ve(e,e.return,pe)}break;case 4:en(t,e),hn(e);break;case 13:en(t,e),hn(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(cu=Ye())),s&4&&uv(e);break;case 22:if(W=r!==null&&r.memoizedState!==null,e.mode&1?(ht=(F=ht)||W,en(t,e),ht=F):en(t,e),hn(e),s&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!W&&(e.mode&1)!==0)for(le=e,W=e.child;W!==null;){for(Y=le=W;le!==null;){switch(V=le,ie=V.child,V.tag){case 0:case 11:case 14:case 15:yi(4,V,V.return);break;case 1:bo(V,V.return);var ue=V.stateNode;if(typeof ue.componentWillUnmount=="function"){s=V,r=V.return;try{t=s,ue.props=t.memoizedProps,ue.state=t.memoizedState,ue.componentWillUnmount()}catch(pe){Ve(s,r,pe)}}break;case 5:bo(V,V.return);break;case 22:if(V.memoizedState!==null){mv(Y);continue}}ie!==null?(ie.return=V,le=ie):mv(Y)}W=W.sibling}e:for(W=null,Y=e;;){if(Y.tag===5){if(W===null){W=Y;try{c=Y.stateNode,F?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(_=Y.stateNode,T=Y.memoizedProps.style,x=T!=null&&T.hasOwnProperty("display")?T.display:null,_.style.display=xs("display",x))}catch(pe){Ve(e,e.return,pe)}}}else if(Y.tag===6){if(W===null)try{Y.stateNode.nodeValue=F?"":Y.memoizedProps}catch(pe){Ve(e,e.return,pe)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;W===Y&&(W=null),Y=Y.return}W===Y&&(W=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:en(t,e),hn(e),s&4&&uv(e);break;case 21:break;default:en(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(av(r)){var s=r;break e}r=r.return}throw Error(i(160))}switch(s.tag){case 5:var c=s.stateNode;s.flags&32&&(zt(c,""),s.flags&=-33);var d=lv(e);su(e,d,c);break;case 3:case 4:var x=s.stateNode.containerInfo,_=lv(e);iu(e,_,x);break;default:throw Error(i(161))}}catch(T){Ve(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T2(e,t,r){le=e,fv(e)}function fv(e,t,r){for(var s=(e.mode&1)!==0;le!==null;){var c=le,d=c.child;if(c.tag===22&&s){var x=c.memoizedState!==null||ua;if(!x){var _=c.alternate,T=_!==null&&_.memoizedState!==null||ht;_=ua;var F=ht;if(ua=x,(ht=T)&&!F)for(le=c;le!==null;)x=le,T=x.child,x.tag===22&&x.memoizedState!==null?hv(c):T!==null?(T.return=x,le=T):hv(c);for(;d!==null;)le=d,fv(d),d=d.sibling;le=c,ua=_,ht=F}pv(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,le=d):pv(e)}}function pv(e){for(;le!==null;){var t=le;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||da(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ht)if(r===null)s.componentDidMount();else{var c=t.elementType===t.type?r.memoizedProps:Zt(t.type,r.memoizedProps);s.componentDidUpdate(c,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&mg(t,d,s);break;case 3:var x=t.updateQueue;if(x!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}mg(t,x,r)}break;case 5:var _=t.stateNode;if(r===null&&t.flags&4){r=_;var T=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&r.focus();break;case"img":T.src&&(r.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var F=t.alternate;if(F!==null){var W=F.memoizedState;if(W!==null){var Y=W.dehydrated;Y!==null&&Qo(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ht||t.flags&512&&ou(t)}catch(V){Ve(t,t.return,V)}}if(t===e){le=null;break}if(r=t.sibling,r!==null){r.return=t.return,le=r;break}le=t.return}}function mv(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var r=t.sibling;if(r!==null){r.return=t.return,le=r;break}le=t.return}}function hv(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{da(4,t)}catch(T){Ve(t,r,T)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var c=t.return;try{s.componentDidMount()}catch(T){Ve(t,c,T)}}var d=t.return;try{ou(t)}catch(T){Ve(t,d,T)}break;case 5:var x=t.return;try{ou(t)}catch(T){Ve(t,x,T)}}}catch(T){Ve(t,t.return,T)}if(t===e){le=null;break}var _=t.sibling;if(_!==null){_.return=t.return,le=_;break}le=t.return}}var I2=Math.ceil,fa=j.ReactCurrentDispatcher,au=j.ReactCurrentOwner,Ht=j.ReactCurrentBatchConfig,Ae=0,ot=null,Qe=null,ct=0,jt=0,ko=tr(0),et=0,wi=null,zr=0,pa=0,lu=0,xi=null,Et=null,cu=0,So=1/0,Tn=null,ma=!1,uu=null,ar=null,ha=!1,lr=null,ga=0,bi=0,du=null,va=-1,ya=0;function yt(){return(Ae&6)!==0?Ye():va!==-1?va:va=Ye()}function cr(e){return(e.mode&1)===0?1:(Ae&2)!==0&&ct!==0?ct&-ct:m2.transition!==null?(ya===0&&(ya=lh()),ya):(e=ze,e!==0||(e=window.event,e=e===void 0?16:vh(e.type)),e)}function tn(e,t,r,s){if(50<bi)throw bi=0,du=null,Error(i(185));Wo(e,r,s),((Ae&2)===0||e!==ot)&&(e===ot&&((Ae&2)===0&&(pa|=r),et===4&&ur(e,ct)),_t(e,s),r===1&&Ae===0&&(t.mode&1)===0&&(So=Ye()+500,Gs&&rr()))}function _t(e,t){var r=e.callbackNode;mE(e,t);var s=Ns(e,e===ot?ct:0);if(s===0)r!==null&&ih(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&ih(r),t===1)e.tag===0?p2(vv.bind(null,e)):ng(vv.bind(null,e)),c2(function(){(Ae&6)===0&&rr()}),r=null;else{switch(ch(s)){case 1:r=Vl;break;case 4:r=sh;break;case 16:r=Ss;break;case 536870912:r=ah;break;default:r=Ss}r=Ev(r,gv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function gv(e,t){if(va=-1,ya=0,(Ae&6)!==0)throw Error(i(327));var r=e.callbackNode;if(Co()&&e.callbackNode!==r)return null;var s=Ns(e,e===ot?ct:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=wa(e,s);else{t=s;var c=Ae;Ae|=2;var d=wv();(ot!==e||ct!==t)&&(Tn=null,So=Ye()+500,Or(e,t));do try{M2();break}catch(_){yv(e,_)}while(!0);Pc(),fa.current=d,Ae=c,Qe!==null?t=0:(ot=null,ct=0,t=et)}if(t!==0){if(t===2&&(c=Wl(e),c!==0&&(s=c,t=fu(e,c))),t===1)throw r=wi,Or(e,0),ur(e,s),_t(e,Ye()),r;if(t===6)ur(e,s);else{if(c=e.current.alternate,(s&30)===0&&!A2(c)&&(t=wa(e,s),t===2&&(d=Wl(e),d!==0&&(s=d,t=fu(e,d))),t===1))throw r=wi,Or(e,0),ur(e,s),_t(e,Ye()),r;switch(e.finishedWork=c,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Dr(e,Et,Tn);break;case 3:if(ur(e,s),(s&130023424)===s&&(t=cu+500-Ye(),10<t)){if(Ns(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){yt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=yc(Dr.bind(null,e,Et,Tn),t);break}Dr(e,Et,Tn);break;case 4:if(ur(e,s),(s&4194240)===s)break;for(t=e.eventTimes,c=-1;0<s;){var x=31-Xt(s);d=1<<x,x=t[x],x>c&&(c=x),s&=~d}if(s=c,s=Ye()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*I2(s/1960))-s,10<s){e.timeoutHandle=yc(Dr.bind(null,e,Et,Tn),s);break}Dr(e,Et,Tn);break;case 5:Dr(e,Et,Tn);break;default:throw Error(i(329))}}}return _t(e,Ye()),e.callbackNode===r?gv.bind(null,e):null}function fu(e,t){var r=xi;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=wa(e,t),e!==2&&(t=Et,Et=r,t!==null&&pu(t)),e}function pu(e){Et===null?Et=e:Et.push.apply(Et,e)}function A2(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var c=r[s],d=c.getSnapshot;c=c.value;try{if(!Qt(d(),c))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ur(e,t){for(t&=~lu,t&=~pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),s=1<<r;e[r]=-1,t&=~s}}function vv(e){if((Ae&6)!==0)throw Error(i(327));Co();var t=Ns(e,0);if((t&1)===0)return _t(e,Ye()),null;var r=wa(e,t);if(e.tag!==0&&r===2){var s=Wl(e);s!==0&&(t=s,r=fu(e,s))}if(r===1)throw r=wi,Or(e,0),ur(e,t),_t(e,Ye()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,Et,Tn),_t(e,Ye()),null}function mu(e,t){var r=Ae;Ae|=1;try{return e(t)}finally{Ae=r,Ae===0&&(So=Ye()+500,Gs&&rr())}}function Lr(e){lr!==null&&lr.tag===0&&(Ae&6)===0&&Co();var t=Ae;Ae|=1;var r=Ht.transition,s=ze;try{if(Ht.transition=null,ze=1,e)return e()}finally{ze=s,Ht.transition=r,Ae=t,(Ae&6)===0&&rr()}}function hu(){jt=ko.current,De(ko)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,l2(r)),Qe!==null)for(r=Qe.return;r!==null;){var s=r;switch(Cc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Vs();break;case 3:wo(),De(kt),De(ft),Oc();break;case 5:zc(s);break;case 4:wo();break;case 13:De(He);break;case 19:De(He);break;case 10:Tc(s.type._context);break;case 22:case 23:hu()}r=r.return}if(ot=e,Qe=e=dr(e.current,null),ct=jt=t,et=0,wi=null,lu=pa=zr=0,Et=xi=null,Ar!==null){for(t=0;t<Ar.length;t++)if(r=Ar[t],s=r.interleaved,s!==null){r.interleaved=null;var c=s.next,d=r.pending;if(d!==null){var x=d.next;d.next=c,s.next=x}r.pending=s}Ar=null}return e}function yv(e,t){do{var r=Qe;try{if(Pc(),na.current=sa,ra){for(var s=Ue.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}ra=!1}if(Mr=0,rt=Je=Ue=null,pi=!1,mi=0,au.current=null,r===null||r.return===null){et=1,wi=t,Qe=null;break}e:{var d=e,x=r.return,_=r,T=t;if(t=ct,_.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=T,W=_,Y=W.tag;if((W.mode&1)===0&&(Y===0||Y===11||Y===15)){var V=W.alternate;V?(W.updateQueue=V.updateQueue,W.memoizedState=V.memoizedState,W.lanes=V.lanes):(W.updateQueue=null,W.memoizedState=null)}var ie=Ug(x);if(ie!==null){ie.flags&=-257,Vg(ie,x,_,d,t),ie.mode&1&&Hg(d,F,t),t=ie,T=F;var ue=t.updateQueue;if(ue===null){var pe=new Set;pe.add(T),t.updateQueue=pe}else ue.add(T);break e}else{if((t&1)===0){Hg(d,F,t),gu();break e}T=Error(i(426))}}else if($e&&_.mode&1){var Ke=Ug(x);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Vg(Ke,x,_,d,t),Nc(xo(T,_));break e}}d=T=xo(T,_),et!==4&&(et=2),xi===null?xi=[d]:xi.push(d),d=x;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var M=$g(d,T,t);pg(d,M);break e;case 1:_=T;var I=d.type,L=d.stateNode;if((d.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(ar===null||!ar.has(L)))){d.flags|=65536,t&=-t,d.lanes|=t;var Q=Bg(d,_,t);pg(d,Q);break e}}d=d.return}while(d!==null)}bv(r)}catch(me){t=me,Qe===r&&r!==null&&(Qe=r=r.return);continue}break}while(!0)}function wv(){var e=fa.current;return fa.current=sa,e===null?sa:e}function gu(){(et===0||et===3||et===2)&&(et=4),ot===null||(zr&268435455)===0&&(pa&268435455)===0||ur(ot,ct)}function wa(e,t){var r=Ae;Ae|=2;var s=wv();(ot!==e||ct!==t)&&(Tn=null,Or(e,t));do try{j2();break}catch(c){yv(e,c)}while(!0);if(Pc(),Ae=r,fa.current=s,Qe!==null)throw Error(i(261));return ot=null,ct=0,et}function j2(){for(;Qe!==null;)xv(Qe)}function M2(){for(;Qe!==null&&!iE();)xv(Qe)}function xv(e){var t=Cv(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?bv(e):Qe=t,au.current=null}function bv(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=_2(r,t,jt),r!==null){Qe=r;return}}else{if(r=N2(r,t),r!==null){r.flags&=32767,Qe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Qe=null;return}}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);et===0&&(et=5)}function Dr(e,t,r){var s=ze,c=Ht.transition;try{Ht.transition=null,ze=1,z2(e,t,r,s)}finally{Ht.transition=c,ze=s}return null}function z2(e,t,r,s){do Co();while(lr!==null);if((Ae&6)!==0)throw Error(i(327));r=e.finishedWork;var c=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(hE(e,d),e===ot&&(Qe=ot=null,ct=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||ha||(ha=!0,Ev(Ss,function(){return Co(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Ht.transition,Ht.transition=null;var x=ze;ze=1;var _=Ae;Ae|=4,au.current=null,P2(e,r),dv(r,e),t2(gc),Ts=!!hc,gc=hc=null,e.current=r,T2(r),sE(),Ae=_,ze=x,Ht.transition=d}else e.current=r;if(ha&&(ha=!1,lr=e,ga=c),d=e.pendingLanes,d===0&&(ar=null),cE(r.stateNode),_t(e,Ye()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)c=t[r],s(c.value,{componentStack:c.stack,digest:c.digest});if(ma)throw ma=!1,e=uu,uu=null,e;return(ga&1)!==0&&e.tag!==0&&Co(),d=e.pendingLanes,(d&1)!==0?e===du?bi++:(bi=0,du=e):bi=0,rr(),null}function Co(){if(lr!==null){var e=ch(ga),t=Ht.transition,r=ze;try{if(Ht.transition=null,ze=16>e?16:e,lr===null)var s=!1;else{if(e=lr,lr=null,ga=0,(Ae&6)!==0)throw Error(i(331));var c=Ae;for(Ae|=4,le=e.current;le!==null;){var d=le,x=d.child;if((le.flags&16)!==0){var _=d.deletions;if(_!==null){for(var T=0;T<_.length;T++){var F=_[T];for(le=F;le!==null;){var W=le;switch(W.tag){case 0:case 11:case 15:yi(8,W,d)}var Y=W.child;if(Y!==null)Y.return=W,le=Y;else for(;le!==null;){W=le;var V=W.sibling,ie=W.return;if(sv(W),W===F){le=null;break}if(V!==null){V.return=ie,le=V;break}le=ie}}}var ue=d.alternate;if(ue!==null){var pe=ue.child;if(pe!==null){ue.child=null;do{var Ke=pe.sibling;pe.sibling=null,pe=Ke}while(pe!==null)}}le=d}}if((d.subtreeFlags&2064)!==0&&x!==null)x.return=d,le=x;else e:for(;le!==null;){if(d=le,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:yi(9,d,d.return)}var M=d.sibling;if(M!==null){M.return=d.return,le=M;break e}le=d.return}}var I=e.current;for(le=I;le!==null;){x=le;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,le=L;else e:for(x=I;le!==null;){if(_=le,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:da(9,_)}}catch(me){Ve(_,_.return,me)}if(_===x){le=null;break e}var Q=_.sibling;if(Q!==null){Q.return=_.return,le=Q;break e}le=_.return}}if(Ae=c,rr(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(Cs,e)}catch{}s=!0}return s}finally{ze=r,Ht.transition=t}}return!1}function kv(e,t,r){t=xo(r,t),t=$g(e,t,1),e=ir(e,t,1),t=yt(),e!==null&&(Wo(e,1,t),_t(e,t))}function Ve(e,t,r){if(e.tag===3)kv(e,e,r);else for(;t!==null;){if(t.tag===3){kv(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ar===null||!ar.has(s))){e=xo(r,e),e=Bg(t,e,1),t=ir(t,e,1),e=yt(),t!==null&&(Wo(t,1,e),_t(t,e));break}}t=t.return}}function L2(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&r,ot===e&&(ct&r)===r&&(et===4||et===3&&(ct&130023424)===ct&&500>Ye()-cu?Or(e,0):lu|=r),_t(e,t)}function Sv(e,t){t===0&&((e.mode&1)===0?t=1:(t=_s,_s<<=1,(_s&130023424)===0&&(_s=4194304)));var r=yt();e=Nn(e,t),e!==null&&(Wo(e,t,r),_t(e,r))}function O2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Sv(e,r)}function D2(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Sv(e,r)}var Cv;Cv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Ct=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ct=!1,E2(e,t,r);Ct=(e.flags&131072)!==0}else Ct=!1,$e&&(t.flags&1048576)!==0&&rg(t,Ks,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ca(e,t),e=t.pendingProps;var c=fo(t,ft.current);yo(t,r),c=$c(null,t,s,e,c,r);var d=Bc();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(s)?(d=!0,Ws(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,jc(t),c.updater=aa,t.stateNode=c,c._reactInternals=t,Yc(t,s,e,r),t=qc(null,t,s,!0,d,r)):(t.tag=0,$e&&d&&Sc(t),vt(null,t,c,r),t=t.child),t;case 16:s=t.elementType;e:{switch(ca(e,t),e=t.pendingProps,c=s._init,s=c(s._payload),t.type=s,c=t.tag=$2(s),e=Zt(s,e),c){case 0:t=Qc(null,t,s,e,r);break e;case 1:t=Qg(null,t,s,e,r);break e;case 11:t=Wg(null,t,s,e,r);break e;case 14:t=Gg(null,t,s,Zt(s.type,e),r);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Qc(e,t,s,c,r);case 1:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Qg(e,t,s,c,r);case 3:e:{if(qg(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,c=d.element,fg(e,t),ea(t,s,null,r);var x=t.memoizedState;if(s=x.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=xo(Error(i(423)),t),t=Zg(e,t,s,r,c);break e}else if(s!==c){c=xo(Error(i(424)),t),t=Zg(e,t,s,r,c);break e}else for(At=er(t.stateNode.containerInfo.firstChild),It=t,$e=!0,qt=null,r=ug(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ho(),s===c){t=Pn(e,t,r);break e}vt(e,t,s,r)}t=t.child}return t;case 5:return hg(t),e===null&&_c(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,x=c.children,vc(s,c)?x=null:d!==null&&vc(s,d)&&(t.flags|=32),Xg(e,t),vt(e,t,x,r),t.child;case 6:return e===null&&_c(t),null;case 13:return Jg(e,t,r);case 4:return Mc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=go(t,null,s,r):vt(e,t,s,r),t.child;case 11:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Wg(e,t,s,c,r);case 7:return vt(e,t,t.pendingProps,r),t.child;case 8:return vt(e,t,t.pendingProps.children,r),t.child;case 12:return vt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,c=t.pendingProps,d=t.memoizedProps,x=c.value,Le(qs,s._currentValue),s._currentValue=x,d!==null)if(Qt(d.value,x)){if(d.children===c.children&&!kt.current){t=Pn(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var _=d.dependencies;if(_!==null){x=d.child;for(var T=_.firstContext;T!==null;){if(T.context===s){if(d.tag===1){T=Rn(-1,r&-r),T.tag=2;var F=d.updateQueue;if(F!==null){F=F.shared;var W=F.pending;W===null?T.next=T:(T.next=W.next,W.next=T),F.pending=T}}d.lanes|=r,T=d.alternate,T!==null&&(T.lanes|=r),Ic(d.return,r,t),_.lanes|=r;break}T=T.next}}else if(d.tag===10)x=d.type===t.type?null:d.child;else if(d.tag===18){if(x=d.return,x===null)throw Error(i(341));x.lanes|=r,_=x.alternate,_!==null&&(_.lanes|=r),Ic(x,r,t),x=d.sibling}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===t){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}vt(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,s=t.pendingProps.children,yo(t,r),c=$t(c),s=s(c),t.flags|=1,vt(e,t,s,r),t.child;case 14:return s=t.type,c=Zt(s,t.pendingProps),c=Zt(s.type,c),Gg(e,t,s,c,r);case 15:return Yg(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),ca(e,t),t.tag=1,St(s)?(e=!0,Ws(t)):e=!1,yo(t,r),Dg(t,s,c),Yc(t,s,c,r),qc(null,t,s,!0,e,r);case 19:return tv(e,t,r);case 22:return Kg(e,t,r)}throw Error(i(156,t.tag))};function Ev(e,t){return oh(e,t)}function F2(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,r,s){return new F2(e,t,r,s)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $2(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ge)return 11;if(e===Se)return 14}return 2}function dr(e,t){var r=e.alternate;return r===null?(r=Ut(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xa(e,t,r,s,c,d){var x=2;if(s=e,typeof e=="function")vu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case O:return Fr(r.children,c,d,t);case D:x=8,c|=8;break;case X:return e=Ut(12,r,t,c|2),e.elementType=X,e.lanes=d,e;case he:return e=Ut(13,r,t,c),e.elementType=he,e.lanes=d,e;case ve:return e=Ut(19,r,t,c),e.elementType=ve,e.lanes=d,e;case te:return ba(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:x=10;break e;case fe:x=9;break e;case ge:x=11;break e;case Se:x=14;break e;case G:x=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ut(x,r,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function Fr(e,t,r,s){return e=Ut(7,e,s,t),e.lanes=r,e}function ba(e,t,r,s){return e=Ut(22,e,s,t),e.elementType=te,e.lanes=r,e.stateNode={isHidden:!1},e}function yu(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function wu(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function B2(e,t,r,s,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function xu(e,t,r,s,c,d,x,_,T){return e=new B2(e,t,r,_,T),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Ut(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},jc(d),e}function H2(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function _v(e){if(!e)return nr;e=e._reactInternals;e:{if(Nr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(St(r))return eg(e,r,t)}return t}function Nv(e,t,r,s,c,d,x,_,T){return e=xu(r,s,!0,e,c,d,x,_,T),e.context=_v(null),r=e.current,s=yt(),c=cr(r),d=Rn(s,c),d.callback=t??null,ir(r,d,c),e.current.lanes=c,Wo(e,c,s),_t(e,s),e}function ka(e,t,r,s){var c=t.current,d=yt(),x=cr(c);return r=_v(r),t.context===null?t.context=r:t.pendingContext=r,t=Rn(d,x),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=ir(c,t,x),e!==null&&(tn(e,c,x,d),Js(e,c,x)),x}function Sa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bu(e,t){Rv(e,t),(e=e.alternate)&&Rv(e,t)}function U2(){return null}var Pv=typeof reportError=="function"?reportError:function(e){console.error(e)};function ku(e){this._internalRoot=e}Ca.prototype.render=ku.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ka(e,t,null,null)},Ca.prototype.unmount=ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lr(function(){ka(null,e,null,null)}),t[Sn]=null}};function Ca(e){this._internalRoot=e}Ca.prototype.unstable_scheduleHydration=function(e){if(e){var t=fh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qn.length&&t!==0&&t<qn[r].priority;r++);qn.splice(r,0,e),r===0&&hh(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tv(){}function V2(e,t,r,s,c){if(c){if(typeof s=="function"){var d=s;s=function(){var F=Sa(x);d.call(F)}}var x=Nv(t,s,e,0,null,!1,!1,"",Tv);return e._reactRootContainer=x,e[Sn]=x.current,ii(e.nodeType===8?e.parentNode:e),Lr(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var _=s;s=function(){var F=Sa(T);_.call(F)}}var T=xu(e,0,!1,null,null,!1,!1,"",Tv);return e._reactRootContainer=T,e[Sn]=T.current,ii(e.nodeType===8?e.parentNode:e),Lr(function(){ka(t,T,r,s)}),T}function _a(e,t,r,s,c){var d=r._reactRootContainer;if(d){var x=d;if(typeof c=="function"){var _=c;c=function(){var T=Sa(x);_.call(T)}}ka(t,x,e,c)}else x=V2(r,t,e,c,s);return Sa(x)}uh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Vo(t.pendingLanes);r!==0&&(Yl(t,r|1),_t(t,Ye()),(Ae&6)===0&&(So=Ye()+500,rr()))}break;case 13:Lr(function(){var s=Nn(e,1);if(s!==null){var c=yt();tn(s,e,1,c)}}),bu(e,1)}},Kl=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var r=yt();tn(t,e,134217728,r)}bu(e,134217728)}},dh=function(e){if(e.tag===13){var t=cr(e),r=Nn(e,t);if(r!==null){var s=yt();tn(r,e,t,s)}bu(e,t)}},fh=function(){return ze},ph=function(e,t){var r=ze;try{return ze=e,t()}finally{ze=r}},Bo=function(e,t,r){switch(t){case"input":if(gt(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var c=Us(s);if(!c)throw Error(i(90));Re(s),gt(s,c)}}}break;case"textarea":ys(e,r);break;case"select":t=r.value,t!=null&&Bn(e,!!r.multiple,t,!1)}},Ze=mu,dt=Lr;var W2={usingClientEntryPoint:!1,Events:[li,co,Us,_e,Ge,mu]},ki={findFiberByHostInstance:Rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G2={bundleType:ki.bundleType,version:ki.version,rendererPackageName:ki.rendererPackageName,rendererConfig:ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nh(e),e===null?null:e.stateNode},findFiberByHostInstance:ki.findFiberByHostInstance||U2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{Cs=Na.inject(G2),dn=Na}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W2,wt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(i(200));return H2(e,t,null,r)},wt.createRoot=function(e,t){if(!Su(e))throw Error(i(299));var r=!1,s="",c=Pv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=xu(e,1,!1,null,null,r,!1,s,c),e[Sn]=t.current,ii(e.nodeType===8?e.parentNode:e),new ku(t)},wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=nh(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Lr(e)},wt.hydrate=function(e,t,r){if(!Ea(t))throw Error(i(200));return _a(null,e,t,!0,r)},wt.hydrateRoot=function(e,t,r){if(!Su(e))throw Error(i(405));var s=r!=null&&r.hydratedSources||null,c=!1,d="",x=Pv;if(r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(x=r.onRecoverableError)),t=Nv(t,null,e,1,r??null,c,!1,d,x),e[Sn]=t.current,ii(e),s)for(e=0;e<s.length;e++)r=s[e],c=r._getVersion,c=c(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,c]:t.mutableSourceEagerHydrationData.push(r,c);return new Ca(t)},wt.render=function(e,t,r){if(!Ea(t))throw Error(i(200));return _a(null,e,t,!1,r)},wt.unmountComponentAtNode=function(e){if(!Ea(e))throw Error(i(40));return e._reactRootContainer?(Lr(function(){_a(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},wt.unstable_batchedUpdates=mu,wt.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Ea(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return _a(e,t,r,!1,s)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var Au;function ju(){if(Au)return Pa.exports;Au=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),Pa.exports=Lv(),Pa.exports}var Mu;function Ov(){if(Mu)return Ci;Mu=1;var n=ju();return Ci.createRoot=n.createRoot,Ci.hydrateRoot=n.hydrateRoot,Ci}var Dv=Ov();const Fv='/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-800:oklch(43.2% .095 166.913);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-800:oklch(45.9% .187 3.815);--color-gray-800:oklch(27.8% .033 256.848);--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans,ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);--default-mono-font-family:var(--font-geist-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-colored:0 0 #0000;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*,:before,:after{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}:host{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.right-8{right:calc(var(--spacing) * 8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-8{bottom:calc(var(--spacing) * 8)}.bottom-24{bottom:calc(var(--spacing) * 24)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-1000{z-index:1000}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.-mt-2\\.5{margin-top:calc(var(--spacing) * -2.5)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-4{margin-right:calc(var(--spacing) * 4)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2\\.5{margin-left:calc(var(--spacing) * -2.5)}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-48{height:calc(var(--spacing) * 48)}.h-64{height:calc(var(--spacing) * 64)}.h-\\[700px\\]{height:700px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[900px\\]{width:900px}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.border-zinc-200{border-color:#e4e4e4}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-foreground\\/35{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/35{background-color:color-mix(in oklab,var(--foreground) 35%,transparent)}}.bg-foreground\\/70{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/70{background-color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.bg-gray-100{background-color:#f3f4f6}.bg-muted{background-color:var(--muted)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.\\!text-muted-foreground{color:var(--muted-foreground)!important}.text-amber-800{color:var(--color-amber-800)}.text-blue-800{color:var(--color-blue-800)}.text-destructive{color:var(--destructive)}.text-emerald-800{color:var(--color-emerald-800)}.text-foreground,.text-foreground\\/70{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/70{color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.text-foreground\\/75{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/75{color:color-mix(in oklab,var(--foreground) 75%,transparent)}}.text-gray-800{color:var(--color-gray-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-pink-800{color:var(--color-pink-800)}.text-purple-800{color:var(--color-purple-800)}.text-red-800{color:var(--color-red-800)}.text-zinc-300{color:#d4d4d4}.text-zinc-500{color:#727272}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.16\\)\\,0_0_0_1px_rgba\\(0\\,0\\,0\\,0\\.22\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#ffffff29), 0 0 0 1px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-zinc-200{--tw-ring-color:oklch(92% 0 0)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:color-mix(in oklab,var(--foreground) 55%,transparent)}}.group-hover\\/resize\\:opacity-100:is(:where(.group\\/resize):hover *){opacity:1}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-accent\\/70:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-accent\\/70:hover{background-color:color-mix(in oklab,var(--accent) 70%,transparent)}}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-zinc-900:hover{color:#181818}.hover\\:opacity-100:hover{opacity:1}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.dark\\:border-zinc-300:is(.dark *){border-color:#d4d4d4}.dark\\:bg-background:is(.dark *){background-color:var(--background)}.dark\\:bg-white:is(.dark *){background-color:#fff}.dark\\:ring-zinc-300:is(.dark *){--tw-ring-color:oklch(87.1% 0 0)}@media(hover:hover){.dark\\:group-hover\\/resize\\:bg-white:is(.dark *):is(:where(.group\\/resize):hover *){background-color:#fff}}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-90[data-state=open]>svg{rotate:90deg}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:host{--radius:.625rem;--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08)}:host([theme=dark]),:host(.dark){--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439)}@keyframes sparkle-swipe-in{0%{opacity:0;color:#facc15;filter:drop-shadow(-8px 8px #a855f700)}28%{opacity:1;color:#d8b4fe;filter:drop-shadow(-2px 2px 8px #a855f7cc)}55%{color:#a855f7;filter:drop-shadow(3px -3px 10px #a855f7f2)}to{opacity:1;color:#facc15;filter:drop-shadow(0 0 #a855f700)}}@keyframes sparkle-twinkle{0%,to{opacity:.82;filter:drop-shadow(0 0 #facc1500)}50%{opacity:1;filter:drop-shadow(0 0 7px #facc1580)}}.sparkle-icon{color:#facc15;vertical-align:middle;transform-origin:50%;will-change:transform,filter,color,opacity;line-height:1;animation:1.15s cubic-bezier(.22,1,.36,1) sparkle-swipe-in,2.1s ease-in-out 1.15s infinite sparkle-twinkle;display:inline-block;transform:rotate(10deg)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var v=Si();const K=nn(v),zu=pr({__proto__:null,default:K},[v]),$v=()=>{try{return"c733b311-0355-4cfe-b1da-c5d5684c9255"}catch{return"dev"}},mr=new Map,Bv=async(n,o)=>{const i=mr.get(n.id);if(i)return i;if(!n.bundleUrl)return console.warn(`[SandboxManager] Extension ${n.id} is missing bundleUrl — skipping sandbox creation`),null;const a=document.createElement("iframe");if(a.setAttribute("sandbox","allow-scripts allow-same-origin"),a.style.display="none",a.style.width="0",a.style.height="0",a.style.border="none",n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js")){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),a.src=p.toString(),console.warn(`[SandboxManager] Creating dev sandbox for ${n.id}, injecting __extensionId via query param, url: ${p.toString()}`)}else{let p="";try{const g=$v();p=await(await fetch(`${n.bundleUrl}?_b=${g}`)).text()}catch(g){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,g)}const m=`<!DOCTYPE html>
41
41
  <html>
42
42
  <head>
43
43
  <meta charset="utf-8">
@@ -48,7 +48,7 @@ Error generating stack: `+d.message+`
48
48
  <script>var __STACKABLE_EXTENSION_ID__ = ${JSON.stringify(n.id)}; var process = { env: { NODE_ENV: "production" } };<\/script>
49
49
  <script type="module">${p}<\/script>
50
50
  </body>
51
- </html>`;a.srcdoc=m,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${m.substring(0,300)}`)}o.appendChild(a);const u={extensionId:n.id,iframe:a,manifest:n.manifest,ready:!1,messageHandlers:new Set},f=p=>{const m=p.data;!m||typeof m!="object"||!("type"in m)||("extensionId"in m?m.extensionId:void 0)!==n.id||(m.type==="extension-ready"&&(u.ready=!0),u.messageHandlers.forEach(w=>w(m)))};return window.addEventListener("message",f),mr.set(n.id,u),u},Ei=(n,o)=>{const i=mr.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}i.iframe.contentWindow.postMessage(o,"*")},$r=n=>mr.get(n),Hv=n=>{const o=mr.get(n);o&&(o.iframe.remove(),o.messageHandlers.clear(),mr.delete(n))},Uv=()=>mr,Lu={"ui-card":{description:"Card container for grouping related content",icon:"square",category:"layout",attributes:["className","onClick"],children:["ui-card-header","ui-card-content"]},"ui-card-content":{description:"Content area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-card-header":{description:"Header area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-button":{description:"Interactive button with variant and size options",icon:"mouse-pointer-click",category:"input",attributes:["variant","size","disabled","onClick","type","className","title"],attributeValues:{variant:["default","destructive","outline","secondary","ghost","link"],size:["default","xs","sm","lg","icon"]}},"ui-text":{description:"Paragraph text",icon:"type",category:"text",attributes:["className","tone"],attributeValues:{tone:["default","muted","destructive"]}},"ui-heading":{description:"Heading element (h1–h6)",icon:"heading",category:"text",attributes:["level","className"],attributeValues:{level:["1","2","3","4","5","6"]}},"ui-badge":{description:"Small label for status, category, or count",icon:"tag",category:"text",attributes:["variant","hue","tone","className"],attributeValues:{variant:["default","secondary","destructive","outline","ghost","link"],hue:["amber","blue","emerald","red","purple","pink","gray"],tone:["default","muted","destructive"]}},"ui-input":{description:"Single-line text input field",icon:"text-cursor-input",category:"input",attributes:["type","placeholder","value","onChange","disabled","className","id"]},"ui-textarea":{description:"Multi-line text input field",icon:"text",category:"input",attributes:["placeholder","value","onChange","disabled","rows","className","id"]},"ui-select":{description:"Dropdown select with options",icon:"chevrons-up-down",category:"input",attributes:["value","defaultValue","onChange","placeholder","disabled","className"],children:["ui-select-option"]},"ui-select-option":{description:"Option within a Select dropdown",icon:"chevrons-up-down",category:"input",attributes:["value","disabled","className"]},"ui-checkbox":{description:"Checkbox toggle for boolean values",icon:"square-check",category:"input",attributes:["checked","onChange","disabled","className","id"]},"ui-switch":{description:"Toggle switch for on/off states",icon:"toggle-left",category:"input",attributes:["checked","onChange","disabled","size","className","id"],attributeValues:{size:["sm","default"]}},"ui-label":{description:"Form label associated with an input",icon:"tag",category:"input",attributes:["htmlFor","className"]},"ui-radio-group":{description:"Group of radio buttons for single selection",icon:"circle-dot",category:"input",attributes:["value","defaultValue","onChange","className"],children:["ui-radio-group-item","ui-label","ui-inline"]},"ui-radio-group-item":{description:"Individual radio button within a RadioGroup",icon:"circle-dot",category:"input",attributes:["value","disabled","className","id"]},"ui-stack":{description:"Vertical or horizontal flex container with gap",icon:"rows-3",category:"layout",attributes:["gap","direction","className"],attributeValues:{direction:["row","column"],gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-inline":{description:"Horizontal flex container with centered items",icon:"columns-3",category:"layout",attributes:["gap","className"],attributeValues:{gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-separator":{description:"Horizontal divider line",icon:"minus",category:"layout",attributes:["className"]},"ui-tabs":{description:"Tabbed content container",icon:"panel-top",category:"navigation",attributes:["defaultValue","className"],children:["ui-tabs-list","ui-tabs-content"]},"ui-tabs-list":{description:"Container for tab triggers",icon:"panel-top",category:"navigation",attributes:["className"],children:["ui-tabs-trigger"]},"ui-tabs-trigger":{description:"Clickable tab label within TabsList",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-tabs-content":{description:"Content panel shown when its tab is active",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-scroll-area":{description:"Scrollable content container",icon:"scroll",category:"layout",attributes:["className"]},"ui-avatar":{description:"User avatar with image and initials fallback",icon:"circle-user",category:"composite",attributes:["src","alt","className"]},"ui-icon":{description:"Icon from the allowed icon set",icon:"sparkles",category:"composite",attributes:["name","size","className"],attributeValues:{size:["sm","md","lg"]}},"ui-link":{description:"Hyperlink element",icon:"link",category:"navigation",attributes:["href","target","rel","className"]},"ui-menu":{description:"Card-based menu with clickable items",icon:"menu",category:"navigation",attributes:["title","className"],children:["ui-menu-item"]},"ui-menu-item":{description:"Clickable item within a Menu",icon:"menu",category:"navigation",attributes:["icon","label","description","onClick","className"]},"ui-skeleton":{description:"Loading placeholder with shimmer effect",icon:"loader",category:"feedback",attributes:["width","height","className"]},"ui-tooltip":{description:"Hover tooltip with text content",icon:"message-square",category:"feedback",attributes:["content","className"]},"ui-progress":{description:"Progress bar with percentage value",icon:"bar-chart",category:"feedback",attributes:["value","className"]},"ui-alert":{description:"Alert banner with icon and optional title",icon:"alert-circle",category:"feedback",attributes:["variant","title","className"],attributeValues:{variant:["default","destructive"]}},"ui-collapsible":{description:"Expandable/collapsible content section",icon:"chevrons-down-up",category:"composite",attributes:["defaultOpen","className"],children:["ui-collapsible-trigger","ui-collapsible-content"]},"ui-collapsible-trigger":{description:"Clickable trigger to toggle Collapsible",icon:"chevrons-down-up",category:"composite",attributes:["className"]},"ui-collapsible-content":{description:"Content revealed when Collapsible is open",icon:"chevrons-down-up",category:"composite",attributes:["className"]}},Br=Lu,_o=Object.keys(Lu),Vv=Object.fromEntries(_o.map(n=>[n,Br[n].attributes]));Object.fromEntries(_o.filter(n=>Br[n].attributeValues).map(n=>[n,Br[n].attributeValues]));const Wv=Object.fromEntries(_o.filter(n=>Br[n].children).map(n=>[n,Br[n].children]));Object.fromEntries(_o.map(n=>[n,Br[n].category]));const Gv={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke"},Ou={ADMIN:"org:super_admin"},Du={ADMIN:"org:admin",OWNER:"org:owner"},Yv=[Ou.ADMIN,Du.ADMIN,Du.OWNER];[...Object.values(Ou),...Object.values(Yv)];const Kv=n=>{const o=async i=>{const a=i.data;if((a==null?void 0:a.type)!=="capability-request")return;const l=a;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const u=l.extensionId;if(!u||!$r(u)){const m=[...Uv().keys()];console.warn(`Received capability request from unknown source (extensionId: "${u??"undefined"}", registered: [${m.join(", ")}], capability: ${l.capability})`);return}const f=$r(u);if(!f)return;const p=Gv[l.capability];if(p&&!f.manifest.permissions.includes(p)){const m={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${p}' not granted for extension '${u}'`};Ei(u,m);return}try{let m;switch(l.capability){case"data.query":m=await n["data.query"](l.payload);break;case"data.fetch":m=await n["data.fetch"](u,l.payload);break;case"actions.toast":m=await n["actions.toast"](u,l.payload);break;case"actions.invoke":m=await n["actions.invoke"](l.payload);break;case"context.read":m=await n["context.read"]();break;default:throw new Error(`Unknown capability: ${l.capability}`)}const g={type:"capability-response",id:l.id,success:!0,data:m};Ei(u,g)}catch(m){const g={type:"capability-response",id:l.id,success:!1,error:m instanceof Error?m.message:"Unknown error"};Ei(u,g)}};return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Fu=v.createContext({extensions:[],components:{},ready:!1}),Xv=({extensions:n,capabilityHandlers:o,components:i={},children:a})=>{const[l,u]=v.useState(!1),f=v.useRef(null),p=v.useRef(null);return v.useEffect(()=>{if(!f.current)return;let m=!1;return(async()=>{const w=f.current;if(w){console.log("[ExtensionProvider] Initializing with",n.length,"extensions"),p.current=Kv(o);for(const h of n)h.enabled&&!m&&(console.log("[ExtensionProvider] Creating sandbox for",h.id,"bundleUrl:",h.bundleUrl),await Bv(h,w),console.log("[ExtensionProvider] Sandbox created for",h.id));m||(console.log("[ExtensionProvider] Ready"),u(!0))}})(),()=>{var w;m=!0;for(const h of n)Hv(h.id);(w=p.current)==null||w.call(p)}},[n,o]),y.jsxs(Fu.Provider,{value:{extensions:n,components:i,ready:l},children:[y.jsx("div",{ref:f,style:{display:"none"}}),a]})},Qv=()=>v.useContext(Fu),qv=n=>_o.includes(n),Zv=(n,o={})=>{const{surfaceId:i,logPrefix:a="[NodeRenderer]"}=o,l=(u,f,p=0)=>{var S,E,k;if(u.type==="text")return u.text||null;if(!u.tag)return null;if(u.tag==="__fragment")return y.jsx(X.Fragment,{children:(S=u.children)==null?void 0:S.map((C,N)=>l(C,f,N))},p);if(!qv(u.tag))return console.warn(`${a} Unknown UI tag rejected: <${u.tag}>`),null;const m=n[u.tag];if(!m)return u.tag.startsWith("ui-")?(console.warn(`${a} Unregistered UI tag: <${u.tag}>`),null):y.jsx(X.Fragment,{children:(E=u.children)==null?void 0:E.map((C,N)=>l(C,f,N))},p);const{filtered:g,stripped:w}=Jv(u.tag,u.attrs);w.length>0&&console.warn(`${a} Attributes not allowed on <${u.tag}>, stripped: ${w.join(", ")}`);const h=e0(u.tag,u.children);if(h.length>0&&console.warn(`${a} Invalid children in <${u.tag}>: ${h.join(", ")}`),u.actionId){const C=u.actionId;g.onClick=()=>{const N=f;N==null||N.postMessage({type:"action-invoke",surfaceId:i,actionId:C},"*")}}if(g["data-onchange-id"]){const C=g["data-onchange-id"];delete g["data-onchange-id"],g.onChange=N=>{const P=f;P==null||P.postMessage({type:"action-invoke",surfaceId:i,actionId:C,value:N.target.value},"*")}}const b=(k=u.children)==null?void 0:k.map((C,N)=>l(C,f,N));return v.createElement(m,{...g,key:p},b&&b.length>0?b:void 0)};return l},Jv=(n,o)=>{const i={},a=[];if(!o)return{filtered:i,stripped:a};const l=Vv[n];for(const[u,f]of Object.entries(o)){if(u==="data-onchange-id"){i[u]=f;continue}l!=null&&l.includes(u)?i[u]=f:a.push(u)}return{filtered:i,stripped:a}},e0=(n,o)=>{const i=Wv[n];if(!i||!o)return[];const a=[];for(const l of o)l.type!=="text"&&(!l.tag||l.tag==="__fragment"||i.includes(l.tag)||a.push(l.tag));return a},_i=({target:n,context:o,className:i,separator:a,fallback:l=null,render:u})=>{const{extensions:f,components:p,ready:m}=Qv(),[g,w]=v.useState({}),h=v.useRef(""),b=v.useMemo(()=>f.filter(C=>C.enabled&&C.manifest.targets.includes(n)),[f.map(C=>C.id).join(","),n]),S=v.useMemo(()=>Zv(p,{surfaceId:n,logPrefix:"[ExtensionSlot]"}),[n,p]);if(v.useEffect(()=>{const C=b.map(P=>P.id).join(",");if(h.current!==C&&(h.current=C,w({})),!m||b.length===0)return;const N=P=>{const R=P.data;if(!(!R||typeof R!="object"||!b.some($=>{const z=$r($.id);return z&&P.source===z.iframe.contentWindow}))){if(R.type==="surface-update"&&R.surfaceId===n){const $=b.find(O=>{const D=$r(O.id);return D&&P.source===D.iframe.contentWindow});if(!$)return;const z=S(R.tree,P.source??null);w(O=>({...O,[$.id]:z}))}R.type==="surface-ready"&&R.surfaceId===n&&o&&b.forEach($=>{var O;const z=$r($.id);(O=z==null?void 0:z.iframe.contentWindow)==null||O.postMessage({type:"context-update",surfaceId:n,context:o},"*")})}};return window.addEventListener("message",N),b.forEach(P=>{var j;const R=$r(P.id);(j=R==null?void 0:R.iframe.contentWindow)==null||j.postMessage({type:"surface-render",surfaceId:n,context:o},"*")}),()=>{window.removeEventListener("message",N)}},[m,b,n,o,S]),!m)return null;if(b.length===0)return l?y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const E=b.map(C=>({id:C.id,children:g[C.id]})).filter(C=>!!C.children),k=E.length>0?E.flatMap((C,N,P)=>{const R=u?u({extensionId:C.id,children:C.children,index:N,total:P.length}):y.jsx(X.Fragment,{children:C.children},C.id),j=y.jsx(X.Fragment,{children:R},`extension:${C.id}`);if(N===0||!a)return[j];const $=P[N-1],z=typeof a=="function"?a({index:N,total:P.length,previousExtensionId:$.id,extensionId:C.id}):a;return[y.jsx(X.Fragment,{children:z},`separator:${$.id}:${C.id}:${N}`),j]}):l;return y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:k})};var No=ju();const $u=nn(No);function t0(n){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}const n0=n=>{switch(n){case"success":return i0;case"info":return a0;case"warning":return s0;case"error":return l0;default:return null}},r0=Array(12).fill(0),o0=({visible:n,className:o})=>X.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":n},X.createElement("div",{className:"sonner-spinner"},r0.map((i,a)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),i0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),a0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),c0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),u0=()=>{const[n,o]=X.useState(document.hidden);return X.useEffect(()=>{const i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n};let Aa=1;class d0{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const i=this.subscribers.indexOf(o);this.subscribers.splice(i,1)}),this.publish=o=>{this.subscribers.forEach(i=>i(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var i;const{message:a,...l}=o,u=typeof(o==null?void 0:o.id)=="number"||((i=o.id)==null?void 0:i.length)>0?o.id:Aa++,f=this.toasts.find(m=>m.id===u),p=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(m=>m.id===u?(this.publish({...m,...o,id:u,title:a}),{...m,...o,id:u,dismissible:p,title:a}):m):this.addToast({title:a,...l,dismissible:p,id:u}),u},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:o,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(a=>a({id:i.id,dismiss:!0}))}),o),this.message=(o,i)=>this.create({...i,message:o}),this.error=(o,i)=>this.create({...i,message:o,type:"error"}),this.success=(o,i)=>this.create({...i,type:"success",message:o}),this.info=(o,i)=>this.create({...i,type:"info",message:o}),this.warning=(o,i)=>this.create({...i,type:"warning",message:o}),this.loading=(o,i)=>this.create({...i,type:"loading",message:o}),this.promise=(o,i)=>{if(!i)return;let a;i.loading!==void 0&&(a=this.create({...i,promise:o,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const l=Promise.resolve(o instanceof Function?o():o);let u=a!==void 0,f;const p=l.then(async g=>{if(f=["resolve",g],X.isValidElement(g))u=!1,this.create({id:a,type:"default",message:g});else if(p0(g)&&!g.ok){u=!1;const h=typeof i.error=="function"?await i.error(`HTTP error! status: ${g.status}`):i.error,b=typeof i.description=="function"?await i.description(`HTTP error! status: ${g.status}`):i.description,E=typeof h=="object"&&!X.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:b,...E})}else if(g instanceof Error){u=!1;const h=typeof i.error=="function"?await i.error(g):i.error,b=typeof i.description=="function"?await i.description(g):i.description,E=typeof h=="object"&&!X.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:b,...E})}else if(i.success!==void 0){u=!1;const h=typeof i.success=="function"?await i.success(g):i.success,b=typeof i.description=="function"?await i.description(g):i.description,E=typeof h=="object"&&!X.isValidElement(h)?h:{message:h};this.create({id:a,type:"success",description:b,...E})}}).catch(async g=>{if(f=["reject",g],i.error!==void 0){u=!1;const w=typeof i.error=="function"?await i.error(g):i.error,h=typeof i.description=="function"?await i.description(g):i.description,S=typeof w=="object"&&!X.isValidElement(w)?w:{message:w};this.create({id:a,type:"error",description:h,...S})}}).finally(()=>{u&&(this.dismiss(a),a=void 0),i.finally==null||i.finally.call(i)}),m=()=>new Promise((g,w)=>p.then(()=>f[0]==="reject"?w(f[1]):g(f[1])).catch(w));return typeof a!="string"&&typeof a!="number"?{unwrap:m}:Object.assign(a,{unwrap:m})},this.custom=(o,i)=>{const a=(i==null?void 0:i.id)||Aa++;return this.create({jsx:o(a),id:a,...i}),a},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xt=new d0,f0=(n,o)=>{const i=(o==null?void 0:o.id)||Aa++;return xt.addToast({title:n,...o,id:i}),i},p0=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",m0=f0,h0=()=>xt.toasts,g0=()=>xt.getActiveToasts(),Hr=Object.assign(m0,{success:xt.success,info:xt.info,warning:xt.warning,error:xt.error,custom:xt.custom,message:xt.message,promise:xt.promise,dismiss:xt.dismiss,loading:xt.loading},{getHistory:h0,getToasts:g0});t0("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ni(n){return n.label!==void 0}const v0=3,y0="24px",w0="16px",Bu=4e3,x0=356,b0=14,k0=45,S0=200;function rn(...n){return n.filter(Boolean).join(" ")}function C0(n){const[o,i]=n.split("-"),a=[];return o&&a.push(o),i&&a.push(i),a}const E0=n=>{var o,i,a,l,u,f,p,m,g;const{invert:w,toast:h,unstyled:b,interacting:S,setHeights:E,visibleToasts:k,heights:C,index:N,toasts:P,expanded:R,removeToast:j,defaultRichColors:$,closeButton:z,style:O,cancelButtonStyle:D,actionButtonStyle:K,className:oe="",descriptionClassName:fe="",duration:ge,position:he,gap:ve,expandByDefault:Se,classNames:G,icons:te,closeButtonAriaLabel:H="Close toast"}=n,[q,B]=X.useState(null),[A,U]=X.useState(null),[ee,re]=X.useState(!1),[ne,se]=X.useState(!1),[Z,J]=X.useState(!1),[ae,Ce]=X.useState(!1),[Ne,Re]=X.useState(!1),[Fe,Be]=X.useState(0),[un,Kt]=X.useState(0),gt=X.useRef(h.duration||ge||Bu),kr=X.useRef(null),tt=X.useRef(null),Sr=N===0,Bn=N+1<=k,st=h.type,bn=h.dismissible!==!1,ys=h.className||"",ws=h.descriptionClassName||"",Cr=X.useMemo(()=>C.findIndex(_e=>_e.toastId===h.id)||0,[C,h.id]),Fo=X.useMemo(()=>{var _e;return(_e=h.closeButton)!=null?_e:z},[h.closeButton,z]),Er=X.useMemo(()=>h.duration||ge||Bu,[h.duration,ge]),eo=X.useRef(0),zt=X.useRef(0),Hn=X.useRef(0),Un=X.useRef(null),[xs,bs]=he.split("-"),ks=X.useMemo(()=>C.reduce((_e,Ge,Ze)=>Ze>=Cr?_e:_e+Ge.height,0),[C,Cr]),to=u0(),$o=h.invert||w,_r=st==="loading";zt.current=X.useMemo(()=>Cr*ve+ks,[Cr,ks]),X.useEffect(()=>{gt.current=Er},[Er]),X.useEffect(()=>{re(!0)},[]),X.useEffect(()=>{const _e=tt.current;if(_e){const Ge=_e.getBoundingClientRect().height;return Kt(Ge),E(Ze=>[{toastId:h.id,height:Ge,position:h.position},...Ze]),()=>E(Ze=>Ze.filter(dt=>dt.toastId!==h.id))}},[E,h.id]),X.useLayoutEffect(()=>{if(!ee)return;const _e=tt.current,Ge=_e.style.height;_e.style.height="auto";const Ze=_e.getBoundingClientRect().height;_e.style.height=Ge,Kt(Ze),E(dt=>dt.find(Xe=>Xe.toastId===h.id)?dt.map(Xe=>Xe.toastId===h.id?{...Xe,height:Ze}:Xe):[{toastId:h.id,height:Ze,position:h.position},...dt])},[ee,h.title,h.description,E,h.id,h.jsx,h.action,h.cancel]);const Lt=X.useCallback(()=>{se(!0),Be(zt.current),E(_e=>_e.filter(Ge=>Ge.toastId!==h.id)),setTimeout(()=>{j(h)},S0)},[h,j,E,zt]);X.useEffect(()=>{if(h.promise&&st==="loading"||h.duration===1/0||h.type==="loading")return;let _e;return R||S||to?(()=>{if(Hn.current<eo.current){const dt=new Date().getTime()-eo.current;gt.current=gt.current-dt}Hn.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(eo.current=new Date().getTime(),_e=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Lt()},gt.current))})(),()=>clearTimeout(_e)},[R,S,h,st,to,Lt]),X.useEffect(()=>{h.delete&&(Lt(),h.onDismiss==null||h.onDismiss.call(h,h))},[Lt,h.delete]);function Bo(){var _e;if(te!=null&&te.loading){var Ge;return X.createElement("div",{className:rn(G==null?void 0:G.loader,h==null||(Ge=h.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":st==="loading"},te.loading)}return X.createElement(o0,{className:rn(G==null?void 0:G.loader,h==null||(_e=h.classNames)==null?void 0:_e.loader),visible:st==="loading"})}const Vn=h.icon||(te==null?void 0:te[st])||n0(st);var kn,Ho;return X.createElement("li",{tabIndex:0,ref:tt,className:rn(oe,ys,G==null?void 0:G.toast,h==null||(o=h.classNames)==null?void 0:o.toast,G==null?void 0:G.default,G==null?void 0:G[st],h==null||(i=h.classNames)==null?void 0:i[st]),"data-sonner-toast":"","data-rich-colors":(kn=h.richColors)!=null?kn:$,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":ee,"data-promise":!!h.promise,"data-swiped":Ne,"data-removed":ne,"data-visible":Bn,"data-y-position":xs,"data-x-position":bs,"data-index":N,"data-front":Sr,"data-swiping":Z,"data-dismissible":bn,"data-type":st,"data-invert":$o,"data-swipe-out":ae,"data-swipe-direction":A,"data-expanded":!!(R||Se&&ee),"data-testid":h.testId,style:{"--index":N,"--toasts-before":N,"--z-index":P.length-N,"--offset":`${ne?Fe:zt.current}px`,"--initial-height":Se?"auto":`${un}px`,...O,...h.style},onDragEnd:()=>{J(!1),B(null),Un.current=null},onPointerDown:_e=>{_e.button!==2&&(_r||!bn||(kr.current=new Date,Be(zt.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(J(!0),Un.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,Ge,Ze;if(ae||!bn)return;Un.current=null;const dt=Number(((_e=tt.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wn=Number(((Ge=tt.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xe=new Date().getTime()-((Ze=kr.current)==null?void 0:Ze.getTime()),nt=q==="x"?dt:Wn,Gn=Math.abs(nt)/Xe;if(Math.abs(nt)>=k0||Gn>.11){Be(zt.current),h.onDismiss==null||h.onDismiss.call(h,h),U(q==="x"?dt>0?"right":"left":Wn>0?"down":"up"),Lt(),Ce(!0);return}else{var at,Pt;(at=tt.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Pt=tt.current)==null||Pt.style.setProperty("--swipe-amount-y","0px")}Re(!1),J(!1),B(null)},onPointerMove:_e=>{var Ge,Ze,dt;if(!Un.current||!bn||((Ge=window.getSelection())==null?void 0:Ge.toString().length)>0)return;const Xe=_e.clientY-Un.current.y,nt=_e.clientX-Un.current.x;var Gn;const at=(Gn=n.swipeDirections)!=null?Gn:C0(he);!q&&(Math.abs(nt)>1||Math.abs(Xe)>1)&&B(Math.abs(nt)>Math.abs(Xe)?"x":"y");let Pt={x:0,y:0};const Yn=Ot=>1/(1.5+Math.abs(Ot)/20);if(q==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&Xe<0||at.includes("bottom")&&Xe>0)Pt.y=Xe;else{const Ot=Xe*Yn(Xe);Pt.y=Math.abs(Ot)<Math.abs(Xe)?Ot:Xe}}else if(q==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&nt<0||at.includes("right")&&nt>0)Pt.x=nt;else{const Ot=nt*Yn(nt);Pt.x=Math.abs(Ot)<Math.abs(nt)?Ot:nt}(Math.abs(Pt.x)>0||Math.abs(Pt.y)>0)&&Re(!0),(Ze=tt.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Pt.x}px`),(dt=tt.current)==null||dt.style.setProperty("--swipe-amount-y",`${Pt.y}px`)}},Fo&&!h.jsx&&st!=="loading"?X.createElement("button",{"aria-label":H,"data-disabled":_r,"data-close-button":!0,onClick:_r||!bn?()=>{}:()=>{Lt(),h.onDismiss==null||h.onDismiss.call(h,h)},className:rn(G==null?void 0:G.closeButton,h==null||(a=h.classNames)==null?void 0:a.closeButton)},(Ho=te==null?void 0:te.close)!=null?Ho:c0):null,(st||h.icon||h.promise)&&h.icon!==null&&((te==null?void 0:te[st])!==null||h.icon)?X.createElement("div",{"data-icon":"",className:rn(G==null?void 0:G.icon,h==null||(l=h.classNames)==null?void 0:l.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Bo():null,h.type!=="loading"?Vn:null):null,X.createElement("div",{"data-content":"",className:rn(G==null?void 0:G.content,h==null||(u=h.classNames)==null?void 0:u.content)},X.createElement("div",{"data-title":"",className:rn(G==null?void 0:G.title,h==null||(f=h.classNames)==null?void 0:f.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?X.createElement("div",{"data-description":"",className:rn(fe,ws,G==null?void 0:G.description,h==null||(p=h.classNames)==null?void 0:p.description)},typeof h.description=="function"?h.description():h.description):null),X.isValidElement(h.cancel)?h.cancel:h.cancel&&Ni(h.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||D,onClick:_e=>{Ni(h.cancel)&&bn&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,_e),Lt())},className:rn(G==null?void 0:G.cancelButton,h==null||(m=h.classNames)==null?void 0:m.cancelButton)},h.cancel.label):null,X.isValidElement(h.action)?h.action:h.action&&Ni(h.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||K,onClick:_e=>{Ni(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,_e),!_e.defaultPrevented&&Lt())},className:rn(G==null?void 0:G.actionButton,h==null||(g=h.classNames)==null?void 0:g.actionButton)},h.action.label):null)};function Hu(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function _0(n,o){const i={};return[n,o].forEach((a,l)=>{const u=l===1,f=u?"--mobile-offset":"--offset",p=u?w0:y0;function m(g){["top","right","bottom","left"].forEach(w=>{i[`${f}-${w}`]=typeof g=="number"?`${g}px`:g})}typeof a=="number"||typeof a=="string"?m(a):typeof a=="object"?["top","right","bottom","left"].forEach(g=>{a[g]===void 0?i[`${f}-${g}`]=p:i[`${f}-${g}`]=typeof a[g]=="number"?`${a[g]}px`:a[g]}):m(p)}),i}const N0=X.forwardRef(function(o,i){const{id:a,invert:l,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:p,closeButton:m,className:g,offset:w,mobileOffset:h,theme:b="light",richColors:S,duration:E,style:k,visibleToasts:C=v0,toastOptions:N,dir:P=Hu(),gap:R=b0,icons:j,containerAriaLabel:$="Notifications"}=o,[z,O]=X.useState([]),D=X.useMemo(()=>a?z.filter(ee=>ee.toasterId===a):z.filter(ee=>!ee.toasterId),[z,a]),K=X.useMemo(()=>Array.from(new Set([u].concat(D.filter(ee=>ee.position).map(ee=>ee.position)))),[D,u]),[oe,fe]=X.useState([]),[ge,he]=X.useState(!1),[ve,Se]=X.useState(!1),[G,te]=X.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=X.useRef(null),q=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=X.useRef(null),A=X.useRef(!1),U=X.useCallback(ee=>{O(re=>{var ne;return(ne=re.find(se=>se.id===ee.id))!=null&&ne.delete||xt.dismiss(ee.id),re.filter(({id:se})=>se!==ee.id)})},[]);return X.useEffect(()=>xt.subscribe(ee=>{if(ee.dismiss){requestAnimationFrame(()=>{O(re=>re.map(ne=>ne.id===ee.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{$u.flushSync(()=>{O(re=>{const ne=re.findIndex(se=>se.id===ee.id);return ne!==-1?[...re.slice(0,ne),{...re[ne],...ee},...re.slice(ne+1)]:[ee,...re]})})})}),[z]),X.useEffect(()=>{if(b!=="system"){te(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:re})=>{te(re?"dark":"light")})}catch{ee.addListener(({matches:ne})=>{try{te(ne?"dark":"light")}catch(se){console.error(se)}})}},[b]),X.useEffect(()=>{z.length<=1&&he(!1)},[z]),X.useEffect(()=>{const ee=re=>{var ne;if(f.every(J=>re[J]||re.code===J)){var Z;he(!0),(Z=H.current)==null||Z.focus()}re.code==="Escape"&&(document.activeElement===H.current||(ne=H.current)!=null&&ne.contains(document.activeElement))&&he(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[f]),X.useEffect(()=>{if(H.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,A.current=!1)}},[H.current]),X.createElement("section",{ref:i,"aria-label":`${$} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((ee,re)=>{var ne;const[se,Z]=ee.split("-");return D.length?X.createElement("ol",{key:ee,dir:P==="auto"?Hu():P,tabIndex:-1,ref:H,className:g,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":se,"data-x-position":Z,style:{"--front-toast-height":`${((ne=oe[0])==null?void 0:ne.height)||0}px`,"--width":`${x0}px`,"--gap":`${R}px`,...k,..._0(w,h)},onBlur:J=>{A.current&&!J.currentTarget.contains(J.relatedTarget)&&(A.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A.current||(A.current=!0,B.current=J.relatedTarget)},onMouseEnter:()=>he(!0),onMouseMove:()=>he(!0),onMouseLeave:()=>{ve||he(!1)},onDragEnd:()=>he(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||Se(!0)},onPointerUp:()=>Se(!1)},D.filter(J=>!J.position&&re===0||J.position===ee).map((J,ae)=>{var Ce,Ne;return X.createElement(E0,{key:J.id,icons:j,index:ae,toast:J,defaultRichColors:S,duration:(Ce=N==null?void 0:N.duration)!=null?Ce:E,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:l,visibleToasts:C,closeButton:(Ne=N==null?void 0:N.closeButton)!=null?Ne:m,interacting:ve,position:ee,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:U,toasts:D.filter(Re=>Re.position==J.position),heights:oe.filter(Re=>Re.position==J.position),setHeights:fe,expandByDefault:p,gap:R,expanded:ge,swipeDirections:o.swipeDirections})})):null}))}),R0=n=>n.startsWith("http")&&!n.endsWith(".js"),Uu=n=>{try{const{hostname:o}=new URL(n);return o==="localhost"||o==="127.0.0.1"||o.endsWith(".trycloudflare.com")||o.endsWith(".ngrok-free.app")}catch{return!1}},P0=n=>{const o=n.replace(/-/g,"+").replace(/_/g,"/"),i=o+"=".repeat((4-o.length%4)%4);return atob(i)},T0=(n,o)=>{const i=n.indexOf(":");if(i===-1)return;const a=n.slice(0,i),l=n.slice(i+1);if(!(!a||!l)){if(!l.startsWith("http")){try{const u=JSON.parse(P0(l));if(u.url&&Uu(u.url))return{extensionId:a,bundleUrl:u.url,mode:o,token:u.token}}catch{}return}if(Uu(l))return{extensionId:a,bundleUrl:l,mode:o}}},Vu=(n,o,i)=>{const a=n.getAll(o);if(a.length===0)return[];const l=[];for(const u of a){const f=u.split(",");for(const p of f){const m=T0(p,i);m&&l.push(m)}}return l},Wu=n=>{const o=new URLSearchParams(n);try{const i=Vu(o,"_stackable_dev","dev"),a=Vu(o,"_stackable_staging","staging"),l=new Map;for(const u of i)l.set(u.extensionId,u);for(const u of a)l.set(u.extensionId,u);return Array.from(l.values())}catch{return[]}},I0=async(n,o)=>o.length===0?n:Promise.all(n.map(async i=>{const a=o.find(l=>l.extensionId===i.id);if(!a)return i;console.log(`[Stackable] Dev override active for ${i.id} → ${a.bundleUrl}`);try{const l=await fetch(`${a.bundleUrl}/manifest.json`);if(l.ok){const u=await l.json();return console.log(`[Stackable] Dev manifest loaded for ${i.id}`,u.permissions),{...i,bundleUrl:a.bundleUrl,manifest:u}}}catch{console.warn(`[Stackable] Could not fetch dev manifest for ${i.id}, using registry manifest`)}return{...i,bundleUrl:a.bundleUrl}}));/**
51
+ </html>`;a.srcdoc=m,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${m.substring(0,300)}`)}o.appendChild(a);const u={extensionId:n.id,iframe:a,manifest:n.manifest,ready:!1,messageHandlers:new Set},f=p=>{const m=p.data;!m||typeof m!="object"||!("type"in m)||("extensionId"in m?m.extensionId:void 0)!==n.id||(m.type==="extension-ready"&&(u.ready=!0),u.messageHandlers.forEach(w=>w(m)))};return window.addEventListener("message",f),mr.set(n.id,u),u},Ei=(n,o)=>{const i=mr.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}i.iframe.contentWindow.postMessage(o,"*")},$r=n=>mr.get(n),Hv=n=>{const o=mr.get(n);o&&(o.iframe.remove(),o.messageHandlers.clear(),mr.delete(n))},Uv=()=>mr,Lu={"ui-card":{description:"Card container for grouping related content",icon:"square",category:"layout",attributes:["className","onClick"],children:["ui-card-header","ui-card-content"]},"ui-card-content":{description:"Content area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-card-header":{description:"Header area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-button":{description:"Interactive button with variant and size options",icon:"mouse-pointer-click",category:"input",attributes:["variant","size","disabled","onClick","type","className","title"],attributeValues:{variant:["default","destructive","outline","secondary","ghost","link"],size:["default","xs","sm","lg","icon"]}},"ui-text":{description:"Paragraph text",icon:"type",category:"text",attributes:["className","tone"],attributeValues:{tone:["default","muted","destructive"]}},"ui-heading":{description:"Heading element (h1–h6)",icon:"heading",category:"text",attributes:["level","className"],attributeValues:{level:["1","2","3","4","5","6"]}},"ui-badge":{description:"Small label for status, category, or count",icon:"tag",category:"text",attributes:["variant","hue","tone","className"],attributeValues:{variant:["default","secondary","destructive","outline","ghost","link"],hue:["amber","blue","emerald","red","purple","pink","gray"],tone:["default","muted","destructive"]}},"ui-input":{description:"Single-line text input field",icon:"text-cursor-input",category:"input",attributes:["type","placeholder","value","onChange","disabled","className","id"]},"ui-textarea":{description:"Multi-line text input field",icon:"text",category:"input",attributes:["placeholder","value","onChange","disabled","rows","className","id"]},"ui-select":{description:"Dropdown select with options",icon:"chevrons-up-down",category:"input",attributes:["value","defaultValue","onChange","placeholder","disabled","className"],children:["ui-select-option"]},"ui-select-option":{description:"Option within a Select dropdown",icon:"chevrons-up-down",category:"input",attributes:["value","disabled","className"]},"ui-checkbox":{description:"Checkbox toggle for boolean values",icon:"square-check",category:"input",attributes:["checked","onChange","disabled","className","id"]},"ui-switch":{description:"Toggle switch for on/off states",icon:"toggle-left",category:"input",attributes:["checked","onChange","disabled","size","className","id"],attributeValues:{size:["sm","default"]}},"ui-label":{description:"Form label associated with an input",icon:"tag",category:"input",attributes:["htmlFor","className"]},"ui-radio-group":{description:"Group of radio buttons for single selection",icon:"circle-dot",category:"input",attributes:["value","defaultValue","onChange","className"],children:["ui-radio-group-item","ui-label","ui-inline"]},"ui-radio-group-item":{description:"Individual radio button within a RadioGroup",icon:"circle-dot",category:"input",attributes:["value","disabled","className","id"]},"ui-stack":{description:"Vertical or horizontal flex container with gap",icon:"rows-3",category:"layout",attributes:["gap","direction","className"],attributeValues:{direction:["row","column"],gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-inline":{description:"Horizontal flex container with centered items",icon:"columns-3",category:"layout",attributes:["gap","className"],attributeValues:{gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-separator":{description:"Horizontal divider line",icon:"minus",category:"layout",attributes:["className"]},"ui-tabs":{description:"Tabbed content container",icon:"panel-top",category:"navigation",attributes:["defaultValue","className"],children:["ui-tabs-list","ui-tabs-content"]},"ui-tabs-list":{description:"Container for tab triggers",icon:"panel-top",category:"navigation",attributes:["className"],children:["ui-tabs-trigger"]},"ui-tabs-trigger":{description:"Clickable tab label within TabsList",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-tabs-content":{description:"Content panel shown when its tab is active",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-scroll-area":{description:"Scrollable content container",icon:"scroll",category:"layout",attributes:["className"]},"ui-avatar":{description:"User avatar with image and initials fallback",icon:"circle-user",category:"composite",attributes:["src","alt","className"]},"ui-icon":{description:"Icon from the allowed icon set",icon:"sparkles",category:"composite",attributes:["name","size","className"],attributeValues:{size:["sm","md","lg"]}},"ui-link":{description:"Hyperlink element",icon:"link",category:"navigation",attributes:["href","target","rel","className"]},"ui-menu":{description:"Card-based menu with clickable items",icon:"menu",category:"navigation",attributes:["title","className"],children:["ui-menu-item"]},"ui-menu-item":{description:"Clickable item within a Menu",icon:"menu",category:"navigation",attributes:["icon","label","description","onClick","className"]},"ui-skeleton":{description:"Loading placeholder with shimmer effect",icon:"loader",category:"feedback",attributes:["width","height","className"]},"ui-tooltip":{description:"Hover tooltip with text content",icon:"message-square",category:"feedback",attributes:["content","className"]},"ui-progress":{description:"Progress bar with percentage value",icon:"bar-chart",category:"feedback",attributes:["value","className"]},"ui-alert":{description:"Alert banner with icon and optional title",icon:"alert-circle",category:"feedback",attributes:["variant","title","className"],attributeValues:{variant:["default","destructive"]}},"ui-collapsible":{description:"Expandable/collapsible content section",icon:"chevrons-down-up",category:"composite",attributes:["defaultOpen","className"],children:["ui-collapsible-trigger","ui-collapsible-content"]},"ui-collapsible-trigger":{description:"Clickable trigger to toggle Collapsible",icon:"chevrons-down-up",category:"composite",attributes:["className"]},"ui-collapsible-content":{description:"Content revealed when Collapsible is open",icon:"chevrons-down-up",category:"composite",attributes:["className"]}},Br=Lu,_o=Object.keys(Lu),Vv=Object.fromEntries(_o.map(n=>[n,Br[n].attributes]));Object.fromEntries(_o.filter(n=>Br[n].attributeValues).map(n=>[n,Br[n].attributeValues]));const Wv=Object.fromEntries(_o.filter(n=>Br[n].children).map(n=>[n,Br[n].children]));Object.fromEntries(_o.map(n=>[n,Br[n].category]));const Gv={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke"},Ou={ADMIN:"org:super_admin"},Du={ADMIN:"org:admin",OWNER:"org:owner"},Yv=[Ou.ADMIN,Du.ADMIN,Du.OWNER];[...Object.values(Ou),...Object.values(Yv)];const Kv=n=>{const o=async i=>{const a=i.data;if((a==null?void 0:a.type)!=="capability-request")return;const l=a;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const u=l.extensionId;if(!u||!$r(u)){const m=[...Uv().keys()];console.warn(`Received capability request from unknown source (extensionId: "${u??"undefined"}", registered: [${m.join(", ")}], capability: ${l.capability})`);return}const f=$r(u);if(!f)return;const p=Gv[l.capability];if(p&&!f.manifest.permissions.includes(p)){const m={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${p}' not granted for extension '${u}'`};Ei(u,m);return}try{let m;switch(l.capability){case"data.query":m=await n["data.query"](l.payload);break;case"data.fetch":m=await n["data.fetch"](u,l.payload);break;case"actions.toast":m=await n["actions.toast"](u,l.payload);break;case"actions.invoke":m=await n["actions.invoke"](l.payload);break;case"context.read":m=await n["context.read"]();break;default:throw new Error(`Unknown capability: ${l.capability}`)}const g={type:"capability-response",id:l.id,success:!0,data:m};Ei(u,g)}catch(m){const g={type:"capability-response",id:l.id,success:!1,error:m instanceof Error?m.message:"Unknown error"};Ei(u,g)}};return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Fu=v.createContext({extensions:[],components:{},ready:!1}),Xv=({extensions:n,capabilityHandlers:o,components:i={},children:a})=>{const[l,u]=v.useState(!1),f=v.useRef(null),p=v.useRef(null);return v.useEffect(()=>{if(!f.current)return;let m=!1;return(async()=>{const w=f.current;if(w){console.log("[ExtensionProvider] Initializing with",n.length,"extensions"),p.current=Kv(o);for(const h of n)h.enabled&&!m&&(console.log("[ExtensionProvider] Creating sandbox for",h.id,"bundleUrl:",h.bundleUrl),await Bv(h,w),console.log("[ExtensionProvider] Sandbox created for",h.id));m||(console.log("[ExtensionProvider] Ready"),u(!0))}})(),()=>{var w;m=!0;for(const h of n)Hv(h.id);(w=p.current)==null||w.call(p)}},[n,o]),y.jsxs(Fu.Provider,{value:{extensions:n,components:i,ready:l},children:[y.jsx("div",{ref:f,style:{display:"none"}}),a]})},Qv=()=>v.useContext(Fu),qv=n=>_o.includes(n),Zv=(n,o={})=>{const{surfaceId:i,logPrefix:a="[NodeRenderer]"}=o,l=(u,f,p=0)=>{var S,E,k;if(u.type==="text")return u.text||null;if(!u.tag)return null;if(u.tag==="__fragment")return y.jsx(K.Fragment,{children:(S=u.children)==null?void 0:S.map((C,N)=>l(C,f,N))},p);if(!qv(u.tag))return console.warn(`${a} Unknown UI tag rejected: <${u.tag}>`),null;const m=n[u.tag];if(!m)return u.tag.startsWith("ui-")?(console.warn(`${a} Unregistered UI tag: <${u.tag}>`),null):y.jsx(K.Fragment,{children:(E=u.children)==null?void 0:E.map((C,N)=>l(C,f,N))},p);const{filtered:g,stripped:w}=Jv(u.tag,u.attrs);w.length>0&&console.warn(`${a} Attributes not allowed on <${u.tag}>, stripped: ${w.join(", ")}`);const h=e0(u.tag,u.children);if(h.length>0&&console.warn(`${a} Invalid children in <${u.tag}>: ${h.join(", ")}`),u.actionId){const C=u.actionId;g.onClick=()=>{const N=f;N==null||N.postMessage({type:"action-invoke",surfaceId:i,actionId:C},"*")}}if(g["data-onchange-id"]){const C=g["data-onchange-id"];delete g["data-onchange-id"],g.onChange=N=>{const P=f;P==null||P.postMessage({type:"action-invoke",surfaceId:i,actionId:C,value:N.target.value},"*")}}const b=(k=u.children)==null?void 0:k.map((C,N)=>l(C,f,N));return v.createElement(m,{...g,key:p},b&&b.length>0?b:void 0)};return l},Jv=(n,o)=>{const i={},a=[];if(!o)return{filtered:i,stripped:a};const l=Vv[n];for(const[u,f]of Object.entries(o)){if(u==="data-onchange-id"){i[u]=f;continue}l!=null&&l.includes(u)?i[u]=f:a.push(u)}return{filtered:i,stripped:a}},e0=(n,o)=>{const i=Wv[n];if(!i||!o)return[];const a=[];for(const l of o)l.type!=="text"&&(!l.tag||l.tag==="__fragment"||i.includes(l.tag)||a.push(l.tag));return a},_i=({target:n,context:o,className:i,separator:a,fallback:l=null,render:u})=>{const{extensions:f,components:p,ready:m}=Qv(),[g,w]=v.useState({}),h=v.useRef(""),b=v.useMemo(()=>f.filter(C=>C.enabled&&C.manifest.targets.includes(n)),[f.map(C=>C.id).join(","),n]),S=v.useMemo(()=>Zv(p,{surfaceId:n,logPrefix:"[ExtensionSlot]"}),[n,p]);if(v.useEffect(()=>{const C=b.map(P=>P.id).join(",");if(h.current!==C&&(h.current=C,w({})),!m||b.length===0)return;const N=P=>{const R=P.data;if(!(!R||typeof R!="object"||!b.some($=>{const z=$r($.id);return z&&P.source===z.iframe.contentWindow}))){if(R.type==="surface-update"&&R.surfaceId===n){const $=b.find(O=>{const D=$r(O.id);return D&&P.source===D.iframe.contentWindow});if(!$)return;const z=S(R.tree,P.source??null);w(O=>({...O,[$.id]:z}))}R.type==="surface-ready"&&R.surfaceId===n&&o&&b.forEach($=>{var O;const z=$r($.id);(O=z==null?void 0:z.iframe.contentWindow)==null||O.postMessage({type:"context-update",surfaceId:n,context:o},"*")})}};return window.addEventListener("message",N),b.forEach(P=>{var j;const R=$r(P.id);(j=R==null?void 0:R.iframe.contentWindow)==null||j.postMessage({type:"surface-render",surfaceId:n,context:o},"*")}),()=>{window.removeEventListener("message",N)}},[m,b,n,o,S]),!m)return null;if(b.length===0)return l?y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const E=b.map(C=>({id:C.id,children:g[C.id]})).filter(C=>!!C.children),k=E.length>0?E.flatMap((C,N,P)=>{const R=u?u({extensionId:C.id,children:C.children,index:N,total:P.length}):y.jsx(K.Fragment,{children:C.children},C.id),j=y.jsx(K.Fragment,{children:R},`extension:${C.id}`);if(N===0||!a)return[j];const $=P[N-1],z=typeof a=="function"?a({index:N,total:P.length,previousExtensionId:$.id,extensionId:C.id}):a;return[y.jsx(K.Fragment,{children:z},`separator:${$.id}:${C.id}:${N}`),j]}):l;return y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:k})};var No=ju();const $u=nn(No);function t0(n){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}const n0=n=>{switch(n){case"success":return i0;case"info":return a0;case"warning":return s0;case"error":return l0;default:return null}},r0=Array(12).fill(0),o0=({visible:n,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":n},K.createElement("div",{className:"sonner-spinner"},r0.map((i,a)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),i0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),a0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),c0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),u0=()=>{const[n,o]=K.useState(document.hidden);return K.useEffect(()=>{const i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n};let Aa=1;class d0{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const i=this.subscribers.indexOf(o);this.subscribers.splice(i,1)}),this.publish=o=>{this.subscribers.forEach(i=>i(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var i;const{message:a,...l}=o,u=typeof(o==null?void 0:o.id)=="number"||((i=o.id)==null?void 0:i.length)>0?o.id:Aa++,f=this.toasts.find(m=>m.id===u),p=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(m=>m.id===u?(this.publish({...m,...o,id:u,title:a}),{...m,...o,id:u,dismissible:p,title:a}):m):this.addToast({title:a,...l,dismissible:p,id:u}),u},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:o,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(a=>a({id:i.id,dismiss:!0}))}),o),this.message=(o,i)=>this.create({...i,message:o}),this.error=(o,i)=>this.create({...i,message:o,type:"error"}),this.success=(o,i)=>this.create({...i,type:"success",message:o}),this.info=(o,i)=>this.create({...i,type:"info",message:o}),this.warning=(o,i)=>this.create({...i,type:"warning",message:o}),this.loading=(o,i)=>this.create({...i,type:"loading",message:o}),this.promise=(o,i)=>{if(!i)return;let a;i.loading!==void 0&&(a=this.create({...i,promise:o,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const l=Promise.resolve(o instanceof Function?o():o);let u=a!==void 0,f;const p=l.then(async g=>{if(f=["resolve",g],K.isValidElement(g))u=!1,this.create({id:a,type:"default",message:g});else if(p0(g)&&!g.ok){u=!1;const h=typeof i.error=="function"?await i.error(`HTTP error! status: ${g.status}`):i.error,b=typeof i.description=="function"?await i.description(`HTTP error! status: ${g.status}`):i.description,E=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:b,...E})}else if(g instanceof Error){u=!1;const h=typeof i.error=="function"?await i.error(g):i.error,b=typeof i.description=="function"?await i.description(g):i.description,E=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:b,...E})}else if(i.success!==void 0){u=!1;const h=typeof i.success=="function"?await i.success(g):i.success,b=typeof i.description=="function"?await i.description(g):i.description,E=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"success",description:b,...E})}}).catch(async g=>{if(f=["reject",g],i.error!==void 0){u=!1;const w=typeof i.error=="function"?await i.error(g):i.error,h=typeof i.description=="function"?await i.description(g):i.description,S=typeof w=="object"&&!K.isValidElement(w)?w:{message:w};this.create({id:a,type:"error",description:h,...S})}}).finally(()=>{u&&(this.dismiss(a),a=void 0),i.finally==null||i.finally.call(i)}),m=()=>new Promise((g,w)=>p.then(()=>f[0]==="reject"?w(f[1]):g(f[1])).catch(w));return typeof a!="string"&&typeof a!="number"?{unwrap:m}:Object.assign(a,{unwrap:m})},this.custom=(o,i)=>{const a=(i==null?void 0:i.id)||Aa++;return this.create({jsx:o(a),id:a,...i}),a},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xt=new d0,f0=(n,o)=>{const i=(o==null?void 0:o.id)||Aa++;return xt.addToast({title:n,...o,id:i}),i},p0=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",m0=f0,h0=()=>xt.toasts,g0=()=>xt.getActiveToasts(),Hr=Object.assign(m0,{success:xt.success,info:xt.info,warning:xt.warning,error:xt.error,custom:xt.custom,message:xt.message,promise:xt.promise,dismiss:xt.dismiss,loading:xt.loading},{getHistory:h0,getToasts:g0});t0("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ni(n){return n.label!==void 0}const v0=3,y0="24px",w0="16px",Bu=4e3,x0=356,b0=14,k0=45,S0=200;function rn(...n){return n.filter(Boolean).join(" ")}function C0(n){const[o,i]=n.split("-"),a=[];return o&&a.push(o),i&&a.push(i),a}const E0=n=>{var o,i,a,l,u,f,p,m,g;const{invert:w,toast:h,unstyled:b,interacting:S,setHeights:E,visibleToasts:k,heights:C,index:N,toasts:P,expanded:R,removeToast:j,defaultRichColors:$,closeButton:z,style:O,cancelButtonStyle:D,actionButtonStyle:X,className:oe="",descriptionClassName:fe="",duration:ge,position:he,gap:ve,expandByDefault:Se,classNames:G,icons:te,closeButtonAriaLabel:H="Close toast"}=n,[q,B]=K.useState(null),[A,U]=K.useState(null),[ee,re]=K.useState(!1),[ne,se]=K.useState(!1),[Z,J]=K.useState(!1),[ae,Ce]=K.useState(!1),[Ne,Re]=K.useState(!1),[Fe,Be]=K.useState(0),[un,Kt]=K.useState(0),gt=K.useRef(h.duration||ge||Bu),kr=K.useRef(null),tt=K.useRef(null),Sr=N===0,Bn=N+1<=k,st=h.type,bn=h.dismissible!==!1,ys=h.className||"",ws=h.descriptionClassName||"",Cr=K.useMemo(()=>C.findIndex(_e=>_e.toastId===h.id)||0,[C,h.id]),Fo=K.useMemo(()=>{var _e;return(_e=h.closeButton)!=null?_e:z},[h.closeButton,z]),Er=K.useMemo(()=>h.duration||ge||Bu,[h.duration,ge]),eo=K.useRef(0),zt=K.useRef(0),Hn=K.useRef(0),Un=K.useRef(null),[xs,bs]=he.split("-"),ks=K.useMemo(()=>C.reduce((_e,Ge,Ze)=>Ze>=Cr?_e:_e+Ge.height,0),[C,Cr]),to=u0(),$o=h.invert||w,_r=st==="loading";zt.current=K.useMemo(()=>Cr*ve+ks,[Cr,ks]),K.useEffect(()=>{gt.current=Er},[Er]),K.useEffect(()=>{re(!0)},[]),K.useEffect(()=>{const _e=tt.current;if(_e){const Ge=_e.getBoundingClientRect().height;return Kt(Ge),E(Ze=>[{toastId:h.id,height:Ge,position:h.position},...Ze]),()=>E(Ze=>Ze.filter(dt=>dt.toastId!==h.id))}},[E,h.id]),K.useLayoutEffect(()=>{if(!ee)return;const _e=tt.current,Ge=_e.style.height;_e.style.height="auto";const Ze=_e.getBoundingClientRect().height;_e.style.height=Ge,Kt(Ze),E(dt=>dt.find(Xe=>Xe.toastId===h.id)?dt.map(Xe=>Xe.toastId===h.id?{...Xe,height:Ze}:Xe):[{toastId:h.id,height:Ze,position:h.position},...dt])},[ee,h.title,h.description,E,h.id,h.jsx,h.action,h.cancel]);const Lt=K.useCallback(()=>{se(!0),Be(zt.current),E(_e=>_e.filter(Ge=>Ge.toastId!==h.id)),setTimeout(()=>{j(h)},S0)},[h,j,E,zt]);K.useEffect(()=>{if(h.promise&&st==="loading"||h.duration===1/0||h.type==="loading")return;let _e;return R||S||to?(()=>{if(Hn.current<eo.current){const dt=new Date().getTime()-eo.current;gt.current=gt.current-dt}Hn.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(eo.current=new Date().getTime(),_e=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Lt()},gt.current))})(),()=>clearTimeout(_e)},[R,S,h,st,to,Lt]),K.useEffect(()=>{h.delete&&(Lt(),h.onDismiss==null||h.onDismiss.call(h,h))},[Lt,h.delete]);function Bo(){var _e;if(te!=null&&te.loading){var Ge;return K.createElement("div",{className:rn(G==null?void 0:G.loader,h==null||(Ge=h.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":st==="loading"},te.loading)}return K.createElement(o0,{className:rn(G==null?void 0:G.loader,h==null||(_e=h.classNames)==null?void 0:_e.loader),visible:st==="loading"})}const Vn=h.icon||(te==null?void 0:te[st])||n0(st);var kn,Ho;return K.createElement("li",{tabIndex:0,ref:tt,className:rn(oe,ys,G==null?void 0:G.toast,h==null||(o=h.classNames)==null?void 0:o.toast,G==null?void 0:G.default,G==null?void 0:G[st],h==null||(i=h.classNames)==null?void 0:i[st]),"data-sonner-toast":"","data-rich-colors":(kn=h.richColors)!=null?kn:$,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":ee,"data-promise":!!h.promise,"data-swiped":Ne,"data-removed":ne,"data-visible":Bn,"data-y-position":xs,"data-x-position":bs,"data-index":N,"data-front":Sr,"data-swiping":Z,"data-dismissible":bn,"data-type":st,"data-invert":$o,"data-swipe-out":ae,"data-swipe-direction":A,"data-expanded":!!(R||Se&&ee),"data-testid":h.testId,style:{"--index":N,"--toasts-before":N,"--z-index":P.length-N,"--offset":`${ne?Fe:zt.current}px`,"--initial-height":Se?"auto":`${un}px`,...O,...h.style},onDragEnd:()=>{J(!1),B(null),Un.current=null},onPointerDown:_e=>{_e.button!==2&&(_r||!bn||(kr.current=new Date,Be(zt.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(J(!0),Un.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,Ge,Ze;if(ae||!bn)return;Un.current=null;const dt=Number(((_e=tt.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wn=Number(((Ge=tt.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xe=new Date().getTime()-((Ze=kr.current)==null?void 0:Ze.getTime()),nt=q==="x"?dt:Wn,Gn=Math.abs(nt)/Xe;if(Math.abs(nt)>=k0||Gn>.11){Be(zt.current),h.onDismiss==null||h.onDismiss.call(h,h),U(q==="x"?dt>0?"right":"left":Wn>0?"down":"up"),Lt(),Ce(!0);return}else{var at,Pt;(at=tt.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Pt=tt.current)==null||Pt.style.setProperty("--swipe-amount-y","0px")}Re(!1),J(!1),B(null)},onPointerMove:_e=>{var Ge,Ze,dt;if(!Un.current||!bn||((Ge=window.getSelection())==null?void 0:Ge.toString().length)>0)return;const Xe=_e.clientY-Un.current.y,nt=_e.clientX-Un.current.x;var Gn;const at=(Gn=n.swipeDirections)!=null?Gn:C0(he);!q&&(Math.abs(nt)>1||Math.abs(Xe)>1)&&B(Math.abs(nt)>Math.abs(Xe)?"x":"y");let Pt={x:0,y:0};const Yn=Ot=>1/(1.5+Math.abs(Ot)/20);if(q==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&Xe<0||at.includes("bottom")&&Xe>0)Pt.y=Xe;else{const Ot=Xe*Yn(Xe);Pt.y=Math.abs(Ot)<Math.abs(Xe)?Ot:Xe}}else if(q==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&nt<0||at.includes("right")&&nt>0)Pt.x=nt;else{const Ot=nt*Yn(nt);Pt.x=Math.abs(Ot)<Math.abs(nt)?Ot:nt}(Math.abs(Pt.x)>0||Math.abs(Pt.y)>0)&&Re(!0),(Ze=tt.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Pt.x}px`),(dt=tt.current)==null||dt.style.setProperty("--swipe-amount-y",`${Pt.y}px`)}},Fo&&!h.jsx&&st!=="loading"?K.createElement("button",{"aria-label":H,"data-disabled":_r,"data-close-button":!0,onClick:_r||!bn?()=>{}:()=>{Lt(),h.onDismiss==null||h.onDismiss.call(h,h)},className:rn(G==null?void 0:G.closeButton,h==null||(a=h.classNames)==null?void 0:a.closeButton)},(Ho=te==null?void 0:te.close)!=null?Ho:c0):null,(st||h.icon||h.promise)&&h.icon!==null&&((te==null?void 0:te[st])!==null||h.icon)?K.createElement("div",{"data-icon":"",className:rn(G==null?void 0:G.icon,h==null||(l=h.classNames)==null?void 0:l.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Bo():null,h.type!=="loading"?Vn:null):null,K.createElement("div",{"data-content":"",className:rn(G==null?void 0:G.content,h==null||(u=h.classNames)==null?void 0:u.content)},K.createElement("div",{"data-title":"",className:rn(G==null?void 0:G.title,h==null||(f=h.classNames)==null?void 0:f.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?K.createElement("div",{"data-description":"",className:rn(fe,ws,G==null?void 0:G.description,h==null||(p=h.classNames)==null?void 0:p.description)},typeof h.description=="function"?h.description():h.description):null),K.isValidElement(h.cancel)?h.cancel:h.cancel&&Ni(h.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||D,onClick:_e=>{Ni(h.cancel)&&bn&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,_e),Lt())},className:rn(G==null?void 0:G.cancelButton,h==null||(m=h.classNames)==null?void 0:m.cancelButton)},h.cancel.label):null,K.isValidElement(h.action)?h.action:h.action&&Ni(h.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||X,onClick:_e=>{Ni(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,_e),!_e.defaultPrevented&&Lt())},className:rn(G==null?void 0:G.actionButton,h==null||(g=h.classNames)==null?void 0:g.actionButton)},h.action.label):null)};function Hu(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function _0(n,o){const i={};return[n,o].forEach((a,l)=>{const u=l===1,f=u?"--mobile-offset":"--offset",p=u?w0:y0;function m(g){["top","right","bottom","left"].forEach(w=>{i[`${f}-${w}`]=typeof g=="number"?`${g}px`:g})}typeof a=="number"||typeof a=="string"?m(a):typeof a=="object"?["top","right","bottom","left"].forEach(g=>{a[g]===void 0?i[`${f}-${g}`]=p:i[`${f}-${g}`]=typeof a[g]=="number"?`${a[g]}px`:a[g]}):m(p)}),i}const N0=K.forwardRef(function(o,i){const{id:a,invert:l,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:p,closeButton:m,className:g,offset:w,mobileOffset:h,theme:b="light",richColors:S,duration:E,style:k,visibleToasts:C=v0,toastOptions:N,dir:P=Hu(),gap:R=b0,icons:j,containerAriaLabel:$="Notifications"}=o,[z,O]=K.useState([]),D=K.useMemo(()=>a?z.filter(ee=>ee.toasterId===a):z.filter(ee=>!ee.toasterId),[z,a]),X=K.useMemo(()=>Array.from(new Set([u].concat(D.filter(ee=>ee.position).map(ee=>ee.position)))),[D,u]),[oe,fe]=K.useState([]),[ge,he]=K.useState(!1),[ve,Se]=K.useState(!1),[G,te]=K.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=K.useRef(null),q=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=K.useRef(null),A=K.useRef(!1),U=K.useCallback(ee=>{O(re=>{var ne;return(ne=re.find(se=>se.id===ee.id))!=null&&ne.delete||xt.dismiss(ee.id),re.filter(({id:se})=>se!==ee.id)})},[]);return K.useEffect(()=>xt.subscribe(ee=>{if(ee.dismiss){requestAnimationFrame(()=>{O(re=>re.map(ne=>ne.id===ee.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{$u.flushSync(()=>{O(re=>{const ne=re.findIndex(se=>se.id===ee.id);return ne!==-1?[...re.slice(0,ne),{...re[ne],...ee},...re.slice(ne+1)]:[ee,...re]})})})}),[z]),K.useEffect(()=>{if(b!=="system"){te(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:re})=>{te(re?"dark":"light")})}catch{ee.addListener(({matches:ne})=>{try{te(ne?"dark":"light")}catch(se){console.error(se)}})}},[b]),K.useEffect(()=>{z.length<=1&&he(!1)},[z]),K.useEffect(()=>{const ee=re=>{var ne;if(f.every(J=>re[J]||re.code===J)){var Z;he(!0),(Z=H.current)==null||Z.focus()}re.code==="Escape"&&(document.activeElement===H.current||(ne=H.current)!=null&&ne.contains(document.activeElement))&&he(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[f]),K.useEffect(()=>{if(H.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,A.current=!1)}},[H.current]),K.createElement("section",{ref:i,"aria-label":`${$} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((ee,re)=>{var ne;const[se,Z]=ee.split("-");return D.length?K.createElement("ol",{key:ee,dir:P==="auto"?Hu():P,tabIndex:-1,ref:H,className:g,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":se,"data-x-position":Z,style:{"--front-toast-height":`${((ne=oe[0])==null?void 0:ne.height)||0}px`,"--width":`${x0}px`,"--gap":`${R}px`,...k,..._0(w,h)},onBlur:J=>{A.current&&!J.currentTarget.contains(J.relatedTarget)&&(A.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A.current||(A.current=!0,B.current=J.relatedTarget)},onMouseEnter:()=>he(!0),onMouseMove:()=>he(!0),onMouseLeave:()=>{ve||he(!1)},onDragEnd:()=>he(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||Se(!0)},onPointerUp:()=>Se(!1)},D.filter(J=>!J.position&&re===0||J.position===ee).map((J,ae)=>{var Ce,Ne;return K.createElement(E0,{key:J.id,icons:j,index:ae,toast:J,defaultRichColors:S,duration:(Ce=N==null?void 0:N.duration)!=null?Ce:E,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:l,visibleToasts:C,closeButton:(Ne=N==null?void 0:N.closeButton)!=null?Ne:m,interacting:ve,position:ee,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:U,toasts:D.filter(Re=>Re.position==J.position),heights:oe.filter(Re=>Re.position==J.position),setHeights:fe,expandByDefault:p,gap:R,expanded:ge,swipeDirections:o.swipeDirections})})):null}))}),R0=n=>n.startsWith("http")&&!n.endsWith(".js"),Uu=n=>{try{const{hostname:o}=new URL(n);return o==="localhost"||o==="127.0.0.1"||o.endsWith(".trycloudflare.com")||o.endsWith(".ngrok-free.app")}catch{return!1}},P0=n=>{const o=n.replace(/-/g,"+").replace(/_/g,"/"),i=o+"=".repeat((4-o.length%4)%4);return atob(i)},T0=(n,o)=>{const i=n.indexOf(":");if(i===-1)return;const a=n.slice(0,i),l=n.slice(i+1);if(!(!a||!l)){if(!l.startsWith("http")){try{const u=JSON.parse(P0(l));if(u.url&&Uu(u.url))return{extensionId:a,bundleUrl:u.url,mode:o,token:u.token}}catch{}return}if(Uu(l))return{extensionId:a,bundleUrl:l,mode:o}}},Vu=(n,o,i)=>{const a=n.getAll(o);if(a.length===0)return[];const l=[];for(const u of a){const f=u.split(",");for(const p of f){const m=T0(p,i);m&&l.push(m)}}return l},Wu=n=>{const o=new URLSearchParams(n);try{const i=Vu(o,"_stackable_dev","dev"),a=Vu(o,"_stackable_staging","staging"),l=new Map;for(const u of i)l.set(u.extensionId,u);for(const u of a)l.set(u.extensionId,u);return Array.from(l.values())}catch{return[]}},I0=async(n,o)=>o.length===0?n:Promise.all(n.map(async i=>{const a=o.find(l=>l.extensionId===i.id);if(!a)return i;console.log(`[Stackable] Dev override active for ${i.id} → ${a.bundleUrl}`);try{const l=await fetch(`${a.bundleUrl}/manifest.json`);if(l.ok){const u=await l.json();return console.log(`[Stackable] Dev manifest loaded for ${i.id}`,u.permissions),{...i,bundleUrl:a.bundleUrl,manifest:u}}}catch{console.warn(`[Stackable] Could not fetch dev manifest for ${i.id}, using registry manifest`)}return{...i,bundleUrl:a.bundleUrl}}));/**
52
52
  * @license lucide-react v0.577.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
@@ -248,7 +248,7 @@ Error generating stack: `+d.message+`
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const Ju=je("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function ed(n){var o,i,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(o=0;o<l;o++)n[o]&&(i=ed(n[o]))&&(a&&(a+=" "),a+=i)}else for(i in n)n[i]&&(a&&(a+=" "),a+=i);return a}function td(){for(var n,o,i=0,a="",l=arguments.length;i<l;i++)(n=arguments[i])&&(o=ed(n))&&(a&&(a+=" "),a+=o);return a}const iy=(n,o)=>{const i=new Array(n.length+o.length);for(let a=0;a<n.length;a++)i[a]=n[a];for(let a=0;a<o.length;a++)i[n.length+a]=o[a];return i},sy=(n,o)=>({classGroupId:n,validator:o}),nd=(n=new Map,o=null,i)=>({nextPart:n,validators:o,classGroupId:i}),Pi="-",rd=[],ay="arbitrary..",ly=n=>{const o=uy(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return cy(f);const p=f.split(Pi),m=p[0]===""&&p.length>1?1:0;return od(p,m,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const m=a[f],g=i[f];return m?g?iy(g,m):m:g||rd}return i[f]||rd}}},od=(n,o,i)=>{if(n.length-o===0)return i.classGroupId;const l=n[o],u=i.nextPart.get(l);if(u){const g=od(n,o+1,u);if(g)return g}const f=i.validators;if(f===null)return;const p=o===0?n.join(Pi):n.slice(o).join(Pi),m=f.length;for(let g=0;g<m;g++){const w=f[g];if(w.validator(p))return w.classGroupId}},cy=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),i=o.indexOf(":"),a=o.slice(0,i);return a?ay+a:void 0})(),uy=n=>{const{theme:o,classGroups:i}=n;return dy(i,o)},dy=(n,o)=>{const i=nd();for(const a in n){const l=n[a];La(l,i,a,o)}return i},La=(n,o,i,a)=>{const l=n.length;for(let u=0;u<l;u++){const f=n[u];fy(f,o,i,a)}},fy=(n,o,i,a)=>{if(typeof n=="string"){py(n,o,i);return}if(typeof n=="function"){my(n,o,i,a);return}hy(n,o,i,a)},py=(n,o,i)=>{const a=n===""?o:id(o,n);a.classGroupId=i},my=(n,o,i,a)=>{if(gy(n)){La(n(a),o,i,a);return}o.validators===null&&(o.validators=[]),o.validators.push(sy(i,n))},hy=(n,o,i,a)=>{const l=Object.entries(n),u=l.length;for(let f=0;f<u;f++){const[p,m]=l[f];La(m,id(o,p),i,a)}},id=(n,o)=>{let i=n;const a=o.split(Pi),l=a.length;for(let u=0;u<l;u++){const f=a[u];let p=i.nextPart.get(f);p||(p=nd(),i.nextPart.set(f,p)),i=p}return i},gy=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,vy=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,i=Object.create(null),a=Object.create(null);const l=(u,f)=>{i[u]=f,o++,o>n&&(o=0,a=i,i=Object.create(null))};return{get(u){let f=i[u];if(f!==void 0)return f;if((f=a[u])!==void 0)return l(u,f),f},set(u,f){u in i?i[u]=f:l(u,f)}}},Oa="!",sd=":",yy=[],ad=(n,o,i,a,l)=>({modifiers:n,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),wy=n=>{const{prefix:o,experimentalParseClassName:i}=n;let a=l=>{const u=[];let f=0,p=0,m=0,g;const w=l.length;for(let k=0;k<w;k++){const C=l[k];if(f===0&&p===0){if(C===sd){u.push(l.slice(m,k)),m=k+1;continue}if(C==="/"){g=k;continue}}C==="["?f++:C==="]"?f--:C==="("?p++:C===")"&&p--}const h=u.length===0?l:l.slice(m);let b=h,S=!1;h.endsWith(Oa)?(b=h.slice(0,-1),S=!0):h.startsWith(Oa)&&(b=h.slice(1),S=!0);const E=g&&g>m?g-m:void 0;return ad(u,S,b,E)};if(o){const l=o+sd,u=a;a=f=>f.startsWith(l)?u(f.slice(l.length)):ad(yy,!1,f,void 0,!0)}if(i){const l=a;a=u=>i({className:u,parseClassName:l})}return a},xy=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((i,a)=>{o.set(i,1e6+a)}),i=>{const a=[];let l=[];for(let u=0;u<i.length;u++){const f=i[u],p=f[0]==="[",m=o.has(f);p||m?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(f)):l.push(f)}return l.length>0&&(l.sort(),a.push(...l)),a}},by=n=>({cache:vy(n.cacheSize),parseClassName:wy(n),sortModifiers:xy(n),...ly(n)}),ky=/\s+/,Sy=(n,o)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:u}=o,f=[],p=n.trim().split(ky);let m="";for(let g=p.length-1;g>=0;g-=1){const w=p[g],{isExternal:h,modifiers:b,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:k}=i(w);if(h){m=w+(m.length>0?" "+m:m);continue}let C=!!k,N=a(C?E.substring(0,k):E);if(!N){if(!C){m=w+(m.length>0?" "+m:m);continue}if(N=a(E),!N){m=w+(m.length>0?" "+m:m);continue}C=!1}const P=b.length===0?"":b.length===1?b[0]:u(b).join(":"),R=S?P+Oa:P,j=R+N;if(f.indexOf(j)>-1)continue;f.push(j);const $=l(N,C);for(let z=0;z<$.length;++z){const O=$[z];f.push(R+O)}m=w+(m.length>0?" "+m:m)}return m},Cy=(...n)=>{let o=0,i,a,l="";for(;o<n.length;)(i=n[o++])&&(a=ld(i))&&(l&&(l+=" "),l+=a);return l},ld=n=>{if(typeof n=="string")return n;let o,i="";for(let a=0;a<n.length;a++)n[a]&&(o=ld(n[a]))&&(i&&(i+=" "),i+=o);return i},Ey=(n,...o)=>{let i,a,l,u;const f=m=>{const g=o.reduce((w,h)=>h(w),n());return i=by(g),a=i.cache.get,l=i.cache.set,u=p,p(m)},p=m=>{const g=a(m);if(g)return g;const w=Sy(m,i);return l(m,w),w};return u=f,(...m)=>u(Cy(...m))},_y=[],qe=n=>{const o=i=>i[n]||_y;return o.isThemeGetter=!0,o},cd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ud=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ny=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Py=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ty=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Iy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ay=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,An=n=>Ny.test(n),Pe=n=>!!n&&!Number.isNaN(Number(n)),jn=n=>!!n&&Number.isInteger(Number(n)),Da=n=>n.endsWith("%")&&Pe(n.slice(0,-1)),gn=n=>Ry.test(n),dd=()=>!0,jy=n=>Py.test(n)&&!Ty.test(n),Fa=()=>!1,My=n=>Iy.test(n),zy=n=>Ay.test(n),Ly=n=>!ce(n)&&!de(n),Oy=n=>Mn(n,vd,Fa),ce=n=>cd.test(n),hr=n=>Mn(n,yd,jy),fd=n=>Mn(n,Wy,Pe),Dy=n=>Mn(n,xd,dd),Fy=n=>Mn(n,wd,Fa),pd=n=>Mn(n,hd,Fa),$y=n=>Mn(n,gd,zy),Ti=n=>Mn(n,bd,My),de=n=>ud.test(n),Ro=n=>gr(n,yd),By=n=>gr(n,wd),md=n=>gr(n,hd),Hy=n=>gr(n,vd),Uy=n=>gr(n,gd),Ii=n=>gr(n,bd,!0),Vy=n=>gr(n,xd,!0),Mn=(n,o,i)=>{const a=cd.exec(n);return a?a[1]?o(a[1]):i(a[2]):!1},gr=(n,o,i=!1)=>{const a=ud.exec(n);return a?a[1]?o(a[1]):i:!1},hd=n=>n==="position"||n==="percentage",gd=n=>n==="image"||n==="url",vd=n=>n==="length"||n==="size"||n==="bg-size",yd=n=>n==="length",Wy=n=>n==="number",wd=n=>n==="family-name",xd=n=>n==="number"||n==="weight",bd=n=>n==="shadow",Gy=Ey(()=>{const n=qe("color"),o=qe("font"),i=qe("text"),a=qe("font-weight"),l=qe("tracking"),u=qe("leading"),f=qe("breakpoint"),p=qe("container"),m=qe("spacing"),g=qe("radius"),w=qe("shadow"),h=qe("inset-shadow"),b=qe("text-shadow"),S=qe("drop-shadow"),E=qe("blur"),k=qe("perspective"),C=qe("aspect"),N=qe("ease"),P=qe("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...j(),de,ce],z=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],D=()=>[de,ce,m],K=()=>[An,"full","auto",...D()],oe=()=>[jn,"none","subgrid",de,ce],fe=()=>["auto",{span:["full",jn,de,ce]},jn,de,ce],ge=()=>[jn,"auto",de,ce],he=()=>["auto","min","max","fr",de,ce],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...D()],te=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],H=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...D()],q=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],B=()=>[n,de,ce],A=()=>[...j(),md,pd,{position:[de,ce]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Hy,Oy,{size:[de,ce]}],re=()=>[Da,Ro,hr],ne=()=>["","none","full",g,de,ce],se=()=>["",Pe,Ro,hr],Z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Pe,Da,md,pd],Ce=()=>["","none",E,de,ce],Ne=()=>["none",Pe,de,ce],Re=()=>["none",Pe,de,ce],Fe=()=>[Pe,de,ce],Be=()=>[An,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[dd],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[Ly],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",Pe],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,ce,de,C]}],container:["container"],columns:[{columns:[Pe,ce,de,p]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[jn,"auto",de,ce]}],basis:[{basis:[An,"full","auto",p,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,An,"auto","initial","none",ce]}],grow:[{grow:["",Pe,de,ce]}],shrink:[{shrink:["",Pe,de,ce]}],order:[{order:[jn,"first","last","none",de,ce]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[p,"screen",...te()]}],"min-w":[{"min-w":[p,"screen","none",...te()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,Ro,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Vy,Dy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Da,ce]}],"font-family":[{font:[By,Fy,o]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,de,ce]}],"line-clamp":[{"line-clamp":[Pe,"none",de,fd]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",de,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",de,hr]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Pe,"auto",de,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jn,de,ce],radial:["",de,ce],conic:[jn,de,ce]},Uy,$y]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,de,ce]}],"outline-w":[{outline:["",Pe,Ro,hr]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",w,Ii,Ti]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",h,Ii,Ti]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Pe,hr]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,Ii,Ti]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Pe,de,ce]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[de,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ce]}],filter:[{filter:["","none",de,ce]}],blur:[{blur:Ce()}],brightness:[{brightness:[Pe,de,ce]}],contrast:[{contrast:[Pe,de,ce]}],"drop-shadow":[{"drop-shadow":["","none",S,Ii,Ti]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Pe,de,ce]}],"hue-rotate":[{"hue-rotate":[Pe,de,ce]}],invert:[{invert:["",Pe,de,ce]}],saturate:[{saturate:[Pe,de,ce]}],sepia:[{sepia:["",Pe,de,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ce]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,de,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,de,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,de,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,de,ce]}],"backdrop-invert":[{"backdrop-invert":["",Pe,de,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,de,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,de,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,de,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",de,ce]}],ease:[{ease:["linear","initial",N,de,ce]}],delay:[{delay:[Pe,de,ce]}],animate:[{animate:["none",P,de,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,de,ce]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Fe()}],"skew-x":[{"skew-x":Fe()}],"skew-y":[{"skew-y":Fe()}],transform:[{transform:[de,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ce]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Pe,Ro,hr,fd]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ye=(...n)=>Gy(td(n));function Po({className:n,...o}){return y.jsx("div",{"data-slot":"card",className:ye("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...o})}function Yy({className:n,...o}){return y.jsx("div",{"data-slot":"card-header",className:ye("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...o})}function To({className:n,...o}){return y.jsx("div",{"data-slot":"card-content",className:ye("px-6",n),...o})}const kd=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Sd=td,Ai=(n,o)=>i=>{var a;if((o==null?void 0:o.variants)==null)return Sd(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:u}=o,f=Object.keys(l).map(g=>{const w=i==null?void 0:i[g],h=u==null?void 0:u[g];if(w===null)return null;const b=kd(w)||kd(h);return l[g][b]}),p=i&&Object.entries(i).reduce((g,w)=>{let[h,b]=w;return b===void 0||(g[h]=b),g},{}),m=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((g,w)=>{let{class:h,className:b,...S}=w;return Object.entries(S).every(E=>{let[k,C]=E;return Array.isArray(C)?C.includes({...u,...p}[k]):{...u,...p}[k]===C})?[...g,h,b]:g},[]);return Sd(n,f,m,i==null?void 0:i.class,i==null?void 0:i.className)};function Cd(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Ed(...n){return o=>{let i=!1;const a=n.map(l=>{const u=Cd(l,o);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<a.length;l++){const u=a[l];typeof u=="function"?u():Cd(n[l],null)}}}}function Ie(...n){return v.useCallback(Ed(...n),n)}function Io(n){const o=Ky(n),i=v.forwardRef((a,l)=>{const{children:u,...f}=a,p=v.Children.toArray(u),m=p.find(Qy);if(m){const g=m.props.children,w=p.map(h=>h===m?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:h);return y.jsx(o,{...f,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,w):null})}return y.jsx(o,{...f,ref:l,children:u})});return i.displayName=`${n}.Slot`,i}var _d=Io("Slot");function Ky(n){const o=v.forwardRef((i,a)=>{const{children:l,...u}=i;if(v.isValidElement(l)){const f=Zy(l),p=qy(u,l.props);return l.type!==v.Fragment&&(p.ref=a?Ed(a,f):f),v.cloneElement(l,p)}return v.Children.count(l)>1?v.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Nd=Symbol("radix.slottable");function Xy(n){const o=({children:i})=>y.jsx(y.Fragment,{children:i});return o.displayName=`${n}.Slottable`,o.__radixId=Nd,o}function Qy(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Nd}function qy(n,o){const i={...o};for(const a in o){const l=n[a],u=o[a];/^on[A-Z]/.test(a)?l&&u?i[a]=(...p)=>{const m=u(...p);return l(...p),m}:l&&(i[a]=l):a==="style"?i[a]={...l,...u}:a==="className"&&(i[a]=[l,u].filter(Boolean).join(" "))}return{...n,...i}}function Zy(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var Jy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],we=Jy.reduce((n,o)=>{const i=Io(`Primitive.${o}`),a=v.forwardRef((l,u)=>{const{asChild:f,...p}=l,m=f?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(m,{...p,ref:u})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function ew(n,o){n&&No.flushSync(()=>n.dispatchEvent(o))}var Rd=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"}),tw="VisuallyHidden",Pd=v.forwardRef((n,o)=>y.jsx(we.span,{...n,ref:o,style:{...Rd,...n.style}}));Pd.displayName=tw;var nw=Pd;function bt(n,o=[]){let i=[];function a(u,f){const p=v.createContext(f),m=i.length;i=[...i,f];const g=h=>{var N;const{scope:b,children:S,...E}=h,k=((N=b==null?void 0:b[n])==null?void 0:N[m])||p,C=v.useMemo(()=>E,Object.values(E));return y.jsx(k.Provider,{value:C,children:S})};g.displayName=u+"Provider";function w(h,b){var k;const S=((k=b==null?void 0:b[n])==null?void 0:k[m])||p,E=v.useContext(S);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[g,w]}const l=()=>{const u=i.map(f=>v.createContext(f));return function(p){const m=(p==null?void 0:p[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...p,[n]:m}}),[p,m])}};return l.scopeName=n,[a,rw(l,...o)]}function rw(...n){const o=n[0];if(n.length===1)return o;const i=()=>{const a=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const f=a.reduce((p,{useScope:m,scopeName:g})=>{const h=m(u)[`__scope${g}`];return{...p,...h}},{});return v.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return i.scopeName=o.scopeName,i}function Td(n){const o=n+"CollectionProvider",[i,a]=bt(o),[l,u]=i(o,{collectionRef:{current:null},itemMap:new Map}),f=k=>{const{scope:C,children:N}=k,P=X.useRef(null),R=X.useRef(new Map).current;return y.jsx(l,{scope:C,itemMap:R,collectionRef:P,children:N})};f.displayName=o;const p=n+"CollectionSlot",m=Io(p),g=X.forwardRef((k,C)=>{const{scope:N,children:P}=k,R=u(p,N),j=Ie(C,R.collectionRef);return y.jsx(m,{ref:j,children:P})});g.displayName=p;const w=n+"CollectionItemSlot",h="data-radix-collection-item",b=Io(w),S=X.forwardRef((k,C)=>{const{scope:N,children:P,...R}=k,j=X.useRef(null),$=Ie(C,j),z=u(w,N);return X.useEffect(()=>(z.itemMap.set(j,{ref:j,...R}),()=>void z.itemMap.delete(j))),y.jsx(b,{[h]:"",ref:$,children:P})});S.displayName=w;function E(k){const C=u(n+"CollectionConsumer",k);return X.useCallback(()=>{const P=C.collectionRef.current;if(!P)return[];const R=Array.from(P.querySelectorAll(`[${h}]`));return Array.from(C.itemMap.values()).sort((z,O)=>R.indexOf(z.ref.current)-R.indexOf(O.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:g,ItemSlot:S},E,a]}function ke(n,o,{checkForDefaultPrevented:i=!0}={}){return function(l){if(n==null||n(l),i===!1||!l.defaultPrevented)return o==null?void 0:o(l)}}var We=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},ow=zu[" useInsertionEffect ".trim().toString()]||We;function vn({prop:n,defaultProp:o,onChange:i=()=>{},caller:a}){const[l,u,f]=iw({defaultProp:o,onChange:i}),p=n!==void 0,m=p?n:l;{const w=v.useRef(n!==void 0);v.useEffect(()=>{const h=w.current;h!==p&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${p?"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.`),w.current=p},[p,a])}const g=v.useCallback(w=>{var h;if(p){const b=sw(w)?w(n):w;b!==n&&((h=f.current)==null||h.call(f,b))}else u(w)},[p,n,u,f]);return[m,g]}function iw({defaultProp:n,onChange:o}){const[i,a]=v.useState(n),l=v.useRef(i),u=v.useRef(o);return ow(()=>{u.current=o},[o]),v.useEffect(()=>{var f;l.current!==i&&((f=u.current)==null||f.call(u,i),l.current=i)},[i,l]),[i,a,u]}function sw(n){return typeof n=="function"}function aw(n,o){return v.useReducer((i,a)=>o[i][a]??i,n)}var Vt=n=>{const{present:o,children:i}=n,a=lw(o),l=typeof i=="function"?i({present:a.isPresent}):v.Children.only(i),u=Ie(a.ref,cw(l));return typeof i=="function"||a.isPresent?v.cloneElement(l,{ref:u}):null};Vt.displayName="Presence";function lw(n){const[o,i]=v.useState(),a=v.useRef(null),l=v.useRef(n),u=v.useRef("none"),f=n?"mounted":"unmounted",[p,m]=aw(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=ji(a.current);u.current=p==="mounted"?g:"none"},[p]),We(()=>{const g=a.current,w=l.current;if(w!==n){const b=u.current,S=ji(g);n?m("MOUNT"):S==="none"||(g==null?void 0:g.display)==="none"?m("UNMOUNT"):m(w&&b!==S?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,m]),We(()=>{if(o){let g;const w=o.ownerDocument.defaultView??window,h=S=>{const k=ji(a.current).includes(CSS.escape(S.animationName));if(S.target===o&&k&&(m("ANIMATION_END"),!l.current)){const C=o.style.animationFillMode;o.style.animationFillMode="forwards",g=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=C)})}},b=S=>{S.target===o&&(u.current=ji(a.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",h),o.addEventListener("animationend",h),()=>{w.clearTimeout(g),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",h),o.removeEventListener("animationend",h)}}else m("ANIMATION_END")},[o,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:v.useCallback(g=>{a.current=g?getComputedStyle(g):null,i(g)},[])}}function ji(n){return(n==null?void 0:n.animationName)||"none"}function cw(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var uw=zu[" useId ".trim().toString()]||(()=>{}),dw=0;function vr(n){const[o,i]=v.useState(uw());return We(()=>{i(a=>a??String(dw++))},[n]),n||(o?`radix-${o}`:"")}var Mi="Collapsible",[fw]=bt(Mi),[pw,$a]=fw(Mi),Id=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,open:a,defaultOpen:l,disabled:u,onOpenChange:f,...p}=n,[m,g]=vn({prop:a,defaultProp:l??!1,onChange:f,caller:Mi});return y.jsx(pw,{scope:i,disabled:u,contentId:vr(),open:m,onOpenToggle:v.useCallback(()=>g(w=>!w),[g]),children:y.jsx(we.div,{"data-state":Ha(m),"data-disabled":u?"":void 0,...p,ref:o})})});Id.displayName=Mi;var Ad="CollapsibleTrigger",jd=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,...a}=n,l=$a(Ad,i);return y.jsx(we.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Ha(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...a,ref:o,onClick:ke(n.onClick,l.onOpenToggle)})});jd.displayName=Ad;var Ba="CollapsibleContent",Md=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=$a(Ba,n.__scopeCollapsible);return y.jsx(Vt,{present:i||l.open,children:({present:u})=>y.jsx(mw,{...a,ref:o,present:u})})});Md.displayName=Ba;var mw=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,present:a,children:l,...u}=n,f=$a(Ba,i),[p,m]=v.useState(a),g=v.useRef(null),w=Ie(o,g),h=v.useRef(0),b=h.current,S=v.useRef(0),E=S.current,k=f.open||p,C=v.useRef(k),N=v.useRef(void 0);return v.useEffect(()=>{const P=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(P)},[]),We(()=>{const P=g.current;if(P){N.current=N.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const R=P.getBoundingClientRect();h.current=R.height,S.current=R.width,C.current||(P.style.transitionDuration=N.current.transitionDuration,P.style.animationName=N.current.animationName),m(a)}},[f.open,a]),y.jsx(we.div,{"data-state":Ha(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!k,...u,ref:w,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:k&&l})});function Ha(n){return n?"open":"closed"}var hw=Id,gw=v.createContext(void 0);function Ao(n){const o=v.useContext(gw);return n||o||"ltr"}function ut(n){const o=v.useRef(n);return v.useEffect(()=>{o.current=n}),v.useMemo(()=>(...i)=>{var a;return(a=o.current)==null?void 0:a.call(o,...i)},[])}function vw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n);v.useEffect(()=>{const a=l=>{l.key==="Escape"&&i(l)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[i,o])}var yw="DismissableLayer",Ua="dismissableLayer.update",ww="dismissableLayer.pointerDownOutside",xw="dismissableLayer.focusOutside",zd,Ld=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Va=v.forwardRef((n,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:p,...m}=n,g=v.useContext(Ld),[w,h]=v.useState(null),b=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=Ie(o,O=>h(O)),k=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(C),P=w?k.indexOf(w):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,j=P>=N,$=Sw(O=>{const D=O.target,K=[...g.branches].some(oe=>oe.contains(D));!j||K||(l==null||l(O),f==null||f(O),O.defaultPrevented||p==null||p())},b),z=Cw(O=>{const D=O.target;[...g.branches].some(oe=>oe.contains(D))||(u==null||u(O),f==null||f(O),O.defaultPrevented||p==null||p())},b);return vw(O=>{P===g.layers.size-1&&(a==null||a(O),!O.defaultPrevented&&p&&(O.preventDefault(),p()))},b),v.useEffect(()=>{if(w)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(zd=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),Od(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=zd)}},[w,b,i,g]),v.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),Od())},[w,g]),v.useEffect(()=>{const O=()=>S({});return document.addEventListener(Ua,O),()=>document.removeEventListener(Ua,O)},[]),y.jsx(we.div,{...m,ref:E,style:{pointerEvents:R?j?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,z.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,z.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,$.onPointerDownCapture)})});Va.displayName=yw;var bw="DismissableLayerBranch",kw=v.forwardRef((n,o)=>{const i=v.useContext(Ld),a=v.useRef(null),l=Ie(o,a);return v.useEffect(()=>{const u=a.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),y.jsx(we.div,{...n,ref:l})});kw.displayName=bw;function Sw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const u=p=>{if(p.target&&!a.current){let m=function(){Dd(ww,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",l.current),l.current=m,o.addEventListener("click",l.current,{once:!0})):m()}else o.removeEventListener("click",l.current);a.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",u),o.removeEventListener("click",l.current)}},[o,i]),{onPointerDownCapture:()=>a.current=!0}}function Cw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=v.useRef(!1);return v.useEffect(()=>{const l=u=>{u.target&&!a.current&&Dd(xw,i,{originalEvent:u},{discrete:!1})};return o.addEventListener("focusin",l),()=>o.removeEventListener("focusin",l)},[o,i]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Od(){const n=new CustomEvent(Ua);document.dispatchEvent(n)}function Dd(n,o,i,{discrete:a}){const l=i.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});o&&l.addEventListener(n,o,{once:!0}),a?ew(l,u):l.dispatchEvent(u)}var Wa="focusScope.autoFocusOnMount",Ga="focusScope.autoFocusOnUnmount",Fd={bubbles:!1,cancelable:!0},Ew="FocusScope",$d=v.forwardRef((n,o)=>{const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=n,[p,m]=v.useState(null),g=ut(l),w=ut(u),h=v.useRef(null),b=Ie(o,k=>m(k)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(a){let k=function(R){if(S.paused||!p)return;const j=R.target;p.contains(j)?h.current=j:zn(h.current,{select:!0})},C=function(R){if(S.paused||!p)return;const j=R.relatedTarget;j!==null&&(p.contains(j)||zn(h.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const $ of R)$.removedNodes.length>0&&zn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",C);const P=new MutationObserver(N);return p&&P.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",C),P.disconnect()}}},[a,p,S.paused]),v.useEffect(()=>{if(p){Ud.add(S);const k=document.activeElement;if(!p.contains(k)){const N=new CustomEvent(Wa,Fd);p.addEventListener(Wa,g),p.dispatchEvent(N),N.defaultPrevented||(_w(Iw(Bd(p)),{select:!0}),document.activeElement===k&&zn(p))}return()=>{p.removeEventListener(Wa,g),setTimeout(()=>{const N=new CustomEvent(Ga,Fd);p.addEventListener(Ga,w),p.dispatchEvent(N),N.defaultPrevented||zn(k??document.body,{select:!0}),p.removeEventListener(Ga,w),Ud.remove(S)},0)}}},[p,g,w,S]);const E=v.useCallback(k=>{if(!i&&!a||S.paused)return;const C=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(C&&N){const P=k.currentTarget,[R,j]=Nw(P);R&&j?!k.shiftKey&&N===j?(k.preventDefault(),i&&zn(R,{select:!0})):k.shiftKey&&N===R&&(k.preventDefault(),i&&zn(j,{select:!0})):N===P&&k.preventDefault()}},[i,a,S.paused]);return y.jsx(we.div,{tabIndex:-1,...f,ref:b,onKeyDown:E})});$d.displayName=Ew;function _w(n,{select:o=!1}={}){const i=document.activeElement;for(const a of n)if(zn(a,{select:o}),document.activeElement!==i)return}function Nw(n){const o=Bd(n),i=Hd(o,n),a=Hd(o.reverse(),n);return[i,a]}function Bd(n){const o=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function Hd(n,o){for(const i of n)if(!Rw(i,{upTo:o}))return i}function Rw(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Pw(n){return n instanceof HTMLInputElement&&"select"in n}function zn(n,{select:o=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Pw(n)&&o&&n.select()}}var Ud=Tw();function Tw(){let n=[];return{add(o){const i=n[0];o!==i&&(i==null||i.pause()),n=Vd(n,o),n.unshift(o)},remove(o){var i;n=Vd(n,o),(i=n[0])==null||i.resume()}}}function Vd(n,o){const i=[...n],a=i.indexOf(o);return a!==-1&&i.splice(a,1),i}function Iw(n){return n.filter(o=>o.tagName!=="A")}var Aw="Portal",Ya=v.forwardRef((n,o)=>{var p;const{container:i,...a}=n,[l,u]=v.useState(!1);We(()=>u(!0),[]);const f=i||l&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?$u.createPortal(y.jsx(we.div,{...a,ref:o}),f):null});Ya.displayName=Aw;var Ka=0;function jw(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Wd()),document.body.insertAdjacentElement("beforeend",n[1]??Wd()),Ka++,()=>{Ka===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ka--}},[])}function Wd(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var on=function(){return on=Object.assign||function(o){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u])}return o},on.apply(this,arguments)};function Gd(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)o.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(i[a[l]]=n[a[l]]);return i}function Mw(n,o,i){if(i||arguments.length===2)for(var a=0,l=o.length,u;a<l;a++)(u||!(a in o))&&(u||(u=Array.prototype.slice.call(o,0,a)),u[a]=o[a]);return n.concat(u||Array.prototype.slice.call(o))}typeof SuppressedError=="function"&&SuppressedError;var zi="right-scroll-bar-position",Li="width-before-scroll-bar",zw="with-scroll-bars-hidden",Lw="--removed-body-scroll-bar-size";function Xa(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function Ow(n,o){var i=v.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(a){var l=i.value;l!==a&&(i.value=a,i.callback(a,l))}}}})[0];return i.callback=o,i.facade}var Dw=typeof window<"u"?v.useLayoutEffect:v.useEffect,Yd=new WeakMap;function Fw(n,o){var i=Ow(null,function(a){return n.forEach(function(l){return Xa(l,a)})});return Dw(function(){var a=Yd.get(i);if(a){var l=new Set(a),u=new Set(n),f=i.current;l.forEach(function(p){u.has(p)||Xa(p,null)}),u.forEach(function(p){l.has(p)||Xa(p,f)})}Yd.set(i,n)},[n]),i}function $w(n){return n}function Bw(n,o){o===void 0&&(o=$w);var i=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(u){var f=o(u,a);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(u){for(a=!0;i.length;){var f=i;i=[],f.forEach(u)}i={push:function(p){return u(p)},filter:function(){return i}}},assignMedium:function(u){a=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(u),f=i}var m=function(){var w=f;f=[],w.forEach(u)},g=function(){return Promise.resolve().then(m)};g(),i={push:function(w){f.push(w),g()},filter:function(w){return f=f.filter(w),i}}}};return l}function Hw(n){n===void 0&&(n={});var o=Bw(null);return o.options=on({async:!0,ssr:!1},n),o}var Kd=function(n){var o=n.sideCar,i=Gd(n,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=o.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,on({},i))};Kd.isSideCarExport=!0;function Uw(n,o){return n.useMedium(o),Kd}var Xd=Hw(),Qa=function(){},Oi=v.forwardRef(function(n,o){var i=v.useRef(null),a=v.useState({onScrollCapture:Qa,onWheelCapture:Qa,onTouchMoveCapture:Qa}),l=a[0],u=a[1],f=n.forwardProps,p=n.children,m=n.className,g=n.removeScrollBar,w=n.enabled,h=n.shards,b=n.sideCar,S=n.noRelative,E=n.noIsolation,k=n.inert,C=n.allowPinchZoom,N=n.as,P=N===void 0?"div":N,R=n.gapMode,j=Gd(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=b,z=Fw([i,o]),O=on(on({},j),l);return v.createElement(v.Fragment,null,w&&v.createElement($,{sideCar:Xd,removeScrollBar:g,shards:h,noRelative:S,noIsolation:E,inert:k,setCallbacks:u,allowPinchZoom:!!C,lockRef:i,gapMode:R}),f?v.cloneElement(v.Children.only(p),on(on({},O),{ref:z})):v.createElement(P,on({},O,{className:m,ref:z}),p))});Oi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Oi.classNames={fullWidth:Li,zeroRight:zi};var Vw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ww(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=Vw();return o&&n.setAttribute("nonce",o),n}function Gw(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function Yw(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var Kw=function(){var n=0,o=null;return{add:function(i){n==0&&(o=Ww())&&(Gw(o,i),Yw(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Xw=function(){var n=Kw();return function(o,i){v.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&i])}},Qd=function(){var n=Xw(),o=function(i){var a=i.styles,l=i.dynamic;return n(a,l),null};return o},Qw={left:0,top:0,right:0,gap:0},qa=function(n){return parseInt(n||"",10)||0},qw=function(n){var o=window.getComputedStyle(document.body),i=o[n==="padding"?"paddingLeft":"marginLeft"],a=o[n==="padding"?"paddingTop":"marginTop"],l=o[n==="padding"?"paddingRight":"marginRight"];return[qa(i),qa(a),qa(l)]},Zw=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Qw;var o=qw(n),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,a-i+o[2]-o[0])}},Jw=Qd(),Ur="data-scroll-locked",ex=function(n,o,i,a){var l=n.left,u=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
251
+ */const Ju=je("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function ed(n){var o,i,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(o=0;o<l;o++)n[o]&&(i=ed(n[o]))&&(a&&(a+=" "),a+=i)}else for(i in n)n[i]&&(a&&(a+=" "),a+=i);return a}function td(){for(var n,o,i=0,a="",l=arguments.length;i<l;i++)(n=arguments[i])&&(o=ed(n))&&(a&&(a+=" "),a+=o);return a}const iy=(n,o)=>{const i=new Array(n.length+o.length);for(let a=0;a<n.length;a++)i[a]=n[a];for(let a=0;a<o.length;a++)i[n.length+a]=o[a];return i},sy=(n,o)=>({classGroupId:n,validator:o}),nd=(n=new Map,o=null,i)=>({nextPart:n,validators:o,classGroupId:i}),Pi="-",rd=[],ay="arbitrary..",ly=n=>{const o=uy(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return cy(f);const p=f.split(Pi),m=p[0]===""&&p.length>1?1:0;return od(p,m,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const m=a[f],g=i[f];return m?g?iy(g,m):m:g||rd}return i[f]||rd}}},od=(n,o,i)=>{if(n.length-o===0)return i.classGroupId;const l=n[o],u=i.nextPart.get(l);if(u){const g=od(n,o+1,u);if(g)return g}const f=i.validators;if(f===null)return;const p=o===0?n.join(Pi):n.slice(o).join(Pi),m=f.length;for(let g=0;g<m;g++){const w=f[g];if(w.validator(p))return w.classGroupId}},cy=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),i=o.indexOf(":"),a=o.slice(0,i);return a?ay+a:void 0})(),uy=n=>{const{theme:o,classGroups:i}=n;return dy(i,o)},dy=(n,o)=>{const i=nd();for(const a in n){const l=n[a];La(l,i,a,o)}return i},La=(n,o,i,a)=>{const l=n.length;for(let u=0;u<l;u++){const f=n[u];fy(f,o,i,a)}},fy=(n,o,i,a)=>{if(typeof n=="string"){py(n,o,i);return}if(typeof n=="function"){my(n,o,i,a);return}hy(n,o,i,a)},py=(n,o,i)=>{const a=n===""?o:id(o,n);a.classGroupId=i},my=(n,o,i,a)=>{if(gy(n)){La(n(a),o,i,a);return}o.validators===null&&(o.validators=[]),o.validators.push(sy(i,n))},hy=(n,o,i,a)=>{const l=Object.entries(n),u=l.length;for(let f=0;f<u;f++){const[p,m]=l[f];La(m,id(o,p),i,a)}},id=(n,o)=>{let i=n;const a=o.split(Pi),l=a.length;for(let u=0;u<l;u++){const f=a[u];let p=i.nextPart.get(f);p||(p=nd(),i.nextPart.set(f,p)),i=p}return i},gy=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,vy=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,i=Object.create(null),a=Object.create(null);const l=(u,f)=>{i[u]=f,o++,o>n&&(o=0,a=i,i=Object.create(null))};return{get(u){let f=i[u];if(f!==void 0)return f;if((f=a[u])!==void 0)return l(u,f),f},set(u,f){u in i?i[u]=f:l(u,f)}}},Oa="!",sd=":",yy=[],ad=(n,o,i,a,l)=>({modifiers:n,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),wy=n=>{const{prefix:o,experimentalParseClassName:i}=n;let a=l=>{const u=[];let f=0,p=0,m=0,g;const w=l.length;for(let k=0;k<w;k++){const C=l[k];if(f===0&&p===0){if(C===sd){u.push(l.slice(m,k)),m=k+1;continue}if(C==="/"){g=k;continue}}C==="["?f++:C==="]"?f--:C==="("?p++:C===")"&&p--}const h=u.length===0?l:l.slice(m);let b=h,S=!1;h.endsWith(Oa)?(b=h.slice(0,-1),S=!0):h.startsWith(Oa)&&(b=h.slice(1),S=!0);const E=g&&g>m?g-m:void 0;return ad(u,S,b,E)};if(o){const l=o+sd,u=a;a=f=>f.startsWith(l)?u(f.slice(l.length)):ad(yy,!1,f,void 0,!0)}if(i){const l=a;a=u=>i({className:u,parseClassName:l})}return a},xy=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((i,a)=>{o.set(i,1e6+a)}),i=>{const a=[];let l=[];for(let u=0;u<i.length;u++){const f=i[u],p=f[0]==="[",m=o.has(f);p||m?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(f)):l.push(f)}return l.length>0&&(l.sort(),a.push(...l)),a}},by=n=>({cache:vy(n.cacheSize),parseClassName:wy(n),sortModifiers:xy(n),...ly(n)}),ky=/\s+/,Sy=(n,o)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:u}=o,f=[],p=n.trim().split(ky);let m="";for(let g=p.length-1;g>=0;g-=1){const w=p[g],{isExternal:h,modifiers:b,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:k}=i(w);if(h){m=w+(m.length>0?" "+m:m);continue}let C=!!k,N=a(C?E.substring(0,k):E);if(!N){if(!C){m=w+(m.length>0?" "+m:m);continue}if(N=a(E),!N){m=w+(m.length>0?" "+m:m);continue}C=!1}const P=b.length===0?"":b.length===1?b[0]:u(b).join(":"),R=S?P+Oa:P,j=R+N;if(f.indexOf(j)>-1)continue;f.push(j);const $=l(N,C);for(let z=0;z<$.length;++z){const O=$[z];f.push(R+O)}m=w+(m.length>0?" "+m:m)}return m},Cy=(...n)=>{let o=0,i,a,l="";for(;o<n.length;)(i=n[o++])&&(a=ld(i))&&(l&&(l+=" "),l+=a);return l},ld=n=>{if(typeof n=="string")return n;let o,i="";for(let a=0;a<n.length;a++)n[a]&&(o=ld(n[a]))&&(i&&(i+=" "),i+=o);return i},Ey=(n,...o)=>{let i,a,l,u;const f=m=>{const g=o.reduce((w,h)=>h(w),n());return i=by(g),a=i.cache.get,l=i.cache.set,u=p,p(m)},p=m=>{const g=a(m);if(g)return g;const w=Sy(m,i);return l(m,w),w};return u=f,(...m)=>u(Cy(...m))},_y=[],qe=n=>{const o=i=>i[n]||_y;return o.isThemeGetter=!0,o},cd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ud=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ny=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Py=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ty=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Iy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ay=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,An=n=>Ny.test(n),Pe=n=>!!n&&!Number.isNaN(Number(n)),jn=n=>!!n&&Number.isInteger(Number(n)),Da=n=>n.endsWith("%")&&Pe(n.slice(0,-1)),gn=n=>Ry.test(n),dd=()=>!0,jy=n=>Py.test(n)&&!Ty.test(n),Fa=()=>!1,My=n=>Iy.test(n),zy=n=>Ay.test(n),Ly=n=>!ce(n)&&!de(n),Oy=n=>Mn(n,vd,Fa),ce=n=>cd.test(n),hr=n=>Mn(n,yd,jy),fd=n=>Mn(n,Wy,Pe),Dy=n=>Mn(n,xd,dd),Fy=n=>Mn(n,wd,Fa),pd=n=>Mn(n,hd,Fa),$y=n=>Mn(n,gd,zy),Ti=n=>Mn(n,bd,My),de=n=>ud.test(n),Ro=n=>gr(n,yd),By=n=>gr(n,wd),md=n=>gr(n,hd),Hy=n=>gr(n,vd),Uy=n=>gr(n,gd),Ii=n=>gr(n,bd,!0),Vy=n=>gr(n,xd,!0),Mn=(n,o,i)=>{const a=cd.exec(n);return a?a[1]?o(a[1]):i(a[2]):!1},gr=(n,o,i=!1)=>{const a=ud.exec(n);return a?a[1]?o(a[1]):i:!1},hd=n=>n==="position"||n==="percentage",gd=n=>n==="image"||n==="url",vd=n=>n==="length"||n==="size"||n==="bg-size",yd=n=>n==="length",Wy=n=>n==="number",wd=n=>n==="family-name",xd=n=>n==="number"||n==="weight",bd=n=>n==="shadow",Gy=Ey(()=>{const n=qe("color"),o=qe("font"),i=qe("text"),a=qe("font-weight"),l=qe("tracking"),u=qe("leading"),f=qe("breakpoint"),p=qe("container"),m=qe("spacing"),g=qe("radius"),w=qe("shadow"),h=qe("inset-shadow"),b=qe("text-shadow"),S=qe("drop-shadow"),E=qe("blur"),k=qe("perspective"),C=qe("aspect"),N=qe("ease"),P=qe("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...j(),de,ce],z=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],D=()=>[de,ce,m],X=()=>[An,"full","auto",...D()],oe=()=>[jn,"none","subgrid",de,ce],fe=()=>["auto",{span:["full",jn,de,ce]},jn,de,ce],ge=()=>[jn,"auto",de,ce],he=()=>["auto","min","max","fr",de,ce],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...D()],te=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],H=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...D()],q=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],B=()=>[n,de,ce],A=()=>[...j(),md,pd,{position:[de,ce]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Hy,Oy,{size:[de,ce]}],re=()=>[Da,Ro,hr],ne=()=>["","none","full",g,de,ce],se=()=>["",Pe,Ro,hr],Z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Pe,Da,md,pd],Ce=()=>["","none",E,de,ce],Ne=()=>["none",Pe,de,ce],Re=()=>["none",Pe,de,ce],Fe=()=>[Pe,de,ce],Be=()=>[An,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[dd],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[Ly],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",Pe],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,ce,de,C]}],container:["container"],columns:[{columns:[Pe,ce,de,p]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[jn,"auto",de,ce]}],basis:[{basis:[An,"full","auto",p,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,An,"auto","initial","none",ce]}],grow:[{grow:["",Pe,de,ce]}],shrink:[{shrink:["",Pe,de,ce]}],order:[{order:[jn,"first","last","none",de,ce]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[p,"screen",...te()]}],"min-w":[{"min-w":[p,"screen","none",...te()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,Ro,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Vy,Dy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Da,ce]}],"font-family":[{font:[By,Fy,o]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,de,ce]}],"line-clamp":[{"line-clamp":[Pe,"none",de,fd]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",de,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",de,hr]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Pe,"auto",de,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jn,de,ce],radial:["",de,ce],conic:[jn,de,ce]},Uy,$y]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,de,ce]}],"outline-w":[{outline:["",Pe,Ro,hr]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",w,Ii,Ti]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",h,Ii,Ti]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Pe,hr]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,Ii,Ti]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Pe,de,ce]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[de,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ce]}],filter:[{filter:["","none",de,ce]}],blur:[{blur:Ce()}],brightness:[{brightness:[Pe,de,ce]}],contrast:[{contrast:[Pe,de,ce]}],"drop-shadow":[{"drop-shadow":["","none",S,Ii,Ti]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Pe,de,ce]}],"hue-rotate":[{"hue-rotate":[Pe,de,ce]}],invert:[{invert:["",Pe,de,ce]}],saturate:[{saturate:[Pe,de,ce]}],sepia:[{sepia:["",Pe,de,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ce]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,de,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,de,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,de,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,de,ce]}],"backdrop-invert":[{"backdrop-invert":["",Pe,de,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,de,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,de,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,de,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",de,ce]}],ease:[{ease:["linear","initial",N,de,ce]}],delay:[{delay:[Pe,de,ce]}],animate:[{animate:["none",P,de,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,de,ce]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Fe()}],"skew-x":[{"skew-x":Fe()}],"skew-y":[{"skew-y":Fe()}],transform:[{transform:[de,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ce]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Pe,Ro,hr,fd]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ye=(...n)=>Gy(td(n));function Po({className:n,...o}){return y.jsx("div",{"data-slot":"card",className:ye("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...o})}function Yy({className:n,...o}){return y.jsx("div",{"data-slot":"card-header",className:ye("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...o})}function To({className:n,...o}){return y.jsx("div",{"data-slot":"card-content",className:ye("px-6",n),...o})}const kd=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Sd=td,Ai=(n,o)=>i=>{var a;if((o==null?void 0:o.variants)==null)return Sd(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:u}=o,f=Object.keys(l).map(g=>{const w=i==null?void 0:i[g],h=u==null?void 0:u[g];if(w===null)return null;const b=kd(w)||kd(h);return l[g][b]}),p=i&&Object.entries(i).reduce((g,w)=>{let[h,b]=w;return b===void 0||(g[h]=b),g},{}),m=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((g,w)=>{let{class:h,className:b,...S}=w;return Object.entries(S).every(E=>{let[k,C]=E;return Array.isArray(C)?C.includes({...u,...p}[k]):{...u,...p}[k]===C})?[...g,h,b]:g},[]);return Sd(n,f,m,i==null?void 0:i.class,i==null?void 0:i.className)};function Cd(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Ed(...n){return o=>{let i=!1;const a=n.map(l=>{const u=Cd(l,o);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<a.length;l++){const u=a[l];typeof u=="function"?u():Cd(n[l],null)}}}}function Ie(...n){return v.useCallback(Ed(...n),n)}function Io(n){const o=Ky(n),i=v.forwardRef((a,l)=>{const{children:u,...f}=a,p=v.Children.toArray(u),m=p.find(Qy);if(m){const g=m.props.children,w=p.map(h=>h===m?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:h);return y.jsx(o,{...f,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,w):null})}return y.jsx(o,{...f,ref:l,children:u})});return i.displayName=`${n}.Slot`,i}var _d=Io("Slot");function Ky(n){const o=v.forwardRef((i,a)=>{const{children:l,...u}=i;if(v.isValidElement(l)){const f=Zy(l),p=qy(u,l.props);return l.type!==v.Fragment&&(p.ref=a?Ed(a,f):f),v.cloneElement(l,p)}return v.Children.count(l)>1?v.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Nd=Symbol("radix.slottable");function Xy(n){const o=({children:i})=>y.jsx(y.Fragment,{children:i});return o.displayName=`${n}.Slottable`,o.__radixId=Nd,o}function Qy(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Nd}function qy(n,o){const i={...o};for(const a in o){const l=n[a],u=o[a];/^on[A-Z]/.test(a)?l&&u?i[a]=(...p)=>{const m=u(...p);return l(...p),m}:l&&(i[a]=l):a==="style"?i[a]={...l,...u}:a==="className"&&(i[a]=[l,u].filter(Boolean).join(" "))}return{...n,...i}}function Zy(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var Jy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],we=Jy.reduce((n,o)=>{const i=Io(`Primitive.${o}`),a=v.forwardRef((l,u)=>{const{asChild:f,...p}=l,m=f?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(m,{...p,ref:u})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function ew(n,o){n&&No.flushSync(()=>n.dispatchEvent(o))}var Rd=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"}),tw="VisuallyHidden",Pd=v.forwardRef((n,o)=>y.jsx(we.span,{...n,ref:o,style:{...Rd,...n.style}}));Pd.displayName=tw;var nw=Pd;function bt(n,o=[]){let i=[];function a(u,f){const p=v.createContext(f),m=i.length;i=[...i,f];const g=h=>{var N;const{scope:b,children:S,...E}=h,k=((N=b==null?void 0:b[n])==null?void 0:N[m])||p,C=v.useMemo(()=>E,Object.values(E));return y.jsx(k.Provider,{value:C,children:S})};g.displayName=u+"Provider";function w(h,b){var k;const S=((k=b==null?void 0:b[n])==null?void 0:k[m])||p,E=v.useContext(S);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[g,w]}const l=()=>{const u=i.map(f=>v.createContext(f));return function(p){const m=(p==null?void 0:p[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...p,[n]:m}}),[p,m])}};return l.scopeName=n,[a,rw(l,...o)]}function rw(...n){const o=n[0];if(n.length===1)return o;const i=()=>{const a=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const f=a.reduce((p,{useScope:m,scopeName:g})=>{const h=m(u)[`__scope${g}`];return{...p,...h}},{});return v.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return i.scopeName=o.scopeName,i}function Td(n){const o=n+"CollectionProvider",[i,a]=bt(o),[l,u]=i(o,{collectionRef:{current:null},itemMap:new Map}),f=k=>{const{scope:C,children:N}=k,P=K.useRef(null),R=K.useRef(new Map).current;return y.jsx(l,{scope:C,itemMap:R,collectionRef:P,children:N})};f.displayName=o;const p=n+"CollectionSlot",m=Io(p),g=K.forwardRef((k,C)=>{const{scope:N,children:P}=k,R=u(p,N),j=Ie(C,R.collectionRef);return y.jsx(m,{ref:j,children:P})});g.displayName=p;const w=n+"CollectionItemSlot",h="data-radix-collection-item",b=Io(w),S=K.forwardRef((k,C)=>{const{scope:N,children:P,...R}=k,j=K.useRef(null),$=Ie(C,j),z=u(w,N);return K.useEffect(()=>(z.itemMap.set(j,{ref:j,...R}),()=>void z.itemMap.delete(j))),y.jsx(b,{[h]:"",ref:$,children:P})});S.displayName=w;function E(k){const C=u(n+"CollectionConsumer",k);return K.useCallback(()=>{const P=C.collectionRef.current;if(!P)return[];const R=Array.from(P.querySelectorAll(`[${h}]`));return Array.from(C.itemMap.values()).sort((z,O)=>R.indexOf(z.ref.current)-R.indexOf(O.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:g,ItemSlot:S},E,a]}function ke(n,o,{checkForDefaultPrevented:i=!0}={}){return function(l){if(n==null||n(l),i===!1||!l.defaultPrevented)return o==null?void 0:o(l)}}var We=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},ow=zu[" useInsertionEffect ".trim().toString()]||We;function vn({prop:n,defaultProp:o,onChange:i=()=>{},caller:a}){const[l,u,f]=iw({defaultProp:o,onChange:i}),p=n!==void 0,m=p?n:l;{const w=v.useRef(n!==void 0);v.useEffect(()=>{const h=w.current;h!==p&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${p?"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.`),w.current=p},[p,a])}const g=v.useCallback(w=>{var h;if(p){const b=sw(w)?w(n):w;b!==n&&((h=f.current)==null||h.call(f,b))}else u(w)},[p,n,u,f]);return[m,g]}function iw({defaultProp:n,onChange:o}){const[i,a]=v.useState(n),l=v.useRef(i),u=v.useRef(o);return ow(()=>{u.current=o},[o]),v.useEffect(()=>{var f;l.current!==i&&((f=u.current)==null||f.call(u,i),l.current=i)},[i,l]),[i,a,u]}function sw(n){return typeof n=="function"}function aw(n,o){return v.useReducer((i,a)=>o[i][a]??i,n)}var Vt=n=>{const{present:o,children:i}=n,a=lw(o),l=typeof i=="function"?i({present:a.isPresent}):v.Children.only(i),u=Ie(a.ref,cw(l));return typeof i=="function"||a.isPresent?v.cloneElement(l,{ref:u}):null};Vt.displayName="Presence";function lw(n){const[o,i]=v.useState(),a=v.useRef(null),l=v.useRef(n),u=v.useRef("none"),f=n?"mounted":"unmounted",[p,m]=aw(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=ji(a.current);u.current=p==="mounted"?g:"none"},[p]),We(()=>{const g=a.current,w=l.current;if(w!==n){const b=u.current,S=ji(g);n?m("MOUNT"):S==="none"||(g==null?void 0:g.display)==="none"?m("UNMOUNT"):m(w&&b!==S?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,m]),We(()=>{if(o){let g;const w=o.ownerDocument.defaultView??window,h=S=>{const k=ji(a.current).includes(CSS.escape(S.animationName));if(S.target===o&&k&&(m("ANIMATION_END"),!l.current)){const C=o.style.animationFillMode;o.style.animationFillMode="forwards",g=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=C)})}},b=S=>{S.target===o&&(u.current=ji(a.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",h),o.addEventListener("animationend",h),()=>{w.clearTimeout(g),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",h),o.removeEventListener("animationend",h)}}else m("ANIMATION_END")},[o,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:v.useCallback(g=>{a.current=g?getComputedStyle(g):null,i(g)},[])}}function ji(n){return(n==null?void 0:n.animationName)||"none"}function cw(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var uw=zu[" useId ".trim().toString()]||(()=>{}),dw=0;function vr(n){const[o,i]=v.useState(uw());return We(()=>{i(a=>a??String(dw++))},[n]),n||(o?`radix-${o}`:"")}var Mi="Collapsible",[fw]=bt(Mi),[pw,$a]=fw(Mi),Id=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,open:a,defaultOpen:l,disabled:u,onOpenChange:f,...p}=n,[m,g]=vn({prop:a,defaultProp:l??!1,onChange:f,caller:Mi});return y.jsx(pw,{scope:i,disabled:u,contentId:vr(),open:m,onOpenToggle:v.useCallback(()=>g(w=>!w),[g]),children:y.jsx(we.div,{"data-state":Ha(m),"data-disabled":u?"":void 0,...p,ref:o})})});Id.displayName=Mi;var Ad="CollapsibleTrigger",jd=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,...a}=n,l=$a(Ad,i);return y.jsx(we.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Ha(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...a,ref:o,onClick:ke(n.onClick,l.onOpenToggle)})});jd.displayName=Ad;var Ba="CollapsibleContent",Md=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=$a(Ba,n.__scopeCollapsible);return y.jsx(Vt,{present:i||l.open,children:({present:u})=>y.jsx(mw,{...a,ref:o,present:u})})});Md.displayName=Ba;var mw=v.forwardRef((n,o)=>{const{__scopeCollapsible:i,present:a,children:l,...u}=n,f=$a(Ba,i),[p,m]=v.useState(a),g=v.useRef(null),w=Ie(o,g),h=v.useRef(0),b=h.current,S=v.useRef(0),E=S.current,k=f.open||p,C=v.useRef(k),N=v.useRef(void 0);return v.useEffect(()=>{const P=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(P)},[]),We(()=>{const P=g.current;if(P){N.current=N.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const R=P.getBoundingClientRect();h.current=R.height,S.current=R.width,C.current||(P.style.transitionDuration=N.current.transitionDuration,P.style.animationName=N.current.animationName),m(a)}},[f.open,a]),y.jsx(we.div,{"data-state":Ha(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!k,...u,ref:w,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:k&&l})});function Ha(n){return n?"open":"closed"}var hw=Id,gw=v.createContext(void 0);function Ao(n){const o=v.useContext(gw);return n||o||"ltr"}function ut(n){const o=v.useRef(n);return v.useEffect(()=>{o.current=n}),v.useMemo(()=>(...i)=>{var a;return(a=o.current)==null?void 0:a.call(o,...i)},[])}function vw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n);v.useEffect(()=>{const a=l=>{l.key==="Escape"&&i(l)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[i,o])}var yw="DismissableLayer",Ua="dismissableLayer.update",ww="dismissableLayer.pointerDownOutside",xw="dismissableLayer.focusOutside",zd,Ld=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Va=v.forwardRef((n,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:p,...m}=n,g=v.useContext(Ld),[w,h]=v.useState(null),b=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=Ie(o,O=>h(O)),k=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(C),P=w?k.indexOf(w):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,j=P>=N,$=Sw(O=>{const D=O.target,X=[...g.branches].some(oe=>oe.contains(D));!j||X||(l==null||l(O),f==null||f(O),O.defaultPrevented||p==null||p())},b),z=Cw(O=>{const D=O.target;[...g.branches].some(oe=>oe.contains(D))||(u==null||u(O),f==null||f(O),O.defaultPrevented||p==null||p())},b);return vw(O=>{P===g.layers.size-1&&(a==null||a(O),!O.defaultPrevented&&p&&(O.preventDefault(),p()))},b),v.useEffect(()=>{if(w)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(zd=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),Od(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=zd)}},[w,b,i,g]),v.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),Od())},[w,g]),v.useEffect(()=>{const O=()=>S({});return document.addEventListener(Ua,O),()=>document.removeEventListener(Ua,O)},[]),y.jsx(we.div,{...m,ref:E,style:{pointerEvents:R?j?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,z.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,z.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,$.onPointerDownCapture)})});Va.displayName=yw;var bw="DismissableLayerBranch",kw=v.forwardRef((n,o)=>{const i=v.useContext(Ld),a=v.useRef(null),l=Ie(o,a);return v.useEffect(()=>{const u=a.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),y.jsx(we.div,{...n,ref:l})});kw.displayName=bw;function Sw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const u=p=>{if(p.target&&!a.current){let m=function(){Dd(ww,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",l.current),l.current=m,o.addEventListener("click",l.current,{once:!0})):m()}else o.removeEventListener("click",l.current);a.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",u),o.removeEventListener("click",l.current)}},[o,i]),{onPointerDownCapture:()=>a.current=!0}}function Cw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=v.useRef(!1);return v.useEffect(()=>{const l=u=>{u.target&&!a.current&&Dd(xw,i,{originalEvent:u},{discrete:!1})};return o.addEventListener("focusin",l),()=>o.removeEventListener("focusin",l)},[o,i]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Od(){const n=new CustomEvent(Ua);document.dispatchEvent(n)}function Dd(n,o,i,{discrete:a}){const l=i.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});o&&l.addEventListener(n,o,{once:!0}),a?ew(l,u):l.dispatchEvent(u)}var Wa="focusScope.autoFocusOnMount",Ga="focusScope.autoFocusOnUnmount",Fd={bubbles:!1,cancelable:!0},Ew="FocusScope",$d=v.forwardRef((n,o)=>{const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=n,[p,m]=v.useState(null),g=ut(l),w=ut(u),h=v.useRef(null),b=Ie(o,k=>m(k)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(a){let k=function(R){if(S.paused||!p)return;const j=R.target;p.contains(j)?h.current=j:zn(h.current,{select:!0})},C=function(R){if(S.paused||!p)return;const j=R.relatedTarget;j!==null&&(p.contains(j)||zn(h.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const $ of R)$.removedNodes.length>0&&zn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",C);const P=new MutationObserver(N);return p&&P.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",C),P.disconnect()}}},[a,p,S.paused]),v.useEffect(()=>{if(p){Ud.add(S);const k=document.activeElement;if(!p.contains(k)){const N=new CustomEvent(Wa,Fd);p.addEventListener(Wa,g),p.dispatchEvent(N),N.defaultPrevented||(_w(Iw(Bd(p)),{select:!0}),document.activeElement===k&&zn(p))}return()=>{p.removeEventListener(Wa,g),setTimeout(()=>{const N=new CustomEvent(Ga,Fd);p.addEventListener(Ga,w),p.dispatchEvent(N),N.defaultPrevented||zn(k??document.body,{select:!0}),p.removeEventListener(Ga,w),Ud.remove(S)},0)}}},[p,g,w,S]);const E=v.useCallback(k=>{if(!i&&!a||S.paused)return;const C=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(C&&N){const P=k.currentTarget,[R,j]=Nw(P);R&&j?!k.shiftKey&&N===j?(k.preventDefault(),i&&zn(R,{select:!0})):k.shiftKey&&N===R&&(k.preventDefault(),i&&zn(j,{select:!0})):N===P&&k.preventDefault()}},[i,a,S.paused]);return y.jsx(we.div,{tabIndex:-1,...f,ref:b,onKeyDown:E})});$d.displayName=Ew;function _w(n,{select:o=!1}={}){const i=document.activeElement;for(const a of n)if(zn(a,{select:o}),document.activeElement!==i)return}function Nw(n){const o=Bd(n),i=Hd(o,n),a=Hd(o.reverse(),n);return[i,a]}function Bd(n){const o=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function Hd(n,o){for(const i of n)if(!Rw(i,{upTo:o}))return i}function Rw(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Pw(n){return n instanceof HTMLInputElement&&"select"in n}function zn(n,{select:o=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Pw(n)&&o&&n.select()}}var Ud=Tw();function Tw(){let n=[];return{add(o){const i=n[0];o!==i&&(i==null||i.pause()),n=Vd(n,o),n.unshift(o)},remove(o){var i;n=Vd(n,o),(i=n[0])==null||i.resume()}}}function Vd(n,o){const i=[...n],a=i.indexOf(o);return a!==-1&&i.splice(a,1),i}function Iw(n){return n.filter(o=>o.tagName!=="A")}var Aw="Portal",Ya=v.forwardRef((n,o)=>{var p;const{container:i,...a}=n,[l,u]=v.useState(!1);We(()=>u(!0),[]);const f=i||l&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?$u.createPortal(y.jsx(we.div,{...a,ref:o}),f):null});Ya.displayName=Aw;var Ka=0;function jw(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Wd()),document.body.insertAdjacentElement("beforeend",n[1]??Wd()),Ka++,()=>{Ka===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ka--}},[])}function Wd(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var on=function(){return on=Object.assign||function(o){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u])}return o},on.apply(this,arguments)};function Gd(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)o.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(i[a[l]]=n[a[l]]);return i}function Mw(n,o,i){if(i||arguments.length===2)for(var a=0,l=o.length,u;a<l;a++)(u||!(a in o))&&(u||(u=Array.prototype.slice.call(o,0,a)),u[a]=o[a]);return n.concat(u||Array.prototype.slice.call(o))}typeof SuppressedError=="function"&&SuppressedError;var zi="right-scroll-bar-position",Li="width-before-scroll-bar",zw="with-scroll-bars-hidden",Lw="--removed-body-scroll-bar-size";function Xa(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function Ow(n,o){var i=v.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(a){var l=i.value;l!==a&&(i.value=a,i.callback(a,l))}}}})[0];return i.callback=o,i.facade}var Dw=typeof window<"u"?v.useLayoutEffect:v.useEffect,Yd=new WeakMap;function Fw(n,o){var i=Ow(null,function(a){return n.forEach(function(l){return Xa(l,a)})});return Dw(function(){var a=Yd.get(i);if(a){var l=new Set(a),u=new Set(n),f=i.current;l.forEach(function(p){u.has(p)||Xa(p,null)}),u.forEach(function(p){l.has(p)||Xa(p,f)})}Yd.set(i,n)},[n]),i}function $w(n){return n}function Bw(n,o){o===void 0&&(o=$w);var i=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(u){var f=o(u,a);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(u){for(a=!0;i.length;){var f=i;i=[],f.forEach(u)}i={push:function(p){return u(p)},filter:function(){return i}}},assignMedium:function(u){a=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(u),f=i}var m=function(){var w=f;f=[],w.forEach(u)},g=function(){return Promise.resolve().then(m)};g(),i={push:function(w){f.push(w),g()},filter:function(w){return f=f.filter(w),i}}}};return l}function Hw(n){n===void 0&&(n={});var o=Bw(null);return o.options=on({async:!0,ssr:!1},n),o}var Kd=function(n){var o=n.sideCar,i=Gd(n,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=o.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,on({},i))};Kd.isSideCarExport=!0;function Uw(n,o){return n.useMedium(o),Kd}var Xd=Hw(),Qa=function(){},Oi=v.forwardRef(function(n,o){var i=v.useRef(null),a=v.useState({onScrollCapture:Qa,onWheelCapture:Qa,onTouchMoveCapture:Qa}),l=a[0],u=a[1],f=n.forwardProps,p=n.children,m=n.className,g=n.removeScrollBar,w=n.enabled,h=n.shards,b=n.sideCar,S=n.noRelative,E=n.noIsolation,k=n.inert,C=n.allowPinchZoom,N=n.as,P=N===void 0?"div":N,R=n.gapMode,j=Gd(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=b,z=Fw([i,o]),O=on(on({},j),l);return v.createElement(v.Fragment,null,w&&v.createElement($,{sideCar:Xd,removeScrollBar:g,shards:h,noRelative:S,noIsolation:E,inert:k,setCallbacks:u,allowPinchZoom:!!C,lockRef:i,gapMode:R}),f?v.cloneElement(v.Children.only(p),on(on({},O),{ref:z})):v.createElement(P,on({},O,{className:m,ref:z}),p))});Oi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Oi.classNames={fullWidth:Li,zeroRight:zi};var Vw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ww(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=Vw();return o&&n.setAttribute("nonce",o),n}function Gw(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function Yw(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var Kw=function(){var n=0,o=null;return{add:function(i){n==0&&(o=Ww())&&(Gw(o,i),Yw(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Xw=function(){var n=Kw();return function(o,i){v.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&i])}},Qd=function(){var n=Xw(),o=function(i){var a=i.styles,l=i.dynamic;return n(a,l),null};return o},Qw={left:0,top:0,right:0,gap:0},qa=function(n){return parseInt(n||"",10)||0},qw=function(n){var o=window.getComputedStyle(document.body),i=o[n==="padding"?"paddingLeft":"marginLeft"],a=o[n==="padding"?"paddingTop":"marginTop"],l=o[n==="padding"?"paddingRight":"marginRight"];return[qa(i),qa(a),qa(l)]},Zw=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Qw;var o=qw(n),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,a-i+o[2]-o[0])}},Jw=Qd(),Ur="data-scroll-locked",ex=function(n,o,i,a){var l=n.left,u=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
252
252
  .`.concat(zw,` {
253
253
  overflow: hidden `).concat(a,`;
254
254
  padding-right: `).concat(p,"px ").concat(a,`;
@@ -288,7 +288,7 @@ Error generating stack: `+d.message+`
288
288
  `)},qd=function(){var n=parseInt(document.body.getAttribute(Ur)||"0",10);return isFinite(n)?n:0},tx=function(){v.useEffect(function(){return document.body.setAttribute(Ur,(qd()+1).toString()),function(){var n=qd()-1;n<=0?document.body.removeAttribute(Ur):document.body.setAttribute(Ur,n.toString())}},[])},nx=function(n){var o=n.noRelative,i=n.noImportant,a=n.gapMode,l=a===void 0?"margin":a;tx();var u=v.useMemo(function(){return Zw(l)},[l]);return v.createElement(Jw,{styles:ex(u,!o,l,i?"":"!important")})},Za=!1;if(typeof window<"u")try{var Di=Object.defineProperty({},"passive",{get:function(){return Za=!0,!0}});window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Za=!1}var Vr=Za?{passive:!1}:!1,rx=function(n){return n.tagName==="TEXTAREA"},Zd=function(n,o){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!rx(n)&&i[o]==="visible")},ox=function(n){return Zd(n,"overflowY")},ix=function(n){return Zd(n,"overflowX")},Jd=function(n,o){var i=o.ownerDocument,a=o;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=ef(n,a);if(l){var u=tf(n,a),f=u[1],p=u[2];if(f>p)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},sx=function(n){var o=n.scrollTop,i=n.scrollHeight,a=n.clientHeight;return[o,i,a]},ax=function(n){var o=n.scrollLeft,i=n.scrollWidth,a=n.clientWidth;return[o,i,a]},ef=function(n,o){return n==="v"?ox(o):ix(o)},tf=function(n,o){return n==="v"?sx(o):ax(o)},lx=function(n,o){return n==="h"&&o==="rtl"?-1:1},cx=function(n,o,i,a,l){var u=lx(n,window.getComputedStyle(o).direction),f=u*a,p=i.target,m=o.contains(p),g=!1,w=f>0,h=0,b=0;do{if(!p)break;var S=tf(n,p),E=S[0],k=S[1],C=S[2],N=k-C-u*E;(E||N)&&ef(n,p)&&(h+=N,b+=E);var P=p.parentNode;p=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!m&&p!==document.body||m&&(o.contains(p)||o===p));return(w&&Math.abs(h)<1||!w&&Math.abs(b)<1)&&(g=!0),g},Fi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},nf=function(n){return[n.deltaX,n.deltaY]},rf=function(n){return n&&"current"in n?n.current:n},ux=function(n,o){return n[0]===o[0]&&n[1]===o[1]},dx=function(n){return`
289
289
  .block-interactivity-`.concat(n,` {pointer-events: none;}
290
290
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
291
- `)},fx=0,Wr=[];function px(n){var o=v.useRef([]),i=v.useRef([0,0]),a=v.useRef(),l=v.useState(fx++)[0],u=v.useState(Qd)[0],f=v.useRef(n);v.useEffect(function(){f.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var k=Mw([n.lockRef.current],(n.shards||[]).map(rf),!0).filter(Boolean);return k.forEach(function(C){return C.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),k.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=v.useCallback(function(k,C){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!f.current.allowPinchZoom;var N=Fi(k),P=i.current,R="deltaX"in k?k.deltaX:P[0]-N[0],j="deltaY"in k?k.deltaY:P[1]-N[1],$,z=k.target,O=Math.abs(R)>Math.abs(j)?"h":"v";if("touches"in k&&O==="h"&&z.type==="range")return!1;var D=window.getSelection(),K=D&&D.anchorNode,oe=K?K===z||K.contains(z):!1;if(oe)return!1;var fe=Jd(O,z);if(!fe)return!0;if(fe?$=O:($=O==="v"?"h":"v",fe=Jd(O,z)),!fe)return!1;if(!a.current&&"changedTouches"in k&&(R||j)&&(a.current=$),!$)return!0;var ge=a.current||$;return cx(ge,C,k,ge==="h"?R:j)},[]),m=v.useCallback(function(k){var C=k;if(!(!Wr.length||Wr[Wr.length-1]!==u)){var N="deltaY"in C?nf(C):Fi(C),P=o.current.filter(function($){return $.name===C.type&&($.target===C.target||C.target===$.shadowParent)&&ux($.delta,N)})[0];if(P&&P.should){C.cancelable&&C.preventDefault();return}if(!P){var R=(f.current.shards||[]).map(rf).filter(Boolean).filter(function($){return $.contains(C.target)}),j=R.length>0?p(C,R[0]):!f.current.noIsolation;j&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(k,C,N,P){var R={name:k,delta:C,target:N,should:P,shadowParent:mx(N)};o.current.push(R),setTimeout(function(){o.current=o.current.filter(function(j){return j!==R})},1)},[]),w=v.useCallback(function(k){i.current=Fi(k),a.current=void 0},[]),h=v.useCallback(function(k){g(k.type,nf(k),k.target,p(k,n.lockRef.current))},[]),b=v.useCallback(function(k){g(k.type,Fi(k),k.target,p(k,n.lockRef.current))},[]);v.useEffect(function(){return Wr.push(u),n.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Vr),document.addEventListener("touchmove",m,Vr),document.addEventListener("touchstart",w,Vr),function(){Wr=Wr.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,Vr),document.removeEventListener("touchmove",m,Vr),document.removeEventListener("touchstart",w,Vr)}},[]);var S=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:dx(l)}):null,S?v.createElement(nx,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function mx(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const hx=Uw(Xd,px);var of=v.forwardRef(function(n,o){return v.createElement(Oi,on({},n,{ref:o,sideCar:hx}))});of.classNames=Oi.classNames;var gx=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},Gr=new WeakMap,$i=new WeakMap,Bi={},Ja=0,sf=function(n){return n&&(n.host||sf(n.parentNode))},vx=function(n,o){return o.map(function(i){if(n.contains(i))return i;var a=sf(i);return a&&n.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},yx=function(n,o,i,a){var l=vx(o,Array.isArray(n)?n:[n]);Bi[i]||(Bi[i]=new WeakMap);var u=Bi[i],f=[],p=new Set,m=new Set(l),g=function(h){!h||p.has(h)||(p.add(h),g(h.parentNode))};l.forEach(g);var w=function(h){!h||m.has(h)||Array.prototype.forEach.call(h.children,function(b){if(p.has(b))w(b);else try{var S=b.getAttribute(a),E=S!==null&&S!=="false",k=(Gr.get(b)||0)+1,C=(u.get(b)||0)+1;Gr.set(b,k),u.set(b,C),f.push(b),k===1&&E&&$i.set(b,!0),C===1&&b.setAttribute(i,"true"),E||b.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return w(o),p.clear(),Ja++,function(){f.forEach(function(h){var b=Gr.get(h)-1,S=u.get(h)-1;Gr.set(h,b),u.set(h,S),b||($i.has(h)||h.removeAttribute(a),$i.delete(h)),S||h.removeAttribute(i)}),Ja--,Ja||(Gr=new WeakMap,Gr=new WeakMap,$i=new WeakMap,Bi={})}},wx=function(n,o,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(n)?n:[n]),l=gx(n);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),yx(a,l,i,"aria-hidden")):function(){return null}},el={exports:{}},tl={};/**
291
+ `)},fx=0,Wr=[];function px(n){var o=v.useRef([]),i=v.useRef([0,0]),a=v.useRef(),l=v.useState(fx++)[0],u=v.useState(Qd)[0],f=v.useRef(n);v.useEffect(function(){f.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var k=Mw([n.lockRef.current],(n.shards||[]).map(rf),!0).filter(Boolean);return k.forEach(function(C){return C.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),k.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=v.useCallback(function(k,C){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!f.current.allowPinchZoom;var N=Fi(k),P=i.current,R="deltaX"in k?k.deltaX:P[0]-N[0],j="deltaY"in k?k.deltaY:P[1]-N[1],$,z=k.target,O=Math.abs(R)>Math.abs(j)?"h":"v";if("touches"in k&&O==="h"&&z.type==="range")return!1;var D=window.getSelection(),X=D&&D.anchorNode,oe=X?X===z||X.contains(z):!1;if(oe)return!1;var fe=Jd(O,z);if(!fe)return!0;if(fe?$=O:($=O==="v"?"h":"v",fe=Jd(O,z)),!fe)return!1;if(!a.current&&"changedTouches"in k&&(R||j)&&(a.current=$),!$)return!0;var ge=a.current||$;return cx(ge,C,k,ge==="h"?R:j)},[]),m=v.useCallback(function(k){var C=k;if(!(!Wr.length||Wr[Wr.length-1]!==u)){var N="deltaY"in C?nf(C):Fi(C),P=o.current.filter(function($){return $.name===C.type&&($.target===C.target||C.target===$.shadowParent)&&ux($.delta,N)})[0];if(P&&P.should){C.cancelable&&C.preventDefault();return}if(!P){var R=(f.current.shards||[]).map(rf).filter(Boolean).filter(function($){return $.contains(C.target)}),j=R.length>0?p(C,R[0]):!f.current.noIsolation;j&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(k,C,N,P){var R={name:k,delta:C,target:N,should:P,shadowParent:mx(N)};o.current.push(R),setTimeout(function(){o.current=o.current.filter(function(j){return j!==R})},1)},[]),w=v.useCallback(function(k){i.current=Fi(k),a.current=void 0},[]),h=v.useCallback(function(k){g(k.type,nf(k),k.target,p(k,n.lockRef.current))},[]),b=v.useCallback(function(k){g(k.type,Fi(k),k.target,p(k,n.lockRef.current))},[]);v.useEffect(function(){return Wr.push(u),n.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Vr),document.addEventListener("touchmove",m,Vr),document.addEventListener("touchstart",w,Vr),function(){Wr=Wr.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,Vr),document.removeEventListener("touchmove",m,Vr),document.removeEventListener("touchstart",w,Vr)}},[]);var S=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:dx(l)}):null,S?v.createElement(nx,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function mx(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const hx=Uw(Xd,px);var of=v.forwardRef(function(n,o){return v.createElement(Oi,on({},n,{ref:o,sideCar:hx}))});of.classNames=Oi.classNames;var gx=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},Gr=new WeakMap,$i=new WeakMap,Bi={},Ja=0,sf=function(n){return n&&(n.host||sf(n.parentNode))},vx=function(n,o){return o.map(function(i){if(n.contains(i))return i;var a=sf(i);return a&&n.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},yx=function(n,o,i,a){var l=vx(o,Array.isArray(n)?n:[n]);Bi[i]||(Bi[i]=new WeakMap);var u=Bi[i],f=[],p=new Set,m=new Set(l),g=function(h){!h||p.has(h)||(p.add(h),g(h.parentNode))};l.forEach(g);var w=function(h){!h||m.has(h)||Array.prototype.forEach.call(h.children,function(b){if(p.has(b))w(b);else try{var S=b.getAttribute(a),E=S!==null&&S!=="false",k=(Gr.get(b)||0)+1,C=(u.get(b)||0)+1;Gr.set(b,k),u.set(b,C),f.push(b),k===1&&E&&$i.set(b,!0),C===1&&b.setAttribute(i,"true"),E||b.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return w(o),p.clear(),Ja++,function(){f.forEach(function(h){var b=Gr.get(h)-1,S=u.get(h)-1;Gr.set(h,b),u.set(h,S),b||($i.has(h)||h.removeAttribute(a),$i.delete(h)),S||h.removeAttribute(i)}),Ja--,Ja||(Gr=new WeakMap,Gr=new WeakMap,$i=new WeakMap,Bi={})}},wx=function(n,o,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(n)?n:[n]),l=gx(n);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),yx(a,l,i,"aria-hidden")):function(){return null}},el={exports:{}},tl={};/**
292
292
  * @license React
293
293
  * use-sync-external-store-shim.production.js
294
294
  *
@@ -296,16 +296,16 @@ Error generating stack: `+d.message+`
296
296
  *
297
297
  * This source code is licensed under the MIT license found in the
298
298
  * LICENSE file in the root directory of this source tree.
299
- */var af;function xx(){if(af)return tl;af=1;var n=Si();function o(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var i=typeof Object.is=="function"?Object.is:o,a=n.useState,l=n.useEffect,u=n.useLayoutEffect,f=n.useDebugValue;function p(h,b){var S=b(),E=a({inst:{value:S,getSnapshot:b}}),k=E[0].inst,C=E[1];return u(function(){k.value=S,k.getSnapshot=b,m(k)&&C({inst:k})},[h,S,b]),l(function(){return m(k)&&C({inst:k}),h(function(){m(k)&&C({inst:k})})},[h]),f(S),S}function m(h){var b=h.getSnapshot;h=h.value;try{var S=b();return!i(h,S)}catch{return!0}}function g(h,b){return b()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:p;return tl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,tl}var lf;function bx(){return lf||(lf=1,el.exports=xx()),el.exports}var kx=bx();function Sx(){return kx.useSyncExternalStore(Cx,()=>!0,()=>!1)}function Cx(){return()=>{}}var nl="Avatar",[Ex]=bt(nl),[_x,cf]=Ex(nl),uf=v.forwardRef((n,o)=>{const{__scopeAvatar:i,...a}=n,[l,u]=v.useState("idle");return y.jsx(_x,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:y.jsx(we.span,{...a,ref:o})})});uf.displayName=nl;var df="AvatarImage",ff=v.forwardRef((n,o)=>{const{__scopeAvatar:i,src:a,onLoadingStatusChange:l=()=>{},...u}=n,f=cf(df,i),p=Nx(a,u),m=ut(g=>{l(g),f.onImageLoadingStatusChange(g)});return We(()=>{p!=="idle"&&m(p)},[p,m]),p==="loaded"?y.jsx(we.img,{...u,ref:o,src:a}):null});ff.displayName=df;var pf="AvatarFallback",mf=v.forwardRef((n,o)=>{const{__scopeAvatar:i,delayMs:a,...l}=n,u=cf(pf,i),[f,p]=v.useState(a===void 0);return v.useEffect(()=>{if(a!==void 0){const m=window.setTimeout(()=>p(!0),a);return()=>window.clearTimeout(m)}},[a]),f&&u.imageLoadingStatus!=="loaded"?y.jsx(we.span,{...l,ref:o}):null});mf.displayName=pf;function hf(n,o){return n?o?(n.src!==o&&(n.src=o),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Nx(n,{referrerPolicy:o,crossOrigin:i}){const a=Sx(),l=v.useRef(null),u=a?(l.current||(l.current=new window.Image),l.current):null,[f,p]=v.useState(()=>hf(u,n));return We(()=>{p(hf(u,n))},[u,n]),We(()=>{const m=h=>()=>{p(h)};if(!u)return;const g=m("loaded"),w=m("error");return u.addEventListener("load",g),u.addEventListener("error",w),o&&(u.referrerPolicy=o),typeof i=="string"&&(u.crossOrigin=i),()=>{u.removeEventListener("load",g),u.removeEventListener("error",w)}},[u,i,o]),f}var Rx=uf,Px=ff,Tx=mf;function Hi(n){const o=v.useRef({value:n,previous:n});return v.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function Ui(n){const[o,i]=v.useState(void 0);return We(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let f,p;if("borderBoxSize"in u){const m=u.borderBoxSize,g=Array.isArray(m)?m[0]:m;f=g.inlineSize,p=g.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else i(void 0)},[n]),o}var Vi="Checkbox",[Ix]=bt(Vi),[Ax,rl]=Ix(Vi);function jx(n){const{__scopeCheckbox:o,checked:i,children:a,defaultChecked:l,disabled:u,form:f,name:p,onCheckedChange:m,required:g,value:w="on",internal_do_not_use_render:h}=n,[b,S]=vn({prop:i,defaultProp:l??!1,onChange:m,caller:Vi}),[E,k]=v.useState(null),[C,N]=v.useState(null),P=v.useRef(!1),R=E?!!f||!!E.closest("form"):!0,j={checked:b,disabled:u,setChecked:S,control:E,setControl:k,name:p,form:f,value:w,hasConsumerStoppedPropagationRef:P,required:g,defaultChecked:Ln(l)?!1:l,isFormControl:R,bubbleInput:C,setBubbleInput:N};return y.jsx(Ax,{scope:o,...j,children:Mx(h)?h(j):a})}var gf="CheckboxTrigger",vf=v.forwardRef(({__scopeCheckbox:n,onKeyDown:o,onClick:i,...a},l)=>{const{control:u,value:f,disabled:p,checked:m,required:g,setControl:w,setChecked:h,hasConsumerStoppedPropagationRef:b,isFormControl:S,bubbleInput:E}=rl(gf,n),k=Ie(l,w),C=v.useRef(m);return v.useEffect(()=>{const N=u==null?void 0:u.form;if(N){const P=()=>h(C.current);return N.addEventListener("reset",P),()=>N.removeEventListener("reset",P)}},[u,h]),y.jsx(we.button,{type:"button",role:"checkbox","aria-checked":Ln(m)?"mixed":m,"aria-required":g,"data-state":Sf(m),"data-disabled":p?"":void 0,disabled:p,value:f,...a,ref:k,onKeyDown:ke(o,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:ke(i,N=>{h(P=>Ln(P)?!0:!P),E&&S&&(b.current=N.isPropagationStopped(),b.current||N.stopPropagation())})})});vf.displayName=gf;var yf=v.forwardRef((n,o)=>{const{__scopeCheckbox:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m,onCheckedChange:g,form:w,...h}=n;return y.jsx(jx,{__scopeCheckbox:i,checked:l,defaultChecked:u,disabled:p,required:f,onCheckedChange:g,name:a,form:w,value:m,internal_do_not_use_render:({isFormControl:b})=>y.jsxs(y.Fragment,{children:[y.jsx(vf,{...h,ref:o,__scopeCheckbox:i}),b&&y.jsx(kf,{__scopeCheckbox:i})]})})});yf.displayName=Vi;var wf="CheckboxIndicator",xf=v.forwardRef((n,o)=>{const{__scopeCheckbox:i,forceMount:a,...l}=n,u=rl(wf,i);return y.jsx(Vt,{present:a||Ln(u.checked)||u.checked===!0,children:y.jsx(we.span,{"data-state":Sf(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o,style:{pointerEvents:"none",...n.style}})})});xf.displayName=wf;var bf="CheckboxBubbleInput",kf=v.forwardRef(({__scopeCheckbox:n,...o},i)=>{const{control:a,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:f,required:p,disabled:m,name:g,value:w,form:h,bubbleInput:b,setBubbleInput:S}=rl(bf,n),E=Ie(i,S),k=Hi(u),C=Ui(a);v.useEffect(()=>{const P=b;if(!P)return;const R=window.HTMLInputElement.prototype,$=Object.getOwnPropertyDescriptor(R,"checked").set,z=!l.current;if(k!==u&&$){const O=new Event("click",{bubbles:z});P.indeterminate=Ln(u),$.call(P,Ln(u)?!1:u),P.dispatchEvent(O)}},[b,k,u,l]);const N=v.useRef(Ln(u)?!1:u);return y.jsx(we.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??N.current,required:p,disabled:m,name:g,value:w,form:h,...o,tabIndex:-1,ref:E,style:{...o.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});kf.displayName=bf;function Mx(n){return typeof n=="function"}function Ln(n){return n==="indeterminate"}function Sf(n){return Ln(n)?"indeterminate":n?"checked":"unchecked"}const zx=["top","right","bottom","left"],On=Math.min,Nt=Math.max,Wi=Math.round,Gi=Math.floor,sn=n=>({x:n,y:n}),Lx={left:"right",right:"left",bottom:"top",top:"bottom"};function ol(n,o,i){return Nt(n,On(o,i))}function yn(n,o){return typeof n=="function"?n(o):n}function wn(n){return n.split("-")[0]}function Yr(n){return n.split("-")[1]}function il(n){return n==="x"?"y":"x"}function sl(n){return n==="y"?"height":"width"}function an(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function al(n){return il(an(n))}function Ox(n,o,i){i===void 0&&(i=!1);const a=Yr(n),l=al(n),u=sl(l);let f=l==="x"?a===(i?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=Yi(f)),[f,Yi(f)]}function Dx(n){const o=Yi(n);return[ll(n),o,ll(o)]}function ll(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Cf=["left","right"],Ef=["right","left"],Fx=["top","bottom"],$x=["bottom","top"];function Bx(n,o,i){switch(n){case"top":case"bottom":return i?o?Ef:Cf:o?Cf:Ef;case"left":case"right":return o?Fx:$x;default:return[]}}function Hx(n,o,i,a){const l=Yr(n);let u=Bx(wn(n),i==="start",a);return l&&(u=u.map(f=>f+"-"+l),o&&(u=u.concat(u.map(ll)))),u}function Yi(n){const o=wn(n);return Lx[o]+n.slice(o.length)}function Ux(n){return{top:0,right:0,bottom:0,left:0,...n}}function _f(n){return typeof n!="number"?Ux(n):{top:n,right:n,bottom:n,left:n}}function Ki(n){const{x:o,y:i,width:a,height:l}=n;return{width:a,height:l,top:i,left:o,right:o+a,bottom:i+l,x:o,y:i}}function Nf(n,o,i){let{reference:a,floating:l}=n;const u=an(o),f=al(o),p=sl(f),m=wn(o),g=u==="y",w=a.x+a.width/2-l.width/2,h=a.y+a.height/2-l.height/2,b=a[p]/2-l[p]/2;let S;switch(m){case"top":S={x:w,y:a.y-l.height};break;case"bottom":S={x:w,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y:h};break;case"left":S={x:a.x-l.width,y:h};break;default:S={x:a.x,y:a.y}}switch(Yr(o)){case"start":S[f]-=b*(i&&g?-1:1);break;case"end":S[f]+=b*(i&&g?-1:1);break}return S}async function Vx(n,o){var i;o===void 0&&(o={});const{x:a,y:l,platform:u,rects:f,elements:p,strategy:m}=n,{boundary:g="clippingAncestors",rootBoundary:w="viewport",elementContext:h="floating",altBoundary:b=!1,padding:S=0}=yn(o,n),E=_f(S),C=p[b?h==="floating"?"reference":"floating":h],N=Ki(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(C)))==null||i?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:g,rootBoundary:w,strategy:m})),P=h==="floating"?{x:a,y:l,width:f.floating.width,height:f.floating.height}:f.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),j=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},$=Ki(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:P,offsetParent:R,strategy:m}):P);return{top:(N.top-$.top+E.top)/j.y,bottom:($.bottom-N.bottom+E.bottom)/j.y,left:(N.left-$.left+E.left)/j.x,right:($.right-N.right+E.right)/j.x}}const Wx=50,Gx=async(n,o,i)=>{const{placement:a="bottom",strategy:l="absolute",middleware:u=[],platform:f}=i,p=f.detectOverflow?f:{...f,detectOverflow:Vx},m=await(f.isRTL==null?void 0:f.isRTL(o));let g=await f.getElementRects({reference:n,floating:o,strategy:l}),{x:w,y:h}=Nf(g,a,m),b=a,S=0;const E={};for(let k=0;k<u.length;k++){const C=u[k];if(!C)continue;const{name:N,fn:P}=C,{x:R,y:j,data:$,reset:z}=await P({x:w,y:h,initialPlacement:a,placement:b,strategy:l,middlewareData:E,rects:g,platform:p,elements:{reference:n,floating:o}});w=R??w,h=j??h,E[N]={...E[N],...$},z&&S<Wx&&(S++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(g=z.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:l}):z.rects),{x:w,y:h}=Nf(g,b,m)),k=-1)}return{x:w,y:h,placement:b,strategy:l,middlewareData:E}},Yx=n=>({name:"arrow",options:n,async fn(o){const{x:i,y:a,placement:l,rects:u,platform:f,elements:p,middlewareData:m}=o,{element:g,padding:w=0}=yn(n,o)||{};if(g==null)return{};const h=_f(w),b={x:i,y:a},S=al(l),E=sl(S),k=await f.getDimensions(g),C=S==="y",N=C?"top":"left",P=C?"bottom":"right",R=C?"clientHeight":"clientWidth",j=u.reference[E]+u.reference[S]-b[S]-u.floating[E],$=b[S]-u.reference[S],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let O=z?z[R]:0;(!O||!await(f.isElement==null?void 0:f.isElement(z)))&&(O=p.floating[R]||u.floating[E]);const D=j/2-$/2,K=O/2-k[E]/2-1,oe=On(h[N],K),fe=On(h[P],K),ge=oe,he=O-k[E]-fe,ve=O/2-k[E]/2+D,Se=ol(ge,ve,he),G=!m.arrow&&Yr(l)!=null&&ve!==Se&&u.reference[E]/2-(ve<ge?oe:fe)-k[E]/2<0,te=G?ve<ge?ve-ge:ve-he:0;return{[S]:b[S]+te,data:{[S]:Se,centerOffset:ve-Se-te,...G&&{alignmentOffset:te}},reset:G}}}),Kx=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var i,a;const{placement:l,middlewareData:u,rects:f,initialPlacement:p,platform:m,elements:g}=o,{mainAxis:w=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0,...C}=yn(n,o);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const N=wn(l),P=an(p),R=wn(p)===p,j=await(m.isRTL==null?void 0:m.isRTL(g.floating)),$=b||(R||!k?[Yi(p)]:Dx(p)),z=E!=="none";!b&&z&&$.push(...Hx(p,k,E,j));const O=[p,...$],D=await m.detectOverflow(o,C),K=[];let oe=((a=u.flip)==null?void 0:a.overflows)||[];if(w&&K.push(D[N]),h){const ve=Ox(l,f,j);K.push(D[ve[0]],D[ve[1]])}if(oe=[...oe,{placement:l,overflows:K}],!K.every(ve=>ve<=0)){var fe,ge;const ve=(((fe=u.flip)==null?void 0:fe.index)||0)+1,Se=O[ve];if(Se&&(!(h==="alignment"?P!==an(Se):!1)||oe.every(H=>an(H.placement)===P?H.overflows[0]>0:!0)))return{data:{index:ve,overflows:oe},reset:{placement:Se}};let G=(ge=oe.filter(te=>te.overflows[0]<=0).sort((te,H)=>te.overflows[1]-H.overflows[1])[0])==null?void 0:ge.placement;if(!G)switch(S){case"bestFit":{var he;const te=(he=oe.filter(H=>{if(z){const q=an(H.placement);return q===P||q==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(q=>q>0).reduce((q,B)=>q+B,0)]).sort((H,q)=>H[1]-q[1])[0])==null?void 0:he[0];te&&(G=te);break}case"initialPlacement":G=p;break}if(l!==G)return{reset:{placement:G}}}return{}}}};function Rf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Pf(n){return zx.some(o=>n[o]>=0)}const Xx=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:i,platform:a}=o,{strategy:l="referenceHidden",...u}=yn(n,o);switch(l){case"referenceHidden":{const f=await a.detectOverflow(o,{...u,elementContext:"reference"}),p=Rf(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Pf(p)}}}case"escaped":{const f=await a.detectOverflow(o,{...u,altBoundary:!0}),p=Rf(f,i.floating);return{data:{escapedOffsets:p,escaped:Pf(p)}}}default:return{}}}}},Tf=new Set(["left","top"]);async function Qx(n,o){const{placement:i,platform:a,elements:l}=n,u=await(a.isRTL==null?void 0:a.isRTL(l.floating)),f=wn(i),p=Yr(i),m=an(i)==="y",g=Tf.has(f)?-1:1,w=u&&m?-1:1,h=yn(o,n);let{mainAxis:b,crossAxis:S,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return p&&typeof E=="number"&&(S=p==="end"?E*-1:E),m?{x:S*w,y:b*g}:{x:b*g,y:S*w}}const qx=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var i,a;const{x:l,y:u,placement:f,middlewareData:p}=o,m=await Qx(o,n);return f===((i=p.offset)==null?void 0:i.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:l+m.x,y:u+m.y,data:{...m,placement:f}}}}},Zx=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:i,y:a,placement:l,platform:u}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:m={fn:N=>{let{x:P,y:R}=N;return{x:P,y:R}}},...g}=yn(n,o),w={x:i,y:a},h=await u.detectOverflow(o,g),b=an(wn(l)),S=il(b);let E=w[S],k=w[b];if(f){const N=S==="y"?"top":"left",P=S==="y"?"bottom":"right",R=E+h[N],j=E-h[P];E=ol(R,E,j)}if(p){const N=b==="y"?"top":"left",P=b==="y"?"bottom":"right",R=k+h[N],j=k-h[P];k=ol(R,k,j)}const C=m.fn({...o,[S]:E,[b]:k});return{...C,data:{x:C.x-i,y:C.y-a,enabled:{[S]:f,[b]:p}}}}}},Jx=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:i,y:a,placement:l,rects:u,middlewareData:f}=o,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=yn(n,o),w={x:i,y:a},h=an(l),b=il(h);let S=w[b],E=w[h];const k=yn(p,o),C=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const R=b==="y"?"height":"width",j=u.reference[b]-u.floating[R]+C.mainAxis,$=u.reference[b]+u.reference[R]-C.mainAxis;S<j?S=j:S>$&&(S=$)}if(g){var N,P;const R=b==="y"?"width":"height",j=Tf.has(wn(l)),$=u.reference[h]-u.floating[R]+(j&&((N=f.offset)==null?void 0:N[h])||0)+(j?0:C.crossAxis),z=u.reference[h]+u.reference[R]+(j?0:((P=f.offset)==null?void 0:P[h])||0)-(j?C.crossAxis:0);E<$?E=$:E>z&&(E=z)}return{[b]:S,[h]:E}}}},eb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var i,a;const{placement:l,rects:u,platform:f,elements:p}=o,{apply:m=()=>{},...g}=yn(n,o),w=await f.detectOverflow(o,g),h=wn(l),b=Yr(l),S=an(l)==="y",{width:E,height:k}=u.floating;let C,N;h==="top"||h==="bottom"?(C=h,N=b===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(N=h,C=b==="end"?"top":"bottom");const P=k-w.top-w.bottom,R=E-w.left-w.right,j=On(k-w[C],P),$=On(E-w[N],R),z=!o.middlewareData.shift;let O=j,D=$;if((i=o.middlewareData.shift)!=null&&i.enabled.x&&(D=R),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(O=P),z&&!b){const oe=Nt(w.left,0),fe=Nt(w.right,0),ge=Nt(w.top,0),he=Nt(w.bottom,0);S?D=E-2*(oe!==0||fe!==0?oe+fe:Nt(w.left,w.right)):O=k-2*(ge!==0||he!==0?ge+he:Nt(w.top,w.bottom))}await m({...o,availableWidth:D,availableHeight:O});const K=await f.getDimensions(p.floating);return E!==K.width||k!==K.height?{reset:{rects:!0}}:{}}}};function Xi(){return typeof window<"u"}function Kr(n){return If(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function ln(n){var o;return(o=(If(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function If(n){return Xi()?n instanceof Node||n instanceof Rt(n).Node:!1}function Wt(n){return Xi()?n instanceof Element||n instanceof Rt(n).Element:!1}function xn(n){return Xi()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function Af(n){return!Xi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}function jo(n){const{overflow:o,overflowX:i,overflowY:a,display:l}=Gt(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+i)&&l!=="inline"&&l!=="contents"}function tb(n){return/^(table|td|th)$/.test(Kr(n))}function Qi(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const nb=/transform|translate|scale|rotate|perspective|filter/,rb=/paint|layout|strict|content/,yr=n=>!!n&&n!=="none";let cl;function ul(n){const o=Wt(n)?Gt(n):n;return yr(o.transform)||yr(o.translate)||yr(o.scale)||yr(o.rotate)||yr(o.perspective)||!dl()&&(yr(o.backdropFilter)||yr(o.filter))||nb.test(o.willChange||"")||rb.test(o.contain||"")}function ob(n){let o=Dn(n);for(;xn(o)&&!Xr(o);){if(ul(o))return o;if(Qi(o))return null;o=Dn(o)}return null}function dl(){return cl==null&&(cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cl}function Xr(n){return/^(html|body|#document)$/.test(Kr(n))}function Gt(n){return Rt(n).getComputedStyle(n)}function qi(n){return Wt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(Kr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||Af(n)&&n.host||ln(n);return Af(o)?o.host:o}function jf(n){const o=Dn(n);return Xr(o)?n.ownerDocument?n.ownerDocument.body:n.body:xn(o)&&jo(o)?o:jf(o)}function Mo(n,o,i){var a;o===void 0&&(o=[]),i===void 0&&(i=!0);const l=jf(n),u=l===((a=n.ownerDocument)==null?void 0:a.body),f=Rt(l);if(u){const p=fl(f);return o.concat(f,f.visualViewport||[],jo(l)?l:[],p&&i?Mo(p):[])}else return o.concat(l,Mo(l,[],i))}function fl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Mf(n){const o=Gt(n);let i=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const l=xn(n),u=l?n.offsetWidth:i,f=l?n.offsetHeight:a,p=Wi(i)!==u||Wi(a)!==f;return p&&(i=u,a=f),{width:i,height:a,$:p}}function pl(n){return Wt(n)?n:n.contextElement}function Qr(n){const o=pl(n);if(!xn(o))return sn(1);const i=o.getBoundingClientRect(),{width:a,height:l,$:u}=Mf(o);let f=(u?Wi(i.width):i.width)/a,p=(u?Wi(i.height):i.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const ib=sn(0);function zf(n){const o=Rt(n);return!dl()||!o.visualViewport?ib:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function sb(n,o,i){return o===void 0&&(o=!1),!i||o&&i!==Rt(n)?!1:o}function wr(n,o,i,a){o===void 0&&(o=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),u=pl(n);let f=sn(1);o&&(a?Wt(a)&&(f=Qr(a)):f=Qr(n));const p=sb(u,i,a)?zf(u):sn(0);let m=(l.left+p.x)/f.x,g=(l.top+p.y)/f.y,w=l.width/f.x,h=l.height/f.y;if(u){const b=Rt(u),S=a&&Wt(a)?Rt(a):a;let E=b,k=fl(E);for(;k&&a&&S!==E;){const C=Qr(k),N=k.getBoundingClientRect(),P=Gt(k),R=N.left+(k.clientLeft+parseFloat(P.paddingLeft))*C.x,j=N.top+(k.clientTop+parseFloat(P.paddingTop))*C.y;m*=C.x,g*=C.y,w*=C.x,h*=C.y,m+=R,g+=j,E=Rt(k),k=fl(E)}}return Ki({width:w,height:h,x:m,y:g})}function Zi(n,o){const i=qi(n).scrollLeft;return o?o.left+i:wr(ln(n)).left+i}function Lf(n,o){const i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-Zi(n,i),l=i.top+o.scrollTop;return{x:a,y:l}}function ab(n){let{elements:o,rect:i,offsetParent:a,strategy:l}=n;const u=l==="fixed",f=ln(a),p=o?Qi(o.floating):!1;if(a===f||p&&u)return i;let m={scrollLeft:0,scrollTop:0},g=sn(1);const w=sn(0),h=xn(a);if((h||!h&&!u)&&((Kr(a)!=="body"||jo(f))&&(m=qi(a)),h)){const S=wr(a);g=Qr(a),w.x=S.x+a.clientLeft,w.y=S.y+a.clientTop}const b=f&&!h&&!u?Lf(f,m):sn(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-m.scrollLeft*g.x+w.x+b.x,y:i.y*g.y-m.scrollTop*g.y+w.y+b.y}}function lb(n){return Array.from(n.getClientRects())}function cb(n){const o=ln(n),i=qi(n),a=n.ownerDocument.body,l=Nt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=Nt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let f=-i.scrollLeft+Zi(n);const p=-i.scrollTop;return Gt(a).direction==="rtl"&&(f+=Nt(o.clientWidth,a.clientWidth)-l),{width:l,height:u,x:f,y:p}}const Of=25;function ub(n,o){const i=Rt(n),a=ln(n),l=i.visualViewport;let u=a.clientWidth,f=a.clientHeight,p=0,m=0;if(l){u=l.width,f=l.height;const w=dl();(!w||w&&o==="fixed")&&(p=l.offsetLeft,m=l.offsetTop)}const g=Zi(a);if(g<=0){const w=a.ownerDocument,h=w.body,b=getComputedStyle(h),S=w.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-h.clientWidth-S);E<=Of&&(u-=E)}else g<=Of&&(u+=g);return{width:u,height:f,x:p,y:m}}function db(n,o){const i=wr(n,!0,o==="fixed"),a=i.top+n.clientTop,l=i.left+n.clientLeft,u=xn(n)?Qr(n):sn(1),f=n.clientWidth*u.x,p=n.clientHeight*u.y,m=l*u.x,g=a*u.y;return{width:f,height:p,x:m,y:g}}function Df(n,o,i){let a;if(o==="viewport")a=ub(n,i);else if(o==="document")a=cb(ln(n));else if(Wt(o))a=db(o,i);else{const l=zf(n);a={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return Ki(a)}function Ff(n,o){const i=Dn(n);return i===o||!Wt(i)||Xr(i)?!1:Gt(i).position==="fixed"||Ff(i,o)}function fb(n,o){const i=o.get(n);if(i)return i;let a=Mo(n,[],!1).filter(p=>Wt(p)&&Kr(p)!=="body"),l=null;const u=Gt(n).position==="fixed";let f=u?Dn(n):n;for(;Wt(f)&&!Xr(f);){const p=Gt(f),m=ul(f);!m&&p.position==="fixed"&&(l=null),(u?!m&&!l:!m&&p.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||jo(f)&&!m&&Ff(n,f))?a=a.filter(w=>w!==f):l=p,f=Dn(f)}return o.set(n,a),a}function pb(n){let{element:o,boundary:i,rootBoundary:a,strategy:l}=n;const f=[...i==="clippingAncestors"?Qi(o)?[]:fb(o,this._c):[].concat(i),a],p=Df(o,f[0],l);let m=p.top,g=p.right,w=p.bottom,h=p.left;for(let b=1;b<f.length;b++){const S=Df(o,f[b],l);m=Nt(S.top,m),g=On(S.right,g),w=On(S.bottom,w),h=Nt(S.left,h)}return{width:g-h,height:w-m,x:h,y:m}}function mb(n){const{width:o,height:i}=Mf(n);return{width:o,height:i}}function hb(n,o,i){const a=xn(o),l=ln(o),u=i==="fixed",f=wr(n,!0,u,o);let p={scrollLeft:0,scrollTop:0};const m=sn(0);function g(){m.x=Zi(l)}if(a||!a&&!u)if((Kr(o)!=="body"||jo(l))&&(p=qi(o)),a){const S=wr(o,!0,u,o);m.x=S.x+o.clientLeft,m.y=S.y+o.clientTop}else l&&g();u&&!a&&l&&g();const w=l&&!a&&!u?Lf(l,p):sn(0),h=f.left+p.scrollLeft-m.x-w.x,b=f.top+p.scrollTop-m.y-w.y;return{x:h,y:b,width:f.width,height:f.height}}function ml(n){return Gt(n).position==="static"}function $f(n,o){if(!xn(n)||Gt(n).position==="fixed")return null;if(o)return o(n);let i=n.offsetParent;return ln(n)===i&&(i=i.ownerDocument.body),i}function Bf(n,o){const i=Rt(n);if(Qi(n))return i;if(!xn(n)){let l=Dn(n);for(;l&&!Xr(l);){if(Wt(l)&&!ml(l))return l;l=Dn(l)}return i}let a=$f(n,o);for(;a&&tb(a)&&ml(a);)a=$f(a,o);return a&&Xr(a)&&ml(a)&&!ul(a)?i:a||ob(n)||i}const gb=async function(n){const o=this.getOffsetParent||Bf,i=this.getDimensions,a=await i(n.floating);return{reference:hb(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function vb(n){return Gt(n).direction==="rtl"}const yb={convertOffsetParentRelativeRectToViewportRelativeRect:ab,getDocumentElement:ln,getClippingRect:pb,getOffsetParent:Bf,getElementRects:gb,getClientRects:lb,getDimensions:mb,getScale:Qr,isElement:Wt,isRTL:vb};function Hf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function wb(n,o){let i=null,a;const l=ln(n);function u(){var p;clearTimeout(a),(p=i)==null||p.disconnect(),i=null}function f(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),u();const g=n.getBoundingClientRect(),{left:w,top:h,width:b,height:S}=g;if(p||o(),!b||!S)return;const E=Gi(h),k=Gi(l.clientWidth-(w+b)),C=Gi(l.clientHeight-(h+S)),N=Gi(w),R={rootMargin:-E+"px "+-k+"px "+-C+"px "+-N+"px",threshold:Nt(0,On(1,m))||1};let j=!0;function $(z){const O=z[0].intersectionRatio;if(O!==m){if(!j)return f();O?f(!1,O):a=setTimeout(()=>{f(!1,1e-7)},1e3)}O===1&&!Hf(g,n.getBoundingClientRect())&&f(),j=!1}try{i=new IntersectionObserver($,{...R,root:l.ownerDocument})}catch{i=new IntersectionObserver($,R)}i.observe(n)}return f(!0),u}function xb(n,o,i,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,g=pl(n),w=l||u?[...g?Mo(g):[],...o?Mo(o):[]]:[];w.forEach(N=>{l&&N.addEventListener("scroll",i,{passive:!0}),u&&N.addEventListener("resize",i)});const h=g&&p?wb(g,i):null;let b=-1,S=null;f&&(S=new ResizeObserver(N=>{let[P]=N;P&&P.target===g&&S&&o&&(S.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(o)})),i()}),g&&!m&&S.observe(g),o&&S.observe(o));let E,k=m?wr(n):null;m&&C();function C(){const N=wr(n);k&&!Hf(k,N)&&i(),k=N,E=requestAnimationFrame(C)}return i(),()=>{var N;w.forEach(P=>{l&&P.removeEventListener("scroll",i),u&&P.removeEventListener("resize",i)}),h==null||h(),(N=S)==null||N.disconnect(),S=null,m&&cancelAnimationFrame(E)}}const bb=qx,kb=Zx,Sb=Kx,Cb=eb,Eb=Xx,Uf=Yx,_b=Jx,Nb=(n,o,i)=>{const a=new Map,l={platform:yb,...i},u={...l.platform,_c:a};return Gx(n,o,{...l,platform:u})};var Rb=typeof document<"u",Pb=function(){},Ji=Rb?v.useLayoutEffect:Pb;function es(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let i,a,l;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==o.length)return!1;for(a=i;a--!==0;)if(!es(n[a],o[a]))return!1;return!0}if(l=Object.keys(n),i=l.length,i!==Object.keys(o).length)return!1;for(a=i;a--!==0;)if(!{}.hasOwnProperty.call(o,l[a]))return!1;for(a=i;a--!==0;){const u=l[a];if(!(u==="_owner"&&n.$$typeof)&&!es(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function Vf(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Wf(n,o){const i=Vf(n);return Math.round(o*i)/i}function hl(n){const o=v.useRef(n);return Ji(()=>{o.current=n}),o}function Tb(n){n===void 0&&(n={});const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l,elements:{reference:u,floating:f}={},transform:p=!0,whileElementsMounted:m,open:g}=n,[w,h]=v.useState({x:0,y:0,strategy:i,placement:o,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(a);es(b,a)||S(a);const[E,k]=v.useState(null),[C,N]=v.useState(null),P=v.useCallback(H=>{H!==z.current&&(z.current=H,k(H))},[]),R=v.useCallback(H=>{H!==O.current&&(O.current=H,N(H))},[]),j=u||E,$=f||C,z=v.useRef(null),O=v.useRef(null),D=v.useRef(w),K=m!=null,oe=hl(m),fe=hl(l),ge=hl(g),he=v.useCallback(()=>{if(!z.current||!O.current)return;const H={placement:o,strategy:i,middleware:b};fe.current&&(H.platform=fe.current),Nb(z.current,O.current,H).then(q=>{const B={...q,isPositioned:ge.current!==!1};ve.current&&!es(D.current,B)&&(D.current=B,No.flushSync(()=>{h(B)}))})},[b,o,i,fe,ge]);Ji(()=>{g===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(H=>({...H,isPositioned:!1})))},[g]);const ve=v.useRef(!1);Ji(()=>(ve.current=!0,()=>{ve.current=!1}),[]),Ji(()=>{if(j&&(z.current=j),$&&(O.current=$),j&&$){if(oe.current)return oe.current(j,$,he);he()}},[j,$,he,oe,K]);const Se=v.useMemo(()=>({reference:z,floating:O,setReference:P,setFloating:R}),[P,R]),G=v.useMemo(()=>({reference:j,floating:$}),[j,$]),te=v.useMemo(()=>{const H={position:i,left:0,top:0};if(!G.floating)return H;const q=Wf(G.floating,w.x),B=Wf(G.floating,w.y);return p?{...H,transform:"translate("+q+"px, "+B+"px)",...Vf(G.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:q,top:B}},[i,p,G.floating,w.x,w.y]);return v.useMemo(()=>({...w,update:he,refs:Se,elements:G,floatingStyles:te}),[w,he,Se,G,te])}const Ib=n=>{function o(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:a,padding:l}=typeof n=="function"?n(i):n;return a&&o(a)?a.current!=null?Uf({element:a.current,padding:l}).fn(i):{}:a?Uf({element:a,padding:l}).fn(i):{}}}},Ab=(n,o)=>{const i=bb(n);return{name:i.name,fn:i.fn,options:[n,o]}},jb=(n,o)=>{const i=kb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Mb=(n,o)=>({fn:_b(n).fn,options:[n,o]}),zb=(n,o)=>{const i=Sb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Lb=(n,o)=>{const i=Cb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Ob=(n,o)=>{const i=Eb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Db=(n,o)=>{const i=Ib(n);return{name:i.name,fn:i.fn,options:[n,o]}};var Fb="Arrow",Gf=v.forwardRef((n,o)=>{const{children:i,width:a=10,height:l=5,...u}=n;return y.jsx(we.svg,{...u,ref:o,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gf.displayName=Fb;var $b=Gf,gl="Popper",[Yf,ts]=bt(gl),[Bb,Kf]=Yf(gl),Xf=n=>{const{__scopePopper:o,children:i}=n,[a,l]=v.useState(null);return y.jsx(Bb,{scope:o,anchor:a,onAnchorChange:l,children:i})};Xf.displayName=gl;var Qf="PopperAnchor",qf=v.forwardRef((n,o)=>{const{__scopePopper:i,virtualRef:a,...l}=n,u=Kf(Qf,i),f=v.useRef(null),p=Ie(o,f),m=v.useRef(null);return v.useEffect(()=>{const g=m.current;m.current=(a==null?void 0:a.current)||f.current,g!==m.current&&u.onAnchorChange(m.current)}),a?null:y.jsx(we.div,{...l,ref:p})});qf.displayName=Qf;var vl="PopperContent",[Hb,Ub]=Yf(vl),Zf=v.forwardRef((n,o)=>{var Z,J,ae,Ce,Ne,Re;const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:h="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:E,...k}=n,C=Kf(vl,i),[N,P]=v.useState(null),R=Ie(o,Fe=>P(Fe)),[j,$]=v.useState(null),z=Ui(j),O=(z==null?void 0:z.width)??0,D=(z==null?void 0:z.height)??0,K=a+(u!=="center"?"-"+u:""),oe=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},fe=Array.isArray(g)?g:[g],ge=fe.length>0,he={padding:oe,boundary:fe.filter(Wb),altBoundary:ge},{refs:ve,floatingStyles:Se,placement:G,isPositioned:te,middlewareData:H}=Tb({strategy:"fixed",placement:K,whileElementsMounted:(...Fe)=>xb(...Fe,{animationFrame:S==="always"}),elements:{reference:C.anchor},middleware:[Ab({mainAxis:l+D,alignmentAxis:f}),m&&jb({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Mb():void 0,...he}),m&&zb({...he}),Lb({...he,apply:({elements:Fe,rects:Be,availableWidth:un,availableHeight:Kt})=>{const{width:gt,height:kr}=Be.reference,tt=Fe.floating.style;tt.setProperty("--radix-popper-available-width",`${un}px`),tt.setProperty("--radix-popper-available-height",`${Kt}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${kr}px`)}}),j&&Db({element:j,padding:p}),Gb({arrowWidth:O,arrowHeight:D}),b&&Ob({strategy:"referenceHidden",...he})]}),[q,B]=tp(G),A=ut(E);We(()=>{te&&(A==null||A())},[te,A]);const U=(Z=H.arrow)==null?void 0:Z.x,ee=(J=H.arrow)==null?void 0:J.y,re=((ae=H.arrow)==null?void 0:ae.centerOffset)!==0,[ne,se]=v.useState();return We(()=>{N&&se(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:te?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(Ce=H.transformOrigin)==null?void 0:Ce.x,(Ne=H.transformOrigin)==null?void 0:Ne.y].join(" "),...((Re=H.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(Hb,{scope:i,placedSide:q,onArrowChange:$,arrowX:U,arrowY:ee,shouldHideArrow:re,children:y.jsx(we.div,{"data-side":q,"data-align":B,...k,ref:R,style:{...k.style,animation:te?void 0:"none"}})})})});Zf.displayName=vl;var Jf="PopperArrow",Vb={top:"bottom",right:"left",bottom:"top",left:"right"},ep=v.forwardRef(function(o,i){const{__scopePopper:a,...l}=o,u=Ub(Jf,a),f=Vb[u.placedSide];return y.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:y.jsx($b,{...l,ref:i,style:{...l.style,display:"block"}})})});ep.displayName=Jf;function Wb(n){return n!==null}var Gb=n=>({name:"transformOrigin",options:n,fn(o){var C,N,P;const{placement:i,rects:a,middlewareData:l}=o,f=((C=l.arrow)==null?void 0:C.centerOffset)!==0,p=f?0:n.arrowWidth,m=f?0:n.arrowHeight,[g,w]=tp(i),h={start:"0%",center:"50%",end:"100%"}[w],b=(((N=l.arrow)==null?void 0:N.x)??0)+p/2,S=(((P=l.arrow)==null?void 0:P.y)??0)+m/2;let E="",k="";return g==="bottom"?(E=f?h:`${b}px`,k=`${-m}px`):g==="top"?(E=f?h:`${b}px`,k=`${a.floating.height+m}px`):g==="right"?(E=`${-m}px`,k=f?h:`${S}px`):g==="left"&&(E=`${a.floating.width+m}px`,k=f?h:`${S}px`),{data:{x:E,y:k}}}});function tp(n){const[o,i="center"]=n.split("-");return[o,i]}var np=Xf,rp=qf,op=Zf,ip=ep,yl="rovingFocusGroup.onEntryFocus",Yb={bubbles:!1,cancelable:!0},zo="RovingFocusGroup",[wl,sp,Kb]=Td(zo),[Xb,ns]=bt(zo,[Kb]),[Qb,qb]=Xb(zo),ap=v.forwardRef((n,o)=>y.jsx(wl.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(wl.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Zb,{...n,ref:o})})}));ap.displayName=zo;var Zb=v.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,orientation:a,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...h}=n,b=v.useRef(null),S=Ie(o,b),E=Ao(u),[k,C]=vn({prop:f,defaultProp:p??null,onChange:m,caller:zo}),[N,P]=v.useState(!1),R=ut(g),j=sp(i),$=v.useRef(!1),[z,O]=v.useState(0);return v.useEffect(()=>{const D=b.current;if(D)return D.addEventListener(yl,R),()=>D.removeEventListener(yl,R)},[R]),y.jsx(Qb,{scope:i,orientation:a,dir:E,loop:l,currentTabStopId:k,onItemFocus:v.useCallback(D=>C(D),[C]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>O(D=>D+1),[]),onFocusableItemRemove:v.useCallback(()=>O(D=>D-1),[]),children:y.jsx(we.div,{tabIndex:N||z===0?-1:0,"data-orientation":a,...h,ref:S,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{$.current=!0}),onFocus:ke(n.onFocus,D=>{const K=!$.current;if(D.target===D.currentTarget&&K&&!N){const oe=new CustomEvent(yl,Yb);if(D.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const fe=j().filter(G=>G.focusable),ge=fe.find(G=>G.active),he=fe.find(G=>G.id===k),Se=[ge,he,...fe].filter(Boolean).map(G=>G.ref.current);up(Se,w)}}$.current=!1}),onBlur:ke(n.onBlur,()=>P(!1))})})}),lp="RovingFocusGroupItem",cp=v.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:u,children:f,...p}=n,m=vr(),g=u||m,w=qb(lp,i),h=w.currentTabStopId===g,b=sp(i),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:k}=w;return v.useEffect(()=>{if(a)return S(),()=>E()},[a,S,E]),y.jsx(wl.ItemSlot,{scope:i,id:g,focusable:a,active:l,children:y.jsx(we.span,{tabIndex:h?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:ke(n.onMouseDown,C=>{a?w.onItemFocus(g):C.preventDefault()}),onFocus:ke(n.onFocus,()=>w.onItemFocus(g)),onKeyDown:ke(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){w.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const N=t1(C,w.orientation,w.dir);if(N!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let R=b().filter(j=>j.focusable).map(j=>j.ref.current);if(N==="last")R.reverse();else if(N==="prev"||N==="next"){N==="prev"&&R.reverse();const j=R.indexOf(C.currentTarget);R=w.loop?n1(R,j+1):R.slice(j+1)}setTimeout(()=>up(R))}}),children:typeof f=="function"?f({isCurrentTabStop:h,hasTabStop:k!=null}):f})})});cp.displayName=lp;var Jb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e1(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function t1(n,o,i){const a=e1(n.key,i);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Jb[a]}function up(n,o=!1){const i=document.activeElement;for(const a of n)if(a===i||(a.focus({preventScroll:o}),document.activeElement!==i))return}function n1(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var dp=ap,fp=cp,r1="Label",pp=v.forwardRef((n,o)=>y.jsx(we.label,{...n,ref:o,onMouseDown:i=>{var l;i.target.closest("button, input, select, textarea")||((l=n.onMouseDown)==null||l.call(n,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));pp.displayName=r1;var o1=pp;function xl(n,[o,i]){return Math.min(i,Math.max(o,n))}var bl="Progress",kl=100,[i1]=bt(bl),[s1,a1]=i1(bl),mp=v.forwardRef((n,o)=>{const{__scopeProgress:i,value:a=null,max:l,getValueLabel:u=l1,...f}=n;(l||l===0)&&!yp(l)&&console.error(c1(`${l}`,"Progress"));const p=yp(l)?l:kl;a!==null&&!wp(a,p)&&console.error(u1(`${a}`,"Progress"));const m=wp(a,p)?a:null,g=rs(m)?u(m,p):void 0;return y.jsx(s1,{scope:i,value:m,max:p,children:y.jsx(we.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":rs(m)?m:void 0,"aria-valuetext":g,role:"progressbar","data-state":vp(m,p),"data-value":m??void 0,"data-max":p,...f,ref:o})})});mp.displayName=bl;var hp="ProgressIndicator",gp=v.forwardRef((n,o)=>{const{__scopeProgress:i,...a}=n,l=a1(hp,i);return y.jsx(we.div,{"data-state":vp(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...a,ref:o})});gp.displayName=hp;function l1(n,o){return`${Math.round(n/o*100)}%`}function vp(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function rs(n){return typeof n=="number"}function yp(n){return rs(n)&&!isNaN(n)&&n>0}function wp(n,o){return rs(n)&&!isNaN(n)&&n<=o&&n>=0}function c1(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${kl}\`.`}function u1(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
299
+ */var af;function xx(){if(af)return tl;af=1;var n=Si();function o(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var i=typeof Object.is=="function"?Object.is:o,a=n.useState,l=n.useEffect,u=n.useLayoutEffect,f=n.useDebugValue;function p(h,b){var S=b(),E=a({inst:{value:S,getSnapshot:b}}),k=E[0].inst,C=E[1];return u(function(){k.value=S,k.getSnapshot=b,m(k)&&C({inst:k})},[h,S,b]),l(function(){return m(k)&&C({inst:k}),h(function(){m(k)&&C({inst:k})})},[h]),f(S),S}function m(h){var b=h.getSnapshot;h=h.value;try{var S=b();return!i(h,S)}catch{return!0}}function g(h,b){return b()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:p;return tl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,tl}var lf;function bx(){return lf||(lf=1,el.exports=xx()),el.exports}var kx=bx();function Sx(){return kx.useSyncExternalStore(Cx,()=>!0,()=>!1)}function Cx(){return()=>{}}var nl="Avatar",[Ex]=bt(nl),[_x,cf]=Ex(nl),uf=v.forwardRef((n,o)=>{const{__scopeAvatar:i,...a}=n,[l,u]=v.useState("idle");return y.jsx(_x,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:y.jsx(we.span,{...a,ref:o})})});uf.displayName=nl;var df="AvatarImage",ff=v.forwardRef((n,o)=>{const{__scopeAvatar:i,src:a,onLoadingStatusChange:l=()=>{},...u}=n,f=cf(df,i),p=Nx(a,u),m=ut(g=>{l(g),f.onImageLoadingStatusChange(g)});return We(()=>{p!=="idle"&&m(p)},[p,m]),p==="loaded"?y.jsx(we.img,{...u,ref:o,src:a}):null});ff.displayName=df;var pf="AvatarFallback",mf=v.forwardRef((n,o)=>{const{__scopeAvatar:i,delayMs:a,...l}=n,u=cf(pf,i),[f,p]=v.useState(a===void 0);return v.useEffect(()=>{if(a!==void 0){const m=window.setTimeout(()=>p(!0),a);return()=>window.clearTimeout(m)}},[a]),f&&u.imageLoadingStatus!=="loaded"?y.jsx(we.span,{...l,ref:o}):null});mf.displayName=pf;function hf(n,o){return n?o?(n.src!==o&&(n.src=o),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Nx(n,{referrerPolicy:o,crossOrigin:i}){const a=Sx(),l=v.useRef(null),u=a?(l.current||(l.current=new window.Image),l.current):null,[f,p]=v.useState(()=>hf(u,n));return We(()=>{p(hf(u,n))},[u,n]),We(()=>{const m=h=>()=>{p(h)};if(!u)return;const g=m("loaded"),w=m("error");return u.addEventListener("load",g),u.addEventListener("error",w),o&&(u.referrerPolicy=o),typeof i=="string"&&(u.crossOrigin=i),()=>{u.removeEventListener("load",g),u.removeEventListener("error",w)}},[u,i,o]),f}var Rx=uf,Px=ff,Tx=mf;function Hi(n){const o=v.useRef({value:n,previous:n});return v.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function Ui(n){const[o,i]=v.useState(void 0);return We(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let f,p;if("borderBoxSize"in u){const m=u.borderBoxSize,g=Array.isArray(m)?m[0]:m;f=g.inlineSize,p=g.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else i(void 0)},[n]),o}var Vi="Checkbox",[Ix]=bt(Vi),[Ax,rl]=Ix(Vi);function jx(n){const{__scopeCheckbox:o,checked:i,children:a,defaultChecked:l,disabled:u,form:f,name:p,onCheckedChange:m,required:g,value:w="on",internal_do_not_use_render:h}=n,[b,S]=vn({prop:i,defaultProp:l??!1,onChange:m,caller:Vi}),[E,k]=v.useState(null),[C,N]=v.useState(null),P=v.useRef(!1),R=E?!!f||!!E.closest("form"):!0,j={checked:b,disabled:u,setChecked:S,control:E,setControl:k,name:p,form:f,value:w,hasConsumerStoppedPropagationRef:P,required:g,defaultChecked:Ln(l)?!1:l,isFormControl:R,bubbleInput:C,setBubbleInput:N};return y.jsx(Ax,{scope:o,...j,children:Mx(h)?h(j):a})}var gf="CheckboxTrigger",vf=v.forwardRef(({__scopeCheckbox:n,onKeyDown:o,onClick:i,...a},l)=>{const{control:u,value:f,disabled:p,checked:m,required:g,setControl:w,setChecked:h,hasConsumerStoppedPropagationRef:b,isFormControl:S,bubbleInput:E}=rl(gf,n),k=Ie(l,w),C=v.useRef(m);return v.useEffect(()=>{const N=u==null?void 0:u.form;if(N){const P=()=>h(C.current);return N.addEventListener("reset",P),()=>N.removeEventListener("reset",P)}},[u,h]),y.jsx(we.button,{type:"button",role:"checkbox","aria-checked":Ln(m)?"mixed":m,"aria-required":g,"data-state":Sf(m),"data-disabled":p?"":void 0,disabled:p,value:f,...a,ref:k,onKeyDown:ke(o,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:ke(i,N=>{h(P=>Ln(P)?!0:!P),E&&S&&(b.current=N.isPropagationStopped(),b.current||N.stopPropagation())})})});vf.displayName=gf;var yf=v.forwardRef((n,o)=>{const{__scopeCheckbox:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m,onCheckedChange:g,form:w,...h}=n;return y.jsx(jx,{__scopeCheckbox:i,checked:l,defaultChecked:u,disabled:p,required:f,onCheckedChange:g,name:a,form:w,value:m,internal_do_not_use_render:({isFormControl:b})=>y.jsxs(y.Fragment,{children:[y.jsx(vf,{...h,ref:o,__scopeCheckbox:i}),b&&y.jsx(kf,{__scopeCheckbox:i})]})})});yf.displayName=Vi;var wf="CheckboxIndicator",xf=v.forwardRef((n,o)=>{const{__scopeCheckbox:i,forceMount:a,...l}=n,u=rl(wf,i);return y.jsx(Vt,{present:a||Ln(u.checked)||u.checked===!0,children:y.jsx(we.span,{"data-state":Sf(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o,style:{pointerEvents:"none",...n.style}})})});xf.displayName=wf;var bf="CheckboxBubbleInput",kf=v.forwardRef(({__scopeCheckbox:n,...o},i)=>{const{control:a,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:f,required:p,disabled:m,name:g,value:w,form:h,bubbleInput:b,setBubbleInput:S}=rl(bf,n),E=Ie(i,S),k=Hi(u),C=Ui(a);v.useEffect(()=>{const P=b;if(!P)return;const R=window.HTMLInputElement.prototype,$=Object.getOwnPropertyDescriptor(R,"checked").set,z=!l.current;if(k!==u&&$){const O=new Event("click",{bubbles:z});P.indeterminate=Ln(u),$.call(P,Ln(u)?!1:u),P.dispatchEvent(O)}},[b,k,u,l]);const N=v.useRef(Ln(u)?!1:u);return y.jsx(we.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??N.current,required:p,disabled:m,name:g,value:w,form:h,...o,tabIndex:-1,ref:E,style:{...o.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});kf.displayName=bf;function Mx(n){return typeof n=="function"}function Ln(n){return n==="indeterminate"}function Sf(n){return Ln(n)?"indeterminate":n?"checked":"unchecked"}const zx=["top","right","bottom","left"],On=Math.min,Nt=Math.max,Wi=Math.round,Gi=Math.floor,sn=n=>({x:n,y:n}),Lx={left:"right",right:"left",bottom:"top",top:"bottom"};function ol(n,o,i){return Nt(n,On(o,i))}function yn(n,o){return typeof n=="function"?n(o):n}function wn(n){return n.split("-")[0]}function Yr(n){return n.split("-")[1]}function il(n){return n==="x"?"y":"x"}function sl(n){return n==="y"?"height":"width"}function an(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function al(n){return il(an(n))}function Ox(n,o,i){i===void 0&&(i=!1);const a=Yr(n),l=al(n),u=sl(l);let f=l==="x"?a===(i?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=Yi(f)),[f,Yi(f)]}function Dx(n){const o=Yi(n);return[ll(n),o,ll(o)]}function ll(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Cf=["left","right"],Ef=["right","left"],Fx=["top","bottom"],$x=["bottom","top"];function Bx(n,o,i){switch(n){case"top":case"bottom":return i?o?Ef:Cf:o?Cf:Ef;case"left":case"right":return o?Fx:$x;default:return[]}}function Hx(n,o,i,a){const l=Yr(n);let u=Bx(wn(n),i==="start",a);return l&&(u=u.map(f=>f+"-"+l),o&&(u=u.concat(u.map(ll)))),u}function Yi(n){const o=wn(n);return Lx[o]+n.slice(o.length)}function Ux(n){return{top:0,right:0,bottom:0,left:0,...n}}function _f(n){return typeof n!="number"?Ux(n):{top:n,right:n,bottom:n,left:n}}function Ki(n){const{x:o,y:i,width:a,height:l}=n;return{width:a,height:l,top:i,left:o,right:o+a,bottom:i+l,x:o,y:i}}function Nf(n,o,i){let{reference:a,floating:l}=n;const u=an(o),f=al(o),p=sl(f),m=wn(o),g=u==="y",w=a.x+a.width/2-l.width/2,h=a.y+a.height/2-l.height/2,b=a[p]/2-l[p]/2;let S;switch(m){case"top":S={x:w,y:a.y-l.height};break;case"bottom":S={x:w,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y:h};break;case"left":S={x:a.x-l.width,y:h};break;default:S={x:a.x,y:a.y}}switch(Yr(o)){case"start":S[f]-=b*(i&&g?-1:1);break;case"end":S[f]+=b*(i&&g?-1:1);break}return S}async function Vx(n,o){var i;o===void 0&&(o={});const{x:a,y:l,platform:u,rects:f,elements:p,strategy:m}=n,{boundary:g="clippingAncestors",rootBoundary:w="viewport",elementContext:h="floating",altBoundary:b=!1,padding:S=0}=yn(o,n),E=_f(S),C=p[b?h==="floating"?"reference":"floating":h],N=Ki(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(C)))==null||i?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:g,rootBoundary:w,strategy:m})),P=h==="floating"?{x:a,y:l,width:f.floating.width,height:f.floating.height}:f.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),j=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},$=Ki(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:P,offsetParent:R,strategy:m}):P);return{top:(N.top-$.top+E.top)/j.y,bottom:($.bottom-N.bottom+E.bottom)/j.y,left:(N.left-$.left+E.left)/j.x,right:($.right-N.right+E.right)/j.x}}const Wx=50,Gx=async(n,o,i)=>{const{placement:a="bottom",strategy:l="absolute",middleware:u=[],platform:f}=i,p=f.detectOverflow?f:{...f,detectOverflow:Vx},m=await(f.isRTL==null?void 0:f.isRTL(o));let g=await f.getElementRects({reference:n,floating:o,strategy:l}),{x:w,y:h}=Nf(g,a,m),b=a,S=0;const E={};for(let k=0;k<u.length;k++){const C=u[k];if(!C)continue;const{name:N,fn:P}=C,{x:R,y:j,data:$,reset:z}=await P({x:w,y:h,initialPlacement:a,placement:b,strategy:l,middlewareData:E,rects:g,platform:p,elements:{reference:n,floating:o}});w=R??w,h=j??h,E[N]={...E[N],...$},z&&S<Wx&&(S++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(g=z.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:l}):z.rects),{x:w,y:h}=Nf(g,b,m)),k=-1)}return{x:w,y:h,placement:b,strategy:l,middlewareData:E}},Yx=n=>({name:"arrow",options:n,async fn(o){const{x:i,y:a,placement:l,rects:u,platform:f,elements:p,middlewareData:m}=o,{element:g,padding:w=0}=yn(n,o)||{};if(g==null)return{};const h=_f(w),b={x:i,y:a},S=al(l),E=sl(S),k=await f.getDimensions(g),C=S==="y",N=C?"top":"left",P=C?"bottom":"right",R=C?"clientHeight":"clientWidth",j=u.reference[E]+u.reference[S]-b[S]-u.floating[E],$=b[S]-u.reference[S],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let O=z?z[R]:0;(!O||!await(f.isElement==null?void 0:f.isElement(z)))&&(O=p.floating[R]||u.floating[E]);const D=j/2-$/2,X=O/2-k[E]/2-1,oe=On(h[N],X),fe=On(h[P],X),ge=oe,he=O-k[E]-fe,ve=O/2-k[E]/2+D,Se=ol(ge,ve,he),G=!m.arrow&&Yr(l)!=null&&ve!==Se&&u.reference[E]/2-(ve<ge?oe:fe)-k[E]/2<0,te=G?ve<ge?ve-ge:ve-he:0;return{[S]:b[S]+te,data:{[S]:Se,centerOffset:ve-Se-te,...G&&{alignmentOffset:te}},reset:G}}}),Kx=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var i,a;const{placement:l,middlewareData:u,rects:f,initialPlacement:p,platform:m,elements:g}=o,{mainAxis:w=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0,...C}=yn(n,o);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const N=wn(l),P=an(p),R=wn(p)===p,j=await(m.isRTL==null?void 0:m.isRTL(g.floating)),$=b||(R||!k?[Yi(p)]:Dx(p)),z=E!=="none";!b&&z&&$.push(...Hx(p,k,E,j));const O=[p,...$],D=await m.detectOverflow(o,C),X=[];let oe=((a=u.flip)==null?void 0:a.overflows)||[];if(w&&X.push(D[N]),h){const ve=Ox(l,f,j);X.push(D[ve[0]],D[ve[1]])}if(oe=[...oe,{placement:l,overflows:X}],!X.every(ve=>ve<=0)){var fe,ge;const ve=(((fe=u.flip)==null?void 0:fe.index)||0)+1,Se=O[ve];if(Se&&(!(h==="alignment"?P!==an(Se):!1)||oe.every(H=>an(H.placement)===P?H.overflows[0]>0:!0)))return{data:{index:ve,overflows:oe},reset:{placement:Se}};let G=(ge=oe.filter(te=>te.overflows[0]<=0).sort((te,H)=>te.overflows[1]-H.overflows[1])[0])==null?void 0:ge.placement;if(!G)switch(S){case"bestFit":{var he;const te=(he=oe.filter(H=>{if(z){const q=an(H.placement);return q===P||q==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(q=>q>0).reduce((q,B)=>q+B,0)]).sort((H,q)=>H[1]-q[1])[0])==null?void 0:he[0];te&&(G=te);break}case"initialPlacement":G=p;break}if(l!==G)return{reset:{placement:G}}}return{}}}};function Rf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Pf(n){return zx.some(o=>n[o]>=0)}const Xx=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:i,platform:a}=o,{strategy:l="referenceHidden",...u}=yn(n,o);switch(l){case"referenceHidden":{const f=await a.detectOverflow(o,{...u,elementContext:"reference"}),p=Rf(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Pf(p)}}}case"escaped":{const f=await a.detectOverflow(o,{...u,altBoundary:!0}),p=Rf(f,i.floating);return{data:{escapedOffsets:p,escaped:Pf(p)}}}default:return{}}}}},Tf=new Set(["left","top"]);async function Qx(n,o){const{placement:i,platform:a,elements:l}=n,u=await(a.isRTL==null?void 0:a.isRTL(l.floating)),f=wn(i),p=Yr(i),m=an(i)==="y",g=Tf.has(f)?-1:1,w=u&&m?-1:1,h=yn(o,n);let{mainAxis:b,crossAxis:S,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return p&&typeof E=="number"&&(S=p==="end"?E*-1:E),m?{x:S*w,y:b*g}:{x:b*g,y:S*w}}const qx=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var i,a;const{x:l,y:u,placement:f,middlewareData:p}=o,m=await Qx(o,n);return f===((i=p.offset)==null?void 0:i.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:l+m.x,y:u+m.y,data:{...m,placement:f}}}}},Zx=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:i,y:a,placement:l,platform:u}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:m={fn:N=>{let{x:P,y:R}=N;return{x:P,y:R}}},...g}=yn(n,o),w={x:i,y:a},h=await u.detectOverflow(o,g),b=an(wn(l)),S=il(b);let E=w[S],k=w[b];if(f){const N=S==="y"?"top":"left",P=S==="y"?"bottom":"right",R=E+h[N],j=E-h[P];E=ol(R,E,j)}if(p){const N=b==="y"?"top":"left",P=b==="y"?"bottom":"right",R=k+h[N],j=k-h[P];k=ol(R,k,j)}const C=m.fn({...o,[S]:E,[b]:k});return{...C,data:{x:C.x-i,y:C.y-a,enabled:{[S]:f,[b]:p}}}}}},Jx=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:i,y:a,placement:l,rects:u,middlewareData:f}=o,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=yn(n,o),w={x:i,y:a},h=an(l),b=il(h);let S=w[b],E=w[h];const k=yn(p,o),C=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const R=b==="y"?"height":"width",j=u.reference[b]-u.floating[R]+C.mainAxis,$=u.reference[b]+u.reference[R]-C.mainAxis;S<j?S=j:S>$&&(S=$)}if(g){var N,P;const R=b==="y"?"width":"height",j=Tf.has(wn(l)),$=u.reference[h]-u.floating[R]+(j&&((N=f.offset)==null?void 0:N[h])||0)+(j?0:C.crossAxis),z=u.reference[h]+u.reference[R]+(j?0:((P=f.offset)==null?void 0:P[h])||0)-(j?C.crossAxis:0);E<$?E=$:E>z&&(E=z)}return{[b]:S,[h]:E}}}},eb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var i,a;const{placement:l,rects:u,platform:f,elements:p}=o,{apply:m=()=>{},...g}=yn(n,o),w=await f.detectOverflow(o,g),h=wn(l),b=Yr(l),S=an(l)==="y",{width:E,height:k}=u.floating;let C,N;h==="top"||h==="bottom"?(C=h,N=b===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(N=h,C=b==="end"?"top":"bottom");const P=k-w.top-w.bottom,R=E-w.left-w.right,j=On(k-w[C],P),$=On(E-w[N],R),z=!o.middlewareData.shift;let O=j,D=$;if((i=o.middlewareData.shift)!=null&&i.enabled.x&&(D=R),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(O=P),z&&!b){const oe=Nt(w.left,0),fe=Nt(w.right,0),ge=Nt(w.top,0),he=Nt(w.bottom,0);S?D=E-2*(oe!==0||fe!==0?oe+fe:Nt(w.left,w.right)):O=k-2*(ge!==0||he!==0?ge+he:Nt(w.top,w.bottom))}await m({...o,availableWidth:D,availableHeight:O});const X=await f.getDimensions(p.floating);return E!==X.width||k!==X.height?{reset:{rects:!0}}:{}}}};function Xi(){return typeof window<"u"}function Kr(n){return If(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function ln(n){var o;return(o=(If(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function If(n){return Xi()?n instanceof Node||n instanceof Rt(n).Node:!1}function Wt(n){return Xi()?n instanceof Element||n instanceof Rt(n).Element:!1}function xn(n){return Xi()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function Af(n){return!Xi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}function jo(n){const{overflow:o,overflowX:i,overflowY:a,display:l}=Gt(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+i)&&l!=="inline"&&l!=="contents"}function tb(n){return/^(table|td|th)$/.test(Kr(n))}function Qi(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const nb=/transform|translate|scale|rotate|perspective|filter/,rb=/paint|layout|strict|content/,yr=n=>!!n&&n!=="none";let cl;function ul(n){const o=Wt(n)?Gt(n):n;return yr(o.transform)||yr(o.translate)||yr(o.scale)||yr(o.rotate)||yr(o.perspective)||!dl()&&(yr(o.backdropFilter)||yr(o.filter))||nb.test(o.willChange||"")||rb.test(o.contain||"")}function ob(n){let o=Dn(n);for(;xn(o)&&!Xr(o);){if(ul(o))return o;if(Qi(o))return null;o=Dn(o)}return null}function dl(){return cl==null&&(cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cl}function Xr(n){return/^(html|body|#document)$/.test(Kr(n))}function Gt(n){return Rt(n).getComputedStyle(n)}function qi(n){return Wt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(Kr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||Af(n)&&n.host||ln(n);return Af(o)?o.host:o}function jf(n){const o=Dn(n);return Xr(o)?n.ownerDocument?n.ownerDocument.body:n.body:xn(o)&&jo(o)?o:jf(o)}function Mo(n,o,i){var a;o===void 0&&(o=[]),i===void 0&&(i=!0);const l=jf(n),u=l===((a=n.ownerDocument)==null?void 0:a.body),f=Rt(l);if(u){const p=fl(f);return o.concat(f,f.visualViewport||[],jo(l)?l:[],p&&i?Mo(p):[])}else return o.concat(l,Mo(l,[],i))}function fl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Mf(n){const o=Gt(n);let i=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const l=xn(n),u=l?n.offsetWidth:i,f=l?n.offsetHeight:a,p=Wi(i)!==u||Wi(a)!==f;return p&&(i=u,a=f),{width:i,height:a,$:p}}function pl(n){return Wt(n)?n:n.contextElement}function Qr(n){const o=pl(n);if(!xn(o))return sn(1);const i=o.getBoundingClientRect(),{width:a,height:l,$:u}=Mf(o);let f=(u?Wi(i.width):i.width)/a,p=(u?Wi(i.height):i.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const ib=sn(0);function zf(n){const o=Rt(n);return!dl()||!o.visualViewport?ib:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function sb(n,o,i){return o===void 0&&(o=!1),!i||o&&i!==Rt(n)?!1:o}function wr(n,o,i,a){o===void 0&&(o=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),u=pl(n);let f=sn(1);o&&(a?Wt(a)&&(f=Qr(a)):f=Qr(n));const p=sb(u,i,a)?zf(u):sn(0);let m=(l.left+p.x)/f.x,g=(l.top+p.y)/f.y,w=l.width/f.x,h=l.height/f.y;if(u){const b=Rt(u),S=a&&Wt(a)?Rt(a):a;let E=b,k=fl(E);for(;k&&a&&S!==E;){const C=Qr(k),N=k.getBoundingClientRect(),P=Gt(k),R=N.left+(k.clientLeft+parseFloat(P.paddingLeft))*C.x,j=N.top+(k.clientTop+parseFloat(P.paddingTop))*C.y;m*=C.x,g*=C.y,w*=C.x,h*=C.y,m+=R,g+=j,E=Rt(k),k=fl(E)}}return Ki({width:w,height:h,x:m,y:g})}function Zi(n,o){const i=qi(n).scrollLeft;return o?o.left+i:wr(ln(n)).left+i}function Lf(n,o){const i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-Zi(n,i),l=i.top+o.scrollTop;return{x:a,y:l}}function ab(n){let{elements:o,rect:i,offsetParent:a,strategy:l}=n;const u=l==="fixed",f=ln(a),p=o?Qi(o.floating):!1;if(a===f||p&&u)return i;let m={scrollLeft:0,scrollTop:0},g=sn(1);const w=sn(0),h=xn(a);if((h||!h&&!u)&&((Kr(a)!=="body"||jo(f))&&(m=qi(a)),h)){const S=wr(a);g=Qr(a),w.x=S.x+a.clientLeft,w.y=S.y+a.clientTop}const b=f&&!h&&!u?Lf(f,m):sn(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-m.scrollLeft*g.x+w.x+b.x,y:i.y*g.y-m.scrollTop*g.y+w.y+b.y}}function lb(n){return Array.from(n.getClientRects())}function cb(n){const o=ln(n),i=qi(n),a=n.ownerDocument.body,l=Nt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=Nt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let f=-i.scrollLeft+Zi(n);const p=-i.scrollTop;return Gt(a).direction==="rtl"&&(f+=Nt(o.clientWidth,a.clientWidth)-l),{width:l,height:u,x:f,y:p}}const Of=25;function ub(n,o){const i=Rt(n),a=ln(n),l=i.visualViewport;let u=a.clientWidth,f=a.clientHeight,p=0,m=0;if(l){u=l.width,f=l.height;const w=dl();(!w||w&&o==="fixed")&&(p=l.offsetLeft,m=l.offsetTop)}const g=Zi(a);if(g<=0){const w=a.ownerDocument,h=w.body,b=getComputedStyle(h),S=w.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-h.clientWidth-S);E<=Of&&(u-=E)}else g<=Of&&(u+=g);return{width:u,height:f,x:p,y:m}}function db(n,o){const i=wr(n,!0,o==="fixed"),a=i.top+n.clientTop,l=i.left+n.clientLeft,u=xn(n)?Qr(n):sn(1),f=n.clientWidth*u.x,p=n.clientHeight*u.y,m=l*u.x,g=a*u.y;return{width:f,height:p,x:m,y:g}}function Df(n,o,i){let a;if(o==="viewport")a=ub(n,i);else if(o==="document")a=cb(ln(n));else if(Wt(o))a=db(o,i);else{const l=zf(n);a={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return Ki(a)}function Ff(n,o){const i=Dn(n);return i===o||!Wt(i)||Xr(i)?!1:Gt(i).position==="fixed"||Ff(i,o)}function fb(n,o){const i=o.get(n);if(i)return i;let a=Mo(n,[],!1).filter(p=>Wt(p)&&Kr(p)!=="body"),l=null;const u=Gt(n).position==="fixed";let f=u?Dn(n):n;for(;Wt(f)&&!Xr(f);){const p=Gt(f),m=ul(f);!m&&p.position==="fixed"&&(l=null),(u?!m&&!l:!m&&p.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||jo(f)&&!m&&Ff(n,f))?a=a.filter(w=>w!==f):l=p,f=Dn(f)}return o.set(n,a),a}function pb(n){let{element:o,boundary:i,rootBoundary:a,strategy:l}=n;const f=[...i==="clippingAncestors"?Qi(o)?[]:fb(o,this._c):[].concat(i),a],p=Df(o,f[0],l);let m=p.top,g=p.right,w=p.bottom,h=p.left;for(let b=1;b<f.length;b++){const S=Df(o,f[b],l);m=Nt(S.top,m),g=On(S.right,g),w=On(S.bottom,w),h=Nt(S.left,h)}return{width:g-h,height:w-m,x:h,y:m}}function mb(n){const{width:o,height:i}=Mf(n);return{width:o,height:i}}function hb(n,o,i){const a=xn(o),l=ln(o),u=i==="fixed",f=wr(n,!0,u,o);let p={scrollLeft:0,scrollTop:0};const m=sn(0);function g(){m.x=Zi(l)}if(a||!a&&!u)if((Kr(o)!=="body"||jo(l))&&(p=qi(o)),a){const S=wr(o,!0,u,o);m.x=S.x+o.clientLeft,m.y=S.y+o.clientTop}else l&&g();u&&!a&&l&&g();const w=l&&!a&&!u?Lf(l,p):sn(0),h=f.left+p.scrollLeft-m.x-w.x,b=f.top+p.scrollTop-m.y-w.y;return{x:h,y:b,width:f.width,height:f.height}}function ml(n){return Gt(n).position==="static"}function $f(n,o){if(!xn(n)||Gt(n).position==="fixed")return null;if(o)return o(n);let i=n.offsetParent;return ln(n)===i&&(i=i.ownerDocument.body),i}function Bf(n,o){const i=Rt(n);if(Qi(n))return i;if(!xn(n)){let l=Dn(n);for(;l&&!Xr(l);){if(Wt(l)&&!ml(l))return l;l=Dn(l)}return i}let a=$f(n,o);for(;a&&tb(a)&&ml(a);)a=$f(a,o);return a&&Xr(a)&&ml(a)&&!ul(a)?i:a||ob(n)||i}const gb=async function(n){const o=this.getOffsetParent||Bf,i=this.getDimensions,a=await i(n.floating);return{reference:hb(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function vb(n){return Gt(n).direction==="rtl"}const yb={convertOffsetParentRelativeRectToViewportRelativeRect:ab,getDocumentElement:ln,getClippingRect:pb,getOffsetParent:Bf,getElementRects:gb,getClientRects:lb,getDimensions:mb,getScale:Qr,isElement:Wt,isRTL:vb};function Hf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function wb(n,o){let i=null,a;const l=ln(n);function u(){var p;clearTimeout(a),(p=i)==null||p.disconnect(),i=null}function f(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),u();const g=n.getBoundingClientRect(),{left:w,top:h,width:b,height:S}=g;if(p||o(),!b||!S)return;const E=Gi(h),k=Gi(l.clientWidth-(w+b)),C=Gi(l.clientHeight-(h+S)),N=Gi(w),R={rootMargin:-E+"px "+-k+"px "+-C+"px "+-N+"px",threshold:Nt(0,On(1,m))||1};let j=!0;function $(z){const O=z[0].intersectionRatio;if(O!==m){if(!j)return f();O?f(!1,O):a=setTimeout(()=>{f(!1,1e-7)},1e3)}O===1&&!Hf(g,n.getBoundingClientRect())&&f(),j=!1}try{i=new IntersectionObserver($,{...R,root:l.ownerDocument})}catch{i=new IntersectionObserver($,R)}i.observe(n)}return f(!0),u}function xb(n,o,i,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,g=pl(n),w=l||u?[...g?Mo(g):[],...o?Mo(o):[]]:[];w.forEach(N=>{l&&N.addEventListener("scroll",i,{passive:!0}),u&&N.addEventListener("resize",i)});const h=g&&p?wb(g,i):null;let b=-1,S=null;f&&(S=new ResizeObserver(N=>{let[P]=N;P&&P.target===g&&S&&o&&(S.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(o)})),i()}),g&&!m&&S.observe(g),o&&S.observe(o));let E,k=m?wr(n):null;m&&C();function C(){const N=wr(n);k&&!Hf(k,N)&&i(),k=N,E=requestAnimationFrame(C)}return i(),()=>{var N;w.forEach(P=>{l&&P.removeEventListener("scroll",i),u&&P.removeEventListener("resize",i)}),h==null||h(),(N=S)==null||N.disconnect(),S=null,m&&cancelAnimationFrame(E)}}const bb=qx,kb=Zx,Sb=Kx,Cb=eb,Eb=Xx,Uf=Yx,_b=Jx,Nb=(n,o,i)=>{const a=new Map,l={platform:yb,...i},u={...l.platform,_c:a};return Gx(n,o,{...l,platform:u})};var Rb=typeof document<"u",Pb=function(){},Ji=Rb?v.useLayoutEffect:Pb;function es(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let i,a,l;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==o.length)return!1;for(a=i;a--!==0;)if(!es(n[a],o[a]))return!1;return!0}if(l=Object.keys(n),i=l.length,i!==Object.keys(o).length)return!1;for(a=i;a--!==0;)if(!{}.hasOwnProperty.call(o,l[a]))return!1;for(a=i;a--!==0;){const u=l[a];if(!(u==="_owner"&&n.$$typeof)&&!es(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function Vf(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Wf(n,o){const i=Vf(n);return Math.round(o*i)/i}function hl(n){const o=v.useRef(n);return Ji(()=>{o.current=n}),o}function Tb(n){n===void 0&&(n={});const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l,elements:{reference:u,floating:f}={},transform:p=!0,whileElementsMounted:m,open:g}=n,[w,h]=v.useState({x:0,y:0,strategy:i,placement:o,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(a);es(b,a)||S(a);const[E,k]=v.useState(null),[C,N]=v.useState(null),P=v.useCallback(H=>{H!==z.current&&(z.current=H,k(H))},[]),R=v.useCallback(H=>{H!==O.current&&(O.current=H,N(H))},[]),j=u||E,$=f||C,z=v.useRef(null),O=v.useRef(null),D=v.useRef(w),X=m!=null,oe=hl(m),fe=hl(l),ge=hl(g),he=v.useCallback(()=>{if(!z.current||!O.current)return;const H={placement:o,strategy:i,middleware:b};fe.current&&(H.platform=fe.current),Nb(z.current,O.current,H).then(q=>{const B={...q,isPositioned:ge.current!==!1};ve.current&&!es(D.current,B)&&(D.current=B,No.flushSync(()=>{h(B)}))})},[b,o,i,fe,ge]);Ji(()=>{g===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(H=>({...H,isPositioned:!1})))},[g]);const ve=v.useRef(!1);Ji(()=>(ve.current=!0,()=>{ve.current=!1}),[]),Ji(()=>{if(j&&(z.current=j),$&&(O.current=$),j&&$){if(oe.current)return oe.current(j,$,he);he()}},[j,$,he,oe,X]);const Se=v.useMemo(()=>({reference:z,floating:O,setReference:P,setFloating:R}),[P,R]),G=v.useMemo(()=>({reference:j,floating:$}),[j,$]),te=v.useMemo(()=>{const H={position:i,left:0,top:0};if(!G.floating)return H;const q=Wf(G.floating,w.x),B=Wf(G.floating,w.y);return p?{...H,transform:"translate("+q+"px, "+B+"px)",...Vf(G.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:q,top:B}},[i,p,G.floating,w.x,w.y]);return v.useMemo(()=>({...w,update:he,refs:Se,elements:G,floatingStyles:te}),[w,he,Se,G,te])}const Ib=n=>{function o(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:a,padding:l}=typeof n=="function"?n(i):n;return a&&o(a)?a.current!=null?Uf({element:a.current,padding:l}).fn(i):{}:a?Uf({element:a,padding:l}).fn(i):{}}}},Ab=(n,o)=>{const i=bb(n);return{name:i.name,fn:i.fn,options:[n,o]}},jb=(n,o)=>{const i=kb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Mb=(n,o)=>({fn:_b(n).fn,options:[n,o]}),zb=(n,o)=>{const i=Sb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Lb=(n,o)=>{const i=Cb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Ob=(n,o)=>{const i=Eb(n);return{name:i.name,fn:i.fn,options:[n,o]}},Db=(n,o)=>{const i=Ib(n);return{name:i.name,fn:i.fn,options:[n,o]}};var Fb="Arrow",Gf=v.forwardRef((n,o)=>{const{children:i,width:a=10,height:l=5,...u}=n;return y.jsx(we.svg,{...u,ref:o,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gf.displayName=Fb;var $b=Gf,gl="Popper",[Yf,ts]=bt(gl),[Bb,Kf]=Yf(gl),Xf=n=>{const{__scopePopper:o,children:i}=n,[a,l]=v.useState(null);return y.jsx(Bb,{scope:o,anchor:a,onAnchorChange:l,children:i})};Xf.displayName=gl;var Qf="PopperAnchor",qf=v.forwardRef((n,o)=>{const{__scopePopper:i,virtualRef:a,...l}=n,u=Kf(Qf,i),f=v.useRef(null),p=Ie(o,f),m=v.useRef(null);return v.useEffect(()=>{const g=m.current;m.current=(a==null?void 0:a.current)||f.current,g!==m.current&&u.onAnchorChange(m.current)}),a?null:y.jsx(we.div,{...l,ref:p})});qf.displayName=Qf;var vl="PopperContent",[Hb,Ub]=Yf(vl),Zf=v.forwardRef((n,o)=>{var Z,J,ae,Ce,Ne,Re;const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:h="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:E,...k}=n,C=Kf(vl,i),[N,P]=v.useState(null),R=Ie(o,Fe=>P(Fe)),[j,$]=v.useState(null),z=Ui(j),O=(z==null?void 0:z.width)??0,D=(z==null?void 0:z.height)??0,X=a+(u!=="center"?"-"+u:""),oe=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},fe=Array.isArray(g)?g:[g],ge=fe.length>0,he={padding:oe,boundary:fe.filter(Wb),altBoundary:ge},{refs:ve,floatingStyles:Se,placement:G,isPositioned:te,middlewareData:H}=Tb({strategy:"fixed",placement:X,whileElementsMounted:(...Fe)=>xb(...Fe,{animationFrame:S==="always"}),elements:{reference:C.anchor},middleware:[Ab({mainAxis:l+D,alignmentAxis:f}),m&&jb({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Mb():void 0,...he}),m&&zb({...he}),Lb({...he,apply:({elements:Fe,rects:Be,availableWidth:un,availableHeight:Kt})=>{const{width:gt,height:kr}=Be.reference,tt=Fe.floating.style;tt.setProperty("--radix-popper-available-width",`${un}px`),tt.setProperty("--radix-popper-available-height",`${Kt}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${kr}px`)}}),j&&Db({element:j,padding:p}),Gb({arrowWidth:O,arrowHeight:D}),b&&Ob({strategy:"referenceHidden",...he})]}),[q,B]=tp(G),A=ut(E);We(()=>{te&&(A==null||A())},[te,A]);const U=(Z=H.arrow)==null?void 0:Z.x,ee=(J=H.arrow)==null?void 0:J.y,re=((ae=H.arrow)==null?void 0:ae.centerOffset)!==0,[ne,se]=v.useState();return We(()=>{N&&se(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:te?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(Ce=H.transformOrigin)==null?void 0:Ce.x,(Ne=H.transformOrigin)==null?void 0:Ne.y].join(" "),...((Re=H.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(Hb,{scope:i,placedSide:q,onArrowChange:$,arrowX:U,arrowY:ee,shouldHideArrow:re,children:y.jsx(we.div,{"data-side":q,"data-align":B,...k,ref:R,style:{...k.style,animation:te?void 0:"none"}})})})});Zf.displayName=vl;var Jf="PopperArrow",Vb={top:"bottom",right:"left",bottom:"top",left:"right"},ep=v.forwardRef(function(o,i){const{__scopePopper:a,...l}=o,u=Ub(Jf,a),f=Vb[u.placedSide];return y.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:y.jsx($b,{...l,ref:i,style:{...l.style,display:"block"}})})});ep.displayName=Jf;function Wb(n){return n!==null}var Gb=n=>({name:"transformOrigin",options:n,fn(o){var C,N,P;const{placement:i,rects:a,middlewareData:l}=o,f=((C=l.arrow)==null?void 0:C.centerOffset)!==0,p=f?0:n.arrowWidth,m=f?0:n.arrowHeight,[g,w]=tp(i),h={start:"0%",center:"50%",end:"100%"}[w],b=(((N=l.arrow)==null?void 0:N.x)??0)+p/2,S=(((P=l.arrow)==null?void 0:P.y)??0)+m/2;let E="",k="";return g==="bottom"?(E=f?h:`${b}px`,k=`${-m}px`):g==="top"?(E=f?h:`${b}px`,k=`${a.floating.height+m}px`):g==="right"?(E=`${-m}px`,k=f?h:`${S}px`):g==="left"&&(E=`${a.floating.width+m}px`,k=f?h:`${S}px`),{data:{x:E,y:k}}}});function tp(n){const[o,i="center"]=n.split("-");return[o,i]}var np=Xf,rp=qf,op=Zf,ip=ep,yl="rovingFocusGroup.onEntryFocus",Yb={bubbles:!1,cancelable:!0},zo="RovingFocusGroup",[wl,sp,Kb]=Td(zo),[Xb,ns]=bt(zo,[Kb]),[Qb,qb]=Xb(zo),ap=v.forwardRef((n,o)=>y.jsx(wl.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(wl.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Zb,{...n,ref:o})})}));ap.displayName=zo;var Zb=v.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,orientation:a,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...h}=n,b=v.useRef(null),S=Ie(o,b),E=Ao(u),[k,C]=vn({prop:f,defaultProp:p??null,onChange:m,caller:zo}),[N,P]=v.useState(!1),R=ut(g),j=sp(i),$=v.useRef(!1),[z,O]=v.useState(0);return v.useEffect(()=>{const D=b.current;if(D)return D.addEventListener(yl,R),()=>D.removeEventListener(yl,R)},[R]),y.jsx(Qb,{scope:i,orientation:a,dir:E,loop:l,currentTabStopId:k,onItemFocus:v.useCallback(D=>C(D),[C]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>O(D=>D+1),[]),onFocusableItemRemove:v.useCallback(()=>O(D=>D-1),[]),children:y.jsx(we.div,{tabIndex:N||z===0?-1:0,"data-orientation":a,...h,ref:S,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{$.current=!0}),onFocus:ke(n.onFocus,D=>{const X=!$.current;if(D.target===D.currentTarget&&X&&!N){const oe=new CustomEvent(yl,Yb);if(D.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const fe=j().filter(G=>G.focusable),ge=fe.find(G=>G.active),he=fe.find(G=>G.id===k),Se=[ge,he,...fe].filter(Boolean).map(G=>G.ref.current);up(Se,w)}}$.current=!1}),onBlur:ke(n.onBlur,()=>P(!1))})})}),lp="RovingFocusGroupItem",cp=v.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:u,children:f,...p}=n,m=vr(),g=u||m,w=qb(lp,i),h=w.currentTabStopId===g,b=sp(i),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:k}=w;return v.useEffect(()=>{if(a)return S(),()=>E()},[a,S,E]),y.jsx(wl.ItemSlot,{scope:i,id:g,focusable:a,active:l,children:y.jsx(we.span,{tabIndex:h?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:ke(n.onMouseDown,C=>{a?w.onItemFocus(g):C.preventDefault()}),onFocus:ke(n.onFocus,()=>w.onItemFocus(g)),onKeyDown:ke(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){w.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const N=t1(C,w.orientation,w.dir);if(N!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let R=b().filter(j=>j.focusable).map(j=>j.ref.current);if(N==="last")R.reverse();else if(N==="prev"||N==="next"){N==="prev"&&R.reverse();const j=R.indexOf(C.currentTarget);R=w.loop?n1(R,j+1):R.slice(j+1)}setTimeout(()=>up(R))}}),children:typeof f=="function"?f({isCurrentTabStop:h,hasTabStop:k!=null}):f})})});cp.displayName=lp;var Jb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e1(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function t1(n,o,i){const a=e1(n.key,i);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Jb[a]}function up(n,o=!1){const i=document.activeElement;for(const a of n)if(a===i||(a.focus({preventScroll:o}),document.activeElement!==i))return}function n1(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var dp=ap,fp=cp,r1="Label",pp=v.forwardRef((n,o)=>y.jsx(we.label,{...n,ref:o,onMouseDown:i=>{var l;i.target.closest("button, input, select, textarea")||((l=n.onMouseDown)==null||l.call(n,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));pp.displayName=r1;var o1=pp;function xl(n,[o,i]){return Math.min(i,Math.max(o,n))}var bl="Progress",kl=100,[i1]=bt(bl),[s1,a1]=i1(bl),mp=v.forwardRef((n,o)=>{const{__scopeProgress:i,value:a=null,max:l,getValueLabel:u=l1,...f}=n;(l||l===0)&&!yp(l)&&console.error(c1(`${l}`,"Progress"));const p=yp(l)?l:kl;a!==null&&!wp(a,p)&&console.error(u1(`${a}`,"Progress"));const m=wp(a,p)?a:null,g=rs(m)?u(m,p):void 0;return y.jsx(s1,{scope:i,value:m,max:p,children:y.jsx(we.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":rs(m)?m:void 0,"aria-valuetext":g,role:"progressbar","data-state":vp(m,p),"data-value":m??void 0,"data-max":p,...f,ref:o})})});mp.displayName=bl;var hp="ProgressIndicator",gp=v.forwardRef((n,o)=>{const{__scopeProgress:i,...a}=n,l=a1(hp,i);return y.jsx(we.div,{"data-state":vp(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...a,ref:o})});gp.displayName=hp;function l1(n,o){return`${Math.round(n/o*100)}%`}function vp(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function rs(n){return typeof n=="number"}function yp(n){return rs(n)&&!isNaN(n)&&n>0}function wp(n,o){return rs(n)&&!isNaN(n)&&n<=o&&n>=0}function c1(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${kl}\`.`}function u1(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
300
300
  - a positive number
301
301
  - less than the value passed to \`max\` (or ${kl} if no \`max\` prop is set)
302
302
  - \`null\` or \`undefined\` if the progress is indeterminate.
303
303
 
304
- Defaulting to \`null\`.`}var d1=mp,f1=gp,Sl="Radio",[p1,xp]=bt(Sl),[m1,h1]=p1(Sl),bp=v.forwardRef((n,o)=>{const{__scopeRadio:i,name:a,checked:l=!1,required:u,disabled:f,value:p="on",onCheck:m,form:g,...w}=n,[h,b]=v.useState(null),S=Ie(o,C=>b(C)),E=v.useRef(!1),k=h?g||!!h.closest("form"):!0;return y.jsxs(m1,{scope:i,checked:l,disabled:f,children:[y.jsx(we.button,{type:"button",role:"radio","aria-checked":l,"data-state":Ep(l),"data-disabled":f?"":void 0,disabled:f,value:p,...w,ref:S,onClick:ke(n.onClick,C=>{l||m==null||m(),k&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),k&&y.jsx(Cp,{control:h,bubbles:!E.current,name:a,value:p,checked:l,required:u,disabled:f,form:g,style:{transform:"translateX(-100%)"}})]})});bp.displayName=Sl;var kp="RadioIndicator",Sp=v.forwardRef((n,o)=>{const{__scopeRadio:i,forceMount:a,...l}=n,u=h1(kp,i);return y.jsx(Vt,{present:a||u.checked,children:y.jsx(we.span,{"data-state":Ep(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o})})});Sp.displayName=kp;var g1="RadioBubbleInput",Cp=v.forwardRef(({__scopeRadio:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=v.useRef(null),p=Ie(f,u),m=Hi(i),g=Ui(o);return v.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&S){const E=new Event("click",{bubbles:a});S.call(w,i),w.dispatchEvent(E)}},[m,i,a]),y.jsx(we.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Cp.displayName=g1;function Ep(n){return n?"checked":"unchecked"}var v1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],os="RadioGroup",[y1]=bt(os,[ns,xp]),_p=ns(),Np=xp(),[w1,x1]=y1(os),Rp=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,name:a,defaultValue:l,value:u,required:f=!1,disabled:p=!1,orientation:m,dir:g,loop:w=!0,onValueChange:h,...b}=n,S=_p(i),E=Ao(g),[k,C]=vn({prop:u,defaultProp:l??null,onChange:h,caller:os});return y.jsx(w1,{scope:i,name:a,required:f,disabled:p,value:k,onValueChange:C,children:y.jsx(dp,{asChild:!0,...S,orientation:m,dir:E,loop:w,children:y.jsx(we.div,{role:"radiogroup","aria-required":f,"aria-orientation":m,"data-disabled":p?"":void 0,dir:E,...b,ref:o})})})});Rp.displayName=os;var Pp="RadioGroupItem",Tp=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,disabled:a,...l}=n,u=x1(Pp,i),f=u.disabled||a,p=_p(i),m=Np(i),g=v.useRef(null),w=Ie(o,g),h=u.value===l.value,b=v.useRef(!1);return v.useEffect(()=>{const S=k=>{v1.includes(k.key)&&(b.current=!0)},E=()=>b.current=!1;return document.addEventListener("keydown",S),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",E)}},[]),y.jsx(fp,{asChild:!0,...p,focusable:!f,active:h,children:y.jsx(bp,{disabled:f,required:u.required,checked:h,...m,...l,name:u.name,ref:w,onCheck:()=>u.onValueChange(l.value),onKeyDown:ke(S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:ke(l.onFocus,()=>{var S;b.current&&((S=g.current)==null||S.click())})})})});Tp.displayName=Pp;var b1="RadioGroupIndicator",Ip=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,...a}=n,l=Np(i);return y.jsx(Sp,{...l,...a,ref:o})});Ip.displayName=b1;var k1=Rp,S1=Tp,C1=Ip;function E1(n,o){return v.useReducer((i,a)=>o[i][a]??i,n)}var Cl="ScrollArea",[Ap]=bt(Cl),[_1,Mt]=Ap(Cl),jp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,type:a="hover",dir:l,scrollHideDelay:u=600,...f}=n,[p,m]=v.useState(null),[g,w]=v.useState(null),[h,b]=v.useState(null),[S,E]=v.useState(null),[k,C]=v.useState(null),[N,P]=v.useState(0),[R,j]=v.useState(0),[$,z]=v.useState(!1),[O,D]=v.useState(!1),K=Ie(o,fe=>m(fe)),oe=Ao(l);return y.jsx(_1,{scope:i,type:a,dir:oe,scrollHideDelay:u,scrollArea:p,viewport:g,onViewportChange:w,content:h,onContentChange:b,scrollbarX:S,onScrollbarXChange:E,scrollbarXEnabled:$,onScrollbarXEnabledChange:z,scrollbarY:k,onScrollbarYChange:C,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:P,onCornerHeightChange:j,children:y.jsx(we.div,{dir:oe,...f,ref:K,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});jp.displayName=Cl;var Mp="ScrollAreaViewport",zp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,children:a,nonce:l,...u}=n,f=Mt(Mp,i),p=v.useRef(null),m=Ie(o,p,f.onViewportChange);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),y.jsx(we.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:y.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});zp.displayName=Mp;var cn="ScrollAreaScrollbar",Lp=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=l,p=n.orientation==="horizontal";return v.useEffect(()=>(p?u(!0):f(!0),()=>{p?u(!1):f(!1)}),[p,u,f]),l.type==="hover"?y.jsx(N1,{...a,ref:o,forceMount:i}):l.type==="scroll"?y.jsx(R1,{...a,ref:o,forceMount:i}):l.type==="auto"?y.jsx(Op,{...a,ref:o,forceMount:i}):l.type==="always"?y.jsx(El,{...a,ref:o}):null});Lp.displayName=cn;var N1=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),[u,f]=v.useState(!1);return v.useEffect(()=>{const p=l.scrollArea;let m=0;if(p){const g=()=>{window.clearTimeout(m),f(!0)},w=()=>{m=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return p.addEventListener("pointerenter",g),p.addEventListener("pointerleave",w),()=>{window.clearTimeout(m),p.removeEventListener("pointerenter",g),p.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),y.jsx(Vt,{present:i||u,children:y.jsx(Op,{"data-state":u?"visible":"hidden",...a,ref:o})})}),R1=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ls(()=>m("SCROLL_END"),100),[p,m]=E1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(p==="idle"){const g=window.setTimeout(()=>m("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(g)}},[p,l.scrollHideDelay,m]),v.useEffect(()=>{const g=l.viewport,w=u?"scrollLeft":"scrollTop";if(g){let h=g[w];const b=()=>{const S=g[w];h!==S&&(m("SCROLL"),f()),h=S};return g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[l.viewport,u,m,f]),y.jsx(Vt,{present:i||p!=="hidden",children:y.jsx(El,{"data-state":p==="hidden"?"hidden":"visible",...a,ref:o,onPointerEnter:ke(n.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:ke(n.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),Op=v.forwardRef((n,o)=>{const i=Mt(cn,n.__scopeScrollArea),{forceMount:a,...l}=n,[u,f]=v.useState(!1),p=n.orientation==="horizontal",m=ls(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;f(p?g:w)}},10);return qr(i.viewport,m),qr(i.content,m),y.jsx(Vt,{present:a||u,children:y.jsx(El,{"data-state":u?"visible":"hidden",...l,ref:o})})}),El=v.forwardRef((n,o)=>{const{orientation:i="vertical",...a}=n,l=Mt(cn,n.__scopeScrollArea),u=v.useRef(null),f=v.useRef(0),[p,m]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Hp(p.viewport,p.content),w={...a,sizes:p,onSizesChange:m,hasThumb:g>0&&g<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:b=>f.current=b};function h(b,S){return M1(b,f.current,p,S)}return i==="horizontal"?y.jsx(P1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollLeft,S=Up(b,p,l.dir);u.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=h(b,l.dir))}}):i==="vertical"?y.jsx(T1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollTop,S=Up(b,p);u.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=h(b))}}):null}),P1=v.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=v.useState(),m=v.useRef(null),g=Ie(o,m,u.onScrollbarXChange);return v.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(Fp,{"data-orientation":"horizontal",...l,ref:g,sizes:i,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":as(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,h)=>{if(u.viewport){const b=u.viewport.scrollLeft+w.deltaX;n.onWheelScroll(b),Wp(b,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:ss(f.paddingLeft),paddingEnd:ss(f.paddingRight)}})}})}),T1=v.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=v.useState(),m=v.useRef(null),g=Ie(o,m,u.onScrollbarYChange);return v.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(Fp,{"data-orientation":"vertical",...l,ref:g,sizes:i,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":as(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,h)=>{if(u.viewport){const b=u.viewport.scrollTop+w.deltaY;n.onWheelScroll(b),Wp(b,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:ss(f.paddingTop),paddingEnd:ss(f.paddingBottom)}})}})}),[I1,Dp]=Ap(cn),Fp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,sizes:a,hasThumb:l,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:p,onThumbPositionChange:m,onDragScroll:g,onWheelScroll:w,onResize:h,...b}=n,S=Mt(cn,i),[E,k]=v.useState(null),C=Ie(o,K=>k(K)),N=v.useRef(null),P=v.useRef(""),R=S.viewport,j=a.content-a.viewport,$=ut(w),z=ut(m),O=ls(h,10);function D(K){if(N.current){const oe=K.clientX-N.current.left,fe=K.clientY-N.current.top;g({x:oe,y:fe})}}return v.useEffect(()=>{const K=oe=>{const fe=oe.target;(E==null?void 0:E.contains(fe))&&$(oe,j)};return document.addEventListener("wheel",K,{passive:!1}),()=>document.removeEventListener("wheel",K,{passive:!1})},[R,E,j,$]),v.useEffect(z,[a,z]),qr(E,O),qr(S.content,O),y.jsx(I1,{scope:i,scrollbar:E,hasThumb:l,onThumbChange:ut(u),onThumbPointerUp:ut(f),onThumbPositionChange:z,onThumbPointerDown:ut(p),children:y.jsx(we.div,{...b,ref:C,style:{position:"absolute",...b.style},onPointerDown:ke(n.onPointerDown,K=>{K.button===0&&(K.target.setPointerCapture(K.pointerId),N.current=E.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),D(K))}),onPointerMove:ke(n.onPointerMove,D),onPointerUp:ke(n.onPointerUp,K=>{const oe=K.target;oe.hasPointerCapture(K.pointerId)&&oe.releasePointerCapture(K.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),N.current=null})})})}),is="ScrollAreaThumb",$p=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Dp(is,n.__scopeScrollArea);return y.jsx(Vt,{present:i||l.hasThumb,children:y.jsx(A1,{ref:o,...a})})}),A1=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,style:a,...l}=n,u=Mt(is,i),f=Dp(is,i),{onThumbPositionChange:p}=f,m=Ie(o,h=>f.onThumbChange(h)),g=v.useRef(void 0),w=ls(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const h=u.viewport;if(h){const b=()=>{if(w(),!g.current){const S=z1(h,p);g.current=S,p()}};return p(),h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[u.viewport,w,p]),y.jsx(we.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ke(n.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),E=h.clientX-S.left,k=h.clientY-S.top;f.onThumbPointerDown({x:E,y:k})}),onPointerUp:ke(n.onPointerUp,f.onThumbPointerUp)})});$p.displayName=is;var _l="ScrollAreaCorner",Bp=v.forwardRef((n,o)=>{const i=Mt(_l,n.__scopeScrollArea),a=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&a?y.jsx(j1,{...n,ref:o}):null});Bp.displayName=_l;var j1=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,...a}=n,l=Mt(_l,i),[u,f]=v.useState(0),[p,m]=v.useState(0),g=!!(u&&p);return qr(l.scrollbarX,()=>{var h;const w=((h=l.scrollbarX)==null?void 0:h.offsetHeight)||0;l.onCornerHeightChange(w),m(w)}),qr(l.scrollbarY,()=>{var h;const w=((h=l.scrollbarY)==null?void 0:h.offsetWidth)||0;l.onCornerWidthChange(w),f(w)}),g?y.jsx(we.div,{...a,ref:o,style:{width:u,height:p,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function ss(n){return n?parseInt(n,10):0}function Hp(n,o){const i=n/o;return isNaN(i)?0:i}function as(n){const o=Hp(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=(n.scrollbar.size-i)*o;return Math.max(a,18)}function M1(n,o,i,a="ltr"){const l=as(i),u=l/2,f=o||u,p=l-f,m=i.scrollbar.paddingStart+f,g=i.scrollbar.size-i.scrollbar.paddingEnd-p,w=i.content-i.viewport,h=a==="ltr"?[0,w]:[w*-1,0];return Vp([m,g],h)(n)}function Up(n,o,i="ltr"){const a=as(o),l=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-l,f=o.content-o.viewport,p=u-a,m=i==="ltr"?[0,f]:[f*-1,0],g=xl(n,m);return Vp([0,f],[0,p])(g)}function Vp(n,o){return i=>{if(n[0]===n[1]||o[0]===o[1])return o[0];const a=(o[1]-o[0])/(n[1]-n[0]);return o[0]+a*(i-n[0])}}function Wp(n,o){return n>0&&n<o}var z1=(n,o=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},a=0;return(function l(){const u={left:n.scrollLeft,top:n.scrollTop},f=i.left!==u.left,p=i.top!==u.top;(f||p)&&o(),i=u,a=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(a)};function ls(n,o){const i=ut(n),a=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(a.current),[]),v.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(i,o)},[i,o])}function qr(n,o){const i=ut(o);We(()=>{let a=0;if(n){const l=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(i)});return l.observe(n),()=>{window.cancelAnimationFrame(a),l.unobserve(n)}}},[n,i])}var L1=jp,O1=zp,D1=Bp,F1=[" ","Enter","ArrowUp","ArrowDown"],$1=[" ","Enter"],xr="Select",[cs,us,B1]=Td(xr),[Zr]=bt(xr,[B1,ts]),ds=ts(),[H1,Fn]=Zr(xr),[U1,V1]=Zr(xr),Gp=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:l,onOpenChange:u,value:f,defaultValue:p,onValueChange:m,dir:g,name:w,autoComplete:h,disabled:b,required:S,form:E}=n,k=ds(o),[C,N]=v.useState(null),[P,R]=v.useState(null),[j,$]=v.useState(!1),z=Ao(g),[O,D]=vn({prop:a,defaultProp:l??!1,onChange:u,caller:xr}),[K,oe]=vn({prop:f,defaultProp:p,onChange:m,caller:xr}),fe=v.useRef(null),ge=C?E||!!C.closest("form"):!0,[he,ve]=v.useState(new Set),Se=Array.from(he).map(G=>G.props.value).join(";");return y.jsx(np,{...k,children:y.jsxs(H1,{required:S,scope:o,trigger:C,onTriggerChange:N,valueNode:P,onValueNodeChange:R,valueNodeHasChildren:j,onValueNodeHasChildrenChange:$,contentId:vr(),value:K,onValueChange:oe,open:O,onOpenChange:D,dir:z,triggerPointerDownPosRef:fe,disabled:b,children:[y.jsx(cs.Provider,{scope:o,children:y.jsx(U1,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(G=>{ve(te=>new Set(te).add(G))},[]),onNativeOptionRemove:v.useCallback(G=>{ve(te=>{const H=new Set(te);return H.delete(G),H})},[]),children:i})}),ge?y.jsxs(mm,{"aria-hidden":!0,required:S,tabIndex:-1,name:w,autoComplete:h,value:K,onChange:G=>oe(G.target.value),disabled:b,form:E,children:[K===void 0?y.jsx("option",{value:""}):null,Array.from(he)]},Se):null]})})};Gp.displayName=xr;var Yp="SelectTrigger",Kp=v.forwardRef((n,o)=>{const{__scopeSelect:i,disabled:a=!1,...l}=n,u=ds(i),f=Fn(Yp,i),p=f.disabled||a,m=Ie(o,f.onTriggerChange),g=us(i),w=v.useRef("touch"),[h,b,S]=gm(k=>{const C=g().filter(R=>!R.disabled),N=C.find(R=>R.value===f.value),P=vm(C,k,N);P!==void 0&&f.onValueChange(P.value)}),E=k=>{p||(f.onOpenChange(!0),S()),k&&(f.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return y.jsx(rp,{asChild:!0,...u,children:y.jsx(we.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":hm(f.value)?"":void 0,...l,ref:m,onClick:ke(l.onClick,k=>{k.currentTarget.focus(),w.current!=="mouse"&&E(k)}),onPointerDown:ke(l.onPointerDown,k=>{w.current=k.pointerType;const C=k.target;C.hasPointerCapture(k.pointerId)&&C.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(E(k),k.preventDefault())}),onKeyDown:ke(l.onKeyDown,k=>{const C=h.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(C&&k.key===" ")&&F1.includes(k.key)&&(E(),k.preventDefault())})})})});Kp.displayName=Yp;var Xp="SelectValue",Qp=v.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,children:u,placeholder:f="",...p}=n,m=Fn(Xp,i),{onValueNodeHasChildrenChange:g}=m,w=u!==void 0,h=Ie(o,m.onValueNodeChange);return We(()=>{g(w)},[g,w]),y.jsx(we.span,{...p,ref:h,style:{pointerEvents:"none"},children:hm(m.value)?y.jsx(y.Fragment,{children:f}):u})});Qp.displayName=Xp;var W1="SelectIcon",qp=v.forwardRef((n,o)=>{const{__scopeSelect:i,children:a,...l}=n;return y.jsx(we.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})});qp.displayName=W1;var G1="SelectPortal",Zp=n=>y.jsx(Ya,{asChild:!0,...n});Zp.displayName=G1;var br="SelectContent",Jp=v.forwardRef((n,o)=>{const i=Fn(br,n.__scopeSelect),[a,l]=v.useState();if(We(()=>{l(new DocumentFragment)},[]),!i.open){const u=a;return u?No.createPortal(y.jsx(em,{scope:n.__scopeSelect,children:y.jsx(cs.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),u):null}return y.jsx(tm,{...n,ref:o})});Jp.displayName=br;var Yt=10,[em,$n]=Zr(br),Y1="SelectContentImpl",K1=Io("SelectContent.RemoveScroll"),tm=v.forwardRef((n,o)=>{const{__scopeSelect:i,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:p,sideOffset:m,align:g,alignOffset:w,arrowPadding:h,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:k,avoidCollisions:C,...N}=n,P=Fn(br,i),[R,j]=v.useState(null),[$,z]=v.useState(null),O=Ie(o,Z=>j(Z)),[D,K]=v.useState(null),[oe,fe]=v.useState(null),ge=us(i),[he,ve]=v.useState(!1),Se=v.useRef(!1);v.useEffect(()=>{if(R)return wx(R)},[R]),jw();const G=v.useCallback(Z=>{const[J,...ae]=ge().map(Re=>Re.ref.current),[Ce]=ae.slice(-1),Ne=document.activeElement;for(const Re of Z)if(Re===Ne||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===J&&$&&($.scrollTop=0),Re===Ce&&$&&($.scrollTop=$.scrollHeight),Re==null||Re.focus(),document.activeElement!==Ne))return},[ge,$]),te=v.useCallback(()=>G([D,R]),[G,D,R]);v.useEffect(()=>{he&&te()},[he,te]);const{onOpenChange:H,triggerPointerDownPosRef:q}=P;v.useEffect(()=>{if(R){let Z={x:0,y:0};const J=Ce=>{var Ne,Re;Z={x:Math.abs(Math.round(Ce.pageX)-(((Ne=q.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Re=q.current)==null?void 0:Re.y)??0))}},ae=Ce=>{Z.x<=10&&Z.y<=10?Ce.preventDefault():R.contains(Ce.target)||H(!1),document.removeEventListener("pointermove",J),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",ae,{capture:!0})}}},[R,H,q]),v.useEffect(()=>{const Z=()=>H(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[H]);const[B,A]=gm(Z=>{const J=ge().filter(Ne=>!Ne.disabled),ae=J.find(Ne=>Ne.ref.current===document.activeElement),Ce=vm(J,Z,ae);Ce&&setTimeout(()=>Ce.ref.current.focus())}),U=v.useCallback((Z,J,ae)=>{const Ce=!Se.current&&!ae;(P.value!==void 0&&P.value===J||Ce)&&(K(Z),Ce&&(Se.current=!0))},[P.value]),ee=v.useCallback(()=>R==null?void 0:R.focus(),[R]),re=v.useCallback((Z,J,ae)=>{const Ce=!Se.current&&!ae;(P.value!==void 0&&P.value===J||Ce)&&fe(Z)},[P.value]),ne=a==="popper"?Nl:nm,se=ne===Nl?{side:p,sideOffset:m,align:g,alignOffset:w,arrowPadding:h,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:k,avoidCollisions:C}:{};return y.jsx(em,{scope:i,content:R,viewport:$,onViewportChange:z,itemRefCallback:U,selectedItem:D,onItemLeave:ee,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:oe,position:a,isPositioned:he,searchRef:B,children:y.jsx(of,{as:K1,allowPinchZoom:!0,children:y.jsx($d,{asChild:!0,trapped:P.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ke(l,Z=>{var J;(J=P.trigger)==null||J.focus({preventScroll:!0}),Z.preventDefault()}),children:y.jsx(Va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:y.jsx(ne,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:Z=>Z.preventDefault(),...N,...se,onPlaced:()=>ve(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:ke(N.onKeyDown,Z=>{const J=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!J&&Z.key.length===1&&A(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ce=ge().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Ne=Z.target,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>G(Ce)),Z.preventDefault()}})})})})})})});tm.displayName=Y1;var X1="SelectItemAlignedPosition",nm=v.forwardRef((n,o)=>{const{__scopeSelect:i,onPlaced:a,...l}=n,u=Fn(br,i),f=$n(br,i),[p,m]=v.useState(null),[g,w]=v.useState(null),h=Ie(o,O=>w(O)),b=us(i),S=v.useRef(!1),E=v.useRef(!0),{viewport:k,selectedItem:C,selectedItemText:N,focusSelectedItem:P}=f,R=v.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&g&&k&&C&&N){const O=u.trigger.getBoundingClientRect(),D=g.getBoundingClientRect(),K=u.valueNode.getBoundingClientRect(),oe=N.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=oe.left-D.left,Re=K.left-Ne,Fe=O.left-Re,Be=O.width+Fe,un=Math.max(Be,D.width),Kt=window.innerWidth-Yt,gt=xl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.left=gt+"px"}else{const Ne=D.right-oe.right,Re=window.innerWidth-K.right-Ne,Fe=window.innerWidth-O.right-Re,Be=O.width+Fe,un=Math.max(Be,D.width),Kt=window.innerWidth-Yt,gt=xl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.right=gt+"px"}const fe=b(),ge=window.innerHeight-Yt*2,he=k.scrollHeight,ve=window.getComputedStyle(g),Se=parseInt(ve.borderTopWidth,10),G=parseInt(ve.paddingTop,10),te=parseInt(ve.borderBottomWidth,10),H=parseInt(ve.paddingBottom,10),q=Se+G+he+H+te,B=Math.min(C.offsetHeight*5,q),A=window.getComputedStyle(k),U=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),re=O.top+O.height/2-Yt,ne=ge-re,se=C.offsetHeight/2,Z=C.offsetTop+se,J=Se+G+Z,ae=q-J;if(J<=re){const Ne=fe.length>0&&C===fe[fe.length-1].ref.current;p.style.bottom="0px";const Re=g.clientHeight-k.offsetTop-k.offsetHeight,Fe=Math.max(ne,se+(Ne?ee:0)+Re+te),Be=J+Fe;p.style.height=Be+"px"}else{const Ne=fe.length>0&&C===fe[0].ref.current;p.style.top="0px";const Fe=Math.max(re,Se+k.offsetTop+(Ne?U:0)+se)+ae;p.style.height=Fe+"px",k.scrollTop=J-re+k.offsetTop}p.style.margin=`${Yt}px 0`,p.style.minHeight=B+"px",p.style.maxHeight=ge+"px",a==null||a(),requestAnimationFrame(()=>S.current=!0)}},[b,u.trigger,u.valueNode,p,g,k,C,N,u.dir,a]);We(()=>R(),[R]);const[j,$]=v.useState();We(()=>{g&&$(window.getComputedStyle(g).zIndex)},[g]);const z=v.useCallback(O=>{O&&E.current===!0&&(R(),P==null||P(),E.current=!1)},[R,P]);return y.jsx(q1,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:S,onScrollButtonChange:z,children:y.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:y.jsx(we.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});nm.displayName=X1;var Q1="SelectPopperPosition",Nl=v.forwardRef((n,o)=>{const{__scopeSelect:i,align:a="start",collisionPadding:l=Yt,...u}=n,f=ds(i);return y.jsx(op,{...f,...u,ref:o,align:a,collisionPadding:l,style:{boxSizing:"border-box",...u.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)"}})});Nl.displayName=Q1;var[q1,Rl]=Zr(br,{}),Pl="SelectViewport",rm=v.forwardRef((n,o)=>{const{__scopeSelect:i,nonce:a,...l}=n,u=$n(Pl,i),f=Rl(Pl,i),p=Ie(o,u.onViewportChange),m=v.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),y.jsx(cs.Slot,{scope:i,children:y.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ke(l.onScroll,g=>{const w=g.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:b}=f;if(b!=null&&b.current&&h){const S=Math.abs(m.current-w.scrollTop);if(S>0){const E=window.innerHeight-Yt*2,k=parseFloat(h.style.minHeight),C=parseFloat(h.style.height),N=Math.max(k,C);if(N<E){const P=N+S,R=Math.min(E,P),j=P-R;h.style.height=R+"px",h.style.bottom==="0px"&&(w.scrollTop=j>0?j:0,h.style.justifyContent="flex-end")}}}m.current=w.scrollTop})})})]})});rm.displayName=Pl;var om="SelectGroup",[Z1,J1]=Zr(om),ek=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=vr();return y.jsx(Z1,{scope:i,id:l,children:y.jsx(we.div,{role:"group","aria-labelledby":l,...a,ref:o})})});ek.displayName=om;var im="SelectLabel",tk=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=J1(im,i);return y.jsx(we.div,{id:l.id,...a,ref:o})});tk.displayName=im;var fs="SelectItem",[nk,sm]=Zr(fs),am=v.forwardRef((n,o)=>{const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...f}=n,p=Fn(fs,i),m=$n(fs,i),g=p.value===a,[w,h]=v.useState(u??""),[b,S]=v.useState(!1),E=Ie(o,P=>{var R;return(R=m.itemRefCallback)==null?void 0:R.call(m,P,a,l)}),k=vr(),C=v.useRef("touch"),N=()=>{l||(p.onValueChange(a),p.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(nk,{scope:i,value:a,disabled:l,textId:k,isSelected:g,onItemTextChange:v.useCallback(P=>{h(R=>R||((P==null?void 0:P.textContent)??"").trim())},[]),children:y.jsx(cs.ItemSlot,{scope:i,value:a,disabled:l,textValue:w,children:y.jsx(we.div,{role:"option","aria-labelledby":k,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:E,onFocus:ke(f.onFocus,()=>S(!0)),onBlur:ke(f.onBlur,()=>S(!1)),onClick:ke(f.onClick,()=>{C.current!=="mouse"&&N()}),onPointerUp:ke(f.onPointerUp,()=>{C.current==="mouse"&&N()}),onPointerDown:ke(f.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:ke(f.onPointerMove,P=>{var R;C.current=P.pointerType,l?(R=m.onItemLeave)==null||R.call(m):C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(f.onPointerLeave,P=>{var R;P.currentTarget===document.activeElement&&((R=m.onItemLeave)==null||R.call(m))}),onKeyDown:ke(f.onKeyDown,P=>{var j;((j=m.searchRef)==null?void 0:j.current)!==""&&P.key===" "||($1.includes(P.key)&&N(),P.key===" "&&P.preventDefault())})})})})});am.displayName=fs;var Lo="SelectItemText",lm=v.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,...u}=n,f=Fn(Lo,i),p=$n(Lo,i),m=sm(Lo,i),g=V1(Lo,i),[w,h]=v.useState(null),b=Ie(o,N=>h(N),m.onItemTextChange,N=>{var P;return(P=p.itemTextRefCallback)==null?void 0:P.call(p,N,m.value,m.disabled)}),S=w==null?void 0:w.textContent,E=v.useMemo(()=>y.jsx("option",{value:m.value,disabled:m.disabled,children:S},m.value),[m.disabled,m.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:C}=g;return We(()=>(k(E),()=>C(E)),[k,C,E]),y.jsxs(y.Fragment,{children:[y.jsx(we.span,{id:m.textId,...u,ref:b}),m.isSelected&&f.valueNode&&!f.valueNodeHasChildren?No.createPortal(u.children,f.valueNode):null]})});lm.displayName=Lo;var cm="SelectItemIndicator",um=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return sm(cm,i).isSelected?y.jsx(we.span,{"aria-hidden":!0,...a,ref:o}):null});um.displayName=cm;var Tl="SelectScrollUpButton",dm=v.forwardRef((n,o)=>{const i=$n(Tl,n.__scopeSelect),a=Rl(Tl,n.__scopeSelect),[l,u]=v.useState(!1),f=Ie(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollTop>0;u(g)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(pm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop-m.offsetHeight)}}):null});dm.displayName=Tl;var Il="SelectScrollDownButton",fm=v.forwardRef((n,o)=>{const i=$n(Il,n.__scopeSelect),a=Rl(Il,n.__scopeSelect),[l,u]=v.useState(!1),f=Ie(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollHeight-m.clientHeight,w=Math.ceil(m.scrollTop)<g;u(w)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(pm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop+m.offsetHeight)}}):null});fm.displayName=Il;var pm=v.forwardRef((n,o)=>{const{__scopeSelect:i,onAutoScroll:a,...l}=n,u=$n("SelectScrollButton",i),f=v.useRef(null),p=us(i),m=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>m(),[m]),We(()=>{var w;const g=p().find(h=>h.ref.current===document.activeElement);(w=g==null?void 0:g.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),y.jsx(we.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:ke(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(a,50))}),onPointerMove:ke(l.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),f.current===null&&(f.current=window.setInterval(a,50))}),onPointerLeave:ke(l.onPointerLeave,()=>{m()})})}),rk="SelectSeparator",ok=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return y.jsx(we.div,{"aria-hidden":!0,...a,ref:o})});ok.displayName=rk;var Al="SelectArrow",ik=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=ds(i),u=Fn(Al,i),f=$n(Al,i);return u.open&&f.position==="popper"?y.jsx(ip,{...l,...a,ref:o}):null});ik.displayName=Al;var sk="SelectBubbleInput",mm=v.forwardRef(({__scopeSelect:n,value:o,...i},a)=>{const l=v.useRef(null),u=Ie(a,l),f=Hi(o);return v.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(m,"value").set;if(f!==o&&w){const h=new Event("change",{bubbles:!0});w.call(p,o),p.dispatchEvent(h)}},[f,o]),y.jsx(we.select,{...i,style:{...Rd,...i.style},ref:u,defaultValue:o})});mm.displayName=sk;function hm(n){return n===""||n===void 0}function gm(n){const o=ut(n),i=v.useRef(""),a=v.useRef(0),l=v.useCallback(f=>{const p=i.current+f;o(p),(function m(g){i.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>m(""),1e3))})(p)},[o]),u=v.useCallback(()=>{i.current="",window.clearTimeout(a.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(a.current),[]),[i,l,u]}function vm(n,o,i){const l=o.length>1&&Array.from(o).every(g=>g===o[0])?o[0]:o,u=i?n.indexOf(i):-1;let f=ak(n,Math.max(u,0));l.length===1&&(f=f.filter(g=>g!==i));const m=f.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return m!==i?m:void 0}function ak(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var lk=Gp,ck=Kp,uk=Qp,dk=qp,fk=Zp,pk=Jp,mk=rm,hk=am,gk=lm,vk=um,yk=dm,wk=fm,xk="Separator",ym="horizontal",bk=["horizontal","vertical"],wm=v.forwardRef((n,o)=>{const{decorative:i,orientation:a=ym,...l}=n,u=kk(a)?a:ym,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return y.jsx(we.div,{"data-orientation":u,...p,...l,ref:o})});wm.displayName=xk;function kk(n){return bk.includes(n)}var Sk=wm,ps="Switch",[Ck]=bt(ps),[Ek,_k]=Ck(ps),xm=v.forwardRef((n,o)=>{const{__scopeSwitch:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m="on",onCheckedChange:g,form:w,...h}=n,[b,S]=v.useState(null),E=Ie(o,R=>S(R)),k=v.useRef(!1),C=b?w||!!b.closest("form"):!0,[N,P]=vn({prop:l,defaultProp:u??!1,onChange:g,caller:ps});return y.jsxs(Ek,{scope:i,checked:N,disabled:p,children:[y.jsx(we.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Cm(N),"data-disabled":p?"":void 0,disabled:p,value:m,...h,ref:E,onClick:ke(n.onClick,R=>{P(j=>!j),C&&(k.current=R.isPropagationStopped(),k.current||R.stopPropagation())})}),C&&y.jsx(Sm,{control:b,bubbles:!k.current,name:a,value:m,checked:N,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});xm.displayName=ps;var bm="SwitchThumb",km=v.forwardRef((n,o)=>{const{__scopeSwitch:i,...a}=n,l=_k(bm,i);return y.jsx(we.span,{"data-state":Cm(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:o})});km.displayName=bm;var Nk="SwitchBubbleInput",Sm=v.forwardRef(({__scopeSwitch:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=v.useRef(null),p=Ie(f,u),m=Hi(i),g=Ui(o);return v.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&S){const E=new Event("click",{bubbles:a});S.call(w,i),w.dispatchEvent(E)}},[m,i,a]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Sm.displayName=Nk;function Cm(n){return n?"checked":"unchecked"}var Rk=xm,Pk=km,ms="Tabs",[Tk]=bt(ms,[ns]),Em=ns(),[Ik,jl]=Tk(ms),_m=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:p,activationMode:m="automatic",...g}=n,w=Ao(p),[h,b]=vn({prop:a,onChange:l,defaultProp:u??"",caller:ms});return y.jsx(Ik,{scope:i,baseId:vr(),value:h,onValueChange:b,orientation:f,dir:w,activationMode:m,children:y.jsx(we.div,{dir:w,"data-orientation":f,...g,ref:o})})});_m.displayName=ms;var Nm="TabsList",Rm=v.forwardRef((n,o)=>{const{__scopeTabs:i,loop:a=!0,...l}=n,u=jl(Nm,i),f=Em(i);return y.jsx(dp,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:a,children:y.jsx(we.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:o})})});Rm.displayName=Nm;var Pm="TabsTrigger",Tm=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,disabled:l=!1,...u}=n,f=jl(Pm,i),p=Em(i),m=jm(f.baseId,a),g=Mm(f.baseId,a),w=a===f.value;return y.jsx(fp,{asChild:!0,...p,focusable:!l,active:w,children:y.jsx(we.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":g,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:m,...u,ref:o,onMouseDown:ke(n.onMouseDown,h=>{!l&&h.button===0&&h.ctrlKey===!1?f.onValueChange(a):h.preventDefault()}),onKeyDown:ke(n.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&f.onValueChange(a)}),onFocus:ke(n.onFocus,()=>{const h=f.activationMode!=="manual";!w&&!l&&h&&f.onValueChange(a)})})})});Tm.displayName=Pm;var Im="TabsContent",Am=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,forceMount:l,children:u,...f}=n,p=jl(Im,i),m=jm(p.baseId,a),g=Mm(p.baseId,a),w=a===p.value,h=v.useRef(w);return v.useEffect(()=>{const b=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(b)},[]),y.jsx(Vt,{present:l||w,children:({present:b})=>y.jsx(we.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:g,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:h.current?"0s":void 0},children:b&&u})})});Am.displayName=Im;function jm(n,o){return`${n}-trigger-${o}`}function Mm(n,o){return`${n}-content-${o}`}var Ak=_m,jk=Rm,Mk=Tm,zk=Am,[hs]=bt("Tooltip",[ts]),gs=ts(),zm="TooltipProvider",Lk=700,Ml="tooltip.open",[Ok,zl]=hs(zm),Lm=n=>{const{__scopeTooltip:o,delayDuration:i=Lk,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:u}=n,f=v.useRef(!0),p=v.useRef(!1),m=v.useRef(0);return v.useEffect(()=>{const g=m.current;return()=>window.clearTimeout(g)},[]),y.jsx(Ok,{scope:o,isOpenDelayedRef:f,delayDuration:i,onOpen:v.useCallback(()=>{window.clearTimeout(m.current),f.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>f.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:v.useCallback(g=>{p.current=g},[]),disableHoverableContent:l,children:u})};Lm.displayName=zm;var Oo="Tooltip",[Dk,Do]=hs(Oo),Om=n=>{const{__scopeTooltip:o,children:i,open:a,defaultOpen:l,onOpenChange:u,disableHoverableContent:f,delayDuration:p}=n,m=zl(Oo,n.__scopeTooltip),g=gs(o),[w,h]=v.useState(null),b=vr(),S=v.useRef(0),E=f??m.disableHoverableContent,k=p??m.delayDuration,C=v.useRef(!1),[N,P]=vn({prop:a,defaultProp:l??!1,onChange:O=>{O?(m.onOpen(),document.dispatchEvent(new CustomEvent(Ml))):m.onClose(),u==null||u(O)},caller:Oo}),R=v.useMemo(()=>N?C.current?"delayed-open":"instant-open":"closed",[N]),j=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,C.current=!1,P(!0)},[P]),$=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,P(!1)},[P]),z=v.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{C.current=!0,P(!0),S.current=0},k)},[k,P]);return v.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),y.jsx(np,{...g,children:y.jsx(Dk,{scope:o,contentId:b,open:N,stateAttribute:R,trigger:w,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{m.isOpenDelayedRef.current?z():j()},[m.isOpenDelayedRef,z,j]),onTriggerLeave:v.useCallback(()=>{E?$():(window.clearTimeout(S.current),S.current=0)},[$,E]),onOpen:j,onClose:$,disableHoverableContent:E,children:i})})};Om.displayName=Oo;var Ll="TooltipTrigger",Dm=v.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=Do(Ll,i),u=zl(Ll,i),f=gs(i),p=v.useRef(null),m=Ie(o,p,l.onTriggerChange),g=v.useRef(!1),w=v.useRef(!1),h=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),y.jsx(rp,{asChild:!0,...f,children:y.jsx(we.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:m,onPointerMove:ke(n.onPointerMove,b=>{b.pointerType!=="touch"&&!w.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:ke(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:ke(n.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ke(n.onFocus,()=>{g.current||l.onOpen()}),onBlur:ke(n.onBlur,l.onClose),onClick:ke(n.onClick,l.onClose)})})});Dm.displayName=Ll;var Ol="TooltipPortal",[Fk,$k]=hs(Ol,{forceMount:void 0}),Fm=n=>{const{__scopeTooltip:o,forceMount:i,children:a,container:l}=n,u=Do(Ol,o);return y.jsx(Fk,{scope:o,forceMount:i,children:y.jsx(Vt,{present:i||u.open,children:y.jsx(Ya,{asChild:!0,container:l,children:a})})})};Fm.displayName=Ol;var Jr="TooltipContent",$m=v.forwardRef((n,o)=>{const i=$k(Jr,n.__scopeTooltip),{forceMount:a=i.forceMount,side:l="top",...u}=n,f=Do(Jr,n.__scopeTooltip);return y.jsx(Vt,{present:a||f.open,children:f.disableHoverableContent?y.jsx(Bm,{side:l,...u,ref:o}):y.jsx(Bk,{side:l,...u,ref:o})})}),Bk=v.forwardRef((n,o)=>{const i=Do(Jr,n.__scopeTooltip),a=zl(Jr,n.__scopeTooltip),l=v.useRef(null),u=Ie(o,l),[f,p]=v.useState(null),{trigger:m,onClose:g}=i,w=l.current,{onPointerInTransitChange:h}=a,b=v.useCallback(()=>{p(null),h(!1)},[h]),S=v.useCallback((E,k)=>{const C=E.currentTarget,N={x:E.clientX,y:E.clientY},P=Wk(N,C.getBoundingClientRect()),R=Gk(N,P),j=Yk(k.getBoundingClientRect()),$=Xk([...R,...j]);p($),h(!0)},[h]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(m&&w){const E=C=>S(C,w),k=C=>S(C,m);return m.addEventListener("pointerleave",E),w.addEventListener("pointerleave",k),()=>{m.removeEventListener("pointerleave",E),w.removeEventListener("pointerleave",k)}}},[m,w,S,b]),v.useEffect(()=>{if(f){const E=k=>{const C=k.target,N={x:k.clientX,y:k.clientY},P=(m==null?void 0:m.contains(C))||(w==null?void 0:w.contains(C)),R=!Kk(N,f);P?b():R&&(b(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[m,w,f,g,b]),y.jsx(Bm,{...n,ref:u})}),[Hk,Uk]=hs(Oo,{isInside:!1}),Vk=Xy("TooltipContent"),Bm=v.forwardRef((n,o)=>{const{__scopeTooltip:i,children:a,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:f,...p}=n,m=Do(Jr,i),g=gs(i),{onClose:w}=m;return v.useEffect(()=>(document.addEventListener(Ml,w),()=>document.removeEventListener(Ml,w)),[w]),v.useEffect(()=>{if(m.trigger){const h=b=>{const S=b.target;S!=null&&S.contains(m.trigger)&&w()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[m.trigger,w]),y.jsx(Va,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h=>h.preventDefault(),onDismiss:w,children:y.jsxs(op,{"data-state":m.stateAttribute,...g,...p,ref:o,style:{...p.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:[y.jsx(Vk,{children:a}),y.jsx(Hk,{scope:i,isInside:!0,children:y.jsx(nw,{id:m.contentId,role:"tooltip",children:l||a})})]})})});$m.displayName=Jr;var Hm="TooltipArrow",Um=v.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=gs(i);return Uk(Hm,i).isInside?null:y.jsx(ip,{...l,...a,ref:o})});Um.displayName=Hm;function Wk(n,o){const i=Math.abs(o.top-n.y),a=Math.abs(o.bottom-n.y),l=Math.abs(o.right-n.x),u=Math.abs(o.left-n.x);switch(Math.min(i,a,l,u)){case u:return"left";case l:return"right";case i:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function Gk(n,o,i=5){const a=[];switch(o){case"top":a.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":a.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":a.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":a.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return a}function Yk(n){const{top:o,right:i,bottom:a,left:l}=n;return[{x:l,y:o},{x:i,y:o},{x:i,y:a},{x:l,y:a}]}function Kk(n,o){const{x:i,y:a}=n;let l=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const p=o[u],m=o[f],g=p.x,w=p.y,h=m.x,b=m.y;w>a!=b>a&&i<(h-g)*(a-w)/(b-w)+g&&(l=!l)}return l}function Xk(n){const o=n.slice();return o.sort((i,a)=>i.x<a.x?-1:i.x>a.x?1:i.y<a.y?-1:i.y>a.y?1:0),Qk(o)}function Qk(n){if(n.length<=1)return n.slice();const o=[];for(let a=0;a<n.length;a++){const l=n[a];for(;o.length>=2;){const u=o[o.length-1],f=o[o.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))o.pop();else break}o.push(l)}o.pop();const i=[];for(let a=n.length-1;a>=0;a--){const l=n[a];for(;i.length>=2;){const u=i[i.length-1],f=i[i.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))i.pop();else break}i.push(l)}return i.pop(),o.length===1&&i.length===1&&o[0].x===i[0].x&&o[0].y===i[0].y?o:o.concat(i)}var qk=Lm,Zk=Om,Jk=Dm,eS=Fm,tS=$m,nS=Um;const rS=Ai("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all cursor-pointer outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Vm({className:n,variant:o="default",size:i="default",asChild:a=!1,...l}){const u=a?_d:"button";return y.jsx(u,{"data-slot":"button","data-variant":o,"data-size":i,className:ye(rS({variant:o,size:i,className:n})),...l})}const oS={amber:"bg-amber-100 text-amber-800",blue:"bg-blue-100 text-blue-800",emerald:"bg-emerald-100 text-emerald-800",red:"bg-red-100 text-red-800",purple:"bg-purple-100 text-purple-800",pink:"bg-pink-100 text-pink-800",gray:"bg-gray-100 text-gray-800"},iS=Ai("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function sS({className:n,variant:o="default",hue:i,asChild:a=!1,...l}){const u=a?_d:"span",f=i?oS[i]:void 0;return y.jsx(u,{"data-slot":"badge","data-variant":o,className:ye(iS({variant:o}),f,n),...l})}function aS({className:n,type:o,...i}){return y.jsx("input",{type:o,"data-slot":"input",className:ye("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n),...i})}function lS({className:n,...o}){return y.jsx("textarea",{"data-slot":"textarea",className:ye("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o})}function cS({...n}){return y.jsx(lk,{"data-slot":"select",...n})}function uS({...n}){return y.jsx(uk,{"data-slot":"select-value",...n})}function dS({className:n,size:o="default",children:i,...a}){return y.jsxs(ck,{"data-slot":"select-trigger","data-size":o,className:ye("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",n),...a,children:[i,y.jsx(dk,{asChild:!0,children:y.jsx(Xu,{className:"size-4 opacity-50"})})]})}function fS({className:n,children:o,position:i="item-aligned",align:a="center",...l}){return y.jsx(fk,{children:y.jsxs(pk,{"data-slot":"select-content",className:ye("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i,align:a,...l,children:[y.jsx(mS,{}),y.jsx(mk,{className:ye("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),y.jsx(hS,{})]})})}function pS({className:n,children:o,...i}){return y.jsxs(hk,{"data-slot":"select-item",className:ye("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...i,children:[y.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(vk,{children:y.jsx(Ku,{className:"size-4"})})}),y.jsx(gk,{children:o})]})}function mS({className:n,...o}){return y.jsx(yk,{"data-slot":"select-scroll-up-button",className:ye("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(H0,{className:"size-4"})})}function hS({className:n,...o}){return y.jsx(wk,{"data-slot":"select-scroll-down-button",className:ye("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(Xu,{className:"size-4"})})}function gS({className:n,...o}){return y.jsx(yf,{"data-slot":"checkbox",className:ye("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",n),...o,children:y.jsx(xf,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Ku,{className:"size-3.5"})})})}function vS({className:n,size:o="default",...i}){return y.jsx(Rk,{"data-slot":"switch","data-size":o,className:ye("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",n),...i,children:y.jsx(Pk,{"data-slot":"switch-thumb",className:ye("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function yS({className:n,...o}){return y.jsx(o1,{"data-slot":"label",className:ye("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...o})}function wS({className:n,...o}){return y.jsx(k1,{"data-slot":"radio-group",className:ye("grid gap-3",n),...o})}function xS({className:n,...o}){return y.jsx(S1,{"data-slot":"radio-group-item",className:ye("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o,children:y.jsx(C1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(W0,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function bS({className:n,orientation:o="horizontal",decorative:i=!0,...a}){return y.jsx(Sk,{"data-slot":"separator",decorative:i,orientation:o,className:ye("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...a})}function kS({className:n,orientation:o="horizontal",...i}){return y.jsx(Ak,{"data-slot":"tabs","data-orientation":o,orientation:o,className:ye("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const SS=Ai("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function CS({className:n,variant:o="default",...i}){return y.jsx(jk,{"data-slot":"tabs-list","data-variant":o,className:ye(SS({variant:o}),n),...i})}function ES({className:n,...o}){return y.jsx(Mk,{"data-slot":"tabs-trigger",className:ye("cursor-pointer relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...o})}function _S({className:n,...o}){return y.jsx(zk,{"data-slot":"tabs-content",className:ye("flex-1 outline-none",n),...o})}function NS({className:n,children:o,...i}){return y.jsxs(L1,{"data-slot":"scroll-area",className:ye("relative",n),...i,children:[y.jsx(O1,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:o}),y.jsx(RS,{}),y.jsx(D1,{})]})}function RS({className:n,orientation:o="vertical",...i}){return y.jsx(Lp,{"data-slot":"scroll-area-scrollbar",orientation:o,className:ye("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:y.jsx($p,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Dl({className:n,size:o="default",...i}){return y.jsx(Rx,{"data-slot":"avatar","data-size":o,className:ye("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...i})}function Fl({className:n,...o}){return y.jsx(Px,{"data-slot":"avatar-image",className:ye("aspect-square size-full",n),...o})}function $l({className:n,...o}){return y.jsx(Tx,{"data-slot":"avatar-fallback",className:ye("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...o})}function PS({className:n,...o}){return y.jsx("div",{"data-slot":"skeleton",className:ye("animate-pulse rounded-md bg-accent",n),...o})}function TS({delayDuration:n=0,...o}){return y.jsx(qk,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function IS({...n}){return y.jsx(Zk,{"data-slot":"tooltip",...n})}function AS({...n}){return y.jsx(Jk,{"data-slot":"tooltip-trigger",...n})}function jS({className:n,sideOffset:o=0,children:i,...a}){return y.jsx(eS,{children:y.jsxs(tS,{"data-slot":"tooltip-content",sideOffset:o,className:ye("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",n),...a,children:[i,y.jsx(nS,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function MS({className:n,value:o,...i}){return y.jsx(d1,{"data-slot":"progress",className:ye("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:y.jsx(f1,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}const zS=Ai("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function LS({className:n,variant:o,...i}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:ye(zS({variant:o}),n),...i})}function OS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-title",className:ye("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...o})}function DS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-description",className:ye("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...o})}function FS({...n}){return y.jsx(hw,{"data-slot":"collapsible",...n})}function $S({...n}){return y.jsx(jd,{"data-slot":"collapsible-trigger",...n})}function BS({...n}){return y.jsx(Md,{"data-slot":"collapsible-content",...n})}const Wm={"arrow-left":D0,calendar:$0,"check-circle-2":qu,"chevron-left":B0,"chevron-right":ja,clock:G0,"credit-card":Y0,"external-link":K0,"help-circle":U0,info:Ri,"loader-2":Ma,mail:za,"map-pin":X0,"message-circle":Q0,"message-square":Zu,package:Z0,phone:J0,search:ey,"shopping-bag":ty,sparkles:ny,truck:oy,user:Ju,"x-circle":V0,"alert-circle":Qu,"book-open":F0},Gm={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},Ym={default:"text-foreground",muted:"text-muted-foreground",destructive:"text-destructive"},Km=n=>typeof n=="number"?Gm[String(n)]??"gap-2":typeof n=="string"?Gm[n.trim()]??"gap-2":"gap-2",HS=({children:n,className:o,onClick:i})=>y.jsx(Po,{className:o,onClick:i,children:n}),US=({children:n,className:o})=>y.jsx(To,{className:o,children:n}),VS=({children:n,className:o})=>y.jsx(Yy,{className:o,children:n}),WS=({children:n,className:o,onClick:i,variant:a,size:l,disabled:u,title:f})=>y.jsx(Vm,{className:o,variant:a,size:l,onClick:i,disabled:u,title:f,children:n}),GS=({children:n,className:o,variant:i,hue:a,tone:l})=>y.jsx(sS,{className:ye(Ym[l]??"",o),variant:i,hue:a,children:n}),YS=({className:n,onChange:o,...i})=>y.jsx(aS,{className:n,onChange:o,...i}),KS=({className:n,onChange:o,...i})=>y.jsx(lS,{className:n,onChange:o,...i}),XS=({children:n,className:o,value:i,defaultValue:a,onChange:l,placeholder:u,disabled:f})=>y.jsxs(cS,{value:i,defaultValue:a,onValueChange:p=>{const m=l;m==null||m({target:{value:p}})},disabled:f,children:[y.jsx(dS,{className:o,children:y.jsx(uS,{placeholder:u})}),y.jsx(fS,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),QS=({children:n,value:o,disabled:i,className:a})=>y.jsx(pS,{value:o,disabled:i,className:a,children:n}),qS=({checked:n,onChange:o,disabled:i,className:a,id:l})=>{const u=n!==void 0,f=o;return y.jsx(gS,{...u?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:i,className:a,id:l})},ZS=({checked:n,onChange:o,disabled:i,size:a,className:l,id:u})=>{const f=n!==void 0,p=o;return y.jsx(vS,{...f?{checked:n==="true"||n===!0}:{},onCheckedChange:m=>p==null?void 0:p({target:{value:String(m)}}),disabled:i,size:a,className:l,id:u})},JS=({children:n,htmlFor:o,className:i})=>y.jsx(yS,{htmlFor:o,className:i,children:n}),eC=({children:n,value:o,defaultValue:i,onChange:a,className:l})=>y.jsx(wS,{value:o,defaultValue:i,onValueChange:u=>{const f=a;f==null||f({target:{value:u}})},className:l,children:n}),tC=({value:n,disabled:o,className:i,id:a})=>y.jsx(xS,{value:n,disabled:o,className:i,id:a}),nC=({className:n})=>y.jsx(bS,{className:n}),rC=({children:n,defaultValue:o,className:i})=>y.jsx(kS,{defaultValue:o,className:i,children:n}),oC=({children:n,className:o})=>y.jsx(CS,{className:o,children:n}),iC=({children:n,value:o,className:i})=>y.jsx(ES,{className:i,value:o,children:n}),sC=({children:n,value:o,className:i})=>y.jsx(_S,{className:i,value:o,children:n}),aC=({children:n,className:o})=>y.jsx(NS,{className:o,children:n}),lC=({src:n,alt:o,className:i})=>{var a;return y.jsxs(Dl,{className:i,children:[y.jsx(Fl,{src:n,alt:o}),y.jsx($l,{children:((a=o==null?void 0:o.charAt(0))==null?void 0:a.toUpperCase())||"?"})]})},cC=({width:n,height:o,className:i})=>y.jsx(PS,{className:i,style:{width:n,height:o}}),uC=({children:n,content:o,className:i})=>y.jsx(TS,{children:y.jsxs(IS,{children:[y.jsx(AS,{asChild:!0,children:y.jsx("span",{className:i,children:n})}),y.jsx(jS,{children:y.jsx("p",{children:String(o)})})]})}),dC=({value:n,className:o})=>y.jsx(MS,{value:typeof n=="string"?Number(n):n,className:o}),fC={default:Ri,destructive:Qu},pC=({children:n,variant:o,title:i,className:a})=>{const l=o,u=fC[l||"default"]||Ri;return y.jsxs(LS,{variant:l,className:a,children:[y.jsx(u,{className:"size-4"}),i?y.jsx(OS,{children:String(i)}):null,n?y.jsx(DS,{children:n}):null]})},mC=({children:n,defaultOpen:o,className:i})=>y.jsx(FS,{defaultOpen:o==="true"||o===!0,className:i,children:n}),hC=({children:n,className:o})=>y.jsxs($S,{className:ye("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",o),children:[y.jsx(ja,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),gC=({children:n,className:o})=>y.jsx(BS,{className:o,children:n}),vC=({children:n,className:o,tone:i})=>y.jsx("p",{className:ye("text-sm",Ym[i]??"",o),children:n}),yC=({children:n,className:o,level:i})=>{const a=`h${i||"2"}`;return y.jsx(a,{className:ye("font-semibold tracking-tight",o),children:n})},wC=({children:n,className:o,direction:i,gap:a})=>{const l=i==="row"?"flex-row":"flex-col",u=Km(a);return y.jsx("div",{className:ye("flex",l,u,o),children:n})},xC=({children:n,className:o,gap:i})=>{const a=Km(i);return y.jsx("div",{className:ye("flex flex-row items-center",a,o),children:n})},bC=({children:n,className:o,href:i,target:a,rel:l})=>y.jsx("a",{href:i,target:a,rel:l,className:o,children:n}),kC=({title:n,children:o,className:i})=>y.jsxs(Po,{className:ye("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?y.jsx(To,{className:"px-6 py-3",children:y.jsx("h3",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:String(n)})}):null,y.jsx("div",{className:"flex flex-col gap-0 divide-y divide-border",children:o})]}),SC=({icon:n,label:o,description:i,onClick:a,className:l})=>{const u=n,f="size-5",p=u?Wm[u]:null;return y.jsxs("button",{type:"button",className:ye("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70",l),onClick:a,children:[p&&y.jsx(p,{className:`${f} shrink-0 text-muted-foreground`}),y.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[o?y.jsx("p",{className:"font-medium text-sm text-foreground",children:String(o)}):null,i?y.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),y.jsx(ja,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},CC=({name:n,size:o,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[o]??"size-4",u=n,f=Wm[u],p=u==="sparkles"?"sparkle-icon":"";return f?y.jsx(f,{className:ye(l,p,i)}):y.jsx("span",{className:ye("inline-block",l,p,i),"data-icon":u})},EC=()=>({"ui-card":HS,"ui-card-content":US,"ui-card-header":VS,"ui-button":WS,"ui-text":vC,"ui-heading":yC,"ui-badge":GS,"ui-input":YS,"ui-textarea":KS,"ui-select":XS,"ui-select-option":QS,"ui-checkbox":qS,"ui-switch":ZS,"ui-label":JS,"ui-radio-group":eC,"ui-radio-group-item":tC,"ui-stack":wC,"ui-inline":xC,"ui-separator":nC,"ui-tabs":rC,"ui-tabs-list":oC,"ui-tabs-trigger":iC,"ui-tabs-content":sC,"ui-scroll-area":aC,"ui-avatar":lC,"ui-icon":CC,"ui-link":bC,"ui-menu-item":SC,"ui-menu":kC,"ui-skeleton":cC,"ui-tooltip":uC,"ui-progress":dC,"ui-alert":pC,"ui-collapsible":mC,"ui-collapsible-trigger":hC,"ui-collapsible-content":gC}),Xm="/api/ecommerce",Qm=async(n,o)=>{const i=o?`${o.replace(/\/$/,"")}${Xm}`:Xm,a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),l=await a.json();if(!a.ok)throw new Error(l.error||"API request failed");return l.data},_C=({className:n})=>y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 190 190",version:"1.1",className:n,children:[y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z",fill:"rgb(15,13,25)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z",fill:"rgb(232,218,234)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z",fill:"rgb(15,13,25)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z",fill:"rgb(252,248,161)"})})]}),qm="stackable-dev-badge-styles",NC=()=>{if(typeof document>"u"||document.getElementById(qm))return;const n=document.createElement("style");n.id=qm,n.textContent=`
304
+ Defaulting to \`null\`.`}var d1=mp,f1=gp,Sl="Radio",[p1,xp]=bt(Sl),[m1,h1]=p1(Sl),bp=v.forwardRef((n,o)=>{const{__scopeRadio:i,name:a,checked:l=!1,required:u,disabled:f,value:p="on",onCheck:m,form:g,...w}=n,[h,b]=v.useState(null),S=Ie(o,C=>b(C)),E=v.useRef(!1),k=h?g||!!h.closest("form"):!0;return y.jsxs(m1,{scope:i,checked:l,disabled:f,children:[y.jsx(we.button,{type:"button",role:"radio","aria-checked":l,"data-state":Ep(l),"data-disabled":f?"":void 0,disabled:f,value:p,...w,ref:S,onClick:ke(n.onClick,C=>{l||m==null||m(),k&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),k&&y.jsx(Cp,{control:h,bubbles:!E.current,name:a,value:p,checked:l,required:u,disabled:f,form:g,style:{transform:"translateX(-100%)"}})]})});bp.displayName=Sl;var kp="RadioIndicator",Sp=v.forwardRef((n,o)=>{const{__scopeRadio:i,forceMount:a,...l}=n,u=h1(kp,i);return y.jsx(Vt,{present:a||u.checked,children:y.jsx(we.span,{"data-state":Ep(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o})})});Sp.displayName=kp;var g1="RadioBubbleInput",Cp=v.forwardRef(({__scopeRadio:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=v.useRef(null),p=Ie(f,u),m=Hi(i),g=Ui(o);return v.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&S){const E=new Event("click",{bubbles:a});S.call(w,i),w.dispatchEvent(E)}},[m,i,a]),y.jsx(we.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Cp.displayName=g1;function Ep(n){return n?"checked":"unchecked"}var v1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],os="RadioGroup",[y1]=bt(os,[ns,xp]),_p=ns(),Np=xp(),[w1,x1]=y1(os),Rp=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,name:a,defaultValue:l,value:u,required:f=!1,disabled:p=!1,orientation:m,dir:g,loop:w=!0,onValueChange:h,...b}=n,S=_p(i),E=Ao(g),[k,C]=vn({prop:u,defaultProp:l??null,onChange:h,caller:os});return y.jsx(w1,{scope:i,name:a,required:f,disabled:p,value:k,onValueChange:C,children:y.jsx(dp,{asChild:!0,...S,orientation:m,dir:E,loop:w,children:y.jsx(we.div,{role:"radiogroup","aria-required":f,"aria-orientation":m,"data-disabled":p?"":void 0,dir:E,...b,ref:o})})})});Rp.displayName=os;var Pp="RadioGroupItem",Tp=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,disabled:a,...l}=n,u=x1(Pp,i),f=u.disabled||a,p=_p(i),m=Np(i),g=v.useRef(null),w=Ie(o,g),h=u.value===l.value,b=v.useRef(!1);return v.useEffect(()=>{const S=k=>{v1.includes(k.key)&&(b.current=!0)},E=()=>b.current=!1;return document.addEventListener("keydown",S),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",E)}},[]),y.jsx(fp,{asChild:!0,...p,focusable:!f,active:h,children:y.jsx(bp,{disabled:f,required:u.required,checked:h,...m,...l,name:u.name,ref:w,onCheck:()=>u.onValueChange(l.value),onKeyDown:ke(S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:ke(l.onFocus,()=>{var S;b.current&&((S=g.current)==null||S.click())})})})});Tp.displayName=Pp;var b1="RadioGroupIndicator",Ip=v.forwardRef((n,o)=>{const{__scopeRadioGroup:i,...a}=n,l=Np(i);return y.jsx(Sp,{...l,...a,ref:o})});Ip.displayName=b1;var k1=Rp,S1=Tp,C1=Ip;function E1(n,o){return v.useReducer((i,a)=>o[i][a]??i,n)}var Cl="ScrollArea",[Ap]=bt(Cl),[_1,Mt]=Ap(Cl),jp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,type:a="hover",dir:l,scrollHideDelay:u=600,...f}=n,[p,m]=v.useState(null),[g,w]=v.useState(null),[h,b]=v.useState(null),[S,E]=v.useState(null),[k,C]=v.useState(null),[N,P]=v.useState(0),[R,j]=v.useState(0),[$,z]=v.useState(!1),[O,D]=v.useState(!1),X=Ie(o,fe=>m(fe)),oe=Ao(l);return y.jsx(_1,{scope:i,type:a,dir:oe,scrollHideDelay:u,scrollArea:p,viewport:g,onViewportChange:w,content:h,onContentChange:b,scrollbarX:S,onScrollbarXChange:E,scrollbarXEnabled:$,onScrollbarXEnabledChange:z,scrollbarY:k,onScrollbarYChange:C,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:P,onCornerHeightChange:j,children:y.jsx(we.div,{dir:oe,...f,ref:X,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});jp.displayName=Cl;var Mp="ScrollAreaViewport",zp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,children:a,nonce:l,...u}=n,f=Mt(Mp,i),p=v.useRef(null),m=Ie(o,p,f.onViewportChange);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),y.jsx(we.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:y.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});zp.displayName=Mp;var cn="ScrollAreaScrollbar",Lp=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=l,p=n.orientation==="horizontal";return v.useEffect(()=>(p?u(!0):f(!0),()=>{p?u(!1):f(!1)}),[p,u,f]),l.type==="hover"?y.jsx(N1,{...a,ref:o,forceMount:i}):l.type==="scroll"?y.jsx(R1,{...a,ref:o,forceMount:i}):l.type==="auto"?y.jsx(Op,{...a,ref:o,forceMount:i}):l.type==="always"?y.jsx(El,{...a,ref:o}):null});Lp.displayName=cn;var N1=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),[u,f]=v.useState(!1);return v.useEffect(()=>{const p=l.scrollArea;let m=0;if(p){const g=()=>{window.clearTimeout(m),f(!0)},w=()=>{m=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return p.addEventListener("pointerenter",g),p.addEventListener("pointerleave",w),()=>{window.clearTimeout(m),p.removeEventListener("pointerenter",g),p.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),y.jsx(Vt,{present:i||u,children:y.jsx(Op,{"data-state":u?"visible":"hidden",...a,ref:o})})}),R1=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ls(()=>m("SCROLL_END"),100),[p,m]=E1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(p==="idle"){const g=window.setTimeout(()=>m("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(g)}},[p,l.scrollHideDelay,m]),v.useEffect(()=>{const g=l.viewport,w=u?"scrollLeft":"scrollTop";if(g){let h=g[w];const b=()=>{const S=g[w];h!==S&&(m("SCROLL"),f()),h=S};return g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[l.viewport,u,m,f]),y.jsx(Vt,{present:i||p!=="hidden",children:y.jsx(El,{"data-state":p==="hidden"?"hidden":"visible",...a,ref:o,onPointerEnter:ke(n.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:ke(n.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),Op=v.forwardRef((n,o)=>{const i=Mt(cn,n.__scopeScrollArea),{forceMount:a,...l}=n,[u,f]=v.useState(!1),p=n.orientation==="horizontal",m=ls(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;f(p?g:w)}},10);return qr(i.viewport,m),qr(i.content,m),y.jsx(Vt,{present:a||u,children:y.jsx(El,{"data-state":u?"visible":"hidden",...l,ref:o})})}),El=v.forwardRef((n,o)=>{const{orientation:i="vertical",...a}=n,l=Mt(cn,n.__scopeScrollArea),u=v.useRef(null),f=v.useRef(0),[p,m]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Hp(p.viewport,p.content),w={...a,sizes:p,onSizesChange:m,hasThumb:g>0&&g<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:b=>f.current=b};function h(b,S){return M1(b,f.current,p,S)}return i==="horizontal"?y.jsx(P1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollLeft,S=Up(b,p,l.dir);u.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=h(b,l.dir))}}):i==="vertical"?y.jsx(T1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollTop,S=Up(b,p);u.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=h(b))}}):null}),P1=v.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=v.useState(),m=v.useRef(null),g=Ie(o,m,u.onScrollbarXChange);return v.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(Fp,{"data-orientation":"horizontal",...l,ref:g,sizes:i,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":as(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,h)=>{if(u.viewport){const b=u.viewport.scrollLeft+w.deltaX;n.onWheelScroll(b),Wp(b,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:ss(f.paddingLeft),paddingEnd:ss(f.paddingRight)}})}})}),T1=v.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=v.useState(),m=v.useRef(null),g=Ie(o,m,u.onScrollbarYChange);return v.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(Fp,{"data-orientation":"vertical",...l,ref:g,sizes:i,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":as(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,h)=>{if(u.viewport){const b=u.viewport.scrollTop+w.deltaY;n.onWheelScroll(b),Wp(b,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:ss(f.paddingTop),paddingEnd:ss(f.paddingBottom)}})}})}),[I1,Dp]=Ap(cn),Fp=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,sizes:a,hasThumb:l,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:p,onThumbPositionChange:m,onDragScroll:g,onWheelScroll:w,onResize:h,...b}=n,S=Mt(cn,i),[E,k]=v.useState(null),C=Ie(o,X=>k(X)),N=v.useRef(null),P=v.useRef(""),R=S.viewport,j=a.content-a.viewport,$=ut(w),z=ut(m),O=ls(h,10);function D(X){if(N.current){const oe=X.clientX-N.current.left,fe=X.clientY-N.current.top;g({x:oe,y:fe})}}return v.useEffect(()=>{const X=oe=>{const fe=oe.target;(E==null?void 0:E.contains(fe))&&$(oe,j)};return document.addEventListener("wheel",X,{passive:!1}),()=>document.removeEventListener("wheel",X,{passive:!1})},[R,E,j,$]),v.useEffect(z,[a,z]),qr(E,O),qr(S.content,O),y.jsx(I1,{scope:i,scrollbar:E,hasThumb:l,onThumbChange:ut(u),onThumbPointerUp:ut(f),onThumbPositionChange:z,onThumbPointerDown:ut(p),children:y.jsx(we.div,{...b,ref:C,style:{position:"absolute",...b.style},onPointerDown:ke(n.onPointerDown,X=>{X.button===0&&(X.target.setPointerCapture(X.pointerId),N.current=E.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),D(X))}),onPointerMove:ke(n.onPointerMove,D),onPointerUp:ke(n.onPointerUp,X=>{const oe=X.target;oe.hasPointerCapture(X.pointerId)&&oe.releasePointerCapture(X.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),N.current=null})})})}),is="ScrollAreaThumb",$p=v.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Dp(is,n.__scopeScrollArea);return y.jsx(Vt,{present:i||l.hasThumb,children:y.jsx(A1,{ref:o,...a})})}),A1=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,style:a,...l}=n,u=Mt(is,i),f=Dp(is,i),{onThumbPositionChange:p}=f,m=Ie(o,h=>f.onThumbChange(h)),g=v.useRef(void 0),w=ls(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const h=u.viewport;if(h){const b=()=>{if(w(),!g.current){const S=z1(h,p);g.current=S,p()}};return p(),h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[u.viewport,w,p]),y.jsx(we.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ke(n.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),E=h.clientX-S.left,k=h.clientY-S.top;f.onThumbPointerDown({x:E,y:k})}),onPointerUp:ke(n.onPointerUp,f.onThumbPointerUp)})});$p.displayName=is;var _l="ScrollAreaCorner",Bp=v.forwardRef((n,o)=>{const i=Mt(_l,n.__scopeScrollArea),a=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&a?y.jsx(j1,{...n,ref:o}):null});Bp.displayName=_l;var j1=v.forwardRef((n,o)=>{const{__scopeScrollArea:i,...a}=n,l=Mt(_l,i),[u,f]=v.useState(0),[p,m]=v.useState(0),g=!!(u&&p);return qr(l.scrollbarX,()=>{var h;const w=((h=l.scrollbarX)==null?void 0:h.offsetHeight)||0;l.onCornerHeightChange(w),m(w)}),qr(l.scrollbarY,()=>{var h;const w=((h=l.scrollbarY)==null?void 0:h.offsetWidth)||0;l.onCornerWidthChange(w),f(w)}),g?y.jsx(we.div,{...a,ref:o,style:{width:u,height:p,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function ss(n){return n?parseInt(n,10):0}function Hp(n,o){const i=n/o;return isNaN(i)?0:i}function as(n){const o=Hp(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=(n.scrollbar.size-i)*o;return Math.max(a,18)}function M1(n,o,i,a="ltr"){const l=as(i),u=l/2,f=o||u,p=l-f,m=i.scrollbar.paddingStart+f,g=i.scrollbar.size-i.scrollbar.paddingEnd-p,w=i.content-i.viewport,h=a==="ltr"?[0,w]:[w*-1,0];return Vp([m,g],h)(n)}function Up(n,o,i="ltr"){const a=as(o),l=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-l,f=o.content-o.viewport,p=u-a,m=i==="ltr"?[0,f]:[f*-1,0],g=xl(n,m);return Vp([0,f],[0,p])(g)}function Vp(n,o){return i=>{if(n[0]===n[1]||o[0]===o[1])return o[0];const a=(o[1]-o[0])/(n[1]-n[0]);return o[0]+a*(i-n[0])}}function Wp(n,o){return n>0&&n<o}var z1=(n,o=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},a=0;return(function l(){const u={left:n.scrollLeft,top:n.scrollTop},f=i.left!==u.left,p=i.top!==u.top;(f||p)&&o(),i=u,a=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(a)};function ls(n,o){const i=ut(n),a=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(a.current),[]),v.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(i,o)},[i,o])}function qr(n,o){const i=ut(o);We(()=>{let a=0;if(n){const l=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(i)});return l.observe(n),()=>{window.cancelAnimationFrame(a),l.unobserve(n)}}},[n,i])}var L1=jp,O1=zp,D1=Bp,F1=[" ","Enter","ArrowUp","ArrowDown"],$1=[" ","Enter"],xr="Select",[cs,us,B1]=Td(xr),[Zr]=bt(xr,[B1,ts]),ds=ts(),[H1,Fn]=Zr(xr),[U1,V1]=Zr(xr),Gp=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:l,onOpenChange:u,value:f,defaultValue:p,onValueChange:m,dir:g,name:w,autoComplete:h,disabled:b,required:S,form:E}=n,k=ds(o),[C,N]=v.useState(null),[P,R]=v.useState(null),[j,$]=v.useState(!1),z=Ao(g),[O,D]=vn({prop:a,defaultProp:l??!1,onChange:u,caller:xr}),[X,oe]=vn({prop:f,defaultProp:p,onChange:m,caller:xr}),fe=v.useRef(null),ge=C?E||!!C.closest("form"):!0,[he,ve]=v.useState(new Set),Se=Array.from(he).map(G=>G.props.value).join(";");return y.jsx(np,{...k,children:y.jsxs(H1,{required:S,scope:o,trigger:C,onTriggerChange:N,valueNode:P,onValueNodeChange:R,valueNodeHasChildren:j,onValueNodeHasChildrenChange:$,contentId:vr(),value:X,onValueChange:oe,open:O,onOpenChange:D,dir:z,triggerPointerDownPosRef:fe,disabled:b,children:[y.jsx(cs.Provider,{scope:o,children:y.jsx(U1,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(G=>{ve(te=>new Set(te).add(G))},[]),onNativeOptionRemove:v.useCallback(G=>{ve(te=>{const H=new Set(te);return H.delete(G),H})},[]),children:i})}),ge?y.jsxs(mm,{"aria-hidden":!0,required:S,tabIndex:-1,name:w,autoComplete:h,value:X,onChange:G=>oe(G.target.value),disabled:b,form:E,children:[X===void 0?y.jsx("option",{value:""}):null,Array.from(he)]},Se):null]})})};Gp.displayName=xr;var Yp="SelectTrigger",Kp=v.forwardRef((n,o)=>{const{__scopeSelect:i,disabled:a=!1,...l}=n,u=ds(i),f=Fn(Yp,i),p=f.disabled||a,m=Ie(o,f.onTriggerChange),g=us(i),w=v.useRef("touch"),[h,b,S]=gm(k=>{const C=g().filter(R=>!R.disabled),N=C.find(R=>R.value===f.value),P=vm(C,k,N);P!==void 0&&f.onValueChange(P.value)}),E=k=>{p||(f.onOpenChange(!0),S()),k&&(f.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return y.jsx(rp,{asChild:!0,...u,children:y.jsx(we.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":hm(f.value)?"":void 0,...l,ref:m,onClick:ke(l.onClick,k=>{k.currentTarget.focus(),w.current!=="mouse"&&E(k)}),onPointerDown:ke(l.onPointerDown,k=>{w.current=k.pointerType;const C=k.target;C.hasPointerCapture(k.pointerId)&&C.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(E(k),k.preventDefault())}),onKeyDown:ke(l.onKeyDown,k=>{const C=h.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(C&&k.key===" ")&&F1.includes(k.key)&&(E(),k.preventDefault())})})})});Kp.displayName=Yp;var Xp="SelectValue",Qp=v.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,children:u,placeholder:f="",...p}=n,m=Fn(Xp,i),{onValueNodeHasChildrenChange:g}=m,w=u!==void 0,h=Ie(o,m.onValueNodeChange);return We(()=>{g(w)},[g,w]),y.jsx(we.span,{...p,ref:h,style:{pointerEvents:"none"},children:hm(m.value)?y.jsx(y.Fragment,{children:f}):u})});Qp.displayName=Xp;var W1="SelectIcon",qp=v.forwardRef((n,o)=>{const{__scopeSelect:i,children:a,...l}=n;return y.jsx(we.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})});qp.displayName=W1;var G1="SelectPortal",Zp=n=>y.jsx(Ya,{asChild:!0,...n});Zp.displayName=G1;var br="SelectContent",Jp=v.forwardRef((n,o)=>{const i=Fn(br,n.__scopeSelect),[a,l]=v.useState();if(We(()=>{l(new DocumentFragment)},[]),!i.open){const u=a;return u?No.createPortal(y.jsx(em,{scope:n.__scopeSelect,children:y.jsx(cs.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),u):null}return y.jsx(tm,{...n,ref:o})});Jp.displayName=br;var Yt=10,[em,$n]=Zr(br),Y1="SelectContentImpl",K1=Io("SelectContent.RemoveScroll"),tm=v.forwardRef((n,o)=>{const{__scopeSelect:i,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:p,sideOffset:m,align:g,alignOffset:w,arrowPadding:h,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:k,avoidCollisions:C,...N}=n,P=Fn(br,i),[R,j]=v.useState(null),[$,z]=v.useState(null),O=Ie(o,Z=>j(Z)),[D,X]=v.useState(null),[oe,fe]=v.useState(null),ge=us(i),[he,ve]=v.useState(!1),Se=v.useRef(!1);v.useEffect(()=>{if(R)return wx(R)},[R]),jw();const G=v.useCallback(Z=>{const[J,...ae]=ge().map(Re=>Re.ref.current),[Ce]=ae.slice(-1),Ne=document.activeElement;for(const Re of Z)if(Re===Ne||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===J&&$&&($.scrollTop=0),Re===Ce&&$&&($.scrollTop=$.scrollHeight),Re==null||Re.focus(),document.activeElement!==Ne))return},[ge,$]),te=v.useCallback(()=>G([D,R]),[G,D,R]);v.useEffect(()=>{he&&te()},[he,te]);const{onOpenChange:H,triggerPointerDownPosRef:q}=P;v.useEffect(()=>{if(R){let Z={x:0,y:0};const J=Ce=>{var Ne,Re;Z={x:Math.abs(Math.round(Ce.pageX)-(((Ne=q.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Re=q.current)==null?void 0:Re.y)??0))}},ae=Ce=>{Z.x<=10&&Z.y<=10?Ce.preventDefault():R.contains(Ce.target)||H(!1),document.removeEventListener("pointermove",J),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",ae,{capture:!0})}}},[R,H,q]),v.useEffect(()=>{const Z=()=>H(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[H]);const[B,A]=gm(Z=>{const J=ge().filter(Ne=>!Ne.disabled),ae=J.find(Ne=>Ne.ref.current===document.activeElement),Ce=vm(J,Z,ae);Ce&&setTimeout(()=>Ce.ref.current.focus())}),U=v.useCallback((Z,J,ae)=>{const Ce=!Se.current&&!ae;(P.value!==void 0&&P.value===J||Ce)&&(X(Z),Ce&&(Se.current=!0))},[P.value]),ee=v.useCallback(()=>R==null?void 0:R.focus(),[R]),re=v.useCallback((Z,J,ae)=>{const Ce=!Se.current&&!ae;(P.value!==void 0&&P.value===J||Ce)&&fe(Z)},[P.value]),ne=a==="popper"?Nl:nm,se=ne===Nl?{side:p,sideOffset:m,align:g,alignOffset:w,arrowPadding:h,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:k,avoidCollisions:C}:{};return y.jsx(em,{scope:i,content:R,viewport:$,onViewportChange:z,itemRefCallback:U,selectedItem:D,onItemLeave:ee,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:oe,position:a,isPositioned:he,searchRef:B,children:y.jsx(of,{as:K1,allowPinchZoom:!0,children:y.jsx($d,{asChild:!0,trapped:P.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ke(l,Z=>{var J;(J=P.trigger)==null||J.focus({preventScroll:!0}),Z.preventDefault()}),children:y.jsx(Va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:y.jsx(ne,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:Z=>Z.preventDefault(),...N,...se,onPlaced:()=>ve(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:ke(N.onKeyDown,Z=>{const J=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!J&&Z.key.length===1&&A(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ce=ge().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Ne=Z.target,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>G(Ce)),Z.preventDefault()}})})})})})})});tm.displayName=Y1;var X1="SelectItemAlignedPosition",nm=v.forwardRef((n,o)=>{const{__scopeSelect:i,onPlaced:a,...l}=n,u=Fn(br,i),f=$n(br,i),[p,m]=v.useState(null),[g,w]=v.useState(null),h=Ie(o,O=>w(O)),b=us(i),S=v.useRef(!1),E=v.useRef(!0),{viewport:k,selectedItem:C,selectedItemText:N,focusSelectedItem:P}=f,R=v.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&g&&k&&C&&N){const O=u.trigger.getBoundingClientRect(),D=g.getBoundingClientRect(),X=u.valueNode.getBoundingClientRect(),oe=N.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=oe.left-D.left,Re=X.left-Ne,Fe=O.left-Re,Be=O.width+Fe,un=Math.max(Be,D.width),Kt=window.innerWidth-Yt,gt=xl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.left=gt+"px"}else{const Ne=D.right-oe.right,Re=window.innerWidth-X.right-Ne,Fe=window.innerWidth-O.right-Re,Be=O.width+Fe,un=Math.max(Be,D.width),Kt=window.innerWidth-Yt,gt=xl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.right=gt+"px"}const fe=b(),ge=window.innerHeight-Yt*2,he=k.scrollHeight,ve=window.getComputedStyle(g),Se=parseInt(ve.borderTopWidth,10),G=parseInt(ve.paddingTop,10),te=parseInt(ve.borderBottomWidth,10),H=parseInt(ve.paddingBottom,10),q=Se+G+he+H+te,B=Math.min(C.offsetHeight*5,q),A=window.getComputedStyle(k),U=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),re=O.top+O.height/2-Yt,ne=ge-re,se=C.offsetHeight/2,Z=C.offsetTop+se,J=Se+G+Z,ae=q-J;if(J<=re){const Ne=fe.length>0&&C===fe[fe.length-1].ref.current;p.style.bottom="0px";const Re=g.clientHeight-k.offsetTop-k.offsetHeight,Fe=Math.max(ne,se+(Ne?ee:0)+Re+te),Be=J+Fe;p.style.height=Be+"px"}else{const Ne=fe.length>0&&C===fe[0].ref.current;p.style.top="0px";const Fe=Math.max(re,Se+k.offsetTop+(Ne?U:0)+se)+ae;p.style.height=Fe+"px",k.scrollTop=J-re+k.offsetTop}p.style.margin=`${Yt}px 0`,p.style.minHeight=B+"px",p.style.maxHeight=ge+"px",a==null||a(),requestAnimationFrame(()=>S.current=!0)}},[b,u.trigger,u.valueNode,p,g,k,C,N,u.dir,a]);We(()=>R(),[R]);const[j,$]=v.useState();We(()=>{g&&$(window.getComputedStyle(g).zIndex)},[g]);const z=v.useCallback(O=>{O&&E.current===!0&&(R(),P==null||P(),E.current=!1)},[R,P]);return y.jsx(q1,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:S,onScrollButtonChange:z,children:y.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:y.jsx(we.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});nm.displayName=X1;var Q1="SelectPopperPosition",Nl=v.forwardRef((n,o)=>{const{__scopeSelect:i,align:a="start",collisionPadding:l=Yt,...u}=n,f=ds(i);return y.jsx(op,{...f,...u,ref:o,align:a,collisionPadding:l,style:{boxSizing:"border-box",...u.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)"}})});Nl.displayName=Q1;var[q1,Rl]=Zr(br,{}),Pl="SelectViewport",rm=v.forwardRef((n,o)=>{const{__scopeSelect:i,nonce:a,...l}=n,u=$n(Pl,i),f=Rl(Pl,i),p=Ie(o,u.onViewportChange),m=v.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),y.jsx(cs.Slot,{scope:i,children:y.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ke(l.onScroll,g=>{const w=g.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:b}=f;if(b!=null&&b.current&&h){const S=Math.abs(m.current-w.scrollTop);if(S>0){const E=window.innerHeight-Yt*2,k=parseFloat(h.style.minHeight),C=parseFloat(h.style.height),N=Math.max(k,C);if(N<E){const P=N+S,R=Math.min(E,P),j=P-R;h.style.height=R+"px",h.style.bottom==="0px"&&(w.scrollTop=j>0?j:0,h.style.justifyContent="flex-end")}}}m.current=w.scrollTop})})})]})});rm.displayName=Pl;var om="SelectGroup",[Z1,J1]=Zr(om),ek=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=vr();return y.jsx(Z1,{scope:i,id:l,children:y.jsx(we.div,{role:"group","aria-labelledby":l,...a,ref:o})})});ek.displayName=om;var im="SelectLabel",tk=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=J1(im,i);return y.jsx(we.div,{id:l.id,...a,ref:o})});tk.displayName=im;var fs="SelectItem",[nk,sm]=Zr(fs),am=v.forwardRef((n,o)=>{const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...f}=n,p=Fn(fs,i),m=$n(fs,i),g=p.value===a,[w,h]=v.useState(u??""),[b,S]=v.useState(!1),E=Ie(o,P=>{var R;return(R=m.itemRefCallback)==null?void 0:R.call(m,P,a,l)}),k=vr(),C=v.useRef("touch"),N=()=>{l||(p.onValueChange(a),p.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(nk,{scope:i,value:a,disabled:l,textId:k,isSelected:g,onItemTextChange:v.useCallback(P=>{h(R=>R||((P==null?void 0:P.textContent)??"").trim())},[]),children:y.jsx(cs.ItemSlot,{scope:i,value:a,disabled:l,textValue:w,children:y.jsx(we.div,{role:"option","aria-labelledby":k,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:E,onFocus:ke(f.onFocus,()=>S(!0)),onBlur:ke(f.onBlur,()=>S(!1)),onClick:ke(f.onClick,()=>{C.current!=="mouse"&&N()}),onPointerUp:ke(f.onPointerUp,()=>{C.current==="mouse"&&N()}),onPointerDown:ke(f.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:ke(f.onPointerMove,P=>{var R;C.current=P.pointerType,l?(R=m.onItemLeave)==null||R.call(m):C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(f.onPointerLeave,P=>{var R;P.currentTarget===document.activeElement&&((R=m.onItemLeave)==null||R.call(m))}),onKeyDown:ke(f.onKeyDown,P=>{var j;((j=m.searchRef)==null?void 0:j.current)!==""&&P.key===" "||($1.includes(P.key)&&N(),P.key===" "&&P.preventDefault())})})})})});am.displayName=fs;var Lo="SelectItemText",lm=v.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,...u}=n,f=Fn(Lo,i),p=$n(Lo,i),m=sm(Lo,i),g=V1(Lo,i),[w,h]=v.useState(null),b=Ie(o,N=>h(N),m.onItemTextChange,N=>{var P;return(P=p.itemTextRefCallback)==null?void 0:P.call(p,N,m.value,m.disabled)}),S=w==null?void 0:w.textContent,E=v.useMemo(()=>y.jsx("option",{value:m.value,disabled:m.disabled,children:S},m.value),[m.disabled,m.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:C}=g;return We(()=>(k(E),()=>C(E)),[k,C,E]),y.jsxs(y.Fragment,{children:[y.jsx(we.span,{id:m.textId,...u,ref:b}),m.isSelected&&f.valueNode&&!f.valueNodeHasChildren?No.createPortal(u.children,f.valueNode):null]})});lm.displayName=Lo;var cm="SelectItemIndicator",um=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return sm(cm,i).isSelected?y.jsx(we.span,{"aria-hidden":!0,...a,ref:o}):null});um.displayName=cm;var Tl="SelectScrollUpButton",dm=v.forwardRef((n,o)=>{const i=$n(Tl,n.__scopeSelect),a=Rl(Tl,n.__scopeSelect),[l,u]=v.useState(!1),f=Ie(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollTop>0;u(g)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(pm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop-m.offsetHeight)}}):null});dm.displayName=Tl;var Il="SelectScrollDownButton",fm=v.forwardRef((n,o)=>{const i=$n(Il,n.__scopeSelect),a=Rl(Il,n.__scopeSelect),[l,u]=v.useState(!1),f=Ie(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollHeight-m.clientHeight,w=Math.ceil(m.scrollTop)<g;u(w)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(pm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop+m.offsetHeight)}}):null});fm.displayName=Il;var pm=v.forwardRef((n,o)=>{const{__scopeSelect:i,onAutoScroll:a,...l}=n,u=$n("SelectScrollButton",i),f=v.useRef(null),p=us(i),m=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>m(),[m]),We(()=>{var w;const g=p().find(h=>h.ref.current===document.activeElement);(w=g==null?void 0:g.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),y.jsx(we.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:ke(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(a,50))}),onPointerMove:ke(l.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),f.current===null&&(f.current=window.setInterval(a,50))}),onPointerLeave:ke(l.onPointerLeave,()=>{m()})})}),rk="SelectSeparator",ok=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return y.jsx(we.div,{"aria-hidden":!0,...a,ref:o})});ok.displayName=rk;var Al="SelectArrow",ik=v.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=ds(i),u=Fn(Al,i),f=$n(Al,i);return u.open&&f.position==="popper"?y.jsx(ip,{...l,...a,ref:o}):null});ik.displayName=Al;var sk="SelectBubbleInput",mm=v.forwardRef(({__scopeSelect:n,value:o,...i},a)=>{const l=v.useRef(null),u=Ie(a,l),f=Hi(o);return v.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(m,"value").set;if(f!==o&&w){const h=new Event("change",{bubbles:!0});w.call(p,o),p.dispatchEvent(h)}},[f,o]),y.jsx(we.select,{...i,style:{...Rd,...i.style},ref:u,defaultValue:o})});mm.displayName=sk;function hm(n){return n===""||n===void 0}function gm(n){const o=ut(n),i=v.useRef(""),a=v.useRef(0),l=v.useCallback(f=>{const p=i.current+f;o(p),(function m(g){i.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>m(""),1e3))})(p)},[o]),u=v.useCallback(()=>{i.current="",window.clearTimeout(a.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(a.current),[]),[i,l,u]}function vm(n,o,i){const l=o.length>1&&Array.from(o).every(g=>g===o[0])?o[0]:o,u=i?n.indexOf(i):-1;let f=ak(n,Math.max(u,0));l.length===1&&(f=f.filter(g=>g!==i));const m=f.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return m!==i?m:void 0}function ak(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var lk=Gp,ck=Kp,uk=Qp,dk=qp,fk=Zp,pk=Jp,mk=rm,hk=am,gk=lm,vk=um,yk=dm,wk=fm,xk="Separator",ym="horizontal",bk=["horizontal","vertical"],wm=v.forwardRef((n,o)=>{const{decorative:i,orientation:a=ym,...l}=n,u=kk(a)?a:ym,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return y.jsx(we.div,{"data-orientation":u,...p,...l,ref:o})});wm.displayName=xk;function kk(n){return bk.includes(n)}var Sk=wm,ps="Switch",[Ck]=bt(ps),[Ek,_k]=Ck(ps),xm=v.forwardRef((n,o)=>{const{__scopeSwitch:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m="on",onCheckedChange:g,form:w,...h}=n,[b,S]=v.useState(null),E=Ie(o,R=>S(R)),k=v.useRef(!1),C=b?w||!!b.closest("form"):!0,[N,P]=vn({prop:l,defaultProp:u??!1,onChange:g,caller:ps});return y.jsxs(Ek,{scope:i,checked:N,disabled:p,children:[y.jsx(we.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Cm(N),"data-disabled":p?"":void 0,disabled:p,value:m,...h,ref:E,onClick:ke(n.onClick,R=>{P(j=>!j),C&&(k.current=R.isPropagationStopped(),k.current||R.stopPropagation())})}),C&&y.jsx(Sm,{control:b,bubbles:!k.current,name:a,value:m,checked:N,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});xm.displayName=ps;var bm="SwitchThumb",km=v.forwardRef((n,o)=>{const{__scopeSwitch:i,...a}=n,l=_k(bm,i);return y.jsx(we.span,{"data-state":Cm(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:o})});km.displayName=bm;var Nk="SwitchBubbleInput",Sm=v.forwardRef(({__scopeSwitch:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=v.useRef(null),p=Ie(f,u),m=Hi(i),g=Ui(o);return v.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&S){const E=new Event("click",{bubbles:a});S.call(w,i),w.dispatchEvent(E)}},[m,i,a]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Sm.displayName=Nk;function Cm(n){return n?"checked":"unchecked"}var Rk=xm,Pk=km,ms="Tabs",[Tk]=bt(ms,[ns]),Em=ns(),[Ik,jl]=Tk(ms),_m=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:p,activationMode:m="automatic",...g}=n,w=Ao(p),[h,b]=vn({prop:a,onChange:l,defaultProp:u??"",caller:ms});return y.jsx(Ik,{scope:i,baseId:vr(),value:h,onValueChange:b,orientation:f,dir:w,activationMode:m,children:y.jsx(we.div,{dir:w,"data-orientation":f,...g,ref:o})})});_m.displayName=ms;var Nm="TabsList",Rm=v.forwardRef((n,o)=>{const{__scopeTabs:i,loop:a=!0,...l}=n,u=jl(Nm,i),f=Em(i);return y.jsx(dp,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:a,children:y.jsx(we.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:o})})});Rm.displayName=Nm;var Pm="TabsTrigger",Tm=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,disabled:l=!1,...u}=n,f=jl(Pm,i),p=Em(i),m=jm(f.baseId,a),g=Mm(f.baseId,a),w=a===f.value;return y.jsx(fp,{asChild:!0,...p,focusable:!l,active:w,children:y.jsx(we.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":g,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:m,...u,ref:o,onMouseDown:ke(n.onMouseDown,h=>{!l&&h.button===0&&h.ctrlKey===!1?f.onValueChange(a):h.preventDefault()}),onKeyDown:ke(n.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&f.onValueChange(a)}),onFocus:ke(n.onFocus,()=>{const h=f.activationMode!=="manual";!w&&!l&&h&&f.onValueChange(a)})})})});Tm.displayName=Pm;var Im="TabsContent",Am=v.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,forceMount:l,children:u,...f}=n,p=jl(Im,i),m=jm(p.baseId,a),g=Mm(p.baseId,a),w=a===p.value,h=v.useRef(w);return v.useEffect(()=>{const b=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(b)},[]),y.jsx(Vt,{present:l||w,children:({present:b})=>y.jsx(we.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:g,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:h.current?"0s":void 0},children:b&&u})})});Am.displayName=Im;function jm(n,o){return`${n}-trigger-${o}`}function Mm(n,o){return`${n}-content-${o}`}var Ak=_m,jk=Rm,Mk=Tm,zk=Am,[hs]=bt("Tooltip",[ts]),gs=ts(),zm="TooltipProvider",Lk=700,Ml="tooltip.open",[Ok,zl]=hs(zm),Lm=n=>{const{__scopeTooltip:o,delayDuration:i=Lk,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:u}=n,f=v.useRef(!0),p=v.useRef(!1),m=v.useRef(0);return v.useEffect(()=>{const g=m.current;return()=>window.clearTimeout(g)},[]),y.jsx(Ok,{scope:o,isOpenDelayedRef:f,delayDuration:i,onOpen:v.useCallback(()=>{window.clearTimeout(m.current),f.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>f.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:v.useCallback(g=>{p.current=g},[]),disableHoverableContent:l,children:u})};Lm.displayName=zm;var Oo="Tooltip",[Dk,Do]=hs(Oo),Om=n=>{const{__scopeTooltip:o,children:i,open:a,defaultOpen:l,onOpenChange:u,disableHoverableContent:f,delayDuration:p}=n,m=zl(Oo,n.__scopeTooltip),g=gs(o),[w,h]=v.useState(null),b=vr(),S=v.useRef(0),E=f??m.disableHoverableContent,k=p??m.delayDuration,C=v.useRef(!1),[N,P]=vn({prop:a,defaultProp:l??!1,onChange:O=>{O?(m.onOpen(),document.dispatchEvent(new CustomEvent(Ml))):m.onClose(),u==null||u(O)},caller:Oo}),R=v.useMemo(()=>N?C.current?"delayed-open":"instant-open":"closed",[N]),j=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,C.current=!1,P(!0)},[P]),$=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,P(!1)},[P]),z=v.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{C.current=!0,P(!0),S.current=0},k)},[k,P]);return v.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),y.jsx(np,{...g,children:y.jsx(Dk,{scope:o,contentId:b,open:N,stateAttribute:R,trigger:w,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{m.isOpenDelayedRef.current?z():j()},[m.isOpenDelayedRef,z,j]),onTriggerLeave:v.useCallback(()=>{E?$():(window.clearTimeout(S.current),S.current=0)},[$,E]),onOpen:j,onClose:$,disableHoverableContent:E,children:i})})};Om.displayName=Oo;var Ll="TooltipTrigger",Dm=v.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=Do(Ll,i),u=zl(Ll,i),f=gs(i),p=v.useRef(null),m=Ie(o,p,l.onTriggerChange),g=v.useRef(!1),w=v.useRef(!1),h=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),y.jsx(rp,{asChild:!0,...f,children:y.jsx(we.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:m,onPointerMove:ke(n.onPointerMove,b=>{b.pointerType!=="touch"&&!w.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:ke(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:ke(n.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ke(n.onFocus,()=>{g.current||l.onOpen()}),onBlur:ke(n.onBlur,l.onClose),onClick:ke(n.onClick,l.onClose)})})});Dm.displayName=Ll;var Ol="TooltipPortal",[Fk,$k]=hs(Ol,{forceMount:void 0}),Fm=n=>{const{__scopeTooltip:o,forceMount:i,children:a,container:l}=n,u=Do(Ol,o);return y.jsx(Fk,{scope:o,forceMount:i,children:y.jsx(Vt,{present:i||u.open,children:y.jsx(Ya,{asChild:!0,container:l,children:a})})})};Fm.displayName=Ol;var Jr="TooltipContent",$m=v.forwardRef((n,o)=>{const i=$k(Jr,n.__scopeTooltip),{forceMount:a=i.forceMount,side:l="top",...u}=n,f=Do(Jr,n.__scopeTooltip);return y.jsx(Vt,{present:a||f.open,children:f.disableHoverableContent?y.jsx(Bm,{side:l,...u,ref:o}):y.jsx(Bk,{side:l,...u,ref:o})})}),Bk=v.forwardRef((n,o)=>{const i=Do(Jr,n.__scopeTooltip),a=zl(Jr,n.__scopeTooltip),l=v.useRef(null),u=Ie(o,l),[f,p]=v.useState(null),{trigger:m,onClose:g}=i,w=l.current,{onPointerInTransitChange:h}=a,b=v.useCallback(()=>{p(null),h(!1)},[h]),S=v.useCallback((E,k)=>{const C=E.currentTarget,N={x:E.clientX,y:E.clientY},P=Wk(N,C.getBoundingClientRect()),R=Gk(N,P),j=Yk(k.getBoundingClientRect()),$=Xk([...R,...j]);p($),h(!0)},[h]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(m&&w){const E=C=>S(C,w),k=C=>S(C,m);return m.addEventListener("pointerleave",E),w.addEventListener("pointerleave",k),()=>{m.removeEventListener("pointerleave",E),w.removeEventListener("pointerleave",k)}}},[m,w,S,b]),v.useEffect(()=>{if(f){const E=k=>{const C=k.target,N={x:k.clientX,y:k.clientY},P=(m==null?void 0:m.contains(C))||(w==null?void 0:w.contains(C)),R=!Kk(N,f);P?b():R&&(b(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[m,w,f,g,b]),y.jsx(Bm,{...n,ref:u})}),[Hk,Uk]=hs(Oo,{isInside:!1}),Vk=Xy("TooltipContent"),Bm=v.forwardRef((n,o)=>{const{__scopeTooltip:i,children:a,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:f,...p}=n,m=Do(Jr,i),g=gs(i),{onClose:w}=m;return v.useEffect(()=>(document.addEventListener(Ml,w),()=>document.removeEventListener(Ml,w)),[w]),v.useEffect(()=>{if(m.trigger){const h=b=>{const S=b.target;S!=null&&S.contains(m.trigger)&&w()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[m.trigger,w]),y.jsx(Va,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h=>h.preventDefault(),onDismiss:w,children:y.jsxs(op,{"data-state":m.stateAttribute,...g,...p,ref:o,style:{...p.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:[y.jsx(Vk,{children:a}),y.jsx(Hk,{scope:i,isInside:!0,children:y.jsx(nw,{id:m.contentId,role:"tooltip",children:l||a})})]})})});$m.displayName=Jr;var Hm="TooltipArrow",Um=v.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=gs(i);return Uk(Hm,i).isInside?null:y.jsx(ip,{...l,...a,ref:o})});Um.displayName=Hm;function Wk(n,o){const i=Math.abs(o.top-n.y),a=Math.abs(o.bottom-n.y),l=Math.abs(o.right-n.x),u=Math.abs(o.left-n.x);switch(Math.min(i,a,l,u)){case u:return"left";case l:return"right";case i:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function Gk(n,o,i=5){const a=[];switch(o){case"top":a.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":a.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":a.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":a.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return a}function Yk(n){const{top:o,right:i,bottom:a,left:l}=n;return[{x:l,y:o},{x:i,y:o},{x:i,y:a},{x:l,y:a}]}function Kk(n,o){const{x:i,y:a}=n;let l=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const p=o[u],m=o[f],g=p.x,w=p.y,h=m.x,b=m.y;w>a!=b>a&&i<(h-g)*(a-w)/(b-w)+g&&(l=!l)}return l}function Xk(n){const o=n.slice();return o.sort((i,a)=>i.x<a.x?-1:i.x>a.x?1:i.y<a.y?-1:i.y>a.y?1:0),Qk(o)}function Qk(n){if(n.length<=1)return n.slice();const o=[];for(let a=0;a<n.length;a++){const l=n[a];for(;o.length>=2;){const u=o[o.length-1],f=o[o.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))o.pop();else break}o.push(l)}o.pop();const i=[];for(let a=n.length-1;a>=0;a--){const l=n[a];for(;i.length>=2;){const u=i[i.length-1],f=i[i.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))i.pop();else break}i.push(l)}return i.pop(),o.length===1&&i.length===1&&o[0].x===i[0].x&&o[0].y===i[0].y?o:o.concat(i)}var qk=Lm,Zk=Om,Jk=Dm,eS=Fm,tS=$m,nS=Um;const rS=Ai("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all cursor-pointer outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Vm({className:n,variant:o="default",size:i="default",asChild:a=!1,...l}){const u=a?_d:"button";return y.jsx(u,{"data-slot":"button","data-variant":o,"data-size":i,className:ye(rS({variant:o,size:i,className:n})),...l})}const oS={amber:"bg-amber-100 text-amber-800",blue:"bg-blue-100 text-blue-800",emerald:"bg-emerald-100 text-emerald-800",red:"bg-red-100 text-red-800",purple:"bg-purple-100 text-purple-800",pink:"bg-pink-100 text-pink-800",gray:"bg-gray-100 text-gray-800"},iS=Ai("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function sS({className:n,variant:o="default",hue:i,asChild:a=!1,...l}){const u=a?_d:"span",f=i?oS[i]:void 0;return y.jsx(u,{"data-slot":"badge","data-variant":o,className:ye(iS({variant:o}),f,n),...l})}function aS({className:n,type:o,...i}){return y.jsx("input",{type:o,"data-slot":"input",className:ye("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n),...i})}function lS({className:n,...o}){return y.jsx("textarea",{"data-slot":"textarea",className:ye("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o})}function cS({...n}){return y.jsx(lk,{"data-slot":"select",...n})}function uS({...n}){return y.jsx(uk,{"data-slot":"select-value",...n})}function dS({className:n,size:o="default",children:i,...a}){return y.jsxs(ck,{"data-slot":"select-trigger","data-size":o,className:ye("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",n),...a,children:[i,y.jsx(dk,{asChild:!0,children:y.jsx(Xu,{className:"size-4 opacity-50"})})]})}function fS({className:n,children:o,position:i="item-aligned",align:a="center",...l}){return y.jsx(fk,{children:y.jsxs(pk,{"data-slot":"select-content",className:ye("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i,align:a,...l,children:[y.jsx(mS,{}),y.jsx(mk,{className:ye("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),y.jsx(hS,{})]})})}function pS({className:n,children:o,...i}){return y.jsxs(hk,{"data-slot":"select-item",className:ye("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...i,children:[y.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(vk,{children:y.jsx(Ku,{className:"size-4"})})}),y.jsx(gk,{children:o})]})}function mS({className:n,...o}){return y.jsx(yk,{"data-slot":"select-scroll-up-button",className:ye("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(H0,{className:"size-4"})})}function hS({className:n,...o}){return y.jsx(wk,{"data-slot":"select-scroll-down-button",className:ye("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(Xu,{className:"size-4"})})}function gS({className:n,...o}){return y.jsx(yf,{"data-slot":"checkbox",className:ye("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",n),...o,children:y.jsx(xf,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Ku,{className:"size-3.5"})})})}function vS({className:n,size:o="default",...i}){return y.jsx(Rk,{"data-slot":"switch","data-size":o,className:ye("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",n),...i,children:y.jsx(Pk,{"data-slot":"switch-thumb",className:ye("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function yS({className:n,...o}){return y.jsx(o1,{"data-slot":"label",className:ye("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...o})}function wS({className:n,...o}){return y.jsx(k1,{"data-slot":"radio-group",className:ye("grid gap-3",n),...o})}function xS({className:n,...o}){return y.jsx(S1,{"data-slot":"radio-group-item",className:ye("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o,children:y.jsx(C1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(W0,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function bS({className:n,orientation:o="horizontal",decorative:i=!0,...a}){return y.jsx(Sk,{"data-slot":"separator",decorative:i,orientation:o,className:ye("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...a})}function kS({className:n,orientation:o="horizontal",...i}){return y.jsx(Ak,{"data-slot":"tabs","data-orientation":o,orientation:o,className:ye("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const SS=Ai("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function CS({className:n,variant:o="default",...i}){return y.jsx(jk,{"data-slot":"tabs-list","data-variant":o,className:ye(SS({variant:o}),n),...i})}function ES({className:n,...o}){return y.jsx(Mk,{"data-slot":"tabs-trigger",className:ye("cursor-pointer relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...o})}function _S({className:n,...o}){return y.jsx(zk,{"data-slot":"tabs-content",className:ye("flex-1 outline-none",n),...o})}function NS({className:n,children:o,...i}){return y.jsxs(L1,{"data-slot":"scroll-area",className:ye("relative",n),...i,children:[y.jsx(O1,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:o}),y.jsx(RS,{}),y.jsx(D1,{})]})}function RS({className:n,orientation:o="vertical",...i}){return y.jsx(Lp,{"data-slot":"scroll-area-scrollbar",orientation:o,className:ye("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:y.jsx($p,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Dl({className:n,size:o="default",...i}){return y.jsx(Rx,{"data-slot":"avatar","data-size":o,className:ye("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...i})}function Fl({className:n,...o}){return y.jsx(Px,{"data-slot":"avatar-image",className:ye("aspect-square size-full",n),...o})}function $l({className:n,...o}){return y.jsx(Tx,{"data-slot":"avatar-fallback",className:ye("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...o})}function PS({className:n,...o}){return y.jsx("div",{"data-slot":"skeleton",className:ye("animate-pulse rounded-md bg-accent",n),...o})}function TS({delayDuration:n=0,...o}){return y.jsx(qk,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function IS({...n}){return y.jsx(Zk,{"data-slot":"tooltip",...n})}function AS({...n}){return y.jsx(Jk,{"data-slot":"tooltip-trigger",...n})}function jS({className:n,sideOffset:o=0,children:i,...a}){return y.jsx(eS,{children:y.jsxs(tS,{"data-slot":"tooltip-content",sideOffset:o,className:ye("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",n),...a,children:[i,y.jsx(nS,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function MS({className:n,value:o,...i}){return y.jsx(d1,{"data-slot":"progress",className:ye("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:y.jsx(f1,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}const zS=Ai("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function LS({className:n,variant:o,...i}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:ye(zS({variant:o}),n),...i})}function OS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-title",className:ye("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...o})}function DS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-description",className:ye("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...o})}function FS({...n}){return y.jsx(hw,{"data-slot":"collapsible",...n})}function $S({...n}){return y.jsx(jd,{"data-slot":"collapsible-trigger",...n})}function BS({...n}){return y.jsx(Md,{"data-slot":"collapsible-content",...n})}const Wm={"arrow-left":D0,calendar:$0,"check-circle-2":qu,"chevron-left":B0,"chevron-right":ja,clock:G0,"credit-card":Y0,"external-link":K0,"help-circle":U0,info:Ri,"loader-2":Ma,mail:za,"map-pin":X0,"message-circle":Q0,"message-square":Zu,package:Z0,phone:J0,search:ey,"shopping-bag":ty,sparkles:ny,truck:oy,user:Ju,"x-circle":V0,"alert-circle":Qu,"book-open":F0},Gm={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},Ym={default:"text-foreground",muted:"text-muted-foreground",destructive:"text-destructive"},Km=n=>typeof n=="number"?Gm[String(n)]??"gap-2":typeof n=="string"?Gm[n.trim()]??"gap-2":"gap-2",HS=({children:n,className:o,onClick:i})=>y.jsx(Po,{className:o,onClick:i,children:n}),US=({children:n,className:o})=>y.jsx(To,{className:o,children:n}),VS=({children:n,className:o})=>y.jsx(Yy,{className:o,children:n}),WS=({children:n,className:o,onClick:i,variant:a,size:l,disabled:u,title:f})=>y.jsx(Vm,{className:o,variant:a,size:l,onClick:i,disabled:u,title:f,children:n}),GS=({children:n,className:o,variant:i,hue:a,tone:l})=>y.jsx(sS,{className:ye(Ym[l]??"",o),variant:i,hue:a,children:n}),YS=({className:n,onChange:o,...i})=>y.jsx(aS,{className:n,onChange:o,...i}),KS=({className:n,onChange:o,...i})=>y.jsx(lS,{className:n,onChange:o,...i}),XS=({children:n,className:o,value:i,defaultValue:a,onChange:l,placeholder:u,disabled:f})=>y.jsxs(cS,{value:i,defaultValue:a,onValueChange:p=>{const m=l;m==null||m({target:{value:p}})},disabled:f,children:[y.jsx(dS,{className:o,children:y.jsx(uS,{placeholder:u})}),y.jsx(fS,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),QS=({children:n,value:o,disabled:i,className:a})=>y.jsx(pS,{value:o,disabled:i,className:a,children:n}),qS=({checked:n,onChange:o,disabled:i,className:a,id:l})=>{const u=n!==void 0,f=o;return y.jsx(gS,{...u?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:i,className:a,id:l})},ZS=({checked:n,onChange:o,disabled:i,size:a,className:l,id:u})=>{const f=n!==void 0,p=o;return y.jsx(vS,{...f?{checked:n==="true"||n===!0}:{},onCheckedChange:m=>p==null?void 0:p({target:{value:String(m)}}),disabled:i,size:a,className:l,id:u})},JS=({children:n,htmlFor:o,className:i})=>y.jsx(yS,{htmlFor:o,className:i,children:n}),eC=({children:n,value:o,defaultValue:i,onChange:a,className:l})=>y.jsx(wS,{value:o,defaultValue:i,onValueChange:u=>{const f=a;f==null||f({target:{value:u}})},className:l,children:n}),tC=({value:n,disabled:o,className:i,id:a})=>y.jsx(xS,{value:n,disabled:o,className:i,id:a}),nC=({className:n})=>y.jsx(bS,{className:n}),rC=({children:n,defaultValue:o,className:i})=>{const[a,l]=K.useState(o);return y.jsx(kS,{value:a,onValueChange:l,className:i,children:n})},oC=({children:n,className:o})=>y.jsx(CS,{className:o,children:n}),iC=({children:n,value:o,className:i})=>y.jsx(ES,{className:i,value:o,children:n}),sC=({children:n,value:o,className:i})=>y.jsx(_S,{className:i,value:o,children:n}),aC=({children:n,className:o})=>y.jsx(NS,{className:o,children:n}),lC=({src:n,alt:o,className:i})=>{var a;return y.jsxs(Dl,{className:i,children:[y.jsx(Fl,{src:n,alt:o}),y.jsx($l,{children:((a=o==null?void 0:o.charAt(0))==null?void 0:a.toUpperCase())||"?"})]})},cC=({width:n,height:o,className:i})=>y.jsx(PS,{className:i,style:{width:n,height:o}}),uC=({children:n,content:o,className:i})=>y.jsx(TS,{children:y.jsxs(IS,{children:[y.jsx(AS,{asChild:!0,children:y.jsx("span",{className:i,children:n})}),y.jsx(jS,{children:y.jsx("p",{children:String(o)})})]})}),dC=({value:n,className:o})=>y.jsx(MS,{value:typeof n=="string"?Number(n):n,className:o}),fC={default:Ri,destructive:Qu},pC=({children:n,variant:o,title:i,className:a})=>{const l=o,u=fC[l||"default"]||Ri;return y.jsxs(LS,{variant:l,className:a,children:[y.jsx(u,{className:"size-4"}),i?y.jsx(OS,{children:String(i)}):null,n?y.jsx(DS,{children:n}):null]})},mC=({children:n,defaultOpen:o,className:i})=>y.jsx(FS,{defaultOpen:o==="true"||o===!0,className:i,children:n}),hC=({children:n,className:o})=>y.jsxs($S,{className:ye("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",o),children:[y.jsx(ja,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),gC=({children:n,className:o})=>y.jsx(BS,{className:o,children:n}),vC=({children:n,className:o,tone:i})=>y.jsx("p",{className:ye("text-sm",Ym[i]??"",o),children:n}),yC=({children:n,className:o,level:i})=>{const a=`h${i||"2"}`;return y.jsx(a,{className:ye("font-semibold tracking-tight",o),children:n})},wC=({children:n,className:o,direction:i,gap:a})=>{const l=i==="row"?"flex-row":"flex-col",u=Km(a);return y.jsx("div",{className:ye("flex",l,u,o),children:n})},xC=({children:n,className:o,gap:i})=>{const a=Km(i);return y.jsx("div",{className:ye("flex flex-row items-center",a,o),children:n})},bC=({children:n,className:o,href:i,target:a,rel:l})=>y.jsx("a",{href:i,target:a,rel:l,className:o,children:n}),kC=({title:n,children:o,className:i})=>y.jsxs(Po,{className:ye("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?y.jsx(To,{className:"px-6 py-3",children:y.jsx("h3",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:String(n)})}):null,y.jsx("div",{className:"flex flex-col gap-0 divide-y divide-border",children:o})]}),SC=({icon:n,label:o,description:i,onClick:a,className:l})=>{const u=n,f="size-5",p=u?Wm[u]:null;return y.jsxs("button",{type:"button",className:ye("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70",l),onClick:a,children:[p&&y.jsx(p,{className:`${f} shrink-0 text-muted-foreground`}),y.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[o?y.jsx("p",{className:"font-medium text-sm text-foreground",children:String(o)}):null,i?y.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),y.jsx(ja,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},CC=({name:n,size:o,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[o]??"size-4",u=n,f=Wm[u],p=u==="sparkles"?"sparkle-icon":"";return f?y.jsx(f,{className:ye(l,p,i)}):y.jsx("span",{className:ye("inline-block",l,p,i),"data-icon":u})},EC=()=>({"ui-card":HS,"ui-card-content":US,"ui-card-header":VS,"ui-button":WS,"ui-text":vC,"ui-heading":yC,"ui-badge":GS,"ui-input":YS,"ui-textarea":KS,"ui-select":XS,"ui-select-option":QS,"ui-checkbox":qS,"ui-switch":ZS,"ui-label":JS,"ui-radio-group":eC,"ui-radio-group-item":tC,"ui-stack":wC,"ui-inline":xC,"ui-separator":nC,"ui-tabs":rC,"ui-tabs-list":oC,"ui-tabs-trigger":iC,"ui-tabs-content":sC,"ui-scroll-area":aC,"ui-avatar":lC,"ui-icon":CC,"ui-link":bC,"ui-menu-item":SC,"ui-menu":kC,"ui-skeleton":cC,"ui-tooltip":uC,"ui-progress":dC,"ui-alert":pC,"ui-collapsible":mC,"ui-collapsible-trigger":hC,"ui-collapsible-content":gC}),Xm="/api/ecommerce",Qm=async(n,o)=>{const i=o?`${o.replace(/\/$/,"")}${Xm}`:Xm,a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),l=await a.json();if(!a.ok)throw new Error(l.error||"API request failed");return l.data},_C=({className:n})=>y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 190 190",version:"1.1",className:n,children:[y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z",fill:"rgb(15,13,25)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z",fill:"rgb(232,218,234)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z",fill:"rgb(15,13,25)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.jsx("path",{d:"M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z",fill:"rgb(252,248,161)"})})]}),qm="stackable-dev-badge-styles",NC=()=>{if(typeof document>"u"||document.getElementById(qm))return;const n=document.createElement("style");n.id=qm,n.textContent=`
305
305
  @keyframes stackable-icon-wiggle {
306
306
  0% { transform: rotate(0deg); }
307
307
  70% { transform: rotate(200deg); }
308
308
  85% { transform: rotate(175deg); }
309
309
  100% { transform: rotate(180deg); }
310
310
  }
311
- `,document.head.appendChild(n)},RC=n=>{const o=n.some(a=>a.mode==="staging"),i=n.some(a=>a.mode==="dev");return o&&i?"Dev + Staging":o?"Staging Mode":"Dev Mode"},PC=n=>n.mode==="staging"?"STAGING":"DEV",TC=({className:n="",extensions:o=[],tokenErrors:i=new Map})=>{const[a,l]=v.useState([]),[u,f]=v.useState(!1),[p,m]=v.useState(!1),[g,w]=v.useState(!1),h=v.useRef(null),b=i.size>0;if(v.useEffect(()=>{NC()},[]),v.useEffect(()=>{if(!b)return;const E=()=>{w(!0),setTimeout(()=>w(!1),600)};E();const k=setInterval(E,4e3);return()=>clearInterval(k)},[b]),v.useEffect(()=>{if(typeof window>"u")return;const E=()=>{const C=Wu(window.location.search);l(C)};E();const k=()=>E();return window.addEventListener("popstate",k),()=>window.removeEventListener("popstate",k)},[]),a.length===0)return null;const S=E=>{if(E.stopPropagation(),typeof window>"u")return;const k=new URL(window.location.href);k.searchParams.delete("_stackable_dev"),k.searchParams.delete("_stackable_staging"),window.location.href=k.toString()};return y.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:p||g?"translate(-50%, -2px)":"translate(-50%, 0)",zIndex:2147483647,fontFamily:"system-ui, -apple-system, sans-serif",transition:"transform 0.15s ease",display:"flex",flexDirection:"column",alignItems:"center"},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[u&&y.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:`1px solid ${b?"#dc2626":"#eab308"}`,borderRadius:"8px 8px 0 0",boxShadow:"0 -4px 16px -4px rgba(0,0,0,0.12), 0 -2px 6px -4px rgba(0,0,0,0.08)",padding:"8px 0",width:"420px",maxWidth:"90vw"},children:a.map((E,k)=>{var C;return y.jsxs("div",{style:{padding:"8px 12px",borderBottom:k<a.length-1?"1px solid #f3f4f6":"none"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx("span",{style:{fontSize:"10px",fontWeight:700,color:E.mode==="staging"?"#7c3aed":"#b45309",backgroundColor:E.mode==="staging"?"#ede9fe":"#fef3c7",padding:"1px 5px",borderRadius:"3px",letterSpacing:"0.05em",fontFamily:"ui-monospace, SFMono-Regular, monospace"},children:PC(E)}),y.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((C=o.find(N=>N.id===E.extensionId))==null?void 0:C.manifest.name)||E.extensionId})]}),y.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:E.bundleUrl,children:["→ ",E.bundleUrl]}),i.get(E.extensionId)&&y.jsxs("div",{style:{fontSize:"11px",color:"#dc2626",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"3px"},children:["⚠ ",i.get(E.extensionId)]})]},E.extensionId)})}),y.jsxs("div",{onClick:()=>f(!u),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:b?"#dc2626":"#eab308",color:b?"#fff":"#000",padding:"8px 12px",borderRadius:u?"0 0 8px 8px":"8px",boxShadow:p?"0 12px 24px -4px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.12)":"0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08)",fontSize:"14px",fontWeight:500,cursor:"pointer",userSelect:"none",transition:"box-shadow 0.15s ease, border-radius 0.1s ease"},children:[y.jsx("span",{ref:h,style:{display:"inline-flex",animation:p&&!u||g?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:y.jsx(_C,{className:"w-6 h-6"})}),y.jsx("span",{children:RC(a)}),y.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",a.length," extension",a.length>1?"s":"",")"]}),y.jsx("button",{onClick:S,style:{marginLeft:"4px",backgroundColor:"rgba(0, 0, 0, 0.15)",border:"none",borderRadius:"4px",cursor:"pointer",padding:"2px 8px",fontSize:"12px",fontWeight:500,color:"inherit",fontFamily:"inherit",transition:"background-color 0.1s ease"},onMouseOver:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},IC=800,vs=(n,o)=>n?`${n.replace(/\/$/,"")}${o}`:o,AC=async(n,o,i,a)=>{const l=new Map,u=new Map;return await Promise.all(n.filter(f=>f.manifest.permissions.includes("data:fetch")).map(async f=>{const p=a.find(b=>b.extensionId===f.id),m=p==null?void 0:p.token,g=p==null?void 0:p.mode,w=vs(o,"/proxy-token"),h=await fetch(w,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,extensionId:f.id,...g&&{mode:g},...m&&{devSessionToken:m}})});if(h.ok){const{token:b,encryptionKey:S}=await h.json();l.set(f.id,{token:b,encryptionKey:S})}else{let b=`Proxy token failed (${h.status})`;g&&!m?b="Session token missing — re-run CLI":g&&(b="Session expired or invalid — re-run CLI"),u.set(f.id,b),console.warn(`[embeddables] Failed to obtain proxy token for extension ${f.id} (${h.status}) — ${b}`)}})),{tokens:l,errors:u}},jC=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),MC=({instanceId:n,apiBase:o,hostBase:i,appId:a,children:l,customerId:u,customerEmail:f})=>{const[p,m]=v.useState([]),[g,w]=v.useState([]),[h,b]=v.useState(new Map),[S,E]=v.useState(new Map),[k,C]=v.useState(!1);v.useEffect(()=>{(async()=>{const R=n;try{if(!R){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),m([]),C(!0);return}if(!o||!a){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),m([]),C(!0);return}const j=await fetch(vs(o,`/instances/${a}/${R}`));if(!j.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${R}`),m([]),C(!0);return}const $=await j.json(),z=Wu(typeof window<"u"?window.location.search:""),O=await I0($,z),{tokens:D,errors:K}=await AC(O,o,a,z);m(O),w(z),b(new Map(D)),E(K)}catch(j){console.error("Failed to load extensions:",j)}finally{C(!0)}})()},[n,a,o]),v.useEffect(()=>{if(!o||!a||p.length===0)return;const R=setInterval(async()=>{const j=[];await Promise.all(p.filter($=>$.manifest.permissions.includes("data:fetch")).map(async $=>{const z=g.find(fe=>fe.extensionId===$.id),O=z==null?void 0:z.token,D=z==null?void 0:z.mode,K=vs(o,"/proxy-token"),oe=await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a,extensionId:$.id,...D&&{mode:D},...O&&{devSessionToken:O}})});if(oe.ok){const{token:fe,encryptionKey:ge}=await oe.json();j.push([$.id,{token:fe,encryptionKey:ge}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${$.id} (${oe.status}) — using stale token`)})),j.length>0&&b($=>{const z=new Map($);for(const[O,D]of j)z.set(O,D);return z})},3300*1e3);return()=>clearInterval(R)},[p,g,o,a]),v.useEffect(()=>{if(h.size===0)return;const P=R=>{const j=R.data;if((j==null?void 0:j.type)!=="extension-ready")return;const $=j.extensionId,z=p.find(K=>K.id===$);if(!(z!=null&&z.bundleUrl))return;const O=g.find(K=>K.extensionId===$);if(R0(z.bundleUrl)&&(O==null?void 0:O.mode)!=="staging")return;const D=h.get($);D&&Ei($,{type:"extension-encryption-key",encryptionKey:D.encryptionKey})};return window.addEventListener("message",P),()=>window.removeEventListener("message",P)},[p,g,h]);const N=v.useMemo(()=>({"data.query":async P=>Qm(P,i),"data.fetch":async(P,R)=>{const j=h.get(P);if(!j)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const $=jC(R)?R:{url:R.url,method:R.method??"GET",headers:R.headers??{},body:R.body??null},z=vs(o,"/proxy"),O=await fetch(z,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":P,"X-Application-Id":a??"",Authorization:`Bearer ${j.token}`},body:JSON.stringify($)}),D=await O.json();return{status:D.status??O.status,ok:D.ok??O.ok,data:D.data}},"actions.toast":async(P,R)=>{const j={...R.description&&{description:R.description},...R.duration&&{duration:R.duration},...R.position&&{position:R.position},...R.dismissible!=null&&{dismissible:R.dismissible},...R.closeButton!=null&&{closeButton:R.closeButton}};if(R.fetch){const $=O=>new Promise(D=>setTimeout(D,O)),z=Promise.all([N["data.fetch"](P,R.fetch),$(IC)]).then(([O])=>O);Hr.promise(z,{loading:R.loading??R.message,success:R.success??R.message,error:R.error??"Something went wrong",...j});return}switch(R.type){case"success":{Hr.success(R.message,j);break}case"error":{Hr.error(R.message,j);break}case"warning":{Hr.warning(R.message,j);break}case"info":{Hr.info(R.message,j);break}default:Hr(R.message,j)}},"actions.invoke":async P=>(window.dispatchEvent(new CustomEvent(`ext-action-${P.action}`,{detail:P})),{success:!0}),"context.read":async()=>({customerId:u??"",customerEmail:f??""})}),[o,a,i,u,f,h]);return k?y.jsxs(y.Fragment,{children:[y.jsx(Xv,{extensions:p,capabilityHandlers:N,components:EC(),children:l}),y.jsx(TC,{extensions:p,tokenErrors:S})]}):null};var zC=(n,o,i,a,l,u,f,p)=>{let m=document.documentElement,g=["light","dark"];function w(S){(Array.isArray(n)?n:[n]).forEach(E=>{let k=E==="class",C=k&&u?l.map(N=>u[N]||N):l;k?(m.classList.remove(...C),m.classList.add(u&&u[S]?u[S]:S)):m.setAttribute(E,S)}),h(S)}function h(S){p&&g.includes(S)&&(m.style.colorScheme=S)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)w(a);else try{let S=localStorage.getItem(o)||i,E=f&&S==="system"?b():S;w(E)}catch{}},LC=v.createContext(void 0),OC={setTheme:n=>{},themes:[]},DC=()=>{var n;return(n=v.useContext(LC))!=null?n:OC};v.memo(({forcedTheme:n,storageKey:o,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:f,themes:p,nonce:m,scriptProps:g})=>{let w=JSON.stringify([i,o,u,n,p,f,a,l]).slice(1,-1);return v.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${zC.toString()})(${w})`}})});const FC=({...n})=>{const{theme:o="system"}=DC();return y.jsx(N0,{theme:o,className:"toaster group",icons:{success:y.jsx(qu,{className:"size-4"}),info:y.jsx(Ri,{className:"size-4"}),warning:y.jsx(ry,{className:"size-4"}),error:y.jsx(q0,{className:"size-4"}),loading:y.jsx(Ma,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...n})},$C={dark:"dark",light:"widget-theme-light"},BC={dark:"dark",light:"light"},HC=({children:n,theme:o="inherit"})=>y.jsxs("div",{"data-id":"widget-body",className:$C[o],style:{position:"relative",transform:"translateZ(0)"},children:[y.jsx("div",{className:"h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300",children:y.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground",children:n})}),y.jsx(FC,{position:"bottom-center",theme:BC[o]??"system",toastOptions:{descriptionClassName:"!text-muted-foreground"}})]}),UC=({onClick:n,icon:o=O0})=>y.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:y.jsx(Vm,{className:"h-12 w-12 rounded-full",size:"icon",onClick:n,children:y.jsx(o,{className:"h-6 w-6"})})}),VC=({children:n,icon:o,theme:i})=>{const[a,l]=v.useState(!1),[u,f]=v.useState(!0),p=v.useCallback(()=>{l(m=>!m)},[]);return v.useEffect(()=>{const m=()=>l(S=>!S),g=()=>l(!0),w=()=>l(!1),h=()=>f(!0),b=()=>{l(!1),f(!1)};return window.addEventListener("ext-action-toggle",m),window.addEventListener("ext-action-open",g),window.addEventListener("ext-action-close",w),window.addEventListener("ext-action-show",h),window.addEventListener("ext-action-hide",b),()=>{window.removeEventListener("ext-action-open",g),window.removeEventListener("ext-action-close",w),window.removeEventListener("ext-action-toggle",m),window.removeEventListener("ext-action-show",h),window.removeEventListener("ext-action-hide",b)}},[]),y.jsxs(y.Fragment,{children:[u&&y.jsx(UC,{onClick:p,icon:o}),a&&y.jsx("div",{"data-id":"widget-container",className:"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl",style:{"--widget-z":1e3},children:y.jsx(HC,{theme:i,children:n})})]})},WC=({href:n,children:o})=>y.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",children:o}),GC=(n,o)=>{const[i,a]=v.useState(null),[l,u]=v.useState(!1),[f,p]=v.useState(null);return v.useEffect(()=>{if(!n){a(null);return}(async()=>{u(!0),p(null);try{const g=await Qm({action:"getCustomer",customerId:n},o);a(g)}catch(g){p(g)}finally{u(!1)}})()},[n,o]),{customer:i,loading:l,error:f}},YC=({customerId:n,customerEmail:o,hostBase:i,children:a})=>{var m,g;const{customer:l,loading:u,error:f}=GC(n,i);if(u)return y.jsx(Po,{className:"border-none shadow-none bg-transparent",children:y.jsx(To,{className:"flex items-center justify-center p-6",children:y.jsx(Ma,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(f||!l){const w=o?o.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",h=w.split(/[\s._-]+/).map(b=>b[0]).join("").slice(0,2).toUpperCase();return y.jsx(Po,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsxs(To,{className:"p-4 pb-0 pt-2",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Dl,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Fl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),y.jsx($l,{className:"text-lg",children:h})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:w})]}),o&&y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(za,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:o})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]}),y.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const p=`${((m=l.first_name)==null?void 0:m[0])||""}${((g=l.last_name)==null?void 0:g[0])||""}`;return y.jsx(Po,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsx(To,{className:"p-4 pb-0 pt-2",children:y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Dl,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Fl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),y.jsx($l,{className:"text-lg",children:p})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:l.name})]}),y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(za,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:l.email})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]})})})},Zm=(n,o)=>{v.useEffect(()=>{const i=o.current;if(!i)return;let a=document.getElementById(n);a||(a=document.createElement("div"),a.id=n,a.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(a));const l=new MutationObserver(()=>{for(;a.firstChild;)i.appendChild(document.adoptNode(a.firstChild))});return l.observe(a,{childList:!0,subtree:!0}),()=>{l.disconnect(),a==null||a.remove()}},[n,o])},KC=({customization:n})=>{const o=v.useRef(null);return Zm("widget_conversations",o),v.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},XC=({customization:n})=>{const o=v.useRef(null);return Zm("widget_messages",o),v.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},Bl=25,Hl=75,QC=({header:n,buttons:o,hostBase:i,customerId:a="",customerEmail:l="",primaryPercent:u=50})=>{const f=Math.max(Bl,Math.min(Hl,u)),[p,m]=v.useState("account"),[g,w]=v.useState(f),[h,b]=v.useState(!1),[S,E]=v.useState(!1),[k,C]=v.useState(!1),N=v.useRef(null),P=v.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",conversationList:{targetElement:"#widget_conversations"},messageLog:{targetElement:"#widget_messages"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},conversationList:{hideHeader:!0,hideNewConversationButton:!0},messageLog:{hideHeader:!0}}),!0),[]);v.useEffect(()=>{if(P()){E(!0);return}const z=setInterval(()=>{P()&&(E(!0),clearInterval(z))},100),O=setTimeout(()=>{clearInterval(z),console.warn("Zendesk widget failed to load after 10 seconds")},1e4);return()=>{clearInterval(z),clearTimeout(O)}},[P]);const R=v.useCallback(z=>{const{detail:O}=z;!window.zE||!(O!=null&&O.payload)||window.zE("messenger:ui","newConversation",O.payload)},[]);v.useEffect(()=>(window.addEventListener("ext-action-newConversation",R),()=>{window.removeEventListener("ext-action-newConversation",R)}),[R]),v.useEffect(()=>{if(!k)return;const z=D=>{if(!N.current)return;const K=N.current.getBoundingClientRect();if((h?K.width:K.height)===0)return;const fe=h?(D.clientX-K.left)/K.width*100:(D.clientY-K.top)/K.height*100,ge=Math.max(Bl,Math.min(Hl,fe));w(ge)},O=()=>{C(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=h?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",z),window.addEventListener("mouseup",O),window.addEventListener("blur",O),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",O),window.removeEventListener("blur",O),document.body.style.cursor="",document.body.style.userSelect=""}},[k,h]),v.useEffect(()=>{if(!N.current)return;const z=N.current,O=()=>{const K=getComputedStyle(z).flexDirection==="row";b(K)};O();const D=new ResizeObserver(O);return D.observe(z),()=>{D.disconnect()}},[]);const j=v.useCallback(z=>{if(z.detail===2){w(f);return}z.preventDefault(),C(!0)},[f]),$={customerId:a,customerEmail:l};return y.jsxs("div",{"data-component":"zendesk-wrapper",className:"flex-1 flex flex-col z-10 overflow-hidden",style:{containerType:"inline-size"},children:[y.jsx("style",{children:'@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'}),y.jsxs("div",{ref:N,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[y.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${g}%`},children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[y.jsx("h2",{className:"font-semibold text-sm text-foreground",children:p==="account"?"My Account":"My Conversations"}),y.jsxs("div",{className:"flex items-center gap-1",children:[n&&y.jsx("div",{className:"flex mr-1 gap-1",children:n}),y.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[o,y.jsx("button",{onClick:()=>m("account"),className:ye("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="account"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Account",children:y.jsx(Ju,{className:"h-4 w-4"})}),y.jsx("button",{onClick:()=>m("conversations"),className:ye("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:y.jsx(Zu,{className:"h-4 w-4"})})]})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[y.jsxs("div",{className:ye("flex flex-col gap-2",p==="conversations"&&"hidden"),children:[y.jsx(YC,{customerId:a,customerEmail:l,hostBase:i,children:y.jsx(_i,{target:"slot.header",context:$,className:"flex-none"})}),y.jsx(_i,{target:"slot.content",context:$,className:"flex flex-col gap-2"})]}),y.jsx("div",{className:ye("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",p==="account"&&"hidden"),children:y.jsx(KC,{})})]})]}),y.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:`${100-g}%`},children:[y.jsx("div",{className:"flex-1 overflow-hidden",children:y.jsx(XC,{})}),y.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500",children:[y.jsx(_i,{target:"slot.footer",context:$,className:"flex items-center gap-1",fallback:y.jsxs(y.Fragment,{children:[y.jsx("div",{children:"powered by"}),y.jsx(WC,{href:"https://zendesk.com",children:"Zendesk"})]})}),y.jsx(_i,{target:"slot.footer-links",context:$,className:"flex items-center gap-1",separator:y.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:z,index:O})=>y.jsxs(y.Fragment,{children:[O===0&&y.jsx("span",{className:"text-zinc-300",children:"+"}),z]})})]})]}),y.jsx("div",{className:ye("group/resize absolute z-20 flex items-center justify-center",h?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:h?{left:`${g}%`}:{top:`${g}%`},onMouseDown:j,role:"separator","aria-label":"Resize panels","aria-orientation":h?"vertical":"horizontal","aria-valuemin":Bl,"aria-valuemax":Hl,"aria-valuenow":Math.round(g),children:y.jsx("div",{className:ye("rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",h?"h-20 w-0.5":"h-0.5 w-20",k?"bg-foreground/70 dark:bg-white opacity-100":"opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100")})}),k&&y.jsx("div",{className:ye("absolute inset-0 z-40",h?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>C(!1)})]})]})},qC="ze-snippet",Jm=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,ZC=(n,o={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:a=qC}=o;window.zEMessenger={autorender:i};const l=document.getElementById(a);if(l){if(l.getAttribute("src")===Jm(n))return Promise.resolve();l.remove()}return new Promise((u,f)=>{const p=document.createElement("script");p.id=a,p.src=Jm(n),p.async=!0,p.onload=()=>u(),p.onerror=()=>f(new Error("Failed to load Zendesk snippet")),document.head.appendChild(p)})},JC=({snippetKey:n,instanceId:o,hostBase:i,apiBase:a,appId:l,theme:u,customerId:f,customerEmail:p})=>{const m=u==="dark"||u==="light"?u:"inherit";return v.useEffect(()=>{n&&ZC(n).catch(g=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",g)})},[n]),y.jsx(MC,{instanceId:o,hostBase:i,apiBase:a,appId:l,customerId:f,customerEmail:p,children:y.jsx(VC,{theme:m,children:y.jsx(QC,{hostBase:i,customerId:f,customerEmail:p,primaryPercent:40})})})};class eE extends HTMLElement{constructor(){super();Cu(this,"mountNode");Cu(this,"root");const i=this.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=Fv,i.appendChild(a),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["instance","host-base","api-base","app-id","theme","customer-id","customer-email","snippet-key"]}connectedCallback(){this.root=Dv.createRoot(this.mountNode),this.renderWidget()}disconnectedCallback(){var i;(i=this.root)==null||i.unmount(),this.root=void 0}attributeChangedCallback(){this.renderWidget()}renderWidget(){if(!this.root)return;const i=this.getAttribute("theme")??"";this.mountNode.classList.toggle("dark",i==="dark"),this.root.render(y.jsx(JC,{hostBase:this.getAttribute("host-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",theme:i,instanceId:this.getAttribute("instance")??"",snippetKey:this.getAttribute("snippet-key")??"",customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",eE)})();
311
+ `,document.head.appendChild(n)},RC=n=>{const o=n.some(a=>a.mode==="staging"),i=n.some(a=>a.mode==="dev");return o&&i?"Dev + Staging":o?"Staging Mode":"Dev Mode"},PC=n=>n.mode==="staging"?"STAGING":"DEV",TC=({className:n="",extensions:o=[],tokenErrors:i=new Map})=>{const[a,l]=v.useState([]),[u,f]=v.useState(!1),[p,m]=v.useState(!1),[g,w]=v.useState(!1),h=v.useRef(null),b=i.size>0;if(v.useEffect(()=>{NC()},[]),v.useEffect(()=>{if(!b)return;const E=()=>{w(!0),setTimeout(()=>w(!1),600)};E();const k=setInterval(E,4e3);return()=>clearInterval(k)},[b]),v.useEffect(()=>{if(typeof window>"u")return;const E=()=>{const C=Wu(window.location.search);l(C)};E();const k=()=>E();return window.addEventListener("popstate",k),()=>window.removeEventListener("popstate",k)},[]),a.length===0)return null;const S=E=>{if(E.stopPropagation(),typeof window>"u")return;const k=new URL(window.location.href);k.searchParams.delete("_stackable_dev"),k.searchParams.delete("_stackable_staging"),window.location.href=k.toString()};return y.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:p||g?"translate(-50%, -2px)":"translate(-50%, 0)",zIndex:2147483647,fontFamily:"system-ui, -apple-system, sans-serif",transition:"transform 0.15s ease",display:"flex",flexDirection:"column",alignItems:"center"},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[u&&y.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:`1px solid ${b?"#dc2626":"#eab308"}`,borderRadius:"8px 8px 0 0",boxShadow:"0 -4px 16px -4px rgba(0,0,0,0.12), 0 -2px 6px -4px rgba(0,0,0,0.08)",padding:"8px 0",width:"420px",maxWidth:"90vw"},children:a.map((E,k)=>{var C;return y.jsxs("div",{style:{padding:"8px 12px",borderBottom:k<a.length-1?"1px solid #f3f4f6":"none"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx("span",{style:{fontSize:"10px",fontWeight:700,color:E.mode==="staging"?"#7c3aed":"#b45309",backgroundColor:E.mode==="staging"?"#ede9fe":"#fef3c7",padding:"1px 5px",borderRadius:"3px",letterSpacing:"0.05em",fontFamily:"ui-monospace, SFMono-Regular, monospace"},children:PC(E)}),y.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((C=o.find(N=>N.id===E.extensionId))==null?void 0:C.manifest.name)||E.extensionId})]}),y.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:E.bundleUrl,children:["→ ",E.bundleUrl]}),i.get(E.extensionId)&&y.jsxs("div",{style:{fontSize:"11px",color:"#dc2626",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"3px"},children:["⚠ ",i.get(E.extensionId)]})]},E.extensionId)})}),y.jsxs("div",{onClick:()=>f(!u),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:b?"#dc2626":"#eab308",color:b?"#fff":"#000",padding:"8px 12px",borderRadius:u?"0 0 8px 8px":"8px",boxShadow:p?"0 12px 24px -4px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.12)":"0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08)",fontSize:"14px",fontWeight:500,cursor:"pointer",userSelect:"none",transition:"box-shadow 0.15s ease, border-radius 0.1s ease"},children:[y.jsx("span",{ref:h,style:{display:"inline-flex",animation:p&&!u||g?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:y.jsx(_C,{className:"w-6 h-6"})}),y.jsx("span",{children:RC(a)}),y.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",a.length," extension",a.length>1?"s":"",")"]}),y.jsx("button",{onClick:S,style:{marginLeft:"4px",backgroundColor:"rgba(0, 0, 0, 0.15)",border:"none",borderRadius:"4px",cursor:"pointer",padding:"2px 8px",fontSize:"12px",fontWeight:500,color:"inherit",fontFamily:"inherit",transition:"background-color 0.1s ease"},onMouseOver:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},IC=800,vs=(n,o)=>n?`${n.replace(/\/$/,"")}${o}`:o,AC=async(n,o,i,a)=>{const l=new Map,u=new Map;return await Promise.all(n.filter(f=>f.manifest.permissions.includes("data:fetch")).map(async f=>{const p=a.find(b=>b.extensionId===f.id),m=p==null?void 0:p.token,g=p==null?void 0:p.mode,w=vs(o,"/proxy-token"),h=await fetch(w,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,extensionId:f.id,...g&&{mode:g},...m&&{devSessionToken:m}})});if(h.ok){const{token:b,encryptionKey:S}=await h.json();l.set(f.id,{token:b,encryptionKey:S})}else{let b=`Proxy token failed (${h.status})`;g&&!m?b="Session token missing — re-run CLI":g&&(b="Session expired or invalid — re-run CLI"),u.set(f.id,b),console.warn(`[embeddables] Failed to obtain proxy token for extension ${f.id} (${h.status}) — ${b}`)}})),{tokens:l,errors:u}},jC=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),MC=({instanceId:n,apiBase:o,hostBase:i,appId:a,children:l,customerId:u,customerEmail:f})=>{const[p,m]=v.useState([]),[g,w]=v.useState([]),[h,b]=v.useState(new Map),[S,E]=v.useState(new Map),[k,C]=v.useState(!1);v.useEffect(()=>{(async()=>{const R=n;try{if(!R){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),m([]),C(!0);return}if(!o||!a){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),m([]),C(!0);return}const j=await fetch(vs(o,`/instances/${a}/${R}`));if(!j.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${R}`),m([]),C(!0);return}const $=await j.json(),z=Wu(typeof window<"u"?window.location.search:""),O=await I0($,z),{tokens:D,errors:X}=await AC(O,o,a,z);m(O),w(z),b(new Map(D)),E(X)}catch(j){console.error("Failed to load extensions:",j)}finally{C(!0)}})()},[n,a,o]),v.useEffect(()=>{if(!o||!a||p.length===0)return;const R=setInterval(async()=>{const j=[];await Promise.all(p.filter($=>$.manifest.permissions.includes("data:fetch")).map(async $=>{const z=g.find(fe=>fe.extensionId===$.id),O=z==null?void 0:z.token,D=z==null?void 0:z.mode,X=vs(o,"/proxy-token"),oe=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a,extensionId:$.id,...D&&{mode:D},...O&&{devSessionToken:O}})});if(oe.ok){const{token:fe,encryptionKey:ge}=await oe.json();j.push([$.id,{token:fe,encryptionKey:ge}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${$.id} (${oe.status}) — using stale token`)})),j.length>0&&b($=>{const z=new Map($);for(const[O,D]of j)z.set(O,D);return z})},3300*1e3);return()=>clearInterval(R)},[p,g,o,a]),v.useEffect(()=>{if(h.size===0)return;const P=R=>{const j=R.data;if((j==null?void 0:j.type)!=="extension-ready")return;const $=j.extensionId,z=p.find(X=>X.id===$);if(!(z!=null&&z.bundleUrl))return;const O=g.find(X=>X.extensionId===$);if(R0(z.bundleUrl)&&(O==null?void 0:O.mode)!=="staging")return;const D=h.get($);D&&Ei($,{type:"extension-encryption-key",encryptionKey:D.encryptionKey})};return window.addEventListener("message",P),()=>window.removeEventListener("message",P)},[p,g,h]);const N=v.useMemo(()=>({"data.query":async P=>Qm(P,i),"data.fetch":async(P,R)=>{const j=h.get(P);if(!j)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const $=jC(R)?R:{url:R.url,method:R.method??"GET",headers:R.headers??{},body:R.body??null},z=vs(o,"/proxy"),O=await fetch(z,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":P,"X-Application-Id":a??"",Authorization:`Bearer ${j.token}`},body:JSON.stringify($)}),D=await O.json();return{status:D.status??O.status,ok:D.ok??O.ok,data:D.data}},"actions.toast":async(P,R)=>{const j={...R.description&&{description:R.description},...R.duration&&{duration:R.duration},...R.position&&{position:R.position},...R.dismissible!=null&&{dismissible:R.dismissible},...R.closeButton!=null&&{closeButton:R.closeButton}};if(R.fetch){const $=O=>new Promise(D=>setTimeout(D,O)),z=Promise.all([N["data.fetch"](P,R.fetch),$(IC)]).then(([O])=>O);Hr.promise(z,{loading:R.loading??R.message,success:R.success??R.message,error:R.error??"Something went wrong",...j});return}switch(R.type){case"success":{Hr.success(R.message,j);break}case"error":{Hr.error(R.message,j);break}case"warning":{Hr.warning(R.message,j);break}case"info":{Hr.info(R.message,j);break}default:Hr(R.message,j)}},"actions.invoke":async P=>(window.dispatchEvent(new CustomEvent(`ext-action-${P.action}`,{detail:P})),{success:!0}),"context.read":async()=>({customerId:u??"",customerEmail:f??""})}),[o,a,i,u,f,h]);return k?y.jsxs(y.Fragment,{children:[y.jsx(Xv,{extensions:p,capabilityHandlers:N,components:EC(),children:l}),y.jsx(TC,{extensions:p,tokenErrors:S})]}):null};var zC=(n,o,i,a,l,u,f,p)=>{let m=document.documentElement,g=["light","dark"];function w(S){(Array.isArray(n)?n:[n]).forEach(E=>{let k=E==="class",C=k&&u?l.map(N=>u[N]||N):l;k?(m.classList.remove(...C),m.classList.add(u&&u[S]?u[S]:S)):m.setAttribute(E,S)}),h(S)}function h(S){p&&g.includes(S)&&(m.style.colorScheme=S)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)w(a);else try{let S=localStorage.getItem(o)||i,E=f&&S==="system"?b():S;w(E)}catch{}},LC=v.createContext(void 0),OC={setTheme:n=>{},themes:[]},DC=()=>{var n;return(n=v.useContext(LC))!=null?n:OC};v.memo(({forcedTheme:n,storageKey:o,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:f,themes:p,nonce:m,scriptProps:g})=>{let w=JSON.stringify([i,o,u,n,p,f,a,l]).slice(1,-1);return v.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${zC.toString()})(${w})`}})});const FC=({...n})=>{const{theme:o="system"}=DC();return y.jsx(N0,{theme:o,className:"toaster group",icons:{success:y.jsx(qu,{className:"size-4"}),info:y.jsx(Ri,{className:"size-4"}),warning:y.jsx(ry,{className:"size-4"}),error:y.jsx(q0,{className:"size-4"}),loading:y.jsx(Ma,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...n})},$C={dark:"dark",light:"widget-theme-light"},BC={dark:"dark",light:"light"},HC=({children:n,theme:o="inherit"})=>y.jsxs("div",{"data-id":"widget-body",className:$C[o],style:{position:"relative",transform:"translateZ(0)"},children:[y.jsx("div",{className:"h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300",children:y.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground",children:n})}),y.jsx(FC,{position:"bottom-center",theme:BC[o]??"system",toastOptions:{descriptionClassName:"!text-muted-foreground"}})]}),UC=({onClick:n,icon:o=O0})=>y.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:y.jsx(Vm,{className:"h-12 w-12 rounded-full",size:"icon",onClick:n,children:y.jsx(o,{className:"h-6 w-6"})})}),VC=({children:n,icon:o,theme:i})=>{const[a,l]=v.useState(!1),[u,f]=v.useState(!0),p=v.useCallback(()=>{l(m=>!m)},[]);return v.useEffect(()=>{const m=()=>l(S=>!S),g=()=>l(!0),w=()=>l(!1),h=()=>f(!0),b=()=>{l(!1),f(!1)};return window.addEventListener("ext-action-toggle",m),window.addEventListener("ext-action-open",g),window.addEventListener("ext-action-close",w),window.addEventListener("ext-action-show",h),window.addEventListener("ext-action-hide",b),()=>{window.removeEventListener("ext-action-open",g),window.removeEventListener("ext-action-close",w),window.removeEventListener("ext-action-toggle",m),window.removeEventListener("ext-action-show",h),window.removeEventListener("ext-action-hide",b)}},[]),y.jsxs(y.Fragment,{children:[u&&y.jsx(UC,{onClick:p,icon:o}),a&&y.jsx("div",{"data-id":"widget-container",className:"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl",style:{"--widget-z":1e3},children:y.jsx(HC,{theme:i,children:n})})]})},WC=({href:n,children:o})=>y.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",children:o}),GC=(n,o)=>{const[i,a]=v.useState(null),[l,u]=v.useState(!1),[f,p]=v.useState(null);return v.useEffect(()=>{if(!n){a(null);return}(async()=>{u(!0),p(null);try{const g=await Qm({action:"getCustomer",customerId:n},o);a(g)}catch(g){p(g)}finally{u(!1)}})()},[n,o]),{customer:i,loading:l,error:f}},YC=({customerId:n,customerEmail:o,hostBase:i,children:a})=>{var m,g;const{customer:l,loading:u,error:f}=GC(n,i);if(u)return y.jsx(Po,{className:"border-none shadow-none bg-transparent",children:y.jsx(To,{className:"flex items-center justify-center p-6",children:y.jsx(Ma,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(f||!l){const w=o?o.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",h=w.split(/[\s._-]+/).map(b=>b[0]).join("").slice(0,2).toUpperCase();return y.jsx(Po,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsxs(To,{className:"p-4 pb-0 pt-2",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Dl,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Fl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),y.jsx($l,{className:"text-lg",children:h})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:w})]}),o&&y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(za,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:o})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]}),y.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const p=`${((m=l.first_name)==null?void 0:m[0])||""}${((g=l.last_name)==null?void 0:g[0])||""}`;return y.jsx(Po,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsx(To,{className:"p-4 pb-0 pt-2",children:y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Dl,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Fl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),y.jsx($l,{className:"text-lg",children:p})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:l.name})]}),y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(za,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:l.email})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]})})})},Zm=(n,o)=>{v.useEffect(()=>{const i=o.current;if(!i)return;let a=document.getElementById(n);a||(a=document.createElement("div"),a.id=n,a.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(a));const l=new MutationObserver(()=>{for(;a.firstChild;)i.appendChild(document.adoptNode(a.firstChild))});return l.observe(a,{childList:!0,subtree:!0}),()=>{l.disconnect(),a==null||a.remove()}},[n,o])},KC=({customization:n})=>{const o=v.useRef(null);return Zm("widget_conversations",o),v.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},XC=({customization:n})=>{const o=v.useRef(null);return Zm("widget_messages",o),v.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},Bl=25,Hl=75,QC=({header:n,buttons:o,hostBase:i,customerId:a="",customerEmail:l="",primaryPercent:u=50})=>{const f=Math.max(Bl,Math.min(Hl,u)),[p,m]=v.useState("account"),[g,w]=v.useState(f),[h,b]=v.useState(!1),[S,E]=v.useState(!1),[k,C]=v.useState(!1),N=v.useRef(null),P=v.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",conversationList:{targetElement:"#widget_conversations"},messageLog:{targetElement:"#widget_messages"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},conversationList:{hideHeader:!0,hideNewConversationButton:!0},messageLog:{hideHeader:!0}}),!0),[]);v.useEffect(()=>{if(P()){E(!0);return}const z=setInterval(()=>{P()&&(E(!0),clearInterval(z))},100),O=setTimeout(()=>{clearInterval(z),console.warn("Zendesk widget failed to load after 10 seconds")},1e4);return()=>{clearInterval(z),clearTimeout(O)}},[P]);const R=v.useCallback(z=>{const{detail:O}=z;!window.zE||!(O!=null&&O.payload)||window.zE("messenger:ui","newConversation",O.payload)},[]);v.useEffect(()=>(window.addEventListener("ext-action-newConversation",R),()=>{window.removeEventListener("ext-action-newConversation",R)}),[R]),v.useEffect(()=>{if(!k)return;const z=D=>{if(!N.current)return;const X=N.current.getBoundingClientRect();if((h?X.width:X.height)===0)return;const fe=h?(D.clientX-X.left)/X.width*100:(D.clientY-X.top)/X.height*100,ge=Math.max(Bl,Math.min(Hl,fe));w(ge)},O=()=>{C(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=h?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",z),window.addEventListener("mouseup",O),window.addEventListener("blur",O),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",O),window.removeEventListener("blur",O),document.body.style.cursor="",document.body.style.userSelect=""}},[k,h]),v.useEffect(()=>{if(!N.current)return;const z=N.current,O=()=>{const X=getComputedStyle(z).flexDirection==="row";b(X)};O();const D=new ResizeObserver(O);return D.observe(z),()=>{D.disconnect()}},[]);const j=v.useCallback(z=>{if(z.detail===2){w(f);return}z.preventDefault(),C(!0)},[f]),$={customerId:a,customerEmail:l};return y.jsxs("div",{"data-component":"zendesk-wrapper",className:"flex-1 flex flex-col z-10 overflow-hidden",style:{containerType:"inline-size"},children:[y.jsx("style",{children:'@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'}),y.jsxs("div",{ref:N,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[y.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${g}%`},children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[y.jsx("h2",{className:"font-semibold text-sm text-foreground",children:p==="account"?"My Account":"My Conversations"}),y.jsxs("div",{className:"flex items-center gap-1",children:[n&&y.jsx("div",{className:"flex mr-1 gap-1",children:n}),y.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[o,y.jsx("button",{onClick:()=>m("account"),className:ye("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="account"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Account",children:y.jsx(Ju,{className:"h-4 w-4"})}),y.jsx("button",{onClick:()=>m("conversations"),className:ye("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:y.jsx(Zu,{className:"h-4 w-4"})})]})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[y.jsxs("div",{className:ye("flex flex-col gap-2",p==="conversations"&&"hidden"),children:[y.jsx(YC,{customerId:a,customerEmail:l,hostBase:i,children:y.jsx(_i,{target:"slot.header",context:$,className:"flex-none"})}),y.jsx(_i,{target:"slot.content",context:$,className:"flex flex-col gap-2"})]}),y.jsx("div",{className:ye("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",p==="account"&&"hidden"),children:y.jsx(KC,{})})]})]}),y.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:`${100-g}%`},children:[y.jsx("div",{className:"flex-1 overflow-hidden",children:y.jsx(XC,{})}),y.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500",children:[y.jsx(_i,{target:"slot.footer",context:$,className:"flex items-center gap-1",fallback:y.jsxs(y.Fragment,{children:[y.jsx("div",{children:"powered by"}),y.jsx(WC,{href:"https://zendesk.com",children:"Zendesk"})]})}),y.jsx(_i,{target:"slot.footer-links",context:$,className:"flex items-center gap-1",separator:y.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:z,index:O})=>y.jsxs(y.Fragment,{children:[O===0&&y.jsx("span",{className:"text-zinc-300",children:"+"}),z]})})]})]}),y.jsx("div",{className:ye("group/resize absolute z-20 flex items-center justify-center",h?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:h?{left:`${g}%`}:{top:`${g}%`},onMouseDown:j,role:"separator","aria-label":"Resize panels","aria-orientation":h?"vertical":"horizontal","aria-valuemin":Bl,"aria-valuemax":Hl,"aria-valuenow":Math.round(g),children:y.jsx("div",{className:ye("rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",h?"h-20 w-0.5":"h-0.5 w-20",k?"bg-foreground/70 dark:bg-white opacity-100":"opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100")})}),k&&y.jsx("div",{className:ye("absolute inset-0 z-40",h?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>C(!1)})]})]})},qC="ze-snippet",Jm=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,ZC=(n,o={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:a=qC}=o;window.zEMessenger={autorender:i};const l=document.getElementById(a);if(l){if(l.getAttribute("src")===Jm(n))return Promise.resolve();l.remove()}return new Promise((u,f)=>{const p=document.createElement("script");p.id=a,p.src=Jm(n),p.async=!0,p.onload=()=>u(),p.onerror=()=>f(new Error("Failed to load Zendesk snippet")),document.head.appendChild(p)})},JC=({snippetKey:n,instanceId:o,hostBase:i,apiBase:a,appId:l,theme:u,customerId:f,customerEmail:p})=>{const m=u==="dark"||u==="light"?u:"inherit";return v.useEffect(()=>{n&&ZC(n).catch(g=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",g)})},[n]),y.jsx(MC,{instanceId:o,hostBase:i,apiBase:a,appId:l,customerId:f,customerEmail:p,children:y.jsx(VC,{theme:m,children:y.jsx(QC,{hostBase:i,customerId:f,customerEmail:p,primaryPercent:40})})})};class eE extends HTMLElement{constructor(){super();Cu(this,"mountNode");Cu(this,"root");const i=this.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=Fv,i.appendChild(a),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["instance","host-base","api-base","app-id","theme","customer-id","customer-email","snippet-key"]}connectedCallback(){this.root=Dv.createRoot(this.mountNode),this.renderWidget()}disconnectedCallback(){var i;(i=this.root)==null||i.unmount(),this.root=void 0}attributeChangedCallback(){this.renderWidget()}renderWidget(){if(!this.root)return;const i=this.getAttribute("theme")??"";this.mountNode.classList.toggle("dark",i==="dark"),this.root.render(y.jsx(JC,{hostBase:this.getAttribute("host-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",theme:i,instanceId:this.getAttribute("instance")??"",snippetKey:this.getAttribute("snippet-key")??"",customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",eE)})();