diff --git "a/assets/index-CZDgSg0g.js" "b/assets/index-CZDgSg0g.js" new file mode 100644--- /dev/null +++ "b/assets/index-CZDgSg0g.js" @@ -0,0 +1,150 @@ +function G0(l,r){for(var o=0;ou[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function fv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ws={exports:{}},qi={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ah;function k0(){if(Ah)return qi;Ah=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,c,d){var m=null;if(d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:l,type:u,key:m,ref:c!==void 0?c:null,props:d}}return qi.Fragment=r,qi.jsx=o,qi.jsxs=o,qi}var Rh;function X0(){return Rh||(Rh=1,Ws.exports=k0()),Ws.exports}var R=X0(),$s={exports:{}},Ee={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ch;function Q0(){if(Ch)return Ee;Ch=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;function A(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,x={};function C(T,k,ee){this.props=T,this.context=k,this.refs=x,this.updater=ee||y}C.prototype.isReactComponent={},C.prototype.setState=function(T,k){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,k,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function D(){}D.prototype=C.prototype;function j(T,k,ee){this.props=T,this.context=k,this.refs=x,this.updater=ee||y}var U=j.prototype=new D;U.constructor=j,N(U,C.prototype),U.isPureReactComponent=!0;var q=Array.isArray,B={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function P(T,k,ee,te,Z,me){return ee=me.ref,{$$typeof:l,type:T,key:k,ref:ee!==void 0?ee:null,props:me}}function de(T,k){return P(T.type,k,void 0,void 0,void 0,T.props)}function J(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function ae(T){var k={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ee){return k[ee]})}var oe=/\/+/g;function le(T,k){return typeof T=="object"&&T!==null&&T.key!=null?ae(""+T.key):k.toString(36)}function ue(){}function W(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ue,ue):(T.status="pending",T.then(function(k){T.status==="pending"&&(T.status="fulfilled",T.value=k)},function(k){T.status==="pending"&&(T.status="rejected",T.reason=k)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function fe(T,k,ee,te,Z){var me=typeof T;(me==="undefined"||me==="boolean")&&(T=null);var he=!1;if(T===null)he=!0;else switch(me){case"bigint":case"string":case"number":he=!0;break;case"object":switch(T.$$typeof){case l:case r:he=!0;break;case S:return he=T._init,fe(he(T._payload),k,ee,te,Z)}}if(he)return Z=Z(T),he=te===""?"."+le(T,0):te,q(Z)?(ee="",he!=null&&(ee=he.replace(oe,"$&/")+"/"),fe(Z,k,ee,"",function(Se){return Se})):Z!=null&&(J(Z)&&(Z=de(Z,ee+(Z.key==null||T&&T.key===Z.key?"":(""+Z.key).replace(oe,"$&/")+"/")+he)),k.push(Z)),1;he=0;var I=te===""?".":te+":";if(q(T))for(var ce=0;ce>>1,T=L[$];if(0>>1;$c(te,Y))Zc(me,te)?(L[$]=me,L[Z]=Y,$=Z):(L[$]=te,L[ee]=Y,$=ee);else if(Zc(me,Y))L[$]=me,L[Z]=Y,$=Z;else break e}}return K}function c(L,K){var Y=L.sortIndex-K.sortIndex;return Y!==0?Y:L.id-K.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var h=[],v=[],S=1,w=null,A=3,y=!1,N=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function U(L){for(var K=o(v);K!==null;){if(K.callback===null)u(v);else if(K.startTime<=L)u(v),K.sortIndex=K.expirationTime,r(h,K);else break;K=o(v)}}function q(L){if(x=!1,U(L),!N)if(o(h)!==null)N=!0,W();else{var K=o(v);K!==null&&fe(q,K.startTime-L)}}var B=!1,F=-1,P=5,de=-1;function J(){return!(l.unstable_now()-deL&&J());){var $=w.callback;if(typeof $=="function"){w.callback=null,A=w.priorityLevel;var T=$(w.expirationTime<=L);if(L=l.unstable_now(),typeof T=="function"){w.callback=T,U(L),K=!0;break t}w===o(h)&&u(h),U(L)}else u(h);w=o(h)}if(w!==null)K=!0;else{var k=o(v);k!==null&&fe(q,k.startTime-L),K=!1}}break e}finally{w=null,A=Y,y=!1}K=void 0}}finally{K?oe():B=!1}}}var oe;if(typeof j=="function")oe=function(){j(ae)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ue=le.port2;le.port1.onmessage=ae,oe=function(){ue.postMessage(null)}}else oe=function(){C(ae,0)};function W(){B||(B=!0,oe())}function fe(L,K){F=C(function(){L(l.unstable_now())},K)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_continueExecution=function(){N||y||(N=!0,W())},l.unstable_forceFrameRate=function(L){0>L||125$?(L.sortIndex=Y,r(v,L),o(h)===null&&L===o(v)&&(x?(D(F),F=-1):x=!0,fe(q,Y-$))):(L.sortIndex=T,r(h,L),N||y||(N=!0,W())),L},l.unstable_shouldYield=J,l.unstable_wrapCallback=function(L){var K=A;return function(){var Y=A;A=K;try{return L.apply(this,arguments)}finally{A=Y}}}}(ec)),ec}var Nh;function P0(){return Nh||(Nh=1,Is.exports=K0()),Is.exports}var tc={exports:{}},ht={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _h;function J0(){if(_h)return ht;_h=1;var l=Dc();function r(h){var v="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),tc.exports=J0(),tc.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zh;function W0(){if(zh)return Gi;zh=1;var l=P0(),r=Dc(),o=dv();function u(e){var t="https://react.dev/errors/"+e;if(1)":-1i||E[a]!==M[i]){var G=` +`+E[a].replace(" at new "," at ");return e.displayName&&G.includes("")&&(G=G.replace("",e.displayName)),G}while(1<=a&&0<=i);break}}}finally{W=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ue(n):""}function L(e){switch(e.tag){case 26:case 27:case 5:return ue(e.type);case 16:return ue("Lazy");case 13:return ue("Suspense");case 19:return ue("SuspenseList");case 0:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function K(e){try{var t="";do t+=L(e),e=e.return;while(e);return t}catch(n){return` +Error generating stack: `+n.message+` +`+n.stack}}function Y(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function $(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 T(e){if(Y(e)!==e)throw Error(u(188))}function k(e){var t=e.alternate;if(!t){if(t=Y(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return T(i),e;if(s===a)return T(i),t;s=s.sibling}throw Error(u(188))}if(n.return!==a.return)n=i,a=s;else{for(var f=!1,g=i.child;g;){if(g===n){f=!0,n=i,a=s;break}if(g===a){f=!0,a=i,n=s;break}g=g.sibling}if(!f){for(g=s.child;g;){if(g===n){f=!0,n=s,a=i;break}if(g===a){f=!0,a=s,n=i;break}g=g.sibling}if(!f)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ee(e),t!==null)return t;e=e.sibling}return null}var te=Array.isArray,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],I=-1;function ce(e){return{current:e}}function Se(e){0>I||(e.current=he[I],he[I]=null,I--)}function ge(e,t){I++,he[I]=e.current,e.current=t}var we=ce(null),ze=ce(null),ke=ce(null),wt=ce(null);function on(e,t){switch(ge(ke,t),ge(ze,e),ge(we,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?eh(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=eh(e),t=th(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Se(we),ge(we,t)}function Nt(){Se(we),Se(ze),Se(ke)}function gn(e){e.memoizedState!==null&&ge(wt,e);var t=we.current,n=th(t,e.type);t!==n&&(ge(ze,e),ge(we,n))}function kn(e){ze.current===e&&(Se(we),Se(ze)),wt.current===e&&(Se(wt),Ui._currentValue=me)}var Kl=Object.prototype.hasOwnProperty,Ka=l.unstable_scheduleCallback,yn=l.unstable_cancelCallback,Wi=l.unstable_shouldYield,bn=l.unstable_requestPaint,Lt=l.unstable_now,Go=l.unstable_getCurrentPriorityLevel,vt=l.unstable_ImmediatePriority,Sn=l.unstable_UserBlockingPriority,Pa=l.unstable_NormalPriority,ko=l.unstable_LowPriority,xa=l.unstable_IdlePriority,Xo=l.log,$i=l.unstable_setDisableYieldValue,xn=null,$e=null;function Fi(e){if($e&&typeof $e.onCommitFiberRoot=="function")try{$e.onCommitFiberRoot(xn,e,void 0,(e.current.flags&128)===128)}catch{}}function pt(e){if(typeof Xo=="function"&&$i(e),$e&&typeof $e.setStrictMode=="function")try{$e.setStrictMode(xn,e)}catch{}}var gt=Math.clz32?Math.clz32:er,Qo=Math.log,Ii=Math.LN2;function er(e){return e>>>=0,e===0?32:31-(Qo(e)/Ii|0)|0}var Ja=128,Xn=4194304;function ft(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Wa(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,s=e.pingedLanes,f=e.warmLanes;e=e.finishedLanes!==0;var g=n&134217727;return g!==0?(n=g&~i,n!==0?a=ft(n):(s&=g,s!==0?a=ft(s):e||(f=g&~f,f!==0&&(a=ft(f))))):(g=n&~i,g!==0?a=ft(g):s!==0?a=ft(s):e||(f=n&~f,f!==0&&(a=ft(f)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,f=t&-t,i>=f||i===32&&(f&4194176)!==0)?t:a}function be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function je(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Be(){var e=Ja;return Ja<<=1,!(Ja&4194176)&&(Ja=128),e}function Et(){var e=Xn;return Xn<<=1,!(Xn&62914560)&&(Xn=4194304),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wn(e,t,n,a,i,s){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,M=e.hiddenUpdates;for(n=f&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ef={},tf={};function Ug(e){return Kl.call(tf,e)?!0:Kl.call(ef,e)?!1:Hg.test(e)?tf[e]=!0:(ef[e]=!0,!1)}function tr(e,t,n){if(Ug(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function nr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Tn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=nf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ar(e){e._valueTracker||(e._valueTracker=Bg(e))}function af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Lg=/[\n"\\]/g;function Vt(e){return e.replace(Lg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Po(e,t,n,a,i,s,f,g){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Jo(e,f,Yt(t)):n!=null?Jo(e,f,Yt(n)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Yt(g):e.removeAttribute("name")}function lf(e,t,n,a,i,s,f,g){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;n=n!=null?""+Yt(n):"",t=t!=null?""+Yt(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f)}function Jo(e,t,n){t==="number"&&lr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tl(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i=ei),yf=" ",bf=!1;function Sf(e,t){switch(e){case"keyup":return dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function hy(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(bf=!0,yf);case"textInput":return e=t.data,e===yf&&bf?null:e;default:return null}}function vy(e,t){if(il)return e==="compositionend"||!ru&&Sf(e,t)?(e=df(),rr=tu=Zn=null,il=!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)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mf(n)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lr(e.document)}return t}function su(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 Ey(e,t){var n=Df(t);t=e.focusedElem;var a=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&_f(t.ownerDocument.documentElement,t)){if(a!==null&&su(t)){if(e=a.start,n=a.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,s=Math.min(a.start,i);a=a.end===void 0?s:Math.min(a.end,i),!n.extend&&s>a&&(i=a,a=s,s=i),i=Nf(t,s);var f=Nf(t,a);i&&f&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==f.node||n.focusOffset!==f.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),s>a?(n.addRange(e),n.extend(f.node,f.offset)):(e.setEnd(f.node,f.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,rl=null,cu=null,li=null,fu=!1;function zf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fu||rl==null||rl!==lr(a)||(a=rl,"selectionStart"in a&&su(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),li&&ai(li,a)||(li=a,a=Kr(cu,"onSelect"),0>=f,i-=f,An=1<<32-gt(t)+i|n<ye?(rt=pe,pe=null):rt=pe.sibling;var _e=H(_,pe,z[ye],X);if(_e===null){pe===null&&(pe=rt);break}e&&pe&&_e.alternate===null&&t(_,pe),O=s(_e,O,ye),Ae===null?se=_e:Ae.sibling=_e,Ae=_e,pe=rt}if(ye===z.length)return n(_,pe),Ne&&Oa(_,ye),se;if(pe===null){for(;yeye?(rt=pe,pe=null):rt=pe.sibling;var da=H(_,pe,_e.value,X);if(da===null){pe===null&&(pe=rt);break}e&&pe&&da.alternate===null&&t(_,pe),O=s(da,O,ye),Ae===null?se=da:Ae.sibling=da,Ae=da,pe=rt}if(_e.done)return n(_,pe),Ne&&Oa(_,ye),se;if(pe===null){for(;!_e.done;ye++,_e=z.next())_e=Q(_,_e.value,X),_e!==null&&(O=s(_e,O,ye),Ae===null?se=_e:Ae.sibling=_e,Ae=_e);return Ne&&Oa(_,ye),se}for(pe=a(pe);!_e.done;ye++,_e=z.next())_e=V(pe,_,ye,_e.value,X),_e!==null&&(e&&_e.alternate!==null&&pe.delete(_e.key===null?ye:_e.key),O=s(_e,O,ye),Ae===null?se=_e:Ae.sibling=_e,Ae=_e);return e&&pe.forEach(function(q0){return t(_,q0)}),Ne&&Oa(_,ye),se}function Pe(_,O,z,X){if(typeof z=="object"&&z!==null&&z.type===h&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case m:e:{for(var se=z.key;O!==null;){if(O.key===se){if(se=z.type,se===h){if(O.tag===7){n(_,O.sibling),X=i(O,z.props.children),X.return=_,_=X;break e}}else if(O.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===j&&Wf(se)===O.type){n(_,O.sibling),X=i(O,z.props),fi(X,z),X.return=_,_=X;break e}n(_,O);break}else t(_,O);O=O.sibling}z.type===h?(X=Ya(z.props.children,_.mode,X,z.key),X.return=_,_=X):(X=Br(z.type,z.key,z.props,null,_.mode,X),fi(X,z),X.return=_,_=X)}return f(_);case p:e:{for(se=z.key;O!==null;){if(O.key===se)if(O.tag===4&&O.stateNode.containerInfo===z.containerInfo&&O.stateNode.implementation===z.implementation){n(_,O.sibling),X=i(O,z.children||[]),X.return=_,_=X;break e}else{n(_,O);break}else t(_,O);O=O.sibling}X=ms(z,_.mode,X),X.return=_,_=X}return f(_);case j:return se=z._init,z=se(z._payload),Pe(_,O,z,X)}if(te(z))return ve(_,O,z,X);if(F(z)){if(se=F(z),typeof se!="function")throw Error(u(150));return z=se.call(z),xe(_,O,z,X)}if(typeof z.then=="function")return Pe(_,O,yr(z),X);if(z.$$typeof===y)return Pe(_,O,jr(_,z),X);br(_,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,O!==null&&O.tag===6?(n(_,O.sibling),X=i(O,z),X.return=_,_=X):(n(_,O),X=ds(z,_.mode,X),X.return=_,_=X),f(_)):n(_,O)}return function(_,O,z,X){try{ci=0;var se=Pe(_,O,z,X);return dl=null,se}catch(pe){if(pe===ui)throw pe;var Ae=Pt(29,pe,null,_.mode);return Ae.lanes=X,Ae.return=_,Ae}finally{}}}var Na=$f(!0),Ff=$f(!1),ml=ce(null),Sr=ce(0);function If(e,t){e=Bn,ge(Sr,e),ge(ml,t),Bn=e|t.baseLanes}function bu(){ge(Sr,Bn),ge(ml,ml.current)}function Su(){Bn=Sr.current,Se(ml),Se(Sr)}var Qt=ce(null),sn=null;function Pn(e){var t=e.alternate;ge(tt,tt.current&1),ge(Qt,e),sn===null&&(t===null||ml.current!==null||t.memoizedState!==null)&&(sn=e)}function ed(e){if(e.tag===22){if(ge(tt,tt.current),ge(Qt,e),sn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(sn=e)}}else Jn()}function Jn(){ge(tt,tt.current),ge(Qt,Qt.current)}function Cn(e){Se(Qt),sn===e&&(sn=null),Se(tt)}var tt=ce(0);function xr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Oy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},My=l.unstable_scheduleCallback,Ny=l.unstable_NormalPriority,nt={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xu(){return{controller:new Oy,data:new Map,refCount:0}}function di(e){e.refCount--,e.refCount===0&&My(Ny,function(){e.controller.abort()})}var mi=null,wu=0,hl=0,vl=null;function _y(e,t){if(mi===null){var n=mi=[];wu=0,hl=Os(),vl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return wu++,t.then(td,td),t}function td(){if(--wu===0&&mi!==null){vl!==null&&(vl.status="fulfilled");var e=mi;mi=null,hl=0,vl=null;for(var t=0;ts?s:8;var f=J.T,g={};J.T=g,Yu(e,!1,t,n);try{var E=i(),M=J.S;if(M!==null&&M(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var G=Dy(E,a);pi(e,t,G,Ht(e))}else pi(e,t,a,Ht(e))}catch(Q){pi(e,t,{then:function(){},status:"rejected",reason:Q},Ht())}finally{Z.p=s,J.T=f}}function By(){}function Bu(e,t,n,a){if(e.tag!==5)throw Error(u(476));var i=Dd(e).queue;_d(e,i,t,me,n===null?By:function(){return zd(e),n(a)})}function Dd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zd(e){var t=Dd(e).next.queue;pi(e,t,{},Ht())}function Lu(){return mt(Ui)}function jd(){return Ie().memoizedState}function Hd(){return Ie().memoizedState}function Ly(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ht();e=ea(n);var a=ta(t,e,n);a!==null&&(St(a,t,n),bi(a,t,n)),t={cache:xu()},e.payload=t;return}t=t.return}}function Yy(e,t,n){var a=Ht();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Nr(e)?Bd(t,n):(n=hu(e,t,n,a),n!==null&&(St(n,e,a),Ld(n,t,a)))}function Ud(e,t,n){var a=Ht();pi(e,t,n,a)}function pi(e,t,n,a){var i={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nr(e))Bd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,g=s(f,n);if(i.hasEagerState=!0,i.eagerState=g,_t(g,f))return mr(e,t,i,0),Ye===null&&dr(),!1}catch{}finally{}if(n=hu(e,t,i,a),n!==null)return St(n,e,a),Ld(n,t,a),!0}return!1}function Yu(e,t,n,a){if(a={lane:2,revertLane:Os(),action:a,hasEagerState:!1,eagerState:null,next:null},Nr(e)){if(t)throw Error(u(479))}else t=hu(e,n,a,2),t!==null&&St(t,e,2)}function Nr(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Bd(e,t){pl=Er=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ld(e,t,n){if(n&4194176){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,$t(e,n)}}var cn={readContext:mt,use:Rr,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je};cn.useCacheRefresh=Je,cn.useMemoCache=Je,cn.useHostTransitionStatus=Je,cn.useFormState=Je,cn.useActionState=Je,cn.useOptimistic=Je;var za={readContext:mt,use:Rr,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Ed,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Or(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Or(4194308,4,e,t)},useInsertionEffect:function(e,t){Or(4,2,e,t)},useMemo:function(e,t){var n=Ot();t=t===void 0?null:t;var a=e();if(Da){pt(!0);try{e()}finally{pt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Ot();if(n!==void 0){var i=n(t);if(Da){pt(!0);try{n(t)}finally{pt(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Yy.bind(null,Te,e),[a.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Du(e);var t=e.queue,n=Ud.bind(null,Te,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hu,useDeferredValue:function(e,t){var n=Ot();return Uu(n,e,t)},useTransition:function(){var e=Du(!1);return e=_d.bind(null,Te,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Te,i=Ot();if(Ne){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Ye===null)throw Error(u(349));Me&60||od(a,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ed(sd.bind(null,a,s,e),[e]),a.flags|=2048,yl(9,ud.bind(null,a,s,n,t),{destroy:void 0},null),n},useId:function(){var e=Ot(),t=Ye.identifierPrefix;if(Ne){var n=Rn,a=An;n=(a&~(1<<32-gt(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tr++,0 title"))),ct(s,a,n),s[dt]=e,at(s),a=s;break e;case"link":var f=fh("link","href",i).get(a+(n.href||""));if(f){for(var g=0;g<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}e[dt]=t,e[Rt]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(ct(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hn(t)}}return Xe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Hn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ke.current,ii(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=bt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,n)),e||Ma(t)}else e=Jr(e).createTextNode(a),e[dt]=t,t.stateNode=e}return Xe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ii(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[dt]=t}else ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),i=!1}else It!==null&&(xs(It),It=null),i=!0;if(!i)return t.flags&256?(Cn(t),t):(Cn(t),null)}if(Cn(t),t.flags&128)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var s=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Lr(t,t.updateQueue),Xe(t),null;case 4:return Nt(),e===null&&Ds(t.stateNode.containerInfo),Xe(t),null;case 10:return _n(t.type),Xe(t),null;case 19:if(Se(tt),i=t.memoizedState,i===null)return Xe(t),null;if(a=(t.flags&128)!==0,s=i.rendering,s===null)if(a)Ri(i,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=xr(e),s!==null){for(t.flags|=128,Ri(i,!1),e=s.updateQueue,t.updateQueue=e,Lr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Cm(n,e),n=n.sibling;return ge(tt,tt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Lt()>Yr&&(t.flags|=128,a=!0,Ri(i,!1),t.lanes=4194304)}else{if(!a)if(e=xr(s),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lr(t,e),Ri(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ne)return Xe(t),null}else 2*Lt()-i.renderingStartTime>Yr&&n!==536870912&&(t.flags|=128,a=!0,Ri(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(e=i.last,e!==null?e.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Lt(),t.sibling=null,e=tt.current,ge(tt,a?e&1|2:e&1),t):(Xe(t),null);case 22:case 23:return Cn(t),Su(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&Lr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Se(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_n(nt),Xe(t),null;case 25:return null}throw Error(u(156,t.tag))}function Zy(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(nt),Nt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 13:if(Cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(tt),null;case 4:return Nt(),null;case 10:return _n(t.type),null;case 22:case 23:return Cn(t),Su(),e!==null&&Se(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(nt),null;case 25:return null;default:return null}}function Nm(e,t){switch(pu(t),t.tag){case 3:_n(nt),Nt();break;case 26:case 27:case 5:kn(t);break;case 4:Nt();break;case 13:Cn(t);break;case 19:Se(tt);break;case 10:_n(t.type);break;case 22:case 23:Cn(t),Su(),e!==null&&Se(_a);break;case 24:_n(nt)}}var Ky={getCacheForType:function(e){var t=mt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Py=typeof WeakMap=="function"?WeakMap:Map,Qe=0,Ye=null,Re=null,Me=0,Ve=0,jt=null,Un=!1,wl=!1,hs=!1,Bn=0,Ke=0,ra=0,Va=0,vs=0,Jt=0,El=0,Ci=null,fn=null,ps=!1,gs=0,Yr=1/0,Vr=null,oa=null,qr=!1,qa=null,Oi=0,ys=0,bs=null,Mi=0,Ss=null;function Ht(){if(Qe&2&&Me!==0)return Me&-Me;if(J.T!==null){var e=hl;return e!==0?e:Os()}return Wc()}function _m(){Jt===0&&(Jt=!(Me&536870912)||Ne?Be():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Jt}function St(e,t,n){(e===Ye&&Ve===2||e.cancelPendingCommit!==null)&&(Tl(e,0),Ln(e,Me,Jt,!1)),Tt(e,n),(!(Qe&2)||e!==Ye)&&(e===Ye&&(!(Qe&2)&&(Va|=n),Ke===4&&Ln(e,Me,Jt,!1)),dn(e))}function Dm(e,t,n){if(Qe&6)throw Error(u(327));var a=!n&&(t&60)===0&&(t&e.expiredLanes)===0||be(e,t),i=a?$y(e,t):Ts(e,t,!0),s=a;do{if(i===0){wl&&!a&&Ln(e,t,0,!1);break}else if(i===6)Ln(e,t,0,!Un);else{if(n=e.current.alternate,s&&!Jy(n)){i=Ts(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var g=e;i=Ci;var E=g.current.memoizedState.isDehydrated;if(E&&(Tl(g,f).flags|=256),f=Ts(g,f,!1),f!==2){if(hs&&!E){g.errorRecoveryDisabledLanes|=s,Va|=s,i=4;break e}s=fn,fn=i,s!==null&&xs(s)}i=f}if(s=!1,i!==2)continue}}if(i===1){Tl(e,0),Ln(e,t,0,!0);break}e:{switch(a=e,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194176)===t){Ln(a,t,Jt,!Un);break e}break;case 2:fn=null;break;case 3:case 5:break;default:throw Error(u(329))}if(a.finishedWork=n,a.finishedLanes=t,(t&62914560)===t&&(s=gs+300-Lt(),10n?32:n,J.T=null,qa===null)var s=!1;else{n=bs,bs=null;var f=qa,g=Oi;if(qa=null,Oi=0,Qe&6)throw Error(u(331));var E=Qe;if(Qe|=4,Am(f.current),wm(f,f.current,g,n),Qe=E,Ni(0,!1),$e&&typeof $e.onPostCommitFiberRoot=="function")try{$e.onPostCommitFiberRoot(xn,f)}catch{}s=!0}return s}finally{Z.p=i,J.T=a,qm(e,t)}}return!1}function Gm(e,t,n){t=Gt(n,t),t=Gu(e.stateNode,t,2),e=ta(e,t,2),e!==null&&(Tt(e,2),dn(e))}function Le(e,t,n){if(e.tag===3)Gm(e,e,n);else for(;t!==null;){if(t.tag===3){Gm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(oa===null||!oa.has(a))){e=Gt(n,e),n=Qd(2),a=ta(t,n,2),a!==null&&(Zd(n,a,t,e),Tt(a,2),dn(a));break}}t=t.return}}function As(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Py;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(hs=!0,i.add(n),e=e0.bind(null,e,t,n),t.then(e,e))}function e0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Me&n)===n&&(Ke===4||Ke===3&&(Me&62914560)===Me&&300>Lt()-gs?!(Qe&2)&&Tl(e,0):vs|=n,El===Me&&(El=0)),dn(e)}function km(e,t){t===0&&(t=Et()),e=Kn(e,t),e!==null&&(Tt(e,t),dn(e))}function t0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),km(e,n)}function n0(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),km(e,n)}function a0(e,t){return Ka(e,t)}var Xr=null,Cl=null,Rs=!1,Qr=!1,Cs=!1,Ga=0;function dn(e){e!==Cl&&e.next===null&&(Cl===null?Xr=Cl=e:Cl=Cl.next=e),Qr=!0,Rs||(Rs=!0,i0(l0))}function Ni(e,t){if(!Cs&&Qr){Cs=!0;do for(var n=!1,a=Xr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var f=a.suspendedLanes,g=a.pingedLanes;s=(1<<31-gt(42|e)+1)-1,s&=i&~(f&~g),s=s&201326677?s&201326677|1:s?s|2:0}s!==0&&(n=!0,Zm(a,s))}else s=Me,s=Wa(a,a===Ye?s:0),!(s&3)||be(a,s)||(n=!0,Zm(a,s));a=a.next}while(n);Cs=!1}}function l0(){Qr=Rs=!1;var e=0;Ga!==0&&(m0()&&(e=Ga),Ga=0);for(var t=Lt(),n=null,a=Xr;a!==null;){var i=a.next,s=Xm(a,t);s===0?(a.next=null,n===null?Xr=i:n.next=i,i===null&&(Cl=n)):(n=a,(e!==0||s&3)&&(Qr=!0)),a=i}Ni(e)}function Xm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0"u"?null:document;function oh(e,t,n){var a=Ml;if(a&&typeof t=="string"&&t){var i=Vt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),rh.has(i)||(rh.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),ct(t,"link",e),at(t),a.head.appendChild(t)))}}function x0(e){Yn.D(e),oh("dns-prefetch",e,null)}function w0(e,t){Yn.C(e,t),oh("preconnect",e,t)}function E0(e,t,n){Yn.L(e,t,n);var a=Ml;if(a&&e&&t){var i='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Vt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Vt(n.imageSizes)+'"]')):i+='[href="'+Vt(e)+'"]';var s=i;switch(t){case"style":s=Nl(e);break;case"script":s=_l(e)}Wt.has(s)||(e=ae({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Wt.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zi(s))||t==="script"&&a.querySelector(ji(s))||(t=a.createElement("link"),ct(t,"link",e),at(t),a.head.appendChild(t)))}}function T0(e,t){Yn.m(e,t);var n=Ml;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Vt(a)+'"][href="'+Vt(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=_l(e)}if(!Wt.has(s)&&(e=ae({rel:"modulepreload",href:e},t),Wt.set(s,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ji(s)))return}a=n.createElement("link"),ct(a,"link",e),at(a),n.head.appendChild(a)}}}function A0(e,t,n){Yn.S(e,t,n);var a=Ml;if(a&&e){var i=Ia(a).hoistableStyles,s=Nl(e);t=t||"default";var f=i.get(s);if(!f){var g={loading:0,preload:null};if(f=a.querySelector(zi(s)))g.loading=5;else{e=ae({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Wt.get(s))&&qs(e,n);var E=f=a.createElement("link");at(E),ct(E,"link",e),E._p=new Promise(function(M,G){E.onload=M,E.onerror=G}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,$r(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:g},i.set(s,f)}}}function R0(e,t){Yn.X(e,t);var n=Ml;if(n&&e){var a=Ia(n).hoistableScripts,i=_l(e),s=a.get(i);s||(s=n.querySelector(ji(i)),s||(e=ae({src:e,async:!0},t),(t=Wt.get(i))&&Gs(e,t),s=n.createElement("script"),at(s),ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function C0(e,t){Yn.M(e,t);var n=Ml;if(n&&e){var a=Ia(n).hoistableScripts,i=_l(e),s=a.get(i);s||(s=n.querySelector(ji(i)),s||(e=ae({src:e,async:!0,type:"module"},t),(t=Wt.get(i))&&Gs(e,t),s=n.createElement("script"),at(s),ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function uh(e,t,n,a){var i=(i=ke.current)?Wr(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Nl(n.href),n=Ia(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Nl(n.href);var s=Ia(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(zi(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Wt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Wt.set(e,n),s||O0(i,e,n,f.state))),t&&a===null)throw Error(u(528,""));return f}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_l(n),n=Ia(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nl(e){return'href="'+Vt(e)+'"'}function zi(e){return'link[rel="stylesheet"]['+e+"]"}function sh(e){return ae({},e,{"data-precedence":e.precedence,precedence:null})}function O0(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",n),at(t),e.head.appendChild(t))}function _l(e){return'[src="'+Vt(e)+'"]'}function ji(e){return"script[async]"+e}function ch(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Vt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var i=ae({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ct(a,"style",i),$r(a,n.precedence,e),t.instance=a;case"stylesheet":i=Nl(n.href);var s=e.querySelector(zi(i));if(s)return t.state.loading|=4,t.instance=s,at(s),s;a=sh(n),(i=Wt.get(i))&&qs(a,i),s=(e.ownerDocument||e).createElement("link"),at(s);var f=s;return f._p=new Promise(function(g,E){f.onload=g,f.onerror=E}),ct(s,"link",a),t.state.loading|=4,$r(s,n.precedence,e),t.instance=s;case"script":return s=_l(n.src),(i=e.querySelector(ji(s)))?(t.instance=i,at(i),i):(a=n,(i=Wt.get(s))&&(a=ae({},n),Gs(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),ct(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,$r(a,n.precedence,e));return t.instance}function $r(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,f=0;f title"):null)}function M0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function mh(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Hi=null;function N0(){}function _0(e,t,n){if(Hi===null)throw Error(u(475));var a=Hi;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=Nl(n.href),s=e.querySelector(zi(i));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Ir.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=s,at(s);return}s=e.ownerDocument||e,n=sh(n),(i=Wt.get(i))&&qs(n,i),s=s.createElement("link"),at(s);var f=s;f._p=new Promise(function(g,E){f.onload=g,f.onerror=E}),ct(s,"link",n),t.instance=s}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(a.count++,t=Ir.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function D0(){if(Hi===null)throw Error(u(475));var e=Hi;return e.stylesheets&&e.count===0&&ks(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Fs.exports=W0(),Fs.exports}var F0=$0();/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mv=(...l)=>l.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim();/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var eb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=b.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:c="",children:d,iconNode:m,...p},h)=>b.createElement("svg",{ref:h,...eb,width:r,height:r,stroke:l,strokeWidth:u?Number(o)*24/Number(r):o,className:mv("lucide",c),...p},[...m.map(([v,S])=>b.createElement(v,S)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ya=(l,r)=>{const o=b.forwardRef(({className:u,...c},d)=>b.createElement(tb,{ref:d,iconNode:r,className:mv(`lucide-${I0(l)}`,u),...c}));return o.displayName=`${l}`,o};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]],ab=ya("AudioWaveform",nb);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hv=ya("Check",lb);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vv=ya("ChevronDown",ib);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ob=ya("ChevronUp",rb);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],sb=ya("Copy",ub);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],fb=ya("Download",cb);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],mb=ya("Pause",db);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],vb=ya("Play",hb);function pv(l){var r,o,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(r=0;r{const r=yb(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:m=>{const p=m.split(zc);return p[0]===""&&p.length!==1&&p.shift(),yv(p,r)||gb(m)},getConflictingClassGroupIds:(m,p)=>{const h=o[m]||[];return p&&u[m]?[...h,...u[m]]:h}}},yv=(l,r)=>{if(l.length===0)return r.classGroupId;const o=l[0],u=r.nextPart.get(o),c=u?yv(l.slice(1),u):void 0;if(c)return c;if(r.validators.length===0)return;const d=l.join(zc);return r.validators.find(({validator:m})=>m(d))?.classGroupId},Hh=/^\[(.+)\]$/,gb=l=>{if(Hh.test(l)){const r=Hh.exec(l)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},yb=l=>{const{theme:r,classGroups:o}=l,u={nextPart:new Map,validators:[]};for(const c in o)dc(o[c],u,c,r);return u},dc=(l,r,o,u)=>{l.forEach(c=>{if(typeof c=="string"){const d=c===""?r:Uh(r,c);d.classGroupId=o;return}if(typeof c=="function"){if(bb(c)){dc(c(u),r,o,u);return}r.validators.push({validator:c,classGroupId:o});return}Object.entries(c).forEach(([d,m])=>{dc(m,Uh(r,d),o,u)})})},Uh=(l,r)=>{let o=l;return r.split(zc).forEach(u=>{o.nextPart.has(u)||o.nextPart.set(u,{nextPart:new Map,validators:[]}),o=o.nextPart.get(u)}),o},bb=l=>l.isThemeGetter,Sb=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,u=new Map;const c=(d,m)=>{o.set(d,m),r++,r>l&&(r=0,u=o,o=new Map)};return{get(d){let m=o.get(d);if(m!==void 0)return m;if((m=u.get(d))!==void 0)return c(d,m),m},set(d,m){o.has(d)?o.set(d,m):c(d,m)}}},mc="!",hc=":",xb=hc.length,wb=l=>{const{prefix:r,experimentalParseClassName:o}=l;let u=c=>{const d=[];let m=0,p=0,h=0,v;for(let N=0;Nh?v-h:void 0;return{modifiers:d,hasImportantModifier:A,baseClassName:w,maybePostfixModifierPosition:y}};if(r){const c=r+hc,d=u;u=m=>m.startsWith(c)?d(m.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(o){const c=u;u=d=>o({className:d,parseClassName:c})}return u},Eb=l=>l.endsWith(mc)?l.substring(0,l.length-1):l.startsWith(mc)?l.substring(1):l,Tb=l=>{const r=Object.fromEntries(l.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let d=[];return u.forEach(m=>{m[0]==="["||r[m]?(c.push(...d.sort(),m),d=[]):d.push(m)}),c.push(...d.sort()),c}},Ab=l=>({cache:Sb(l.cacheSize),parseClassName:wb(l),sortModifiers:Tb(l),...pb(l)}),Rb=/\s+/,Cb=(l,r)=>{const{parseClassName:o,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:d}=r,m=[],p=l.trim().split(Rb);let h="";for(let v=p.length-1;v>=0;v-=1){const S=p[v],{isExternal:w,modifiers:A,hasImportantModifier:y,baseClassName:N,maybePostfixModifierPosition:x}=o(S);if(w){h=S+(h.length>0?" "+h:h);continue}let C=!!x,D=u(C?N.substring(0,x):N);if(!D){if(!C){h=S+(h.length>0?" "+h:h);continue}if(D=u(N),!D){h=S+(h.length>0?" "+h:h);continue}C=!1}const j=d(A).join(":"),U=y?j+mc:j,q=U+D;if(m.includes(q))continue;m.push(q);const B=c(D,C);for(let F=0;F0?" "+h:h)}return h};function Ob(){let l=0,r,o,u="";for(;l{if(typeof l=="string")return l;let r,o="";for(let u=0;uw(S),l());return o=Ab(v),u=o.cache.get,c=o.cache.set,d=p,p(h)}function p(h){const v=u(h);if(v)return v;const S=Cb(h,o);return c(h,S),S}return function(){return d(Ob.apply(null,arguments))}}const ot=l=>{const r=o=>o[l]||[];return r.isThemeGetter=!0,r},Sv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nb=/^\d+\/\d+$/,_b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Db=/\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$/,zb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dl=l=>Nb.test(l),Ce=l=>!!l&&!Number.isNaN(Number(l)),ka=l=>!!l&&Number.isInteger(Number(l)),Bh=l=>l.endsWith("%")&&Ce(l.slice(0,-1)),ma=l=>_b.test(l),Ub=()=>!0,Bb=l=>Db.test(l)&&!zb.test(l),jc=()=>!1,Lb=l=>jb.test(l),Yb=l=>Hb.test(l),Vb=l=>!ie(l)&&!re(l),qb=l=>ql(l,Tv,jc),ie=l=>Sv.test(l),Xa=l=>ql(l,Av,Bb),nc=l=>ql(l,Fb,Ce),Gb=l=>ql(l,wv,jc),kb=l=>ql(l,Ev,Yb),Xb=l=>ql(l,jc,Lb),re=l=>xv.test(l),uo=l=>Gl(l,Av),Qb=l=>Gl(l,Ib),Zb=l=>Gl(l,wv),Kb=l=>Gl(l,Tv),Pb=l=>Gl(l,Ev),Jb=l=>Gl(l,e1,!0),ql=(l,r,o)=>{const u=Sv.exec(l);return u?u[1]?r(u[1]):o(u[2]):!1},Gl=(l,r,o=!1)=>{const u=xv.exec(l);return u?u[1]?r(u[1]):o:!1},wv=l=>l==="position",Wb=new Set(["image","url"]),Ev=l=>Wb.has(l),$b=new Set(["length","size","percentage"]),Tv=l=>$b.has(l),Av=l=>l==="length",Fb=l=>l==="number",Ib=l=>l==="family-name",e1=l=>l==="shadow",t1=()=>{const l=ot("color"),r=ot("font"),o=ot("text"),u=ot("font-weight"),c=ot("tracking"),d=ot("leading"),m=ot("breakpoint"),p=ot("container"),h=ot("spacing"),v=ot("radius"),S=ot("shadow"),w=ot("inset-shadow"),A=ot("drop-shadow"),y=ot("blur"),N=ot("perspective"),x=ot("aspect"),C=ot("ease"),D=ot("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],F=()=>[Dl,"px","full","auto",re,ie,h],P=()=>[ka,"none","subgrid",re,ie],de=()=>["auto",{span:["full",ka,re,ie]},re,ie],J=()=>[ka,"auto",re,ie],ae=()=>["auto","min","max","fr",re,ie],oe=()=>[re,ie,h],le=()=>["start","end","center","between","around","evenly","stretch","baseline"],ue=()=>["start","end","center","stretch"],W=()=>[re,ie,h],fe=()=>["px",...W()],L=()=>["px","auto",...W()],K=()=>[Dl,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",re,ie,h],Y=()=>[l,re,ie],$=()=>[Bh,Xa],T=()=>["","none","full",v,re,ie],k=()=>["",Ce,uo,Xa],ee=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["","none",y,re,ie],me=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re,ie],he=()=>["none",Ce,re,ie],I=()=>["none",Ce,re,ie],ce=()=>[Ce,re,ie],Se=()=>[Dl,"full","px",re,ie,h];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ma],breakpoint:[ma],color:[Ub],container:[ma],"drop-shadow":[ma],ease:["in","out","in-out"],font:[Vb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ma],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ma],shadow:[ma],spacing:[Ce],text:[ma],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dl,ie,re,x]}],container:["container"],columns:[{columns:[Ce,ie,re,p]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...U(),ie,re]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[ka,"auto",re,ie]}],basis:[{basis:[Dl,"full","auto",re,ie,p,h]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,Dl,"auto","initial","none",ie]}],grow:[{grow:["",Ce,re,ie]}],shrink:[{shrink:["",Ce,re,ie]}],order:[{order:[ka,"first","last","none",re,ie]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:oe()}],"gap-x":[{"gap-x":oe()}],"gap-y":[{"gap-y":oe()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ue(),"baseline"]}],"align-self":[{self:["auto",...ue(),"baseline"]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:fe()}],px:[{px:fe()}],py:[{py:fe()}],ps:[{ps:fe()}],pe:[{pe:fe()}],pt:[{pt:fe()}],pr:[{pr:fe()}],pb:[{pb:fe()}],pl:[{pl:fe()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[p,"screen",...K()]}],"min-w":[{"min-w":[p,"screen","none",...K()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[m]},...K()]}],h:[{h:["screen",...K()]}],"min-h":[{"min-h":["screen","none",...K()]}],"max-h":[{"max-h":["screen",...K()]}],"font-size":[{text:["base",o,uo,Xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,re,nc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bh,ie]}],"font-family":[{font:[Qb,ie,r]}],"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:[c,re,ie]}],"line-clamp":[{"line-clamp":[Ce,"none",re,nc]}],leading:[{leading:[re,ie,d,h]}],"list-image":[{"list-image":["none",re,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",re,Xa]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ce,"auto",re,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...W()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),Zb,Gb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Kb,qb]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ka,re,ie],radial:["",re,ie],conic:[ka,re,ie]},Pb,kb]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,re,ie]}],"outline-w":[{outline:["",Ce,uo,Xa]}],"outline-color":[{outline:[l]}],shadow:[{shadow:["","none",S,Jb,Xb]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",re,ie,w]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ce,Xa]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":Y()}],opacity:[{opacity:[Ce,re,ie]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none",re,ie]}],blur:[{blur:Z()}],brightness:[{brightness:[Ce,re,ie]}],contrast:[{contrast:[Ce,re,ie]}],"drop-shadow":[{"drop-shadow":["","none",A,re,ie]}],grayscale:[{grayscale:["",Ce,re,ie]}],"hue-rotate":[{"hue-rotate":[Ce,re,ie]}],invert:[{invert:["",Ce,re,ie]}],saturate:[{saturate:[Ce,re,ie]}],sepia:[{sepia:["",Ce,re,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ie]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,re,ie]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,re,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,re,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,re,ie]}],"backdrop-invert":[{"backdrop-invert":["",Ce,re,ie]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,re,ie]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,re,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,re,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",re,ie]}],ease:[{ease:["linear","initial",C,re,ie]}],delay:[{delay:[Ce,re,ie]}],animate:[{animate:["none",D,re,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,re,ie]}],"perspective-origin":[{"perspective-origin":me()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[re,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:me()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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",re,ie]}],"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":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",re,ie]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ce,uo,Xa,nc]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},n1=Mb(t1);function We(...l){return n1(gv(l))}function Lh(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Rv(...l){return r=>{let o=!1;const u=l.map(c=>{const d=Lh(c,r);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c{const{children:o,...u}=l,c=b.Children.toArray(o),d=c.find(a1);if(d){const m=d.props.children,p=c.map(h=>h===d?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:h);return R.jsx(vc,{...u,ref:r,children:b.isValidElement(m)?b.cloneElement(m,void 0,p):null})}return R.jsx(vc,{...u,ref:r,children:o})});Ll.displayName="Slot";var vc=b.forwardRef((l,r)=>{const{children:o,...u}=l;if(b.isValidElement(o)){const c=i1(o),d=l1(u,o.props);return o.type!==b.Fragment&&(d.ref=r?Rv(r,c):c),b.cloneElement(o,d)}return b.Children.count(o)>1?b.Children.only(null):null});vc.displayName="SlotClone";var Cv=({children:l})=>R.jsx(R.Fragment,{children:l});function a1(l){return b.isValidElement(l)&&l.type===Cv}function l1(l,r){const o={...r};for(const u in r){const c=l[u],d=r[u];/^on[A-Z]/.test(u)?c&&d?o[u]=(...p)=>{d(...p),c(...p)}:c&&(o[u]=c):u==="style"?o[u]={...c,...d}:u==="className"&&(o[u]=[c,d].filter(Boolean).join(" "))}return{...l,...o}}function i1(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}const Yh=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Vh=gv,r1=(l,r)=>o=>{var u;if(r?.variants==null)return Vh(l,o?.class,o?.className);const{variants:c,defaultVariants:d}=r,m=Object.keys(c).map(v=>{const S=o?.[v],w=d?.[v];if(S===null)return null;const A=Yh(S)||Yh(w);return c[v][A]}),p=o&&Object.entries(o).reduce((v,S)=>{let[w,A]=S;return A===void 0||(v[w]=A),v},{}),h=r==null||(u=r.compoundVariants)===null||u===void 0?void 0:u.reduce((v,S)=>{let{class:w,className:A,...y}=S;return Object.entries(y).every(N=>{let[x,C]=N;return Array.isArray(C)?C.includes({...d,...p}[x]):{...d,...p}[x]===C})?[...v,w,A]:v},[]);return Vh(l,m,h,o?.class,o?.className)},o1=r1("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-6",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),go=b.forwardRef(({className:l,variant:r,size:o,asChild:u=!1,...c},d)=>{const m=u?Ll:"button";return R.jsx(m,{className:We(o1({variant:r,size:o,className:l})),ref:d,...c})});go.displayName="Button";const Ov=b.forwardRef(({className:l,...r},o)=>R.jsx("textarea",{className:We("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 text-lg",l),ref:o,...r}));Ov.displayName="Textarea";const Mv=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));Mv.displayName="Card";const u1=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("flex flex-col space-y-1.5 p-6",l),...r}));u1.displayName="CardHeader";const s1=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("text-2xl font-semibold leading-none tracking-tight",l),...r}));s1.displayName="CardTitle";const c1=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("text-sm text-muted-foreground",l),...r}));c1.displayName="CardDescription";const Nv=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("p-6",l),...r}));Nv.displayName="CardContent";const f1=b.forwardRef(({className:l,...r},o)=>R.jsx("div",{ref:o,className:We("flex items-center p-6 pt-0",l),...r}));f1.displayName="CardFooter";var Zi=dv();const _v=fv(Zi);var d1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],qe=d1.reduce((l,r)=>{const o=b.forwardRef((u,c)=>{const{asChild:d,...m}=u,p=d?Ll:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(p,{...m,ref:c})});return o.displayName=`Primitive.${r}`,{...l,[r]:o}},{});function m1(l,r){l&&Zi.flushSync(()=>l.dispatchEvent(r))}var h1="Separator",qh="horizontal",v1=["horizontal","vertical"],Dv=b.forwardRef((l,r)=>{const{decorative:o,orientation:u=qh,...c}=l,d=p1(u)?u:qh,p=o?{role:"none"}:{"aria-orientation":d==="vertical"?d:void 0,role:"separator"};return R.jsx(qe.div,{"data-orientation":d,...p,...c,ref:r})});Dv.displayName=h1;function p1(l){return v1.includes(l)}var g1=Dv;function y1({className:l,orientation:r="horizontal",decorative:o=!0,...u}){return R.jsx(g1,{"data-slot":"separator-root",decorative:o,orientation:r,className:We("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...u})}var b1=(l,r,o,u,c,d,m,p)=>{let h=document.documentElement,v=["light","dark"];function S(y){(Array.isArray(l)?l:[l]).forEach(N=>{let x=N==="class",C=x&&d?c.map(D=>d[D]||D):c;x?(h.classList.remove(...C),h.classList.add(y)):h.setAttribute(N,y)}),w(y)}function w(y){p&&v.includes(y)&&(h.style.colorScheme=y)}function A(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)S(u);else try{let y=localStorage.getItem(r)||o,N=m&&y==="system"?A():y;S(N)}catch{}},S1=b.createContext(void 0),x1={setTheme:l=>{},themes:[]},w1=()=>{var l;return(l=b.useContext(S1))!=null?l:x1};b.memo(({forcedTheme:l,storageKey:r,attribute:o,enableSystem:u,enableColorScheme:c,defaultTheme:d,value:m,themes:p,nonce:h,scriptProps:v})=>{let S=JSON.stringify([o,r,d,l,p,m,u,c]).slice(1,-1);return b.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${b1.toString()})(${S})`}})});var E1=l=>{switch(l){case"success":return R1;case"info":return O1;case"warning":return C1;case"error":return M1;default:return null}},T1=Array(12).fill(0),A1=({visible:l,className:r})=>ne.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":l},ne.createElement("div",{className:"sonner-spinner"},T1.map((o,u)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),R1=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),C1=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.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"})),O1=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),M1=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),N1=ne.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"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_1=()=>{let[l,r]=ne.useState(document.hidden);return ne.useEffect(()=>{let o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),l},pc=1,D1=class{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{let r=this.subscribers.indexOf(l);this.subscribers.splice(r,1)}),this.publish=l=>{this.subscribers.forEach(r=>r(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var r;let{message:o,...u}=l,c=typeof l?.id=="number"||((r=l.id)==null?void 0:r.length)>0?l.id:pc++,d=this.toasts.find(p=>p.id===c),m=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...l,id:c,title:o}),{...p,...l,id:c,dismissible:m,title:o}):p):this.addToast({title:o,...u,dismissible:m,id:c}),c},this.dismiss=l=>(this.dismissedToasts.add(l),l||this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:l,dismiss:!0})),l),this.message=(l,r)=>this.create({...r,message:l}),this.error=(l,r)=>this.create({...r,message:l,type:"error"}),this.success=(l,r)=>this.create({...r,type:"success",message:l}),this.info=(l,r)=>this.create({...r,type:"info",message:l}),this.warning=(l,r)=>this.create({...r,type:"warning",message:l}),this.loading=(l,r)=>this.create({...r,type:"loading",message:l}),this.promise=(l,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:l,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let u=l instanceof Promise?l:l(),c=o!==void 0,d,m=u.then(async h=>{if(d=["resolve",h],ne.isValidElement(h))c=!1,this.create({id:o,type:"default",message:h});else if(j1(h)&&!h.ok){c=!1;let v=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,S=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description;this.create({id:o,type:"error",message:v,description:S})}else if(r.success!==void 0){c=!1;let v=typeof r.success=="function"?await r.success(h):r.success,S=typeof r.description=="function"?await r.description(h):r.description;this.create({id:o,type:"success",message:v,description:S})}}).catch(async h=>{if(d=["reject",h],r.error!==void 0){c=!1;let v=typeof r.error=="function"?await r.error(h):r.error,S=typeof r.description=="function"?await r.description(h):r.description;this.create({id:o,type:"error",message:v,description:S})}}).finally(()=>{var h;c&&(this.dismiss(o),o=void 0),(h=r.finally)==null||h.call(r)}),p=()=>new Promise((h,v)=>m.then(()=>d[0]==="reject"?v(d[1]):h(d[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(l,r)=>{let o=r?.id||pc++;return this.create({jsx:l(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Mt=new D1,z1=(l,r)=>{let o=r?.id||pc++;return Mt.addToast({title:l,...r,id:o}),o},j1=l=>l&&typeof l=="object"&&"ok"in l&&typeof l.ok=="boolean"&&"status"in l&&typeof l.status=="number",H1=z1,U1=()=>Mt.toasts,B1=()=>Mt.getActiveToasts(),Gh=Object.assign(H1,{success:Mt.success,info:Mt.info,warning:Mt.warning,error:Mt.error,custom:Mt.custom,message:Mt.message,promise:Mt.promise,dismiss:Mt.dismiss,loading:Mt.loading},{getHistory:U1,getToasts:B1});function L1(l,{insertAt:r}={}){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",r==="top"&&o.firstChild?o.insertBefore(u,o.firstChild):o.appendChild(u),u.styleSheet?u.styleSheet.cssText=l:u.appendChild(document.createTextNode(l))}L1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 so(l){return l.label!==void 0}var Y1=3,V1="32px",q1="16px",kh=4e3,G1=356,k1=14,X1=20,Q1=200;function nn(...l){return l.filter(Boolean).join(" ")}function Z1(l){let[r,o]=l.split("-"),u=[];return r&&u.push(r),o&&u.push(o),u}var K1=l=>{var r,o,u,c,d,m,p,h,v,S,w;let{invert:A,toast:y,unstyled:N,interacting:x,setHeights:C,visibleToasts:D,heights:j,index:U,toasts:q,expanded:B,removeToast:F,defaultRichColors:P,closeButton:de,style:J,cancelButtonStyle:ae,actionButtonStyle:oe,className:le="",descriptionClassName:ue="",duration:W,position:fe,gap:L,loadingIcon:K,expandByDefault:Y,classNames:$,icons:T,closeButtonAriaLabel:k="Close toast",pauseWhenPageIsHidden:ee}=l,[te,Z]=ne.useState(null),[me,he]=ne.useState(null),[I,ce]=ne.useState(!1),[Se,ge]=ne.useState(!1),[we,ze]=ne.useState(!1),[ke,wt]=ne.useState(!1),[on,Nt]=ne.useState(!1),[gn,kn]=ne.useState(0),[Kl,Ka]=ne.useState(0),yn=ne.useRef(y.duration||W||kh),Wi=ne.useRef(null),bn=ne.useRef(null),Lt=U===0,Go=U+1<=D,vt=y.type,Sn=y.dismissible!==!1,Pa=y.className||"",ko=y.descriptionClassName||"",xa=ne.useMemo(()=>j.findIndex(be=>be.toastId===y.id)||0,[j,y.id]),Xo=ne.useMemo(()=>{var be;return(be=y.closeButton)!=null?be:de},[y.closeButton,de]),$i=ne.useMemo(()=>y.duration||W||kh,[y.duration,W]),xn=ne.useRef(0),$e=ne.useRef(0),Fi=ne.useRef(0),pt=ne.useRef(null),[gt,Qo]=fe.split("-"),Ii=ne.useMemo(()=>j.reduce((be,je,Be)=>Be>=xa?be:be+je.height,0),[j,xa]),er=_1(),Ja=y.invert||A,Xn=vt==="loading";$e.current=ne.useMemo(()=>xa*L+Ii,[xa,Ii]),ne.useEffect(()=>{yn.current=$i},[$i]),ne.useEffect(()=>{ce(!0)},[]),ne.useEffect(()=>{let be=bn.current;if(be){let je=be.getBoundingClientRect().height;return Ka(je),C(Be=>[{toastId:y.id,height:je,position:y.position},...Be]),()=>C(Be=>Be.filter(Et=>Et.toastId!==y.id))}},[C,y.id]),ne.useLayoutEffect(()=>{if(!I)return;let be=bn.current,je=be.style.height;be.style.height="auto";let Be=be.getBoundingClientRect().height;be.style.height=je,Ka(Be),C(Et=>Et.find(yt=>yt.toastId===y.id)?Et.map(yt=>yt.toastId===y.id?{...yt,height:Be}:yt):[{toastId:y.id,height:Be,position:y.position},...Et])},[I,y.title,y.description,C,y.id]);let ft=ne.useCallback(()=>{ge(!0),kn($e.current),C(be=>be.filter(je=>je.toastId!==y.id)),setTimeout(()=>{F(y)},Q1)},[y,F,C,$e]);ne.useEffect(()=>{if(y.promise&&vt==="loading"||y.duration===1/0||y.type==="loading")return;let be;return B||x||ee&&er?(()=>{if(Fi.current{var je;(je=y.onAutoClose)==null||je.call(y,y),ft()},yn.current)),()=>clearTimeout(be)},[B,x,y,vt,ee,er,ft]),ne.useEffect(()=>{y.delete&&ft()},[ft,y.delete]);function Wa(){var be,je,Be;return T!=null&&T.loading?ne.createElement("div",{className:nn($?.loader,(be=y?.classNames)==null?void 0:be.loader,"sonner-loader"),"data-visible":vt==="loading"},T.loading):K?ne.createElement("div",{className:nn($?.loader,(je=y?.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":vt==="loading"},K):ne.createElement(A1,{className:nn($?.loader,(Be=y?.classNames)==null?void 0:Be.loader),visible:vt==="loading"})}return ne.createElement("li",{tabIndex:0,ref:bn,className:nn(le,Pa,$?.toast,(r=y?.classNames)==null?void 0:r.toast,$?.default,$?.[vt],(o=y?.classNames)==null?void 0:o[vt]),"data-sonner-toast":"","data-rich-colors":(u=y.richColors)!=null?u:P,"data-styled":!(y.jsx||y.unstyled||N),"data-mounted":I,"data-promise":!!y.promise,"data-swiped":on,"data-removed":Se,"data-visible":Go,"data-y-position":gt,"data-x-position":Qo,"data-index":U,"data-front":Lt,"data-swiping":we,"data-dismissible":Sn,"data-type":vt,"data-invert":Ja,"data-swipe-out":ke,"data-swipe-direction":me,"data-expanded":!!(B||Y&&I),style:{"--index":U,"--toasts-before":U,"--z-index":q.length-U,"--offset":`${Se?gn:$e.current}px`,"--initial-height":Y?"auto":`${Kl}px`,...J,...y.style},onDragEnd:()=>{ze(!1),Z(null),pt.current=null},onPointerDown:be=>{Xn||!Sn||(Wi.current=new Date,kn($e.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(ze(!0),pt.current={x:be.clientX,y:be.clientY}))},onPointerUp:()=>{var be,je,Be,Et;if(ke||!Sn)return;pt.current=null;let yt=Number(((be=bn.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((je=bn.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),wn=new Date().getTime()-((Be=Wi.current)==null?void 0:Be.getTime()),At=te==="x"?yt:Tt,$t=Math.abs(At)/wn;if(Math.abs(At)>=X1||$t>.11){kn($e.current),(Et=y.onDismiss)==null||Et.call(y,y),he(te==="x"?yt>0?"right":"left":Tt>0?"down":"up"),ft(),wt(!0),Nt(!1);return}ze(!1),Z(null)},onPointerMove:be=>{var je,Be,Et,yt;if(!pt.current||!Sn||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let Tt=be.clientY-pt.current.y,wn=be.clientX-pt.current.x,At=(Be=l.swipeDirections)!=null?Be:Z1(fe);!te&&(Math.abs(wn)>1||Math.abs(Tt)>1)&&Z(Math.abs(wn)>Math.abs(Tt)?"x":"y");let $t={x:0,y:0};te==="y"?(At.includes("top")||At.includes("bottom"))&&(At.includes("top")&&Tt<0||At.includes("bottom")&&Tt>0)&&($t.y=Tt):te==="x"&&(At.includes("left")||At.includes("right"))&&(At.includes("left")&&wn<0||At.includes("right")&&wn>0)&&($t.x=wn),(Math.abs($t.x)>0||Math.abs($t.y)>0)&&Nt(!0),(Et=bn.current)==null||Et.style.setProperty("--swipe-amount-x",`${$t.x}px`),(yt=bn.current)==null||yt.style.setProperty("--swipe-amount-y",`${$t.y}px`)}},Xo&&!y.jsx?ne.createElement("button",{"aria-label":k,"data-disabled":Xn,"data-close-button":!0,onClick:Xn||!Sn?()=>{}:()=>{var be;ft(),(be=y.onDismiss)==null||be.call(y,y)},className:nn($?.closeButton,(c=y?.classNames)==null?void 0:c.closeButton)},(d=T?.close)!=null?d:N1):null,y.jsx||b.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:ne.createElement(ne.Fragment,null,vt||y.icon||y.promise?ne.createElement("div",{"data-icon":"",className:nn($?.icon,(m=y?.classNames)==null?void 0:m.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Wa():null,y.type!=="loading"?y.icon||T?.[vt]||E1(vt):null):null,ne.createElement("div",{"data-content":"",className:nn($?.content,(p=y?.classNames)==null?void 0:p.content)},ne.createElement("div",{"data-title":"",className:nn($?.title,(h=y?.classNames)==null?void 0:h.title)},typeof y.title=="function"?y.title():y.title),y.description?ne.createElement("div",{"data-description":"",className:nn(ue,ko,$?.description,(v=y?.classNames)==null?void 0:v.description)},typeof y.description=="function"?y.description():y.description):null),b.isValidElement(y.cancel)?y.cancel:y.cancel&&so(y.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||ae,onClick:be=>{var je,Be;so(y.cancel)&&Sn&&((Be=(je=y.cancel).onClick)==null||Be.call(je,be),ft())},className:nn($?.cancelButton,(S=y?.classNames)==null?void 0:S.cancelButton)},y.cancel.label):null,b.isValidElement(y.action)?y.action:y.action&&so(y.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||oe,onClick:be=>{var je,Be;so(y.action)&&((Be=(je=y.action).onClick)==null||Be.call(je,be),!be.defaultPrevented&&ft())},className:nn($?.actionButton,(w=y?.classNames)==null?void 0:w.actionButton)},y.action.label):null))};function Xh(){if(typeof window>"u"||typeof document>"u")return"ltr";let l=document.documentElement.getAttribute("dir");return l==="auto"||!l?window.getComputedStyle(document.documentElement).direction:l}function P1(l,r){let o={};return[l,r].forEach((u,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",p=d?q1:V1;function h(v){["top","right","bottom","left"].forEach(S=>{o[`${m}-${S}`]=typeof v=="number"?`${v}px`:v})}typeof u=="number"||typeof u=="string"?h(u):typeof u=="object"?["top","right","bottom","left"].forEach(v=>{u[v]===void 0?o[`${m}-${v}`]=p:o[`${m}-${v}`]=typeof u[v]=="number"?`${u[v]}px`:u[v]}):h(p)}),o}var J1=b.forwardRef(function(l,r){let{invert:o,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:p,offset:h,mobileOffset:v,theme:S="light",richColors:w,duration:A,style:y,visibleToasts:N=Y1,toastOptions:x,dir:C=Xh(),gap:D=k1,loadingIcon:j,icons:U,containerAriaLabel:q="Notifications",pauseWhenPageIsHidden:B}=l,[F,P]=ne.useState([]),de=ne.useMemo(()=>Array.from(new Set([u].concat(F.filter(ee=>ee.position).map(ee=>ee.position)))),[F,u]),[J,ae]=ne.useState([]),[oe,le]=ne.useState(!1),[ue,W]=ne.useState(!1),[fe,L]=ne.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=ne.useRef(null),Y=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=ne.useRef(null),T=ne.useRef(!1),k=ne.useCallback(ee=>{P(te=>{var Z;return(Z=te.find(me=>me.id===ee.id))!=null&&Z.delete||Mt.dismiss(ee.id),te.filter(({id:me})=>me!==ee.id)})},[]);return ne.useEffect(()=>Mt.subscribe(ee=>{if(ee.dismiss){P(te=>te.map(Z=>Z.id===ee.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{_v.flushSync(()=>{P(te=>{let Z=te.findIndex(me=>me.id===ee.id);return Z!==-1?[...te.slice(0,Z),{...te[Z],...ee},...te.slice(Z+1)]:[ee,...te]})})})}),[]),ne.useEffect(()=>{if(S!=="system"){L(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;let ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:te})=>{L(te?"dark":"light")})}catch{ee.addListener(({matches:Z})=>{try{L(Z?"dark":"light")}catch(me){console.error(me)}})}},[S]),ne.useEffect(()=>{F.length<=1&&le(!1)},[F]),ne.useEffect(()=>{let ee=te=>{var Z,me;c.every(he=>te[he]||te.code===he)&&(le(!0),(Z=K.current)==null||Z.focus()),te.code==="Escape"&&(document.activeElement===K.current||(me=K.current)!=null&&me.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[c]),ne.useEffect(()=>{if(K.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,T.current=!1)}},[K.current]),ne.createElement("section",{ref:r,"aria-label":`${q} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},de.map((ee,te)=>{var Z;let[me,he]=ee.split("-");return F.length?ne.createElement("ol",{key:ee,dir:C==="auto"?Xh():C,tabIndex:-1,ref:K,className:p,"data-sonner-toaster":!0,"data-theme":fe,"data-y-position":me,"data-lifted":oe&&F.length>1&&!d,"data-x-position":he,style:{"--front-toast-height":`${((Z=J[0])==null?void 0:Z.height)||0}px`,"--width":`${G1}px`,"--gap":`${D}px`,...y,...P1(h,v)},onBlur:I=>{T.current&&!I.currentTarget.contains(I.relatedTarget)&&(T.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:I=>{I.target instanceof HTMLElement&&I.target.dataset.dismissible==="false"||T.current||(T.current=!0,$.current=I.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{ue||le(!1)},onDragEnd:()=>le(!1),onPointerDown:I=>{I.target instanceof HTMLElement&&I.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},F.filter(I=>!I.position&&te===0||I.position===ee).map((I,ce)=>{var Se,ge;return ne.createElement(K1,{key:I.id,icons:U,index:ce,toast:I,defaultRichColors:w,duration:(Se=x?.duration)!=null?Se:A,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:o,visibleToasts:N,closeButton:(ge=x?.closeButton)!=null?ge:m,interacting:ue,position:ee,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,removeToast:k,toasts:F.filter(we=>we.position==I.position),heights:J.filter(we=>we.position==I.position),setHeights:ae,expandByDefault:d,gap:D,loadingIcon:j,expanded:oe,pauseWhenPageIsHidden:B,swipeDirections:l.swipeDirections})})):null}))});const W1=({...l})=>{const{theme:r="system"}=w1();return R.jsx(J1,{theme:r,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...l})};function $1({text:l}){const r=l.trim()?l.trim().split(/\s+/).length:0,o=l.length,u=[{label:"Words",value:r},{label:"Characters",value:o}];return R.jsx("div",{className:"flex gap-6 text-sm text-muted-foreground",children:u.map(({label:c,value:d})=>R.jsxs("div",{className:"flex gap-1.5",children:[R.jsxs("span",{className:"font-semibold",children:[c,":"]}),R.jsx("span",{className:"font-medium",children:d})]},c))})}function xo(l,[r,o]){return Math.min(o,Math.max(r,l))}function De(l,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(l?.(c),o===!1||!c.defaultPrevented)return r?.(c)}}function Ki(l,r=[]){let o=[];function u(d,m){const p=b.createContext(m),h=o.length;o=[...o,m];const v=w=>{const{scope:A,children:y,...N}=w,x=A?.[l]?.[h]||p,C=b.useMemo(()=>N,Object.values(N));return R.jsx(x.Provider,{value:C,children:y})};v.displayName=d+"Provider";function S(w,A){const y=A?.[l]?.[h]||p,N=b.useContext(y);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${w}\` must be used within \`${d}\``)}return[v,S]}const c=()=>{const d=o.map(m=>b.createContext(m));return function(p){const h=p?.[l]||d;return b.useMemo(()=>({[`__scope${l}`]:{...p,[l]:h}}),[p,h])}};return c.scopeName=l,[u,F1(c,...r)]}function F1(...l){const r=l[0];if(l.length===1)return r;const o=()=>{const u=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=u.reduce((p,{useScope:h,scopeName:v})=>{const w=h(d)[`__scope${v}`];return{...p,...w}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}function zv(l){const r=l+"CollectionProvider",[o,u]=Ki(r),[c,d]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=y=>{const{scope:N,children:x}=y,C=ne.useRef(null),D=ne.useRef(new Map).current;return R.jsx(c,{scope:N,itemMap:D,collectionRef:C,children:x})};m.displayName=r;const p=l+"CollectionSlot",h=ne.forwardRef((y,N)=>{const{scope:x,children:C}=y,D=d(p,x),j=Ge(N,D.collectionRef);return R.jsx(Ll,{ref:j,children:C})});h.displayName=p;const v=l+"CollectionItemSlot",S="data-radix-collection-item",w=ne.forwardRef((y,N)=>{const{scope:x,children:C,...D}=y,j=ne.useRef(null),U=Ge(N,j),q=d(v,x);return ne.useEffect(()=>(q.itemMap.set(j,{ref:j,...D}),()=>void q.itemMap.delete(j))),R.jsx(Ll,{[S]:"",ref:U,children:C})});w.displayName=v;function A(y){const N=d(l+"CollectionConsumer",y);return ne.useCallback(()=>{const C=N.collectionRef.current;if(!C)return[];const D=Array.from(C.querySelectorAll(`[${S}]`));return Array.from(N.itemMap.values()).sort((q,B)=>D.indexOf(q.ref.current)-D.indexOf(B.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:h,ItemSlot:w},A,u]}var I1=b.createContext(void 0);function jv(l){const r=b.useContext(I1);return l||r||"ltr"}function Vn(l){const r=b.useRef(l);return b.useEffect(()=>{r.current=l}),b.useMemo(()=>(...o)=>r.current?.(...o),[])}function eS(l,r=globalThis?.document){const o=Vn(l);b.useEffect(()=>{const u=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",u,{capture:!0}),()=>r.removeEventListener("keydown",u,{capture:!0})},[o,r])}var tS="DismissableLayer",gc="dismissableLayer.update",nS="dismissableLayer.pointerDownOutside",aS="dismissableLayer.focusOutside",Qh,Hv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hc=b.forwardRef((l,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...h}=l,v=b.useContext(Hv),[S,w]=b.useState(null),A=S?.ownerDocument??globalThis?.document,[,y]=b.useState({}),N=Ge(r,P=>w(P)),x=Array.from(v.layers),[C]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),D=x.indexOf(C),j=S?x.indexOf(S):-1,U=v.layersWithOutsidePointerEventsDisabled.size>0,q=j>=D,B=rS(P=>{const de=P.target,J=[...v.branches].some(ae=>ae.contains(de));!q||J||(c?.(P),m?.(P),P.defaultPrevented||p?.())},A),F=oS(P=>{const de=P.target;[...v.branches].some(ae=>ae.contains(de))||(d?.(P),m?.(P),P.defaultPrevented||p?.())},A);return eS(P=>{j===v.layers.size-1&&(u?.(P),!P.defaultPrevented&&p&&(P.preventDefault(),p()))},A),b.useEffect(()=>{if(S)return o&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Qh=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(S)),v.layers.add(S),Zh(),()=>{o&&v.layersWithOutsidePointerEventsDisabled.size===1&&(A.body.style.pointerEvents=Qh)}},[S,A,o,v]),b.useEffect(()=>()=>{S&&(v.layers.delete(S),v.layersWithOutsidePointerEventsDisabled.delete(S),Zh())},[S,v]),b.useEffect(()=>{const P=()=>y({});return document.addEventListener(gc,P),()=>document.removeEventListener(gc,P)},[]),R.jsx(qe.div,{...h,ref:N,style:{pointerEvents:U?q?"auto":"none":void 0,...l.style},onFocusCapture:De(l.onFocusCapture,F.onFocusCapture),onBlurCapture:De(l.onBlurCapture,F.onBlurCapture),onPointerDownCapture:De(l.onPointerDownCapture,B.onPointerDownCapture)})});Hc.displayName=tS;var lS="DismissableLayerBranch",iS=b.forwardRef((l,r)=>{const o=b.useContext(Hv),u=b.useRef(null),c=Ge(r,u);return b.useEffect(()=>{const d=u.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),R.jsx(qe.div,{...l,ref:c})});iS.displayName=lS;function rS(l,r=globalThis?.document){const o=Vn(l),u=b.useRef(!1),c=b.useRef(()=>{});return b.useEffect(()=>{const d=p=>{if(p.target&&!u.current){let h=function(){Uv(nS,o,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=h,r.addEventListener("click",c.current,{once:!0})):h()}else r.removeEventListener("click",c.current);u.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",d),r.removeEventListener("click",c.current)}},[r,o]),{onPointerDownCapture:()=>u.current=!0}}function oS(l,r=globalThis?.document){const o=Vn(l),u=b.useRef(!1);return b.useEffect(()=>{const c=d=>{d.target&&!u.current&&Uv(aS,o,{originalEvent:d},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}function Zh(){const l=new CustomEvent(gc);document.dispatchEvent(l)}function Uv(l,r,o,{discrete:u}){const c=o.originalEvent.target,d=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(l,r,{once:!0}),u?m1(c,d):c.dispatchEvent(d)}var ac=0;function uS(){b.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??Kh()),document.body.insertAdjacentElement("beforeend",l[1]??Kh()),ac++,()=>{ac===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ac--}},[])}function Kh(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var lc="focusScope.autoFocusOnMount",ic="focusScope.autoFocusOnUnmount",Ph={bubbles:!1,cancelable:!0},sS="FocusScope",Bv=b.forwardRef((l,r)=>{const{loop:o=!1,trapped:u=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=l,[p,h]=b.useState(null),v=Vn(c),S=Vn(d),w=b.useRef(null),A=Ge(r,x=>h(x)),y=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(u){let x=function(U){if(y.paused||!p)return;const q=U.target;p.contains(q)?w.current=q:ha(w.current,{select:!0})},C=function(U){if(y.paused||!p)return;const q=U.relatedTarget;q!==null&&(p.contains(q)||ha(w.current,{select:!0}))},D=function(U){if(document.activeElement===document.body)for(const B of U)B.removedNodes.length>0&&ha(p)};document.addEventListener("focusin",x),document.addEventListener("focusout",C);const j=new MutationObserver(D);return p&&j.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",C),j.disconnect()}}},[u,p,y.paused]),b.useEffect(()=>{if(p){Wh.add(y);const x=document.activeElement;if(!p.contains(x)){const D=new CustomEvent(lc,Ph);p.addEventListener(lc,v),p.dispatchEvent(D),D.defaultPrevented||(cS(vS(Lv(p)),{select:!0}),document.activeElement===x&&ha(p))}return()=>{p.removeEventListener(lc,v),setTimeout(()=>{const D=new CustomEvent(ic,Ph);p.addEventListener(ic,S),p.dispatchEvent(D),D.defaultPrevented||ha(x??document.body,{select:!0}),p.removeEventListener(ic,S),Wh.remove(y)},0)}}},[p,v,S,y]);const N=b.useCallback(x=>{if(!o&&!u||y.paused)return;const C=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,D=document.activeElement;if(C&&D){const j=x.currentTarget,[U,q]=fS(j);U&&q?!x.shiftKey&&D===q?(x.preventDefault(),o&&ha(U,{select:!0})):x.shiftKey&&D===U&&(x.preventDefault(),o&&ha(q,{select:!0})):D===j&&x.preventDefault()}},[o,u,y.paused]);return R.jsx(qe.div,{tabIndex:-1,...m,ref:A,onKeyDown:N})});Bv.displayName=sS;function cS(l,{select:r=!1}={}){const o=document.activeElement;for(const u of l)if(ha(u,{select:r}),document.activeElement!==o)return}function fS(l){const r=Lv(l),o=Jh(r,l),u=Jh(r.reverse(),l);return[o,u]}function Lv(l){const r=[],o=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const c=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||c?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Jh(l,r){for(const o of l)if(!dS(o,{upTo:r}))return o}function dS(l,{upTo:r}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(r!==void 0&&l===r)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function mS(l){return l instanceof HTMLInputElement&&"select"in l}function ha(l,{select:r=!1}={}){if(l&&l.focus){const o=document.activeElement;l.focus({preventScroll:!0}),l!==o&&mS(l)&&r&&l.select()}}var Wh=hS();function hS(){let l=[];return{add(r){const o=l[0];r!==o&&o?.pause(),l=$h(l,r),l.unshift(r)},remove(r){l=$h(l,r),l[0]?.resume()}}}function $h(l,r){const o=[...l],u=o.indexOf(r);return u!==-1&&o.splice(u,1),o}function vS(l){return l.filter(r=>r.tagName!=="A")}var xt=globalThis?.document?b.useLayoutEffect:()=>{},pS=Z0.useId||(()=>{}),gS=0;function Oo(l){const[r,o]=b.useState(pS());return xt(()=>{o(u=>u??String(gS++))},[l]),r?`radix-${r}`:""}const yS=["top","right","bottom","left"],va=Math.min,Ut=Math.max,wo=Math.round,co=Math.floor,hn=l=>({x:l,y:l}),bS={left:"right",right:"left",bottom:"top",top:"bottom"},SS={start:"end",end:"start"};function yc(l,r,o){return Ut(l,va(r,o))}function qn(l,r){return typeof l=="function"?l(r):l}function Gn(l){return l.split("-")[0]}function kl(l){return l.split("-")[1]}function Uc(l){return l==="x"?"y":"x"}function Bc(l){return l==="y"?"height":"width"}function pa(l){return["top","bottom"].includes(Gn(l))?"y":"x"}function Lc(l){return Uc(pa(l))}function xS(l,r,o){o===void 0&&(o=!1);const u=kl(l),c=Lc(l),d=Bc(c);let m=c==="x"?u===(o?"end":"start")?"right":"left":u==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(m=Eo(m)),[m,Eo(m)]}function wS(l){const r=Eo(l);return[bc(l),r,bc(r)]}function bc(l){return l.replace(/start|end/g,r=>SS[r])}function ES(l,r,o){const u=["left","right"],c=["right","left"],d=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return o?r?c:u:r?u:c;case"left":case"right":return r?d:m;default:return[]}}function TS(l,r,o,u){const c=kl(l);let d=ES(Gn(l),o==="start",u);return c&&(d=d.map(m=>m+"-"+c),r&&(d=d.concat(d.map(bc)))),d}function Eo(l){return l.replace(/left|right|bottom|top/g,r=>bS[r])}function AS(l){return{top:0,right:0,bottom:0,left:0,...l}}function Yv(l){return typeof l!="number"?AS(l):{top:l,right:l,bottom:l,left:l}}function To(l){const{x:r,y:o,width:u,height:c}=l;return{width:u,height:c,top:o,left:r,right:r+u,bottom:o+c,x:r,y:o}}function Fh(l,r,o){let{reference:u,floating:c}=l;const d=pa(r),m=Lc(r),p=Bc(m),h=Gn(r),v=d==="y",S=u.x+u.width/2-c.width/2,w=u.y+u.height/2-c.height/2,A=u[p]/2-c[p]/2;let y;switch(h){case"top":y={x:S,y:u.y-c.height};break;case"bottom":y={x:S,y:u.y+u.height};break;case"right":y={x:u.x+u.width,y:w};break;case"left":y={x:u.x-c.width,y:w};break;default:y={x:u.x,y:u.y}}switch(kl(r)){case"start":y[m]-=A*(o&&v?-1:1);break;case"end":y[m]+=A*(o&&v?-1:1);break}return y}const RS=async(l,r,o)=>{const{placement:u="bottom",strategy:c="absolute",middleware:d=[],platform:m}=o,p=d.filter(Boolean),h=await(m.isRTL==null?void 0:m.isRTL(r));let v=await m.getElementRects({reference:l,floating:r,strategy:c}),{x:S,y:w}=Fh(v,u,h),A=u,y={},N=0;for(let x=0;x({name:"arrow",options:l,async fn(r){const{x:o,y:u,placement:c,rects:d,platform:m,elements:p,middlewareData:h}=r,{element:v,padding:S=0}=qn(l,r)||{};if(v==null)return{};const w=Yv(S),A={x:o,y:u},y=Lc(c),N=Bc(y),x=await m.getDimensions(v),C=y==="y",D=C?"top":"left",j=C?"bottom":"right",U=C?"clientHeight":"clientWidth",q=d.reference[N]+d.reference[y]-A[y]-d.floating[N],B=A[y]-d.reference[y],F=await(m.getOffsetParent==null?void 0:m.getOffsetParent(v));let P=F?F[U]:0;(!P||!await(m.isElement==null?void 0:m.isElement(F)))&&(P=p.floating[U]||d.floating[N]);const de=q/2-B/2,J=P/2-x[N]/2-1,ae=va(w[D],J),oe=va(w[j],J),le=ae,ue=P-x[N]-oe,W=P/2-x[N]/2+de,fe=yc(le,W,ue),L=!h.arrow&&kl(c)!=null&&W!==fe&&d.reference[N]/2-(WW<=0)){var oe,le;const W=(((oe=d.flip)==null?void 0:oe.index)||0)+1,fe=P[W];if(fe)return{data:{index:W,overflows:ae},reset:{placement:fe}};let L=(le=ae.filter(K=>K.overflows[0]<=0).sort((K,Y)=>K.overflows[1]-Y.overflows[1])[0])==null?void 0:le.placement;if(!L)switch(y){case"bestFit":{var ue;const K=(ue=ae.filter(Y=>{if(F){const $=pa(Y.placement);return $===j||$==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter($=>$>0).reduce(($,T)=>$+T,0)]).sort((Y,$)=>Y[1]-$[1])[0])==null?void 0:ue[0];K&&(L=K);break}case"initialPlacement":L=p;break}if(c!==L)return{reset:{placement:L}}}return{}}}};function Ih(l,r){return{top:l.top-r.height,right:l.right-r.width,bottom:l.bottom-r.height,left:l.left-r.width}}function ev(l){return yS.some(r=>l[r]>=0)}const MS=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(r){const{rects:o}=r,{strategy:u="referenceHidden",...c}=qn(l,r);switch(u){case"referenceHidden":{const d=await Xi(r,{...c,elementContext:"reference"}),m=Ih(d,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:ev(m)}}}case"escaped":{const d=await Xi(r,{...c,altBoundary:!0}),m=Ih(d,o.floating);return{data:{escapedOffsets:m,escaped:ev(m)}}}default:return{}}}}};async function NS(l,r){const{placement:o,platform:u,elements:c}=l,d=await(u.isRTL==null?void 0:u.isRTL(c.floating)),m=Gn(o),p=kl(o),h=pa(o)==="y",v=["left","top"].includes(m)?-1:1,S=d&&h?-1:1,w=qn(r,l);let{mainAxis:A,crossAxis:y,alignmentAxis:N}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return p&&typeof N=="number"&&(y=p==="end"?N*-1:N),h?{x:y*S,y:A*v}:{x:A*v,y:y*S}}const _S=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(r){var o,u;const{x:c,y:d,placement:m,middlewareData:p}=r,h=await NS(r,l);return m===((o=p.offset)==null?void 0:o.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:c+h.x,y:d+h.y,data:{...h,placement:m}}}}},DS=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(r){const{x:o,y:u,placement:c}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:p={fn:C=>{let{x:D,y:j}=C;return{x:D,y:j}}},...h}=qn(l,r),v={x:o,y:u},S=await Xi(r,h),w=pa(Gn(c)),A=Uc(w);let y=v[A],N=v[w];if(d){const C=A==="y"?"top":"left",D=A==="y"?"bottom":"right",j=y+S[C],U=y-S[D];y=yc(j,y,U)}if(m){const C=w==="y"?"top":"left",D=w==="y"?"bottom":"right",j=N+S[C],U=N-S[D];N=yc(j,N,U)}const x=p.fn({...r,[A]:y,[w]:N});return{...x,data:{x:x.x-o,y:x.y-u,enabled:{[A]:d,[w]:m}}}}}},zS=function(l){return l===void 0&&(l={}),{options:l,fn(r){const{x:o,y:u,placement:c,rects:d,middlewareData:m}=r,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=qn(l,r),S={x:o,y:u},w=pa(c),A=Uc(w);let y=S[A],N=S[w];const x=qn(p,r),C=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(h){const U=A==="y"?"height":"width",q=d.reference[A]-d.floating[U]+C.mainAxis,B=d.reference[A]+d.reference[U]-C.mainAxis;yB&&(y=B)}if(v){var D,j;const U=A==="y"?"width":"height",q=["top","left"].includes(Gn(c)),B=d.reference[w]-d.floating[U]+(q&&((D=m.offset)==null?void 0:D[w])||0)+(q?0:C.crossAxis),F=d.reference[w]+d.reference[U]+(q?0:((j=m.offset)==null?void 0:j[w])||0)-(q?C.crossAxis:0);NF&&(N=F)}return{[A]:y,[w]:N}}}},jS=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(r){var o,u;const{placement:c,rects:d,platform:m,elements:p}=r,{apply:h=()=>{},...v}=qn(l,r),S=await Xi(r,v),w=Gn(c),A=kl(c),y=pa(c)==="y",{width:N,height:x}=d.floating;let C,D;w==="top"||w==="bottom"?(C=w,D=A===(await(m.isRTL==null?void 0:m.isRTL(p.floating))?"start":"end")?"left":"right"):(D=w,C=A==="end"?"top":"bottom");const j=x-S.top-S.bottom,U=N-S.left-S.right,q=va(x-S[C],j),B=va(N-S[D],U),F=!r.middlewareData.shift;let P=q,de=B;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(de=U),(u=r.middlewareData.shift)!=null&&u.enabled.y&&(P=j),F&&!A){const ae=Ut(S.left,0),oe=Ut(S.right,0),le=Ut(S.top,0),ue=Ut(S.bottom,0);y?de=N-2*(ae!==0||oe!==0?ae+oe:Ut(S.left,S.right)):P=x-2*(le!==0||ue!==0?le+ue:Ut(S.top,S.bottom))}await h({...r,availableWidth:de,availableHeight:P});const J=await m.getDimensions(p.floating);return N!==J.width||x!==J.height?{reset:{rects:!0}}:{}}}};function Mo(){return typeof window<"u"}function Xl(l){return Vv(l)?(l.nodeName||"").toLowerCase():"#document"}function Bt(l){var r;return(l==null||(r=l.ownerDocument)==null?void 0:r.defaultView)||window}function pn(l){var r;return(r=(Vv(l)?l.ownerDocument:l.document)||window.document)==null?void 0:r.documentElement}function Vv(l){return Mo()?l instanceof Node||l instanceof Bt(l).Node:!1}function ln(l){return Mo()?l instanceof Element||l instanceof Bt(l).Element:!1}function vn(l){return Mo()?l instanceof HTMLElement||l instanceof Bt(l).HTMLElement:!1}function tv(l){return!Mo()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Bt(l).ShadowRoot}function Pi(l){const{overflow:r,overflowX:o,overflowY:u,display:c}=rn(l);return/auto|scroll|overlay|hidden|clip/.test(r+u+o)&&!["inline","contents"].includes(c)}function HS(l){return["table","td","th"].includes(Xl(l))}function No(l){return[":popover-open",":modal"].some(r=>{try{return l.matches(r)}catch{return!1}})}function Yc(l){const r=Vc(),o=ln(l)?rn(l):l;return["transform","translate","scale","rotate","perspective"].some(u=>o[u]?o[u]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(u=>(o.willChange||"").includes(u))||["paint","layout","strict","content"].some(u=>(o.contain||"").includes(u))}function US(l){let r=ga(l);for(;vn(r)&&!Yl(r);){if(Yc(r))return r;if(No(r))return null;r=ga(r)}return null}function Vc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yl(l){return["html","body","#document"].includes(Xl(l))}function rn(l){return Bt(l).getComputedStyle(l)}function _o(l){return ln(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function ga(l){if(Xl(l)==="html")return l;const r=l.assignedSlot||l.parentNode||tv(l)&&l.host||pn(l);return tv(r)?r.host:r}function qv(l){const r=ga(l);return Yl(r)?l.ownerDocument?l.ownerDocument.body:l.body:vn(r)&&Pi(r)?r:qv(r)}function Qi(l,r,o){var u;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=qv(l),d=c===((u=l.ownerDocument)==null?void 0:u.body),m=Bt(c);if(d){const p=Sc(m);return r.concat(m,m.visualViewport||[],Pi(c)?c:[],p&&o?Qi(p):[])}return r.concat(c,Qi(c,[],o))}function Sc(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Gv(l){const r=rn(l);let o=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const c=vn(l),d=c?l.offsetWidth:o,m=c?l.offsetHeight:u,p=wo(o)!==d||wo(u)!==m;return p&&(o=d,u=m),{width:o,height:u,$:p}}function qc(l){return ln(l)?l:l.contextElement}function Ul(l){const r=qc(l);if(!vn(r))return hn(1);const o=r.getBoundingClientRect(),{width:u,height:c,$:d}=Gv(r);let m=(d?wo(o.width):o.width)/u,p=(d?wo(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!p||!Number.isFinite(p))&&(p=1),{x:m,y:p}}const BS=hn(0);function kv(l){const r=Bt(l);return!Vc()||!r.visualViewport?BS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function LS(l,r,o){return r===void 0&&(r=!1),!o||r&&o!==Bt(l)?!1:r}function Qa(l,r,o,u){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=l.getBoundingClientRect(),d=qc(l);let m=hn(1);r&&(u?ln(u)&&(m=Ul(u)):m=Ul(l));const p=LS(d,o,u)?kv(d):hn(0);let h=(c.left+p.x)/m.x,v=(c.top+p.y)/m.y,S=c.width/m.x,w=c.height/m.y;if(d){const A=Bt(d),y=u&&ln(u)?Bt(u):u;let N=A,x=Sc(N);for(;x&&u&&y!==N;){const C=Ul(x),D=x.getBoundingClientRect(),j=rn(x),U=D.left+(x.clientLeft+parseFloat(j.paddingLeft))*C.x,q=D.top+(x.clientTop+parseFloat(j.paddingTop))*C.y;h*=C.x,v*=C.y,S*=C.x,w*=C.y,h+=U,v+=q,N=Bt(x),x=Sc(N)}}return To({width:S,height:w,x:h,y:v})}function Gc(l,r){const o=_o(l).scrollLeft;return r?r.left+o:Qa(pn(l)).left+o}function Xv(l,r,o){o===void 0&&(o=!1);const u=l.getBoundingClientRect(),c=u.left+r.scrollLeft-(o?0:Gc(l,u)),d=u.top+r.scrollTop;return{x:c,y:d}}function YS(l){let{elements:r,rect:o,offsetParent:u,strategy:c}=l;const d=c==="fixed",m=pn(u),p=r?No(r.floating):!1;if(u===m||p&&d)return o;let h={scrollLeft:0,scrollTop:0},v=hn(1);const S=hn(0),w=vn(u);if((w||!w&&!d)&&((Xl(u)!=="body"||Pi(m))&&(h=_o(u)),vn(u))){const y=Qa(u);v=Ul(u),S.x=y.x+u.clientLeft,S.y=y.y+u.clientTop}const A=m&&!w&&!d?Xv(m,h,!0):hn(0);return{width:o.width*v.x,height:o.height*v.y,x:o.x*v.x-h.scrollLeft*v.x+S.x+A.x,y:o.y*v.y-h.scrollTop*v.y+S.y+A.y}}function VS(l){return Array.from(l.getClientRects())}function qS(l){const r=pn(l),o=_o(l),u=l.ownerDocument.body,c=Ut(r.scrollWidth,r.clientWidth,u.scrollWidth,u.clientWidth),d=Ut(r.scrollHeight,r.clientHeight,u.scrollHeight,u.clientHeight);let m=-o.scrollLeft+Gc(l);const p=-o.scrollTop;return rn(u).direction==="rtl"&&(m+=Ut(r.clientWidth,u.clientWidth)-c),{width:c,height:d,x:m,y:p}}function GS(l,r){const o=Bt(l),u=pn(l),c=o.visualViewport;let d=u.clientWidth,m=u.clientHeight,p=0,h=0;if(c){d=c.width,m=c.height;const v=Vc();(!v||v&&r==="fixed")&&(p=c.offsetLeft,h=c.offsetTop)}return{width:d,height:m,x:p,y:h}}function kS(l,r){const o=Qa(l,!0,r==="fixed"),u=o.top+l.clientTop,c=o.left+l.clientLeft,d=vn(l)?Ul(l):hn(1),m=l.clientWidth*d.x,p=l.clientHeight*d.y,h=c*d.x,v=u*d.y;return{width:m,height:p,x:h,y:v}}function nv(l,r,o){let u;if(r==="viewport")u=GS(l,o);else if(r==="document")u=qS(pn(l));else if(ln(r))u=kS(r,o);else{const c=kv(l);u={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return To(u)}function Qv(l,r){const o=ga(l);return o===r||!ln(o)||Yl(o)?!1:rn(o).position==="fixed"||Qv(o,r)}function XS(l,r){const o=r.get(l);if(o)return o;let u=Qi(l,[],!1).filter(p=>ln(p)&&Xl(p)!=="body"),c=null;const d=rn(l).position==="fixed";let m=d?ga(l):l;for(;ln(m)&&!Yl(m);){const p=rn(m),h=Yc(m);!h&&p.position==="fixed"&&(c=null),(d?!h&&!c:!h&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Pi(m)&&!h&&Qv(l,m))?u=u.filter(S=>S!==m):c=p,m=ga(m)}return r.set(l,u),u}function QS(l){let{element:r,boundary:o,rootBoundary:u,strategy:c}=l;const m=[...o==="clippingAncestors"?No(r)?[]:XS(r,this._c):[].concat(o),u],p=m[0],h=m.reduce((v,S)=>{const w=nv(r,S,c);return v.top=Ut(w.top,v.top),v.right=va(w.right,v.right),v.bottom=va(w.bottom,v.bottom),v.left=Ut(w.left,v.left),v},nv(r,p,c));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ZS(l){const{width:r,height:o}=Gv(l);return{width:r,height:o}}function KS(l,r,o){const u=vn(r),c=pn(r),d=o==="fixed",m=Qa(l,!0,d,r);let p={scrollLeft:0,scrollTop:0};const h=hn(0);if(u||!u&&!d)if((Xl(r)!=="body"||Pi(c))&&(p=_o(r)),u){const A=Qa(r,!0,d,r);h.x=A.x+r.clientLeft,h.y=A.y+r.clientTop}else c&&(h.x=Gc(c));const v=c&&!u&&!d?Xv(c,p):hn(0),S=m.left+p.scrollLeft-h.x-v.x,w=m.top+p.scrollTop-h.y-v.y;return{x:S,y:w,width:m.width,height:m.height}}function rc(l){return rn(l).position==="static"}function av(l,r){if(!vn(l)||rn(l).position==="fixed")return null;if(r)return r(l);let o=l.offsetParent;return pn(l)===o&&(o=o.ownerDocument.body),o}function Zv(l,r){const o=Bt(l);if(No(l))return o;if(!vn(l)){let c=ga(l);for(;c&&!Yl(c);){if(ln(c)&&!rc(c))return c;c=ga(c)}return o}let u=av(l,r);for(;u&&HS(u)&&rc(u);)u=av(u,r);return u&&Yl(u)&&rc(u)&&!Yc(u)?o:u||US(l)||o}const PS=async function(l){const r=this.getOffsetParent||Zv,o=this.getDimensions,u=await o(l.floating);return{reference:KS(l.reference,await r(l.floating),l.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function JS(l){return rn(l).direction==="rtl"}const WS={convertOffsetParentRelativeRectToViewportRelativeRect:YS,getDocumentElement:pn,getClippingRect:QS,getOffsetParent:Zv,getElementRects:PS,getClientRects:VS,getDimensions:ZS,getScale:Ul,isElement:ln,isRTL:JS};function Kv(l,r){return l.x===r.x&&l.y===r.y&&l.width===r.width&&l.height===r.height}function $S(l,r){let o=null,u;const c=pn(l);function d(){var p;clearTimeout(u),(p=o)==null||p.disconnect(),o=null}function m(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),d();const v=l.getBoundingClientRect(),{left:S,top:w,width:A,height:y}=v;if(p||r(),!A||!y)return;const N=co(w),x=co(c.clientWidth-(S+A)),C=co(c.clientHeight-(w+y)),D=co(S),U={rootMargin:-N+"px "+-x+"px "+-C+"px "+-D+"px",threshold:Ut(0,va(1,h))||1};let q=!0;function B(F){const P=F[0].intersectionRatio;if(P!==h){if(!q)return m();P?m(!1,P):u=setTimeout(()=>{m(!1,1e-7)},1e3)}P===1&&!Kv(v,l.getBoundingClientRect())&&m(),q=!1}try{o=new IntersectionObserver(B,{...U,root:c.ownerDocument})}catch{o=new IntersectionObserver(B,U)}o.observe(l)}return m(!0),d}function FS(l,r,o,u){u===void 0&&(u={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,v=qc(l),S=c||d?[...v?Qi(v):[],...Qi(r)]:[];S.forEach(D=>{c&&D.addEventListener("scroll",o,{passive:!0}),d&&D.addEventListener("resize",o)});const w=v&&p?$S(v,o):null;let A=-1,y=null;m&&(y=new ResizeObserver(D=>{let[j]=D;j&&j.target===v&&y&&(y.unobserve(r),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var U;(U=y)==null||U.observe(r)})),o()}),v&&!h&&y.observe(v),y.observe(r));let N,x=h?Qa(l):null;h&&C();function C(){const D=Qa(l);x&&!Kv(x,D)&&o(),x=D,N=requestAnimationFrame(C)}return o(),()=>{var D;S.forEach(j=>{c&&j.removeEventListener("scroll",o),d&&j.removeEventListener("resize",o)}),w?.(),(D=y)==null||D.disconnect(),y=null,h&&cancelAnimationFrame(N)}}const IS=_S,ex=DS,tx=OS,nx=jS,ax=MS,lv=CS,lx=zS,ix=(l,r,o)=>{const u=new Map,c={platform:WS,...o},d={...c.platform,_c:u};return RS(l,r,{...c,platform:d})};var yo=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ao(l,r){if(l===r)return!0;if(typeof l!=typeof r)return!1;if(typeof l=="function"&&l.toString()===r.toString())return!0;let o,u,c;if(l&&r&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==r.length)return!1;for(u=o;u--!==0;)if(!Ao(l[u],r[u]))return!1;return!0}if(c=Object.keys(l),o=c.length,o!==Object.keys(r).length)return!1;for(u=o;u--!==0;)if(!{}.hasOwnProperty.call(r,c[u]))return!1;for(u=o;u--!==0;){const d=c[u];if(!(d==="_owner"&&l.$$typeof)&&!Ao(l[d],r[d]))return!1}return!0}return l!==l&&r!==r}function Pv(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(l,r){const o=Pv(l);return Math.round(r*o)/o}function oc(l){const r=b.useRef(l);return yo(()=>{r.current=l}),r}function rx(l){l===void 0&&(l={});const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:c,elements:{reference:d,floating:m}={},transform:p=!0,whileElementsMounted:h,open:v}=l,[S,w]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[A,y]=b.useState(u);Ao(A,u)||y(u);const[N,x]=b.useState(null),[C,D]=b.useState(null),j=b.useCallback(Y=>{Y!==F.current&&(F.current=Y,x(Y))},[]),U=b.useCallback(Y=>{Y!==P.current&&(P.current=Y,D(Y))},[]),q=d||N,B=m||C,F=b.useRef(null),P=b.useRef(null),de=b.useRef(S),J=h!=null,ae=oc(h),oe=oc(c),le=oc(v),ue=b.useCallback(()=>{if(!F.current||!P.current)return;const Y={placement:r,strategy:o,middleware:A};oe.current&&(Y.platform=oe.current),ix(F.current,P.current,Y).then($=>{const T={...$,isPositioned:le.current!==!1};W.current&&!Ao(de.current,T)&&(de.current=T,Zi.flushSync(()=>{w(T)}))})},[A,r,o,oe,le]);yo(()=>{v===!1&&de.current.isPositioned&&(de.current.isPositioned=!1,w(Y=>({...Y,isPositioned:!1})))},[v]);const W=b.useRef(!1);yo(()=>(W.current=!0,()=>{W.current=!1}),[]),yo(()=>{if(q&&(F.current=q),B&&(P.current=B),q&&B){if(ae.current)return ae.current(q,B,ue);ue()}},[q,B,ue,ae,J]);const fe=b.useMemo(()=>({reference:F,floating:P,setReference:j,setFloating:U}),[j,U]),L=b.useMemo(()=>({reference:q,floating:B}),[q,B]),K=b.useMemo(()=>{const Y={position:o,left:0,top:0};if(!L.floating)return Y;const $=iv(L.floating,S.x),T=iv(L.floating,S.y);return p?{...Y,transform:"translate("+$+"px, "+T+"px)",...Pv(L.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:$,top:T}},[o,p,L.floating,S.x,S.y]);return b.useMemo(()=>({...S,update:ue,refs:fe,elements:L,floatingStyles:K}),[S,ue,fe,L,K])}const ox=l=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:l,fn(o){const{element:u,padding:c}=typeof l=="function"?l(o):l;return u&&r(u)?u.current!=null?lv({element:u.current,padding:c}).fn(o):{}:u?lv({element:u,padding:c}).fn(o):{}}}},ux=(l,r)=>({...IS(l),options:[l,r]}),sx=(l,r)=>({...ex(l),options:[l,r]}),cx=(l,r)=>({...lx(l),options:[l,r]}),fx=(l,r)=>({...tx(l),options:[l,r]}),dx=(l,r)=>({...nx(l),options:[l,r]}),mx=(l,r)=>({...ax(l),options:[l,r]}),hx=(l,r)=>({...ox(l),options:[l,r]});var vx="Arrow",Jv=b.forwardRef((l,r)=>{const{children:o,width:u=10,height:c=5,...d}=l;return R.jsx(qe.svg,{...d,ref:r,width:u,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?o:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jv.displayName=vx;var px=Jv;function Wv(l){const[r,o]=b.useState(void 0);return xt(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const u=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,p;if("borderBoxSize"in d){const h=d.borderBoxSize,v=Array.isArray(h)?h[0]:h;m=v.inlineSize,p=v.blockSize}else m=l.offsetWidth,p=l.offsetHeight;o({width:m,height:p})});return u.observe(l,{box:"border-box"}),()=>u.unobserve(l)}else o(void 0)},[l]),r}var kc="Popper",[$v,Do]=Ki(kc),[gx,Fv]=$v(kc),Iv=l=>{const{__scopePopper:r,children:o}=l,[u,c]=b.useState(null);return R.jsx(gx,{scope:r,anchor:u,onAnchorChange:c,children:o})};Iv.displayName=kc;var ep="PopperAnchor",tp=b.forwardRef((l,r)=>{const{__scopePopper:o,virtualRef:u,...c}=l,d=Fv(ep,o),m=b.useRef(null),p=Ge(r,m);return b.useEffect(()=>{d.onAnchorChange(u?.current||m.current)}),u?null:R.jsx(qe.div,{...c,ref:p})});tp.displayName=ep;var Xc="PopperContent",[yx,bx]=$v(Xc),np=b.forwardRef((l,r)=>{const{__scopePopper:o,side:u="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:S=0,sticky:w="partial",hideWhenDetached:A=!1,updatePositionStrategy:y="optimized",onPlaced:N,...x}=l,C=Fv(Xc,o),[D,j]=b.useState(null),U=Ge(r,I=>j(I)),[q,B]=b.useState(null),F=Wv(q),P=F?.width??0,de=F?.height??0,J=u+(d!=="center"?"-"+d:""),ae=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},oe=Array.isArray(v)?v:[v],le=oe.length>0,ue={padding:ae,boundary:oe.filter(xx),altBoundary:le},{refs:W,floatingStyles:fe,placement:L,isPositioned:K,middlewareData:Y}=rx({strategy:"fixed",placement:J,whileElementsMounted:(...I)=>FS(...I,{animationFrame:y==="always"}),elements:{reference:C.anchor},middleware:[ux({mainAxis:c+de,alignmentAxis:m}),h&&sx({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?cx():void 0,...ue}),h&&fx({...ue}),dx({...ue,apply:({elements:I,rects:ce,availableWidth:Se,availableHeight:ge})=>{const{width:we,height:ze}=ce.reference,ke=I.floating.style;ke.setProperty("--radix-popper-available-width",`${Se}px`),ke.setProperty("--radix-popper-available-height",`${ge}px`),ke.setProperty("--radix-popper-anchor-width",`${we}px`),ke.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),q&&hx({element:q,padding:p}),wx({arrowWidth:P,arrowHeight:de}),A&&mx({strategy:"referenceHidden",...ue})]}),[$,T]=ip(L),k=Vn(N);xt(()=>{K&&k?.()},[K,k]);const ee=Y.arrow?.x,te=Y.arrow?.y,Z=Y.arrow?.centerOffset!==0,[me,he]=b.useState();return xt(()=>{D&&he(window.getComputedStyle(D).zIndex)},[D]),R.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:K?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(" "),...Y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:R.jsx(yx,{scope:o,placedSide:$,onArrowChange:B,arrowX:ee,arrowY:te,shouldHideArrow:Z,children:R.jsx(qe.div,{"data-side":$,"data-align":T,...x,ref:U,style:{...x.style,animation:K?void 0:"none"}})})})});np.displayName=Xc;var ap="PopperArrow",Sx={top:"bottom",right:"left",bottom:"top",left:"right"},lp=b.forwardRef(function(r,o){const{__scopePopper:u,...c}=r,d=bx(ap,u),m=Sx[d.placedSide];return R.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:R.jsx(px,{...c,ref:o,style:{...c.style,display:"block"}})})});lp.displayName=ap;function xx(l){return l!==null}var wx=l=>({name:"transformOrigin",options:l,fn(r){const{placement:o,rects:u,middlewareData:c}=r,m=c.arrow?.centerOffset!==0,p=m?0:l.arrowWidth,h=m?0:l.arrowHeight,[v,S]=ip(o),w={start:"0%",center:"50%",end:"100%"}[S],A=(c.arrow?.x??0)+p/2,y=(c.arrow?.y??0)+h/2;let N="",x="";return v==="bottom"?(N=m?w:`${A}px`,x=`${-h}px`):v==="top"?(N=m?w:`${A}px`,x=`${u.floating.height+h}px`):v==="right"?(N=`${-h}px`,x=m?w:`${y}px`):v==="left"&&(N=`${u.floating.width+h}px`,x=m?w:`${y}px`),{data:{x:N,y:x}}}});function ip(l){const[r,o="center"]=l.split("-");return[r,o]}var rp=Iv,op=tp,up=np,sp=lp,Ex="Portal",cp=b.forwardRef((l,r)=>{const{container:o,...u}=l,[c,d]=b.useState(!1);xt(()=>d(!0),[]);const m=o||c&&globalThis?.document?.body;return m?_v.createPortal(R.jsx(qe.div,{...u,ref:r}),m):null});cp.displayName=Ex;function Ro({prop:l,defaultProp:r,onChange:o=()=>{}}){const[u,c]=Tx({defaultProp:r,onChange:o}),d=l!==void 0,m=d?l:u,p=Vn(o),h=b.useCallback(v=>{if(d){const w=typeof v=="function"?v(l):v;w!==l&&p(w)}else c(v)},[d,l,c,p]);return[m,h]}function Tx({defaultProp:l,onChange:r}){const o=b.useState(l),[u]=o,c=b.useRef(u),d=Vn(r);return b.useEffect(()=>{c.current!==u&&(d(u),c.current=u)},[u,c,d]),o}function fp(l){const r=b.useRef({value:l,previous:l});return b.useMemo(()=>(r.current.value!==l&&(r.current.previous=r.current.value,r.current.value=l),r.current.previous),[l])}var Ax="VisuallyHidden",Qc=b.forwardRef((l,r)=>R.jsx(qe.span,{...l,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...l.style}}));Qc.displayName=Ax;var Rx=Qc,Cx=function(l){if(typeof document>"u")return null;var r=Array.isArray(l)?l[0]:l;return r.ownerDocument.body},zl=new WeakMap,fo=new WeakMap,mo={},uc=0,dp=function(l){return l&&(l.host||dp(l.parentNode))},Ox=function(l,r){return r.map(function(o){if(l.contains(o))return o;var u=dp(o);return u&&l.contains(u)?u:(console.error("aria-hidden",o,"in not contained inside",l,". Doing nothing"),null)}).filter(function(o){return!!o})},Mx=function(l,r,o,u){var c=Ox(r,Array.isArray(l)?l:[l]);mo[o]||(mo[o]=new WeakMap);var d=mo[o],m=[],p=new Set,h=new Set(c),v=function(w){!w||p.has(w)||(p.add(w),v(w.parentNode))};c.forEach(v);var S=function(w){!w||h.has(w)||Array.prototype.forEach.call(w.children,function(A){if(p.has(A))S(A);else try{var y=A.getAttribute(u),N=y!==null&&y!=="false",x=(zl.get(A)||0)+1,C=(d.get(A)||0)+1;zl.set(A,x),d.set(A,C),m.push(A),x===1&&N&&fo.set(A,!0),C===1&&A.setAttribute(o,"true"),N||A.setAttribute(u,"true")}catch(D){console.error("aria-hidden: cannot operate on ",A,D)}})};return S(r),p.clear(),uc++,function(){m.forEach(function(w){var A=zl.get(w)-1,y=d.get(w)-1;zl.set(w,A),d.set(w,y),A||(fo.has(w)||w.removeAttribute(u),fo.delete(w)),y||w.removeAttribute(o)}),uc--,uc||(zl=new WeakMap,zl=new WeakMap,fo=new WeakMap,mo={})}},Nx=function(l,r,o){o===void 0&&(o="data-aria-hidden");var u=Array.from(Array.isArray(l)?l:[l]),c=Cx(l);return c?(u.push.apply(u,Array.from(c.querySelectorAll("[aria-live]"))),Mx(u,c,o,"aria-hidden")):function(){return null}},mn=function(){return mn=Object.assign||function(r){for(var o,u=1,c=arguments.length;u"u")return Kx;var r=Px(l),o=document.documentElement.clientWidth,u=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,u-o+r[2]-r[0])}},Wx=pp(),Bl="data-scroll-locked",$x=function(l,r,o,u){var c=l.left,d=l.top,m=l.right,p=l.gap;return o===void 0&&(o="margin"),` + .`.concat(Dx,` { + overflow: hidden `).concat(u,`; + padding-right: `).concat(p,"px ").concat(u,`; + } + body[`).concat(Bl,`] { + overflow: hidden `).concat(u,`; + overscroll-behavior: contain; + `).concat([r&&"position: relative ".concat(u,";"),o==="margin"&&` + padding-left: `.concat(c,`px; + padding-top: `).concat(d,`px; + padding-right: `).concat(m,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(p,"px ").concat(u,`; + `),o==="padding"&&"padding-right: ".concat(p,"px ").concat(u,";")].filter(Boolean).join(""),` + } + + .`).concat(bo,` { + right: `).concat(p,"px ").concat(u,`; + } + + .`).concat(So,` { + margin-right: `).concat(p,"px ").concat(u,`; + } + + .`).concat(bo," .").concat(bo,` { + right: 0 `).concat(u,`; + } + + .`).concat(So," .").concat(So,` { + margin-right: 0 `).concat(u,`; + } + + body[`).concat(Bl,`] { + `).concat(zx,": ").concat(p,`px; + } +`)},ov=function(){var l=parseInt(document.body.getAttribute(Bl)||"0",10);return isFinite(l)?l:0},Fx=function(){b.useEffect(function(){return document.body.setAttribute(Bl,(ov()+1).toString()),function(){var l=ov()-1;l<=0?document.body.removeAttribute(Bl):document.body.setAttribute(Bl,l.toString())}},[])},Ix=function(l){var r=l.noRelative,o=l.noImportant,u=l.gapMode,c=u===void 0?"margin":u;Fx();var d=b.useMemo(function(){return Jx(c)},[c]);return b.createElement(Wx,{styles:$x(d,!r,c,o?"":"!important")})},xc=!1;if(typeof window<"u")try{var ho=Object.defineProperty({},"passive",{get:function(){return xc=!0,!0}});window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{xc=!1}var jl=xc?{passive:!1}:!1,ew=function(l){return l.tagName==="TEXTAREA"},gp=function(l,r){if(!(l instanceof Element))return!1;var o=window.getComputedStyle(l);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!ew(l)&&o[r]==="visible")},tw=function(l){return gp(l,"overflowY")},nw=function(l){return gp(l,"overflowX")},uv=function(l,r){var o=r.ownerDocument,u=r;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var c=yp(l,u);if(c){var d=bp(l,u),m=d[1],p=d[2];if(m>p)return!0}u=u.parentNode}while(u&&u!==o.body);return!1},aw=function(l){var r=l.scrollTop,o=l.scrollHeight,u=l.clientHeight;return[r,o,u]},lw=function(l){var r=l.scrollLeft,o=l.scrollWidth,u=l.clientWidth;return[r,o,u]},yp=function(l,r){return l==="v"?tw(r):nw(r)},bp=function(l,r){return l==="v"?aw(r):lw(r)},iw=function(l,r){return l==="h"&&r==="rtl"?-1:1},rw=function(l,r,o,u,c){var d=iw(l,window.getComputedStyle(r).direction),m=d*u,p=o.target,h=r.contains(p),v=!1,S=m>0,w=0,A=0;do{var y=bp(l,p),N=y[0],x=y[1],C=y[2],D=x-C-d*N;(N||D)&&yp(l,p)&&(w+=D,A+=N),p instanceof ShadowRoot?p=p.host:p=p.parentNode}while(!h&&p!==document.body||h&&(r.contains(p)||r===p));return(S&&Math.abs(w)<1||!S&&Math.abs(A)<1)&&(v=!0),v},vo=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},sv=function(l){return[l.deltaX,l.deltaY]},cv=function(l){return l&&"current"in l?l.current:l},ow=function(l,r){return l[0]===r[0]&&l[1]===r[1]},uw=function(l){return` + .block-interactivity-`.concat(l,` {pointer-events: none;} + .allow-interactivity-`).concat(l,` {pointer-events: all;} +`)},sw=0,Hl=[];function cw(l){var r=b.useRef([]),o=b.useRef([0,0]),u=b.useRef(),c=b.useState(sw++)[0],d=b.useState(pp)[0],m=b.useRef(l);b.useEffect(function(){m.current=l},[l]),b.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(c));var x=_x([l.lockRef.current],(l.shards||[]).map(cv),!0).filter(Boolean);return x.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[l.inert,l.lockRef.current,l.shards]);var p=b.useCallback(function(x,C){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!m.current.allowPinchZoom;var D=vo(x),j=o.current,U="deltaX"in x?x.deltaX:j[0]-D[0],q="deltaY"in x?x.deltaY:j[1]-D[1],B,F=x.target,P=Math.abs(U)>Math.abs(q)?"h":"v";if("touches"in x&&P==="h"&&F.type==="range")return!1;var de=uv(P,F);if(!de)return!0;if(de?B=P:(B=P==="v"?"h":"v",de=uv(P,F)),!de)return!1;if(!u.current&&"changedTouches"in x&&(U||q)&&(u.current=B),!B)return!0;var J=u.current||B;return rw(J,C,x,J==="h"?U:q)},[]),h=b.useCallback(function(x){var C=x;if(!(!Hl.length||Hl[Hl.length-1]!==d)){var D="deltaY"in C?sv(C):vo(C),j=r.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&ow(B.delta,D)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var U=(m.current.shards||[]).map(cv).filter(Boolean).filter(function(B){return B.contains(C.target)}),q=U.length>0?p(C,U[0]):!m.current.noIsolation;q&&C.cancelable&&C.preventDefault()}}},[]),v=b.useCallback(function(x,C,D,j){var U={name:x,delta:C,target:D,should:j,shadowParent:fw(D)};r.current.push(U),setTimeout(function(){r.current=r.current.filter(function(q){return q!==U})},1)},[]),S=b.useCallback(function(x){o.current=vo(x),u.current=void 0},[]),w=b.useCallback(function(x){v(x.type,sv(x),x.target,p(x,l.lockRef.current))},[]),A=b.useCallback(function(x){v(x.type,vo(x),x.target,p(x,l.lockRef.current))},[]);b.useEffect(function(){return Hl.push(d),l.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:A}),document.addEventListener("wheel",h,jl),document.addEventListener("touchmove",h,jl),document.addEventListener("touchstart",S,jl),function(){Hl=Hl.filter(function(x){return x!==d}),document.removeEventListener("wheel",h,jl),document.removeEventListener("touchmove",h,jl),document.removeEventListener("touchstart",S,jl)}},[]);var y=l.removeScrollBar,N=l.inert;return b.createElement(b.Fragment,null,N?b.createElement(d,{styles:uw(c)}):null,y?b.createElement(Ix,{gapMode:l.gapMode}):null)}function fw(l){for(var r=null;l!==null;)l instanceof ShadowRoot&&(r=l.host,l=l.host),l=l.parentNode;return r}const dw=Vx(vp,cw);var Sp=b.forwardRef(function(l,r){return b.createElement(zo,mn({},l,{ref:r,sideCar:dw}))});Sp.classNames=zo.classNames;var mw=[" ","Enter","ArrowUp","ArrowDown"],hw=[" ","Enter"],Ji="Select",[jo,Ho,vw]=zv(Ji),[Ql,HE]=Ki(Ji,[vw,Do]),Uo=Do(),[pw,ba]=Ql(Ji),[gw,yw]=Ql(Ji),xp=l=>{const{__scopeSelect:r,children:o,open:u,defaultOpen:c,onOpenChange:d,value:m,defaultValue:p,onValueChange:h,dir:v,name:S,autoComplete:w,disabled:A,required:y,form:N}=l,x=Uo(r),[C,D]=b.useState(null),[j,U]=b.useState(null),[q,B]=b.useState(!1),F=jv(v),[P=!1,de]=Ro({prop:u,defaultProp:c,onChange:d}),[J,ae]=Ro({prop:m,defaultProp:p,onChange:h}),oe=b.useRef(null),le=C?N||!!C.closest("form"):!0,[ue,W]=b.useState(new Set),fe=Array.from(ue).map(L=>L.props.value).join(";");return R.jsx(rp,{...x,children:R.jsxs(pw,{required:y,scope:r,trigger:C,onTriggerChange:D,valueNode:j,onValueNodeChange:U,valueNodeHasChildren:q,onValueNodeHasChildrenChange:B,contentId:Oo(),value:J,onValueChange:ae,open:P,onOpenChange:de,dir:F,triggerPointerDownPosRef:oe,disabled:A,children:[R.jsx(jo.Provider,{scope:r,children:R.jsx(gw,{scope:l.__scopeSelect,onNativeOptionAdd:b.useCallback(L=>{W(K=>new Set(K).add(L))},[]),onNativeOptionRemove:b.useCallback(L=>{W(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:o})}),le?R.jsxs(Zp,{"aria-hidden":!0,required:y,tabIndex:-1,name:S,autoComplete:w,value:J,onChange:L=>ae(L.target.value),disabled:A,form:N,children:[J===void 0?R.jsx("option",{value:""}):null,Array.from(ue)]},fe):null]})})};xp.displayName=Ji;var wp="SelectTrigger",Ep=b.forwardRef((l,r)=>{const{__scopeSelect:o,disabled:u=!1,...c}=l,d=Uo(o),m=ba(wp,o),p=m.disabled||u,h=Ge(r,m.onTriggerChange),v=Ho(o),S=b.useRef("touch"),[w,A,y]=Kp(x=>{const C=v().filter(U=>!U.disabled),D=C.find(U=>U.value===m.value),j=Pp(C,x,D);j!==void 0&&m.onValueChange(j.value)}),N=x=>{p||(m.onOpenChange(!0),y()),x&&(m.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return R.jsx(op,{asChild:!0,...d,children:R.jsx(qe.button,{type:"button",role:"combobox","aria-controls":m.contentId,"aria-expanded":m.open,"aria-required":m.required,"aria-autocomplete":"none",dir:m.dir,"data-state":m.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":Qp(m.value)?"":void 0,...c,ref:h,onClick:De(c.onClick,x=>{x.currentTarget.focus(),S.current!=="mouse"&&N(x)}),onPointerDown:De(c.onPointerDown,x=>{S.current=x.pointerType;const C=x.target;C.hasPointerCapture(x.pointerId)&&C.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(N(x),x.preventDefault())}),onKeyDown:De(c.onKeyDown,x=>{const C=w.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&A(x.key),!(C&&x.key===" ")&&mw.includes(x.key)&&(N(),x.preventDefault())})})})});Ep.displayName=wp;var Tp="SelectValue",Ap=b.forwardRef((l,r)=>{const{__scopeSelect:o,className:u,style:c,children:d,placeholder:m="",...p}=l,h=ba(Tp,o),{onValueNodeHasChildrenChange:v}=h,S=d!==void 0,w=Ge(r,h.onValueNodeChange);return xt(()=>{v(S)},[v,S]),R.jsx(qe.span,{...p,ref:w,style:{pointerEvents:"none"},children:Qp(h.value)?R.jsx(R.Fragment,{children:m}):d})});Ap.displayName=Tp;var bw="SelectIcon",Rp=b.forwardRef((l,r)=>{const{__scopeSelect:o,children:u,...c}=l;return R.jsx(qe.span,{"aria-hidden":!0,...c,ref:r,children:u||"▼"})});Rp.displayName=bw;var Sw="SelectPortal",Cp=l=>R.jsx(cp,{asChild:!0,...l});Cp.displayName=Sw;var Za="SelectContent",Op=b.forwardRef((l,r)=>{const o=ba(Za,l.__scopeSelect),[u,c]=b.useState();if(xt(()=>{c(new DocumentFragment)},[]),!o.open){const d=u;return d?Zi.createPortal(R.jsx(Mp,{scope:l.__scopeSelect,children:R.jsx(jo.Slot,{scope:l.__scopeSelect,children:R.jsx("div",{children:l.children})})}),d):null}return R.jsx(Np,{...l,ref:r})});Op.displayName=Za;var an=10,[Mp,Sa]=Ql(Za),xw="SelectContentImpl",Np=b.forwardRef((l,r)=>{const{__scopeSelect:o,position:u="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,side:p,sideOffset:h,align:v,alignOffset:S,arrowPadding:w,collisionBoundary:A,collisionPadding:y,sticky:N,hideWhenDetached:x,avoidCollisions:C,...D}=l,j=ba(Za,o),[U,q]=b.useState(null),[B,F]=b.useState(null),P=Ge(r,I=>q(I)),[de,J]=b.useState(null),[ae,oe]=b.useState(null),le=Ho(o),[ue,W]=b.useState(!1),fe=b.useRef(!1);b.useEffect(()=>{if(U)return Nx(U)},[U]),uS();const L=b.useCallback(I=>{const[ce,...Se]=le().map(ze=>ze.ref.current),[ge]=Se.slice(-1),we=document.activeElement;for(const ze of I)if(ze===we||(ze?.scrollIntoView({block:"nearest"}),ze===ce&&B&&(B.scrollTop=0),ze===ge&&B&&(B.scrollTop=B.scrollHeight),ze?.focus(),document.activeElement!==we))return},[le,B]),K=b.useCallback(()=>L([de,U]),[L,de,U]);b.useEffect(()=>{ue&&K()},[ue,K]);const{onOpenChange:Y,triggerPointerDownPosRef:$}=j;b.useEffect(()=>{if(U){let I={x:0,y:0};const ce=ge=>{I={x:Math.abs(Math.round(ge.pageX)-($.current?.x??0)),y:Math.abs(Math.round(ge.pageY)-($.current?.y??0))}},Se=ge=>{I.x<=10&&I.y<=10?ge.preventDefault():U.contains(ge.target)||Y(!1),document.removeEventListener("pointermove",ce),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Se,{capture:!0})}}},[U,Y,$]),b.useEffect(()=>{const I=()=>Y(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[Y]);const[T,k]=Kp(I=>{const ce=le().filter(we=>!we.disabled),Se=ce.find(we=>we.ref.current===document.activeElement),ge=Pp(ce,I,Se);ge&&setTimeout(()=>ge.ref.current.focus())}),ee=b.useCallback((I,ce,Se)=>{const ge=!fe.current&&!Se;(j.value!==void 0&&j.value===ce||ge)&&(J(I),ge&&(fe.current=!0))},[j.value]),te=b.useCallback(()=>U?.focus(),[U]),Z=b.useCallback((I,ce,Se)=>{const ge=!fe.current&&!Se;(j.value!==void 0&&j.value===ce||ge)&&oe(I)},[j.value]),me=u==="popper"?wc:_p,he=me===wc?{side:p,sideOffset:h,align:v,alignOffset:S,arrowPadding:w,collisionBoundary:A,collisionPadding:y,sticky:N,hideWhenDetached:x,avoidCollisions:C}:{};return R.jsx(Mp,{scope:o,content:U,viewport:B,onViewportChange:F,itemRefCallback:ee,selectedItem:de,onItemLeave:te,itemTextRefCallback:Z,focusSelectedItem:K,selectedItemText:ae,position:u,isPositioned:ue,searchRef:T,children:R.jsx(Sp,{as:Ll,allowPinchZoom:!0,children:R.jsx(Bv,{asChild:!0,trapped:j.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:De(c,I=>{j.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:R.jsx(Hc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:R.jsx(me,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:I=>I.preventDefault(),...D,...he,onPlaced:()=>W(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:De(D.onKeyDown,I=>{const ce=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!ce&&I.key.length===1&&k(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let ge=le().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(I.key)&&(ge=ge.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const we=I.target,ze=ge.indexOf(we);ge=ge.slice(ze+1)}setTimeout(()=>L(ge)),I.preventDefault()}})})})})})})});Np.displayName=xw;var ww="SelectItemAlignedPosition",_p=b.forwardRef((l,r)=>{const{__scopeSelect:o,onPlaced:u,...c}=l,d=ba(Za,o),m=Sa(Za,o),[p,h]=b.useState(null),[v,S]=b.useState(null),w=Ge(r,P=>S(P)),A=Ho(o),y=b.useRef(!1),N=b.useRef(!0),{viewport:x,selectedItem:C,selectedItemText:D,focusSelectedItem:j}=m,U=b.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&v&&x&&C&&D){const P=d.trigger.getBoundingClientRect(),de=v.getBoundingClientRect(),J=d.valueNode.getBoundingClientRect(),ae=D.getBoundingClientRect();if(d.dir!=="rtl"){const we=ae.left-de.left,ze=J.left-we,ke=P.left-ze,wt=P.width+ke,on=Math.max(wt,de.width),Nt=window.innerWidth-an,gn=xo(ze,[an,Math.max(an,Nt-on)]);p.style.minWidth=wt+"px",p.style.left=gn+"px"}else{const we=de.right-ae.right,ze=window.innerWidth-J.right-we,ke=window.innerWidth-P.right-ze,wt=P.width+ke,on=Math.max(wt,de.width),Nt=window.innerWidth-an,gn=xo(ze,[an,Math.max(an,Nt-on)]);p.style.minWidth=wt+"px",p.style.right=gn+"px"}const oe=A(),le=window.innerHeight-an*2,ue=x.scrollHeight,W=window.getComputedStyle(v),fe=parseInt(W.borderTopWidth,10),L=parseInt(W.paddingTop,10),K=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),$=fe+L+ue+Y+K,T=Math.min(C.offsetHeight*5,$),k=window.getComputedStyle(x),ee=parseInt(k.paddingTop,10),te=parseInt(k.paddingBottom,10),Z=P.top+P.height/2-an,me=le-Z,he=C.offsetHeight/2,I=C.offsetTop+he,ce=fe+L+I,Se=$-ce;if(ce<=Z){const we=oe.length>0&&C===oe[oe.length-1].ref.current;p.style.bottom="0px";const ze=v.clientHeight-x.offsetTop-x.offsetHeight,ke=Math.max(me,he+(we?te:0)+ze+K),wt=ce+ke;p.style.height=wt+"px"}else{const we=oe.length>0&&C===oe[0].ref.current;p.style.top="0px";const ke=Math.max(Z,fe+x.offsetTop+(we?ee:0)+he)+Se;p.style.height=ke+"px",x.scrollTop=ce-Z+x.offsetTop}p.style.margin=`${an}px 0`,p.style.minHeight=T+"px",p.style.maxHeight=le+"px",u?.(),requestAnimationFrame(()=>y.current=!0)}},[A,d.trigger,d.valueNode,p,v,x,C,D,d.dir,u]);xt(()=>U(),[U]);const[q,B]=b.useState();xt(()=>{v&&B(window.getComputedStyle(v).zIndex)},[v]);const F=b.useCallback(P=>{P&&N.current===!0&&(U(),j?.(),N.current=!1)},[U,j]);return R.jsx(Tw,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:y,onScrollButtonChange:F,children:R.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:R.jsx(qe.div,{...c,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});_p.displayName=ww;var Ew="SelectPopperPosition",wc=b.forwardRef((l,r)=>{const{__scopeSelect:o,align:u="start",collisionPadding:c=an,...d}=l,m=Uo(o);return R.jsx(up,{...m,...d,ref:r,align:u,collisionPadding:c,style:{boxSizing:"border-box",...d.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)"}})});wc.displayName=Ew;var[Tw,Zc]=Ql(Za,{}),Ec="SelectViewport",Dp=b.forwardRef((l,r)=>{const{__scopeSelect:o,nonce:u,...c}=l,d=Sa(Ec,o),m=Zc(Ec,o),p=Ge(r,d.onViewportChange),h=b.useRef(0);return R.jsxs(R.Fragment,{children:[R.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:u}),R.jsx(jo.Slot,{scope:o,children:R.jsx(qe.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:De(c.onScroll,v=>{const S=v.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:A}=m;if(A?.current&&w){const y=Math.abs(h.current-S.scrollTop);if(y>0){const N=window.innerHeight-an*2,x=parseFloat(w.style.minHeight),C=parseFloat(w.style.height),D=Math.max(x,C);if(D0?q:0,w.style.justifyContent="flex-end")}}}h.current=S.scrollTop})})})]})});Dp.displayName=Ec;var zp="SelectGroup",[Aw,Rw]=Ql(zp),Cw=b.forwardRef((l,r)=>{const{__scopeSelect:o,...u}=l,c=Oo();return R.jsx(Aw,{scope:o,id:c,children:R.jsx(qe.div,{role:"group","aria-labelledby":c,...u,ref:r})})});Cw.displayName=zp;var jp="SelectLabel",Hp=b.forwardRef((l,r)=>{const{__scopeSelect:o,...u}=l,c=Rw(jp,o);return R.jsx(qe.div,{id:c.id,...u,ref:r})});Hp.displayName=jp;var Co="SelectItem",[Ow,Up]=Ql(Co),Bp=b.forwardRef((l,r)=>{const{__scopeSelect:o,value:u,disabled:c=!1,textValue:d,...m}=l,p=ba(Co,o),h=Sa(Co,o),v=p.value===u,[S,w]=b.useState(d??""),[A,y]=b.useState(!1),N=Ge(r,j=>h.itemRefCallback?.(j,u,c)),x=Oo(),C=b.useRef("touch"),D=()=>{c||(p.onValueChange(u),p.onOpenChange(!1))};if(u==="")throw new Error("A 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 R.jsx(Ow,{scope:o,value:u,disabled:c,textId:x,isSelected:v,onItemTextChange:b.useCallback(j=>{w(U=>U||(j?.textContent??"").trim())},[]),children:R.jsx(jo.ItemSlot,{scope:o,value:u,disabled:c,textValue:S,children:R.jsx(qe.div,{role:"option","aria-labelledby":x,"data-highlighted":A?"":void 0,"aria-selected":v&&A,"data-state":v?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:N,onFocus:De(m.onFocus,()=>y(!0)),onBlur:De(m.onBlur,()=>y(!1)),onClick:De(m.onClick,()=>{C.current!=="mouse"&&D()}),onPointerUp:De(m.onPointerUp,()=>{C.current==="mouse"&&D()}),onPointerDown:De(m.onPointerDown,j=>{C.current=j.pointerType}),onPointerMove:De(m.onPointerMove,j=>{C.current=j.pointerType,c?h.onItemLeave?.():C.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:De(m.onPointerLeave,j=>{j.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:De(m.onKeyDown,j=>{h.searchRef?.current!==""&&j.key===" "||(hw.includes(j.key)&&D(),j.key===" "&&j.preventDefault())})})})})});Bp.displayName=Co;var ki="SelectItemText",Lp=b.forwardRef((l,r)=>{const{__scopeSelect:o,className:u,style:c,...d}=l,m=ba(ki,o),p=Sa(ki,o),h=Up(ki,o),v=yw(ki,o),[S,w]=b.useState(null),A=Ge(r,D=>w(D),h.onItemTextChange,D=>p.itemTextRefCallback?.(D,h.value,h.disabled)),y=S?.textContent,N=b.useMemo(()=>R.jsx("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:C}=v;return xt(()=>(x(N),()=>C(N)),[x,C,N]),R.jsxs(R.Fragment,{children:[R.jsx(qe.span,{id:h.textId,...d,ref:A}),h.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Zi.createPortal(d.children,m.valueNode):null]})});Lp.displayName=ki;var Yp="SelectItemIndicator",Vp=b.forwardRef((l,r)=>{const{__scopeSelect:o,...u}=l;return Up(Yp,o).isSelected?R.jsx(qe.span,{"aria-hidden":!0,...u,ref:r}):null});Vp.displayName=Yp;var Tc="SelectScrollUpButton",qp=b.forwardRef((l,r)=>{const o=Sa(Tc,l.__scopeSelect),u=Zc(Tc,l.__scopeSelect),[c,d]=b.useState(!1),m=Ge(r,u.onScrollButtonChange);return xt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const v=h.scrollTop>0;d(v)};const h=o.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),c?R.jsx(kp,{...l,ref:m,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=o;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});qp.displayName=Tc;var Ac="SelectScrollDownButton",Gp=b.forwardRef((l,r)=>{const o=Sa(Ac,l.__scopeSelect),u=Zc(Ac,l.__scopeSelect),[c,d]=b.useState(!1),m=Ge(r,u.onScrollButtonChange);return xt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const v=h.scrollHeight-h.clientHeight,S=Math.ceil(h.scrollTop)h.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),c?R.jsx(kp,{...l,ref:m,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=o;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});Gp.displayName=Ac;var kp=b.forwardRef((l,r)=>{const{__scopeSelect:o,onAutoScroll:u,...c}=l,d=Sa("SelectScrollButton",o),m=b.useRef(null),p=Ho(o),h=b.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return b.useEffect(()=>()=>h(),[h]),xt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),R.jsx(qe.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:De(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(u,50))}),onPointerMove:De(c.onPointerMove,()=>{d.onItemLeave?.(),m.current===null&&(m.current=window.setInterval(u,50))}),onPointerLeave:De(c.onPointerLeave,()=>{h()})})}),Mw="SelectSeparator",Xp=b.forwardRef((l,r)=>{const{__scopeSelect:o,...u}=l;return R.jsx(qe.div,{"aria-hidden":!0,...u,ref:r})});Xp.displayName=Mw;var Rc="SelectArrow",Nw=b.forwardRef((l,r)=>{const{__scopeSelect:o,...u}=l,c=Uo(o),d=ba(Rc,o),m=Sa(Rc,o);return d.open&&m.position==="popper"?R.jsx(sp,{...c,...u,ref:r}):null});Nw.displayName=Rc;function Qp(l){return l===""||l===void 0}var Zp=b.forwardRef((l,r)=>{const{value:o,...u}=l,c=b.useRef(null),d=Ge(r,c),m=fp(o);return b.useEffect(()=>{const p=c.current,h=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(h,"value").set;if(m!==o&&S){const w=new Event("change",{bubbles:!0});S.call(p,o),p.dispatchEvent(w)}},[m,o]),R.jsx(Qc,{asChild:!0,children:R.jsx("select",{...u,ref:d,defaultValue:o})})});Zp.displayName="BubbleSelect";function Kp(l){const r=Vn(l),o=b.useRef(""),u=b.useRef(0),c=b.useCallback(m=>{const p=o.current+m;r(p),function h(v){o.current=v,window.clearTimeout(u.current),v!==""&&(u.current=window.setTimeout(()=>h(""),1e3))}(p)},[r]),d=b.useCallback(()=>{o.current="",window.clearTimeout(u.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(u.current),[]),[o,c,d]}function Pp(l,r,o){const c=r.length>1&&Array.from(r).every(v=>v===r[0])?r[0]:r,d=o?l.indexOf(o):-1;let m=_w(l,Math.max(d,0));c.length===1&&(m=m.filter(v=>v!==o));const h=m.find(v=>v.textValue.toLowerCase().startsWith(c.toLowerCase()));return h!==o?h:void 0}function _w(l,r){return l.map((o,u)=>l[(r+u)%l.length])}var Dw=xp,Jp=Ep,zw=Ap,jw=Rp,Hw=Cp,Wp=Op,Uw=Dp,$p=Hp,Fp=Bp,Bw=Lp,Lw=Vp,Ip=qp,eg=Gp,tg=Xp;const Yw=Dw,Vw=zw,ng=b.forwardRef(({className:l,children:r,...o},u)=>R.jsxs(Jp,{ref:u,className:We("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",l),...o,children:[r,R.jsx(jw,{asChild:!0,children:R.jsx(vv,{className:"h-4 w-4 opacity-50"})})]}));ng.displayName=Jp.displayName;const ag=b.forwardRef(({className:l,...r},o)=>R.jsx(Ip,{ref:o,className:We("flex cursor-default items-center justify-center py-1",l),...r,children:R.jsx(ob,{className:"h-4 w-4"})}));ag.displayName=Ip.displayName;const lg=b.forwardRef(({className:l,...r},o)=>R.jsx(eg,{ref:o,className:We("flex cursor-default items-center justify-center py-1",l),...r,children:R.jsx(vv,{className:"h-4 w-4"})}));lg.displayName=eg.displayName;const ig=b.forwardRef(({className:l,children:r,position:o="popper",...u},c)=>R.jsx(Hw,{children:R.jsxs(Wp,{ref:c,className:We("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="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",l),position:o,...u,children:[R.jsx(ag,{}),R.jsx(Uw,{className:We("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),R.jsx(lg,{})]})}));ig.displayName=Wp.displayName;const qw=b.forwardRef(({className:l,...r},o)=>R.jsx($p,{ref:o,className:We("py-1.5 pl-8 pr-2 text-sm font-semibold",l),...r}));qw.displayName=$p.displayName;const rg=b.forwardRef(({className:l,children:r,...o},u)=>R.jsxs(Fp,{ref:u,className:We("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...o,children:[R.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:R.jsx(Lw,{children:R.jsx(hv,{className:"h-4 w-4"})})}),R.jsx(Bw,{children:r})]}));rg.displayName=Fp.displayName;const Gw=b.forwardRef(({className:l,...r},o)=>R.jsx(tg,{ref:o,className:We("-mx-1 my-1 h-px bg-muted",l),...r}));Gw.displayName=tg.displayName;function kw({voices:l,selectedVoice:r,onVoiceChange:o}){return R.jsxs(Yw,{value:r,onValueChange:o,children:[R.jsx(ng,{className:"w-[220px]",children:R.jsx(Vw,{placeholder:"Select voice"})}),R.jsx(ig,{children:Object.entries(l).map(([u,c])=>R.jsxs(rg,{value:u,children:[c.name," (",c.language==="en-us"?"American":"British"," ",c.gender,")"]},u))})]})}var og=["PageUp","PageDown"],ug=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sg={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Zl="Slider",[Cc,Xw,Qw]=zv(Zl),[cg,UE]=Ki(Zl,[Qw]),[Zw,Bo]=cg(Zl),fg=b.forwardRef((l,r)=>{const{name:o,min:u=0,max:c=100,step:d=1,orientation:m="horizontal",disabled:p=!1,minStepsBetweenThumbs:h=0,defaultValue:v=[u],value:S,onValueChange:w=()=>{},onValueCommit:A=()=>{},inverted:y=!1,form:N,...x}=l,C=b.useRef(new Set),D=b.useRef(0),U=m==="horizontal"?Kw:Pw,[q=[],B]=Ro({prop:S,defaultProp:v,onChange:oe=>{[...C.current][D.current]?.focus(),w(oe)}}),F=b.useRef(q);function P(oe){const le=Iw(q,oe);ae(oe,le)}function de(oe){ae(oe,D.current)}function J(){const oe=F.current[D.current];q[D.current]!==oe&&A(q)}function ae(oe,le,{commit:ue}={commit:!1}){const W=aE(d),fe=lE(Math.round((oe-u)/d)*d+u,W),L=xo(fe,[u,c]);B((K=[])=>{const Y=$w(K,L,le);if(nE(Y,h*d)){D.current=Y.indexOf(L);const $=String(Y)!==String(K);return $&&ue&&A(Y),$?Y:K}else return K})}return R.jsx(Zw,{scope:l.__scopeSlider,name:o,disabled:p,min:u,max:c,valueIndexToChangeRef:D,thumbs:C.current,values:q,orientation:m,form:N,children:R.jsx(Cc.Provider,{scope:l.__scopeSlider,children:R.jsx(Cc.Slot,{scope:l.__scopeSlider,children:R.jsx(U,{"aria-disabled":p,"data-disabled":p?"":void 0,...x,ref:r,onPointerDown:De(x.onPointerDown,()=>{p||(F.current=q)}),min:u,max:c,inverted:y,onSlideStart:p?void 0:P,onSlideMove:p?void 0:de,onSlideEnd:p?void 0:J,onHomeKeyDown:()=>!p&&ae(u,0,{commit:!0}),onEndKeyDown:()=>!p&&ae(c,q.length-1,{commit:!0}),onStepKeyDown:({event:oe,direction:le})=>{if(!p){const fe=og.includes(oe.key)||oe.shiftKey&&ug.includes(oe.key)?10:1,L=D.current,K=q[L],Y=d*fe*le;ae(K+Y,L,{commit:!0})}}})})})})});fg.displayName=Zl;var[dg,mg]=cg(Zl,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Kw=b.forwardRef((l,r)=>{const{min:o,max:u,dir:c,inverted:d,onSlideStart:m,onSlideMove:p,onSlideEnd:h,onStepKeyDown:v,...S}=l,[w,A]=b.useState(null),y=Ge(r,U=>A(U)),N=b.useRef(void 0),x=jv(c),C=x==="ltr",D=C&&!d||!C&&d;function j(U){const q=N.current||w.getBoundingClientRect(),B=[0,q.width],P=Kc(B,D?[o,u]:[u,o]);return N.current=q,P(U-q.left)}return R.jsx(dg,{scope:l.__scopeSlider,startEdge:D?"left":"right",endEdge:D?"right":"left",direction:D?1:-1,size:"width",children:R.jsx(hg,{dir:x,"data-orientation":"horizontal",...S,ref:y,style:{...S.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:U=>{const q=j(U.clientX);m?.(q)},onSlideMove:U=>{const q=j(U.clientX);p?.(q)},onSlideEnd:()=>{N.current=void 0,h?.()},onStepKeyDown:U=>{const B=sg[D?"from-left":"from-right"].includes(U.key);v?.({event:U,direction:B?-1:1})}})})}),Pw=b.forwardRef((l,r)=>{const{min:o,max:u,inverted:c,onSlideStart:d,onSlideMove:m,onSlideEnd:p,onStepKeyDown:h,...v}=l,S=b.useRef(null),w=Ge(r,S),A=b.useRef(void 0),y=!c;function N(x){const C=A.current||S.current.getBoundingClientRect(),D=[0,C.height],U=Kc(D,y?[u,o]:[o,u]);return A.current=C,U(x-C.top)}return R.jsx(dg,{scope:l.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:R.jsx(hg,{"data-orientation":"vertical",...v,ref:w,style:{...v.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{const C=N(x.clientY);d?.(C)},onSlideMove:x=>{const C=N(x.clientY);m?.(C)},onSlideEnd:()=>{A.current=void 0,p?.()},onStepKeyDown:x=>{const D=sg[y?"from-bottom":"from-top"].includes(x.key);h?.({event:x,direction:D?-1:1})}})})}),hg=b.forwardRef((l,r)=>{const{__scopeSlider:o,onSlideStart:u,onSlideMove:c,onSlideEnd:d,onHomeKeyDown:m,onEndKeyDown:p,onStepKeyDown:h,...v}=l,S=Bo(Zl,o);return R.jsx(qe.span,{...v,ref:r,onKeyDown:De(l.onKeyDown,w=>{w.key==="Home"?(m(w),w.preventDefault()):w.key==="End"?(p(w),w.preventDefault()):og.concat(ug).includes(w.key)&&(h(w),w.preventDefault())}),onPointerDown:De(l.onPointerDown,w=>{const A=w.target;A.setPointerCapture(w.pointerId),w.preventDefault(),S.thumbs.has(A)?A.focus():u(w)}),onPointerMove:De(l.onPointerMove,w=>{w.target.hasPointerCapture(w.pointerId)&&c(w)}),onPointerUp:De(l.onPointerUp,w=>{const A=w.target;A.hasPointerCapture(w.pointerId)&&(A.releasePointerCapture(w.pointerId),d(w))})})}),vg="SliderTrack",pg=b.forwardRef((l,r)=>{const{__scopeSlider:o,...u}=l,c=Bo(vg,o);return R.jsx(qe.span,{"data-disabled":c.disabled?"":void 0,"data-orientation":c.orientation,...u,ref:r})});pg.displayName=vg;var Oc="SliderRange",gg=b.forwardRef((l,r)=>{const{__scopeSlider:o,...u}=l,c=Bo(Oc,o),d=mg(Oc,o),m=b.useRef(null),p=Ge(r,m),h=c.values.length,v=c.values.map(A=>bg(A,c.min,c.max)),S=h>1?Math.min(...v):0,w=100-Math.max(...v);return R.jsx(qe.span,{"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,...u,ref:p,style:{...l.style,[d.startEdge]:S+"%",[d.endEdge]:w+"%"}})});gg.displayName=Oc;var Mc="SliderThumb",yg=b.forwardRef((l,r)=>{const o=Xw(l.__scopeSlider),[u,c]=b.useState(null),d=Ge(r,p=>c(p)),m=b.useMemo(()=>u?o().findIndex(p=>p.ref.current===u):-1,[o,u]);return R.jsx(Jw,{...l,ref:d,index:m})}),Jw=b.forwardRef((l,r)=>{const{__scopeSlider:o,index:u,name:c,...d}=l,m=Bo(Mc,o),p=mg(Mc,o),[h,v]=b.useState(null),S=Ge(r,j=>v(j)),w=h?m.form||!!h.closest("form"):!0,A=Wv(h),y=m.values[u],N=y===void 0?0:bg(y,m.min,m.max),x=Fw(u,m.values.length),C=A?.[p.size],D=C?eE(C,N,p.direction):0;return b.useEffect(()=>{if(h)return m.thumbs.add(h),()=>{m.thumbs.delete(h)}},[h,m.thumbs]),R.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:`calc(${N}% + ${D}px)`},children:[R.jsx(Cc.ItemSlot,{scope:l.__scopeSlider,children:R.jsx(qe.span,{role:"slider","aria-label":l["aria-label"]||x,"aria-valuemin":m.min,"aria-valuenow":y,"aria-valuemax":m.max,"aria-orientation":m.orientation,"data-orientation":m.orientation,"data-disabled":m.disabled?"":void 0,tabIndex:m.disabled?void 0:0,...d,ref:S,style:y===void 0?{display:"none"}:l.style,onFocus:De(l.onFocus,()=>{m.valueIndexToChangeRef.current=u})})}),w&&R.jsx(Ww,{name:c??(m.name?m.name+(m.values.length>1?"[]":""):void 0),form:m.form,value:y},u)]})});yg.displayName=Mc;var Ww=l=>{const{value:r,...o}=l,u=b.useRef(null),c=fp(r);return b.useEffect(()=>{const d=u.current,m=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(m,"value").set;if(c!==r&&h){const v=new Event("input",{bubbles:!0});h.call(d,r),d.dispatchEvent(v)}},[c,r]),R.jsx("input",{style:{display:"none"},...o,ref:u,defaultValue:r})};function $w(l=[],r,o){const u=[...l];return u[o]=r,u.sort((c,d)=>c-d)}function bg(l,r,o){const d=100/(o-r)*(l-r);return xo(d,[0,100])}function Fw(l,r){return r>2?`Value ${l+1} of ${r}`:r===2?["Minimum","Maximum"][l]:void 0}function Iw(l,r){if(l.length===1)return 0;const o=l.map(c=>Math.abs(c-r)),u=Math.min(...o);return o.indexOf(u)}function eE(l,r,o){const u=l/2,d=Kc([0,50],[0,u]);return(u-d(r)*o)*o}function tE(l){return l.slice(0,-1).map((r,o)=>l[o+1]-r)}function nE(l,r){if(r>0){const o=tE(l);return Math.min(...o)>=r}return!0}function Kc(l,r){return o=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const u=(r[1]-r[0])/(l[1]-l[0]);return r[0]+u*(o-l[0])}}function aE(l){return(String(l).split(".")[1]||"").length}function lE(l,r){const o=Math.pow(10,r);return Math.round(l*o)/o}var Sg=fg,iE=pg,rE=gg,oE=yg;const xg=b.forwardRef(({className:l,...r},o)=>R.jsxs(Sg,{ref:o,className:We("relative flex w-full touch-none select-none items-center",l),...r,children:[R.jsx(iE,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:R.jsx(rE,{className:"absolute h-full bg-primary"})}),R.jsx(oE,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));xg.displayName=Sg.displayName;function uE(l,r){return b.useReducer((o,u)=>r[o][u]??o,l)}var wg=l=>{const{present:r,children:o}=l,u=sE(r),c=typeof o=="function"?o({present:u.isPresent}):b.Children.only(o),d=Ge(u.ref,cE(c));return typeof o=="function"||u.isPresent?b.cloneElement(c,{ref:d}):null};wg.displayName="Presence";function sE(l){const[r,o]=b.useState(),u=b.useRef({}),c=b.useRef(l),d=b.useRef("none"),m=l?"mounted":"unmounted",[p,h]=uE(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const v=po(u.current);d.current=p==="mounted"?v:"none"},[p]),xt(()=>{const v=u.current,S=c.current;if(S!==l){const A=d.current,y=po(v);l?h("MOUNT"):y==="none"||v?.display==="none"?h("UNMOUNT"):h(S&&A!==y?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,h]),xt(()=>{if(r){let v;const S=r.ownerDocument.defaultView??window,w=y=>{const x=po(u.current).includes(y.animationName);if(y.target===r&&x&&(h("ANIMATION_END"),!c.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",v=S.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},A=y=>{y.target===r&&(d.current=po(u.current))};return r.addEventListener("animationstart",A),r.addEventListener("animationcancel",w),r.addEventListener("animationend",w),()=>{S.clearTimeout(v),r.removeEventListener("animationstart",A),r.removeEventListener("animationcancel",w),r.removeEventListener("animationend",w)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:b.useCallback(v=>{v&&(u.current=getComputedStyle(v)),o(v)},[])}}function po(l){return l?.animationName||"none"}function cE(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}var[Lo,BE]=Ki("Tooltip",[Do]),Yo=Do(),Eg="TooltipProvider",fE=700,Nc="tooltip.open",[dE,Pc]=Lo(Eg),Tg=l=>{const{__scopeTooltip:r,delayDuration:o=fE,skipDelayDuration:u=300,disableHoverableContent:c=!1,children:d}=l,[m,p]=b.useState(!0),h=b.useRef(!1),v=b.useRef(0);return b.useEffect(()=>{const S=v.current;return()=>window.clearTimeout(S)},[]),R.jsx(dE,{scope:r,isOpenDelayed:m,delayDuration:o,onOpen:b.useCallback(()=>{window.clearTimeout(v.current),p(!1)},[]),onClose:b.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>p(!0),u)},[u]),isPointerInTransitRef:h,onPointerInTransitChange:b.useCallback(S=>{h.current=S},[]),disableHoverableContent:c,children:d})};Tg.displayName=Eg;var Vo="Tooltip",[mE,qo]=Lo(Vo),Ag=l=>{const{__scopeTooltip:r,children:o,open:u,defaultOpen:c=!1,onOpenChange:d,disableHoverableContent:m,delayDuration:p}=l,h=Pc(Vo,l.__scopeTooltip),v=Yo(r),[S,w]=b.useState(null),A=Oo(),y=b.useRef(0),N=m??h.disableHoverableContent,x=p??h.delayDuration,C=b.useRef(!1),[D=!1,j]=Ro({prop:u,defaultProp:c,onChange:P=>{P?(h.onOpen(),document.dispatchEvent(new CustomEvent(Nc))):h.onClose(),d?.(P)}}),U=b.useMemo(()=>D?C.current?"delayed-open":"instant-open":"closed",[D]),q=b.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C.current=!1,j(!0)},[j]),B=b.useCallback(()=>{window.clearTimeout(y.current),y.current=0,j(!1)},[j]),F=b.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C.current=!0,j(!0),y.current=0},x)},[x,j]);return b.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),R.jsx(rp,{...v,children:R.jsx(mE,{scope:r,contentId:A,open:D,stateAttribute:U,trigger:S,onTriggerChange:w,onTriggerEnter:b.useCallback(()=>{h.isOpenDelayed?F():q()},[h.isOpenDelayed,F,q]),onTriggerLeave:b.useCallback(()=>{N?B():(window.clearTimeout(y.current),y.current=0)},[B,N]),onOpen:q,onClose:B,disableHoverableContent:N,children:o})})};Ag.displayName=Vo;var _c="TooltipTrigger",Rg=b.forwardRef((l,r)=>{const{__scopeTooltip:o,...u}=l,c=qo(_c,o),d=Pc(_c,o),m=Yo(o),p=b.useRef(null),h=Ge(r,p,c.onTriggerChange),v=b.useRef(!1),S=b.useRef(!1),w=b.useCallback(()=>v.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),R.jsx(op,{asChild:!0,...m,children:R.jsx(qe.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...u,ref:h,onPointerMove:De(l.onPointerMove,A=>{A.pointerType!=="touch"&&!S.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),S.current=!0)}),onPointerLeave:De(l.onPointerLeave,()=>{c.onTriggerLeave(),S.current=!1}),onPointerDown:De(l.onPointerDown,()=>{v.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:De(l.onFocus,()=>{v.current||c.onOpen()}),onBlur:De(l.onBlur,c.onClose),onClick:De(l.onClick,c.onClose)})})});Rg.displayName=_c;var hE="TooltipPortal",[LE,vE]=Lo(hE,{forceMount:void 0}),Vl="TooltipContent",Cg=b.forwardRef((l,r)=>{const o=vE(Vl,l.__scopeTooltip),{forceMount:u=o.forceMount,side:c="top",...d}=l,m=qo(Vl,l.__scopeTooltip);return R.jsx(wg,{present:u||m.open,children:m.disableHoverableContent?R.jsx(Og,{side:c,...d,ref:r}):R.jsx(pE,{side:c,...d,ref:r})})}),pE=b.forwardRef((l,r)=>{const o=qo(Vl,l.__scopeTooltip),u=Pc(Vl,l.__scopeTooltip),c=b.useRef(null),d=Ge(r,c),[m,p]=b.useState(null),{trigger:h,onClose:v}=o,S=c.current,{onPointerInTransitChange:w}=u,A=b.useCallback(()=>{p(null),w(!1)},[w]),y=b.useCallback((N,x)=>{const C=N.currentTarget,D={x:N.clientX,y:N.clientY},j=SE(D,C.getBoundingClientRect()),U=xE(D,j),q=wE(x.getBoundingClientRect()),B=TE([...U,...q]);p(B),w(!0)},[w]);return b.useEffect(()=>()=>A(),[A]),b.useEffect(()=>{if(h&&S){const N=C=>y(C,S),x=C=>y(C,h);return h.addEventListener("pointerleave",N),S.addEventListener("pointerleave",x),()=>{h.removeEventListener("pointerleave",N),S.removeEventListener("pointerleave",x)}}},[h,S,y,A]),b.useEffect(()=>{if(m){const N=x=>{const C=x.target,D={x:x.clientX,y:x.clientY},j=h?.contains(C)||S?.contains(C),U=!EE(D,m);j?A():U&&(A(),v())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[h,S,m,v,A]),R.jsx(Og,{...l,ref:d})}),[gE,yE]=Lo(Vo,{isInside:!1}),Og=b.forwardRef((l,r)=>{const{__scopeTooltip:o,children:u,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:m,...p}=l,h=qo(Vl,o),v=Yo(o),{onClose:S}=h;return b.useEffect(()=>(document.addEventListener(Nc,S),()=>document.removeEventListener(Nc,S)),[S]),b.useEffect(()=>{if(h.trigger){const w=A=>{A.target?.contains(h.trigger)&&S()};return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[h.trigger,S]),R.jsx(Hc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:w=>w.preventDefault(),onDismiss:S,children:R.jsxs(up,{"data-state":h.stateAttribute,...v,...p,ref:r,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:[R.jsx(Cv,{children:u}),R.jsx(gE,{scope:o,isInside:!0,children:R.jsx(Rx,{id:h.contentId,role:"tooltip",children:c||u})})]})})});Cg.displayName=Vl;var Mg="TooltipArrow",bE=b.forwardRef((l,r)=>{const{__scopeTooltip:o,...u}=l,c=Yo(o);return yE(Mg,o).isInside?null:R.jsx(sp,{...c,...u,ref:r})});bE.displayName=Mg;function SE(l,r){const o=Math.abs(r.top-l.y),u=Math.abs(r.bottom-l.y),c=Math.abs(r.right-l.x),d=Math.abs(r.left-l.x);switch(Math.min(o,u,c,d)){case d:return"left";case c:return"right";case o:return"top";case u:return"bottom";default:throw new Error("unreachable")}}function xE(l,r,o=5){const u=[];switch(r){case"top":u.push({x:l.x-o,y:l.y+o},{x:l.x+o,y:l.y+o});break;case"bottom":u.push({x:l.x-o,y:l.y-o},{x:l.x+o,y:l.y-o});break;case"left":u.push({x:l.x+o,y:l.y-o},{x:l.x+o,y:l.y+o});break;case"right":u.push({x:l.x-o,y:l.y-o},{x:l.x-o,y:l.y+o});break}return u}function wE(l){const{top:r,right:o,bottom:u,left:c}=l;return[{x:c,y:r},{x:o,y:r},{x:o,y:u},{x:c,y:u}]}function EE(l,r){const{x:o,y:u}=l;let c=!1;for(let d=0,m=r.length-1;du!=S>u&&o<(v-p)*(u-h)/(S-h)+p&&(c=!c)}return c}function TE(l){const r=l.slice();return r.sort((o,u)=>o.xu.x?1:o.yu.y?1:0),AE(r)}function AE(l){if(l.length<=1)return l.slice();const r=[];for(let u=0;u=2;){const d=r[r.length-1],m=r[r.length-2];if((d.x-m.x)*(c.y-m.y)>=(d.y-m.y)*(c.x-m.x))r.pop();else break}r.push(c)}r.pop();const o=[];for(let u=l.length-1;u>=0;u--){const c=l[u];for(;o.length>=2;){const d=o[o.length-1],m=o[o.length-2];if((d.x-m.x)*(c.y-m.y)>=(d.y-m.y)*(c.x-m.x))o.pop();else break}o.push(c)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}var RE=Tg,CE=Ag,OE=Rg,Ng=Cg;const ME=RE,NE=CE,_E=OE,_g=b.forwardRef(({className:l,sideOffset:r=4,...o},u)=>R.jsx(Ng,{ref:u,sideOffset:r,className:We("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l),...o}));_g.displayName=Ng.displayName;function DE({speed:l,onSpeedChange:r}){return R.jsxs("div",{className:"flex items-center gap-2 w-full",children:[R.jsx("span",{className:"text-sm font-medium",children:"Speed:"}),R.jsx(ME,{children:R.jsxs(NE,{children:[R.jsx(_E,{asChild:!0,children:R.jsx("div",{className:"w-full",children:R.jsx(xg,{value:[l],onValueChange:([o])=>r(o),min:.5,max:2,step:.1,className:"[&_[role=slider]]:h-4 [&_[role=slider]]:w-4"})})}),R.jsx(_g,{children:R.jsxs("p",{children:[l,"x"]})})]})})]})}const zE=b.memo(function({text:r,audio:o,active:u,playing:c,onClick:d,onStart:m,onPause:p,onEnd:h,...v}){b.useEffect(()=>{const A=S.current;if(!A)return;const y=()=>m?.(),N=()=>h?.(),x=()=>{S.current?.ended||p?.()};return A.addEventListener("play",y),A.addEventListener("pause",x),A.addEventListener("ended",N),()=>{A.removeEventListener("play",y),A.removeEventListener("pause",x),A.removeEventListener("ended",N)}},[m,p,h]),b.useEffect(()=>{S.current&&u&&(c?(S.current?.ended&&(S.current.currentTime=0),S.current.play()):S.current.pause())},[u,c]);const S=b.useRef(null);b.useEffect(()=>{o&&S.current&&(u?(S.current.play(),S.current.scrollIntoView({behavior:"smooth",block:"center"})):(S.current.pause(),S.current.currentTime=0))},[o,u]);const w=b.useMemo(()=>URL.createObjectURL(o),[o]);return R.jsxs("div",{...v,className:We("p-3 rounded-lg transition-all hover:bg-blue-50 hover:border hover:border-blue-200 cursor-pointer",u?"bg-blue-50 border border-blue-200":"bg-gray-50 border border-transparent"),onClick:d,children:[R.jsx("p",{children:r}),o&&R.jsx("audio",{ref:S,src:w,controls:!0,className:"w-full mt-2"})]})});function jE(){const[l,r]=b.useState("Kokoro is an open-weight TTS model with 82 million parameters. Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, Kokoro can be deployed anywhere from production environments to personal projects. It can even run 100% locally in your browser, powered by Transformers.js!"),[o,u]=b.useState(null),[c,d]=b.useState(!1),[m,p]=b.useState(-1),[h,v]=b.useState(1),[S,w]=b.useState(!1),[A,y]=b.useState("loading"),[N,x]=b.useState(null),C=b.useRef(null),[D,j]=b.useState(null),[U,q]=b.useState("af_heart"),[B,F]=b.useState([]),[P,de]=b.useState(null);b.useEffect(()=>{C.current??=new Worker(new URL("/assets/worker-VJknFLmu.js",import.meta.url),{type:"module"});const le=({data:W})=>{switch(W.status){case"device":Gh("Device detected: "+W.device);break;case"ready":Gh("Model loaded successfully"),y("ready"),j(W.voices);break;case"error":y("error"),x(W.data);break;case"stream":{F(fe=>[...fe,W.chunk]);break}case"complete":{y("ready"),de(W.audio);break}}},ue=W=>{console.error("Worker error:",W),x(W.message)};return C.current?.addEventListener("message",le),C.current?.addEventListener("error",ue),()=>{C.current?.removeEventListener("message",le),C.current?.removeEventListener("error",ue)}},[]);const J=o&&o.text===l&&o.speed===h&&o.voice===U,ae=()=>{if(!c&&A==="ready"&&!J){y("generating"),F([]),p(0);const le={text:l,voice:U,speed:h};u(le),C.current?.postMessage(le)}m===-1&&p(0),d(!c)},oe=async()=>{await navigator.clipboard.writeText(l),w(!0),setTimeout(()=>w(!1),2e3)};return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"min-h-screen bg-gray-50/50 p-4 md:p-12",children:R.jsxs("div",{className:"container mx-auto max-w-4xl",children:[R.jsxs("div",{className:"text-center mb-4",children:[R.jsxs("div",{className:"inline-flex items-center gap-2",children:[R.jsx(ab,{className:"size-12 text-blue-500"}),R.jsx("h1",{className:"text-5xl font-bold text-gray-900",children:"Kokoro Web"})]}),R.jsx("p",{className:"text-gray-500",children:"Convert text to natural-sounding speech"})]}),R.jsx(Mv,{className:"shadow-lg",children:R.jsxs(Nv,{children:[R.jsxs("div",{className:"relative",children:[R.jsx(Ov,{value:l,onChange:le=>r(le.target.value),placeholder:"Type or paste your text here...",className:`transition-all min-h-[180px] text-lg leading-relaxed ${J&&A==="ready"?"bg-green-100":""} resize-y ${A==="loading"?"text-gray-300":""}`}),R.jsx(go,{size:"icon",variant:"ghost",className:"absolute top-2 right-2 h-8 w-8",onClick:oe,children:S?R.jsx(hv,{className:"h-4 w-4"}):R.jsx(sb,{className:"h-4 w-4"})})]}),R.jsx("div",{className:"flex justify-end pt-2",children:R.jsx($1,{text:l})}),R.jsx("div",{className:"flex gap-4 pb-4 min-h-14 items-center justify-center",children:D?R.jsxs(R.Fragment,{children:[R.jsx(kw,{voices:D,selectedVoice:U,onVoiceChange:q}),R.jsx("div",{className:"flex items-center gap-4 w-44",children:R.jsx(DE,{speed:h,onSpeedChange:v})})]}):N?R.jsx("div",{className:"text-red-400 font-semibold text-lg/6 text-center p-2",children:N}):R.jsx("div",{className:"animate-pulse text-center",children:"Loading model..."})}),R.jsx(y1,{}),R.jsxs("div",{className:"flex py-4 gap-4",children:[R.jsx(go,{size:"lg",onClick:ae,className:We("text-lg w-36 transition-all",c&&"bg-orange-600 hover:bg-orange-700"),disabled:A==="ready"&&!c&&!l||A!=="ready"&&B.length===0,children:c?R.jsxs(R.Fragment,{children:[R.jsx(mb,{className:"mr-1 size-8"}),"Pause"]}):R.jsxs(R.Fragment,{children:[R.jsx(vb,{className:"mr-1 size-8"}),J||A==="generating"?"Play":"Generate"]})}),R.jsxs(go,{size:"lg",variant:"outline",onClick:()=>{if(!P)return;const le=URL.createObjectURL(P),ue=document.createElement("a");ue.href=le,ue.download="audio.wav",ue.click(),URL.revokeObjectURL(le)},disabled:!P||A!=="ready",className:"ml-auto",children:[R.jsx(fb,{className:"mr-2 size-6"}),"Download Audio"]})]}),B.length>0&&R.jsx("div",{className:"mt-4 space-y-1 max-h-[320px] overflow-y-auto px-1 hover",children:B.map(({text:le,audio:ue},W)=>R.jsx(zE,{text:le,audio:ue,onClick:()=>{p(W)},active:m===W,playing:c,onStart:()=>{p(W),d(!0)},onPause:()=>{m===W&&d(!1)},onEnd:()=>{A!=="generating"&&m===B.length-1?(d(!1),p(-1)):p(fe=>fe+1)}},W))})]})})]})}),R.jsxs("div",{className:"fixed bottom-4 text-center w-full",children:["Powered by"," ",R.jsx("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline",children:"🤗 Transformers.js"})]}),R.jsx(W1,{toastOptions:{style:{fontSize:16}}})]})}F0.createRoot(document.getElementById("root")).render(R.jsx(b.StrictMode,{children:R.jsx(jE,{})}));