@nathanstephenson/flow 0.1.10-beta.6 → 0.1.10-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -19
- package/dist/build-id +1 -1
- package/dist/cli/application.js +4 -37
- package/dist/cli/bootstrap.js +2 -2
- package/dist/cli/install-guard.js +1 -1
- package/dist/client/context-usage.js +2 -3
- package/dist/client/enquiry.js +0 -6
- package/dist/client/model-choices.js +1 -1
- package/dist/client/permission.js +1 -2
- package/dist/client/relative-time.js +1 -1
- package/dist/client/scope-kind.js +2 -3
- package/dist/client/search.js +1 -1
- package/dist/client/status.js +1 -1
- package/dist/client/subagent-tree.js +1 -1
- package/dist/client/tool-chains.js +1 -1
- package/dist/client/tool-summary.js +2 -3
- package/dist/daemon/config-store.js +2 -0
- package/dist/daemon/config.js +32 -1
- package/dist/daemon/git.js +33 -2
- package/dist/daemon/host.js +12 -3
- package/dist/daemon/runtime.js +1 -1
- package/dist/daemon/server.js +2 -2
- package/dist/daemon/workflow-schedule-driver.js +5 -1
- package/dist/workflows/schedules.js +1 -0
- package/package.json +1 -1
- package/web/dist/assets/index-5E7qbtVD.js +51 -0
- package/web/dist/assets/{switch-B00FEUA7.js → select-C-BND5Jn.js} +1 -1
- package/web/dist/assets/{settings-mcp-3cgqQB28.js → settings-mcp-CBXZt_cf.js} +1 -1
- package/web/dist/assets/{settings-secrets-BIO_hXZ1.js → settings-secrets-29ZG3w6p.js} +1 -1
- package/web/dist/assets/{settings-workflows-Cutm8isB.js → settings-workflows-CE11fxNj.js} +2 -2
- package/web/dist/assets/workflow-api-DkUjAZ4w.js +6 -0
- package/web/dist/assets/{workflows-D6oEUUhj.js → workflows-DdogjBu3.js} +5 -5
- package/web/dist/assets/{workflows-pane-KIdSDKJB.js → workflows-pane-B0dyuSuz.js} +1 -1
- package/web/dist/index.html +4 -4
- package/dist/tui/app.js +0 -612
- package/dist/tui/keys.js +0 -90
- package/dist/tui/render.js +0 -417
- package/web/dist/assets/index-BhfJhrVJ.js +0 -51
- package/web/dist/assets/workflow-api-BfExddae.js +0 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as e,t}from"./rolldown-runtime-B0Z9INg1.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function j(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+A(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+A(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(j(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},te={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),r=t(((e,t)=>{t.exports=n()})),i=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),a=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=i()})),o=e(r(),1),s=e(a(),1),c=500,l=8e3,u=45e3,d=new Set([401,403,404]);function f(e){let t=e.token?{authorization:`Bearer ${e.token}`}:{},n=e.token?{}:{credentials:`same-origin`};return{async command(r){let i=await fetch(`${e.url}/api/command`,{method:`POST`,headers:{...t,"content-type":`application/json`},...n,body:JSON.stringify(r)});return await h(i,e.token,e.authenticationRequired),(await i.json()).result},async listSessions(){let r=await fetch(`${e.url}/api/sessions`,{headers:t,...n});return await h(r,e.token,e.authenticationRequired),await r.json()},async branches(r){let i=`${e.url}/api/branches?scope=${encodeURIComponent(r)}`,a=await fetch(i,{headers:t,...n});return await h(a,e.token,e.authenticationRequired),await a.json()},async readPresentation(r,i,a){let o=await fetch(`${e.url}/api/sessions/${encodeURIComponent(r)}/presentation?before=${i}&limit=400`,{headers:t,...n,...a?{signal:a}:{}});return await h(o,e.token,e.authenticationRequired),await o.json()},subscribePresentation({sessionId:r,start:i,onSnapshot:a,onUpdate:o,onError:s,onLink:l,silenceMs:f}){let h=`${e.url}/api/sessions/${encodeURIComponent(r)}/presentation/events`,_=!1,v,y,b=0;return(async()=>{for(;!_;){l?.(`connecting`);let r=new AbortController;v=r;let x=!1,S=()=>setTimeout(()=>{x=!0,r.abort()},f??u),C=S(),w=()=>{clearTimeout(C),C=S()},T=Date.now();try{let c=i(),u=await fetch(`${h}?limit=400${c===void 0?``:`&start=${c}`}`,{headers:t,...n,signal:r.signal});if(!u.ok||!u.body){let t=await g(u,e.token,e.authenticationRequired);if(d.has(u.status)){l?.(`gone`),s?.(t);return}throw t}let f=!1;for await(let e of m(u.body,w)){if(_)return;if(e.type===`snapshot`)a(e),f=!0,l?.(`live`);else{if(!f)throw Error(`Presentation stream did not begin with a snapshot`);o(e)}}}catch(e){if(_)return;x||s?.(e instanceof Error?e:Error(String(e)))}finally{clearTimeout(C)}if(_)return;b=Date.now()-T>=c?1:b+1,l?.(`retrying`),await new Promise(e=>{let t=setTimeout(e,p(b));y=()=>{clearTimeout(t),e()}}),y=void 0}})(),()=>{_=!0,v?.abort(),y?.()}},subscribe({sessionId:r,since:i,onEntry:a,onError:o,onLink:s,silenceMs:l}){let f=`${e.url}/api/sessions/${encodeURIComponent(r)}/events`,h=l??u,_=i,v=0,y=!1,b,x;return(async()=>{for(;!y;){s?.(`connecting`);let r=new AbortController;b=r;let i=!1,l=()=>setTimeout(()=>{i=!0,r.abort()},h),u=l(),S=Date.now();try{let i=await fetch(`${f}?since=${_}`,{headers:t,...n,signal:r.signal});if(!i.ok||!i.body){let t=await g(i,e.token,e.authenticationRequired);if(d.has(i.status)){s?.(`gone`),o?.(t);return}throw t}s?.(`live`);for await(let e of m(i.body))clearTimeout(u),u=l(),e.seq>_&&(_=e.seq),a(e)}catch(e){if(y)return;i||o?.(e instanceof Error?e:Error(String(e)))}finally{clearTimeout(u)}if(y)return;v=Date.now()-S>=c?1:v+1,s?.(`retrying`),await new Promise(e=>{let t=setTimeout(e,p(v));x=()=>{clearTimeout(t),e()}}),x=void 0}})(),()=>{y=!0,b?.abort(),x?.()}}}}function p(e){let t=Math.min(l,c*2**(e-1));return Math.round(t*(.5+Math.random()/2))}async function*m(e,t){let n=new TextDecoder,r=``;for await(let i of e){t?.(),r+=n.decode(i,{stream:!0});let e=r.indexOf(`
|
|
2
|
+
|
|
3
|
+
`);for(;e!==-1;){let t=r.slice(0,e);r=r.slice(e+2);let n=t.split(`
|
|
4
|
+
`).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trim()).join(``);n&&(yield JSON.parse(n)),e=r.indexOf(`
|
|
5
|
+
|
|
6
|
+
`)}}}async function h(e,t,n){if(!e.ok)throw await g(e,t,n)}async function g(e,t,n){t||n?.(e);let r=await e.clone().json().then(e=>e?.code,()=>void 0),i=Error(await _(e));return typeof r==`string`?Object.assign(i,{code:r}):i}async function _(e){let t=await e.text().catch(()=>``);if(e.status===524)return`524 Proxy timed out. Accepted commands may still be running. Check their status before retrying.`;let n=`${e.status} ${v(e.statusText)}`.trim(),r=e.headers.get(`content-type`)?.split(`;`,1)[0]?.trim().toLowerCase();if(r===`text/html`||r===`application/xhtml+xml`)return n;let i=``;try{let e=JSON.parse(t);e&&typeof e==`object`&&`error`in e&&typeof e.error==`string`&&(i=v(e.error))}catch{(!r||r===`text/plain`)&&(i=v(t))}return i?`${n}: ${i}`:n}function v(e){if(/[<>]/.test(e))return``;let t=e.replace(/[\u0000-\u001f\u007f]/g,` `).replace(/\s+/g,` `).trim();return t.length>240?`${t.slice(0,239)}…`:t}async function y(e,t){let n=await fetch(e,{credentials:`same-origin`,...t});return x(n),n}var b=!1;function x(e){let t=e.headers.get(`x-flow-login`);return e.status!==401||!t?!1:(C(t),!0)}function S(e){e===4001&&C(`/oauth/login`)}function C(e){if(b)return;b=!0;let t=globalThis,n=`${t.location.pathname}${t.location.search}${t.location.hash}`,r=e.includes(`?`)?`&`:`?`;t.location.assign(`${e}${r}return_to=${encodeURIComponent(n)}`)}var w=f({url:``,authenticationRequired:x}),T=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=t(((e,t)=>{t.exports=T()})),D=E(),O=`'Inter Variable', sans-serif`,ee=`'MesloLGS NF', 'JetBrainsMono Nerd Font', 'FiraCode Nerd Font', 'Hack Nerd Font', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`;function k(){return{chrome:O,monospace:ee}}function A(e){return M(e).map(e=>N(e.trim())).filter(e=>e.length>0)}function j(e){return M(e).map(e=>e.trim()).filter(e=>e.length>0).map(e=>P(e)?`"${N(e)}"`:e)}function M(e){let t=[],n=``,r;for(let i of e){if(r){i===r&&(r=void 0),n+=i;continue}if(i===`'`||i===`"`){r=i,n+=i;continue}if(i===`,`){t.push(n),n=``;continue}n+=i}return t.push(n),t}function N(e){return/^(['"])(.*)\1$/.exec(e)?.[2]??e}function P(e){return/^['"]/.test(e)?!0:!F.has(e.toLowerCase())&&!/^[A-Za-z_-][\w-]*$/.test(e)}var F=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`math`,`emoji`,`fangsong`,`inherit`,`initial`,`revert`,`revert-layer`,`unset`]),te=k();function I(e){let t={chrome:e?.chrome?.trim()||te.chrome,monospace:e?.monospace?.trim()||te.monospace},n=document.documentElement;return n.style.setProperty(`--font-sans`,t.chrome),n.style.setProperty(`--font-mono`,t.monospace),t}async function ne(e){try{await Promise.allSettled(j(e).map(e=>document.fonts.load(`13px ${e}`))),await document.fonts.ready}catch{}}var re=w,L=(0,o.createContext)(void 0);function R(){let e=(0,o.useContext)(L);if(!e)throw Error(`useHost outside HostProvider`);return e}function ie({children:e}){let[t,n]=(0,o.useState)({state:`loading`});(0,o.useEffect)(()=>{let e=new AbortController;return(async()=>{try{let t=await y(`/api/config`,{signal:e.signal});if(t.status===401||t.status===403){n({state:`unauthorized`});return}let r=await t.json();I(r.fonts),n({state:`ready`,config:r})}catch{e.signal.aborted||n({state:`loading`})}})(),()=>e.abort()},[]);let r=(0,o.useCallback)(async()=>{let e=await y(`/api/config`);if(!e.ok)return;let t=await e.json();I(t.fonts),n(e=>e.state===`ready`?{state:`ready`,config:t}:e)},[]),i=(0,o.useCallback)(async e=>{let t=await y(`/api/config`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(e)}),r=await t.json();if(!t.ok)throw Error(r.error??`Could not save the Settings (${t.status})`);return I(r.fonts),n(e=>e.state===`ready`?{state:`ready`,config:{...e.config,fonts:r.fonts,retention:r.retention,mcp:r.mcp,filesystemIsolation:r.filesystemIsolation,filesystemIsolationStatus:r.filesystemIsolationStatus,sandboxSharing:r.sandboxSharing,worktrees:r.worktrees,...r.projects===void 0?{projects:void 0}:{projects:r.projects},...r.permissions===void 0?{permissions:void 0}:{permissions:r.permissions},...r.providers===void 0?{providers:void 0}:{providers:r.providers}}}:e),r},[]);return t.state===`unauthorized`?(0,D.jsx)(ae,{}):t.state===`loading`?(0,D.jsx)(z,{}):(0,D.jsx)(L.Provider,{value:{connection:re,config:t.config,saveSettings:i,refresh:r},children:e})}function ae(){return(0,D.jsxs)(`main`,{className:`flex h-full flex-col items-center justify-center gap-3 px-6 text-center`,children:[(0,D.jsx)(`h1`,{className:`text-lg font-semibold`,children:`This browser is not authorised`}),(0,D.jsx)(`p`,{className:`max-w-md text-sm text-muted-foreground`,children:`The Session Host prints a handoff URL when it starts. Open it once in this browser and it sets the cookie every request after that carries.`}),(0,D.jsx)(`code`,{className:`rounded-md border bg-muted px-2 py-1 font-mono text-sm text-foreground`,children:`/auth?token=…`}),(0,D.jsx)(`p`,{className:`max-w-md text-xs text-muted-foreground`,children:`Use the URL as printed. Under the dev server, use the one the dev handoff printed instead — 127.0.0.1 and localhost are different cookie hosts.`})]})}function z(){return(0,D.jsx)(`main`,{className:`flex h-full items-center justify-center`,children:(0,D.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Reaching the Session Host…`})})}function oe(){return typeof window<`u`}function B(e){return se(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((se(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function se(e){return oe()?e instanceof Node||e instanceof V(e).Node:!1}function ce(e){return oe()?e instanceof Element||e instanceof V(e).Element:!1}function U(e){return oe()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function le(e){return!oe()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function ue(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function de(e){return/^(table|td|th)$/.test(B(e))}function fe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var pe=/transform|translate|scale|rotate|perspective|filter/,me=/paint|layout|strict|content/,he=e=>!!e&&e!==`none`,ge;function _e(e){let t=ce(e)?xe(e):e;return he(t.transform)||he(t.translate)||he(t.scale)||he(t.rotate)||he(t.perspective)||!ye()&&(he(t.backdropFilter)||he(t.filter))||pe.test(t.willChange||``)||me.test(t.contain||``)}function ve(e){let t=Ce(e);for(;U(t)&&!be(t);){if(_e(t))return t;if(fe(t))return null;t=Ce(t)}return null}function ye(){return ge??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ge}function be(e){return/^(html|body|#document)$/.test(B(e))}function xe(e){return V(e).getComputedStyle(e)}function Se(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ce(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||le(e)&&e.host||H(e);return le(t)?t.host:t}function we(e){let t=Ce(e);return be(t)?(e.ownerDocument||e).body:U(t)&&ue(t)?t:we(t)}function Te(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=we(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=Ee(a);return t.concat(a,a.visualViewport||[],ue(r)?r:[],e&&n?Te(e):[])}return t.concat(r,Te(r,[],n))}function Ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var De={...o},Oe={};function W(e,t){let n=o.useRef(Oe);return n.current===Oe&&(n.current=e(t)),n}var ke=De.useInsertionEffect,Ae=ke&&ke!==De.useLayoutEffect?ke:e=>e();function G(e){let t=W(je).current;return t.next=e,Ae(t.effect),t.trampoline}function je(){let e={next:void 0,callback:Me,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Me(){}var K=typeof document<`u`?o.useLayoutEffect:()=>{};function Ne(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Pe={};function Fe(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Le(t);let a=Le(e);return t&&(a=Re(a,t)),n&&(a=Re(a,n)),r&&(a=Re(a,r)),i&&(a=Re(a,i)),a}function Ie(e){if(e.length===0)return Pe;if(e.length===1)return Le(e[0]);let t=Le(e[0]);for(let n=1;n<e.length;n+=1)t=Re(t,e[n]);return t}function Le(e){return He(e)?{...Ue(e,Pe)}:ze(e)}function Re(e,t){return He(t)?Ue(t,e):Be(e,t)}function ze(e){let t={...e};for(let e in t){let n=t[e];Ve(e,n)&&(t[e]=Ge(n))}return t}function Be(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Ne(e.style,r);break;case`className`:e[n]=qe(e.className,r);break;default:e[n]=Ve(n,r)?We(e[n],r):r}}return e}function Ve(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function He(e){return typeof e==`function`}function Ue(e,t){return He(e)?e(t):e??Pe}function We(e,t){return t?e?(...n)=>{let r=n[0];if(Je(r)){let i=r;Ke(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Ge(t):e}function Ge(e){return e&&((...t)=>{let n=t[0];return Je(n)&&Ke(n),e(...t)})}function Ke(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function qe(e,t){return t?e?t+` `+e:t:e}function Je(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Ye(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Xe=Ye(`https://base-ui.com/production-error`,`Base UI`),Ze=o.createContext(void 0);function Qe(e=!1){let t=o.useContext(Ze);if(t===void 0&&!e)throw Error(Xe(16));return t}function $e(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,s=r&&t!==!1,c=r&&t===!1;return{props:o.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||c)&&(e.disabled=n),e},[r,n,t,s,c,a,i])}}function q(e){return e?.ownerDocument||document}function et(e,t,{detail:n=0}={}){e.dispatchEvent(new(V(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function tt(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,s=o.useRef(null),c=Qe(!0),l=a??c!==void 0,{props:u}=$e({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=o.useCallback(()=>{let e=s.current;nt(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return K(d,[d]),{getButtonProps:o.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...c}=e;return Fe({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Ke(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=nt(r),s=!i&&rt(r),c=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&l&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),et(r,e));return}if(!c||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),et(r,e)))},onKeyUp(e){if(!t){if(Ke(e),a?.(e),e.target===e.currentTarget&&i&&l&&nt(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!l&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),et(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},u,c)},[t,u,l,i]),buttonRef:G(e=>{s.current=e,d()})}}function nt(e){return U(e)&&e.tagName===`BUTTON`}function rt(e){return U(e)&&e.tagName===`A`&&!!e.href}function it(e,t,n,r){let i=W(ot).current;return st(i,e,t,n,r)&<(i,[e,t,n,r]),i.callback}function at(e){let t=W(ot).current;return ct(t,e)&<(t,e),t.callback}function ot(){return{callback:null,cleanup:null,refs:[]}}function st(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ct(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function lt(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var ut=19;function dt(e){return ut>=e}function ft(e){if(!o.isValidElement(e))return null;let t=e,n=t.props;return(dt(19)?n?.ref:t.ref)??null}function J(){}var pt=Object.freeze([]),mt=Object.freeze({});function ht(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function gt(e,t){return typeof e==`function`?e(t):e}function _t(e,t){return typeof e==`function`?e(t):e}function vt(e,t,n={}){let r=t.render,i=yt(t,n);return n.enabled===!1?null:St(e,r,i,n.state??mt)}function yt(e,t={}){let{className:n,style:r,render:i}=e,{state:a=mt,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?gt(n,a):void 0,d=l?_t(r,a):void 0,f=l?ht(a,c):mt,p=l&&s?bt(s):void 0,m=l?Ne(f,p)??{}:mt;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?at([m.ref,ft(i),...o]):it(m.ref,ft(i),o):it(null,null)),l?(u!==void 0&&(m.className=qe(m.className,u)),d!==void 0&&(m.style=Ne(m.style,d)),m):mt}function bt(e){return Array.isArray(e)?Ie(e):Fe(void 0,e)}var xt=Symbol.for(`react.lazy`);function St(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Fe(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===xt&&(i=o.Children.toArray(t)[0]),o.cloneElement(i,e)}if(e&&typeof e==`string`)return Ct(e,n);throw Error(Xe(8))}function Ct(e,t){return e===`button`?(0,o.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,o.createElement)(`img`,{alt:``,...t,key:t.key}):o.createElement(e,t)}var wt=o.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=tt({disabled:i,focusableWhenDisabled:a,native:o});return vt(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})});function Tt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Tt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Et(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Tt(e))&&(r&&(r+=` `),r+=t);return r}var Dt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ot=Et,kt=(e,t)=>n=>{if(t?.variants==null)return Ot(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Dt(t)||Dt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ot(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},At=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},jt=(e,t)=>({classGroupId:e,validator:t}),Mt=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Nt=`-`,Pt=[],Ft=`arbitrary..`,It=e=>{let t=zt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Rt(e);let n=e.split(Nt);return Lt(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?At(i,t):t:i||Pt}return n[e]||Pt}}},Lt=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Lt(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Nt):e.slice(t).join(Nt),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Rt=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ft+r:void 0})(),zt=e=>{let{theme:t,classGroups:n}=e;return Bt(n,t)},Bt=(e,t)=>{let n=Mt();for(let r in e){let i=e[r];Vt(i,n,r,t)}return n},Vt=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ht(i,t,n,r)}},Ht=(e,t,n,r)=>{if(typeof e==`string`){Ut(e,t,n);return}if(typeof e==`function`){Wt(e,t,n,r);return}Gt(e,t,n,r)},Ut=(e,t,n)=>{let r=e===``?t:Kt(t,e);r.classGroupId=n},Wt=(e,t,n,r)=>{if(qt(e)){Vt(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(jt(n,e))},Gt=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Vt(o,Kt(t,a),n,r)}},Kt=(e,t)=>{let n=e,r=t.split(Nt),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Mt(),n.nextPart.set(t,i)),n=i}return n},qt=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Jt=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Yt=`!`,Xt=`:`,Zt=[],Qt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),$t=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Xt){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Yt)?(c=s.slice(0,-1),l=!0):s.startsWith(Yt)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Qt(t,l,c,u)};if(t){let e=t+Xt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Qt(Zt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},en=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},tn=e=>({cache:Jt(e.cacheSize),parseClassName:$t(e),sortModifiers:en(e),postfixLookupClassGroupIds:nn(e),...It(e)}),nn=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},rn=/\s+/,an=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(rn),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Yt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},on=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=sn(n))&&(i&&(i+=` `),i+=r);return i},sn=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=sn(e[r]))&&(n&&(n+=` `),n+=t);return n},cn=(e,...t)=>{let n,r,i,a,o=o=>(n=tn(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=an(e,n);return i(e,a),a};return a=o,(...e)=>a(on(...e))},ln=[],Y=e=>{let t=t=>t[e]||ln;return t.isThemeGetter=!0,t},un=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,pn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mn=/\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$/,hn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_n=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vn=e=>fn.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),yn=e=>!!e&&Number.isInteger(Number(e)),bn=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),xn=e=>pn.test(e),Sn=()=>!0,Cn=e=>mn.test(e)&&!hn.test(e),wn=()=>!1,Tn=e=>gn.test(e),En=e=>_n.test(e),Dn=e=>!Z(e)&&!Q(e),On=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),kn=e=>Wn(e,Jn,wn),Z=e=>un.test(e),An=e=>Wn(e,Yn,Cn),jn=e=>Wn(e,Xn,X),Mn=e=>Wn(e,Qn,Sn),Nn=e=>Wn(e,Zn,wn),Pn=e=>Wn(e,Kn,wn),Fn=e=>Wn(e,qn,En),In=e=>Wn(e,$n,Tn),Q=e=>dn.test(e),Ln=e=>Gn(e,Yn),Rn=e=>Gn(e,Zn),zn=e=>Gn(e,Kn),Bn=e=>Gn(e,Jn),Vn=e=>Gn(e,qn),Hn=e=>Gn(e,$n,!0),Un=e=>Gn(e,Qn,!0),Wn=(e,t,n)=>{let r=un.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Gn=(e,t,n=!1)=>{let r=dn.exec(e);return r?r[1]?t(r[1]):n:!1},Kn=e=>e===`position`||e===`percentage`,qn=e=>e===`image`||e===`url`,Jn=e=>e===`length`||e===`size`||e===`bg-size`,Yn=e=>e===`length`,Xn=e=>e===`number`,Zn=e=>e===`family-name`,Qn=e=>e===`number`||e===`weight`,$n=e=>e===`shadow`,er=cn(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[vn,`full`,`auto`,...w()],E=()=>[yn,`none`,`subgrid`,Q,Z],D=()=>[`auto`,{span:[`full`,yn,Q,Z]},yn,Q,Z],O=()=>[yn,`auto`,Q,Z],ee=()=>[`auto`,`min`,`max`,`fr`,Q,Z],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[vn,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[vn,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[vn,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,Q,Z],te=()=>[...b(),zn,Pn,{position:[Q,Z]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Bn,kn,{size:[Q,Z]}],re=()=>[bn,Ln,An],L=()=>[``,`none`,`full`,l,Q,Z],R=()=>[``,X,Ln,An],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],z=()=>[X,bn,zn,Pn],oe=()=>[``,`none`,m,Q,Z],B=()=>[`none`,X,Q,Z],V=()=>[`none`,X,Q,Z],H=()=>[X,Q,Z],se=()=>[vn,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[xn],breakpoint:[xn],color:[Sn],container:[xn],"drop-shadow":[xn],ease:[`in`,`out`,`in-out`],font:[Dn],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[xn],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[xn],shadow:[xn],spacing:[`px`,X],text:[xn],"text-shadow":[xn],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,vn,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[On],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[yn,`auto`,Q,Z]}],basis:[{basis:[vn,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,vn,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[yn,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,Ln,An]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Un,Mn]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,bn,Z]}],"font-family":[{font:[Rn,Nn,t]}],"font-features":[{"font-features":[Z]}],"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:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,jn]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,An]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[yn,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},yn,Q,Z],radial:[``,Q,Z],conic:[yn,Q,Z]},Vn,Fn]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,Ln,An]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,Hn,In]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Hn,In]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[X,An]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Hn,In]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:oe()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Hn,In]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"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`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":[`scale-3d`],skew:[{skew:H()}],"skew-x":[{"skew-x":H()}],"skew-y":[{"skew-y":H()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"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`],zoom:[{zoom:[yn,Q,Z]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"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-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":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`,Q,Z]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[X,Ln,An,jn]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function tr(...e){return er(Et(e))}var nr=`[&_svg]:transition-[filter] [&_svg]:duration-150 hover:[&_svg]:drop-shadow-[0_0_4px_color-mix(in_srgb,currentColor_70%,transparent)] motion-reduce:[&_svg]:transition-none`,rr=kt(`relative group/button inline-flex shrink-0 items-center justify-center rounded-2xl border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-transparent dark:hover:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5`,xs:`h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,lg:`h-9 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,icon:tr(`size-8`,nr),"icon-xs":tr(`size-6 [&_svg:not([class*='size-'])]:size-3`,nr),"icon-sm":tr(`size-7`,nr),"icon-lg":tr(`size-9`,nr)}},defaultVariants:{variant:`default`,size:`default`}});function ir({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,D.jsx)(wt,{"data-slot":`button`,className:tr(rr({variant:t,size:n,className:e})),...r})}function ar(e){o.useEffect(e,pt)}var or=o.createContext(void 0);function sr(){let e=o.useContext(or);if(!e)throw Error(Xe(73));return e}var cr=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),lr=t(((e,t)=>{t.exports=cr()})),ur=t((e=>{var t=r(),n=lr();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),dr=t(((e,t)=>{t.exports=ur()})),fr=lr(),pr=e(dr(),1),mr=[],hr=void 0;function gr(){return hr}function _r(e){mr.push(e)}function vr(e){let t=(t,n)=>{let r=W(br).current,i;try{hr=r;for(let e of mr)e.before(r);i=e(t,n);for(let e of mr)e.after(r);r.didInitialize=!0}finally{hr=void 0}return i};return t.displayName=e.displayName||e.name,t}function yr(e){return o.forwardRef(vr(e))}function br(){return{didInitialize:!1}}var xr=dt(19)?wr:Tr;function Sr(e,t,n,r,i){return xr(e,t,n,r,i)}function Cr(e,t,n,r,i){let a=o.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,fr.useSyncExternalStore)(e.subscribe,a,a)}_r({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,fr.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function wr(e,t,n,r,i){let a=gr();if(!a)return Cr(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Tr(e,t,n,r,i){return(0,pr.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Er=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Sr(this,e,t,n,r)}},Dr=class extends Er{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){o.useDebugValue(e);let n=this;K(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;K(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;K(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){o.useDebugValue(e);let n=this,r=t!==void 0;K(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return o.useDebugValue(e),Sr(this,this.selectors[e],t,n,r)}useContextCallback(e,t){o.useDebugValue(e);let n=G(t??J);this.context[e]=n}useStateSetter(e){let t=o.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Or(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function kr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var Ar=null;globalThis.requestAnimationFrame;var jr=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Mr=class e{static create(){return new e}static request(e){return jr.request(e)}static cancel(e){return jr.cancel(e)}currentId=Ar;request(e){this.cancel(),this.currentId=jr.request(()=>{this.currentId=Ar,e()})}cancel=()=>{this.currentId!==Ar&&(jr.cancel(this.currentId),this.currentId=Ar)};disposeEffect=()=>this.cancel};function Nr(){let e=W(Mr.create).current;return ar(e.disposeEffect),e}var Pr=0,Fr=class e{static create(){return new e}currentId=Pr;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Pr,t()},e)}isStarted(){return this.currentId!==Pr}clear=()=>{this.currentId!==Pr&&(clearTimeout(this.currentId),this.currentId=Pr)};disposeEffect=()=>this.clear};function Ir(){let e=W(Fr.create).current;return ar(e.disposeEffect),e}var Lr=0;function Rr(e){return Lr+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Lr}`}function zr(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Br(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Vr,platform:Hr,maxTouchPoints:Ur}=Br(),Wr=Vr.toLowerCase(),Gr=Hr.toLowerCase(),Kr=/^i(os$|p)/.test(Gr)||Gr===`macintel`&&Ur>1,qr=`android`,Jr=Gr===qr||Wr.includes(qr),Yr=!Kr&&Gr.startsWith(`mac`);Gr.startsWith(`win`),!Jr&&/^(linux|chrome os)/.test(Gr);var Xr=Yr||Kr,Zr=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),Qr=!Zr&&Wr.includes(`firefox`);!Zr&&Wr.includes(`chrom`);var $r=Xr,ei=/jsdom|happydom/.test(Wr),ti=`data-base-ui-focusable`,ni=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,ri=`ArrowLeft`,ii=`ArrowRight`,ai=`ArrowUp`,oi=`ArrowDown`;function si(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ci(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&le(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function li(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ui(e,t){if(!ce(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(ci(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function di(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function fi(e){return e.matches(`html,body`)}function pi(e){return U(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function mi(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ni}`)!=null}function hi(e){return e?e.getAttribute(`role`)===`combobox`&&pi(e):!1}function gi(e){if(!e||ei)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function _i(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function vi(e){e.preventDefault(),e.stopPropagation()}function yi(e){return`nativeEvent`in e}function bi(e){return e.pointerType===``&&e.isTrusted?!0:Jr&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xi(e){return ei?!1:!Jr&&e.width===0&&e.height===0||Jr&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Si(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Ci(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var wi=Math.min,Ti=Math.max,Ei=Math.round,Di=Math.floor,Oi=e=>({x:e,y:e}),ki={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ai(e,t,n){return Ti(e,wi(t,n))}function ji(e,t){return typeof e==`function`?e(t):e}function Mi(e){return e.split(`-`)[0]}function Ni(e){return e.split(`-`)[1]}function Pi(e){return e===`x`?`y`:`x`}function Fi(e){return e===`y`?`height`:`width`}function Ii(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Li(e){return Pi(Ii(e))}function Ri(e,t,n){n===void 0&&(n=!1);let r=Ni(e),i=Li(e),a=Fi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=qi(o)),[o,qi(o)]}function zi(e){let t=qi(e);return[Bi(e),t,Bi(t)]}function Bi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Vi=[`left`,`right`],Hi=[`right`,`left`],Ui=[`top`,`bottom`],Wi=[`bottom`,`top`];function Gi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Hi:Vi:t?Vi:Hi;case`left`:case`right`:return t?Ui:Wi;default:return[]}}function Ki(e,t,n,r){let i=Ni(e),a=Gi(Mi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Bi)))),a}function qi(e){let t=Mi(e);return ki[t]+e.slice(t.length)}function Ji(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Yi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ji(e)}function Xi(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Zi(e,t,n){return Math.floor(e/t)!==n}function Qi(e,t){return t<0||t>=e.length}function $i(e,t){return $(e.current,{disabledIndices:t})}function ea(e,t){return $(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function $(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&na(e,a,r));return a}function ta(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!na(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Di(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!na(e,r,s))return r}};d&&vi(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=$(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=$(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Qi(e,f)&&(f=u)}if(n===`both`){let n=Di(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&vi(t),u%o===o-1?r&&(f=$(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=$(e,{startingIndex:u,disabledIndices:s}),r&&Zi(f,o,n)&&(f=$(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Zi(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&vi(t),u%o===0?r&&(f=$(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=$(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Zi(f,o,n)&&(f=$(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Zi(f,o,n)&&(f=u));let c=Di(l/o)===n;Qi(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:$(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function na(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!ia(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function ra(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ia(e,t=e?xe(e):null){return!e||!e.isConnected||!t||ra(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var aa=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function oa(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return le(n)?n.host:null}function sa(e){for(let t of Array.from(e.children))if(B(t)===`summary`)return t;return null}function ca(e,t){let n=sa(t);return!!n&&(e===n||ci(n,e))}function la(e){let t=e?B(e):``;return e!=null&&e.matches(aa)&&(t!==`summary`||e.parentElement!=null&&B(e.parentElement)===`details`&&sa(e.parentElement)===e)&&(t!==`details`||sa(e)==null)&&(t!==`input`||e.type!==`hidden`)}function ua(e){if(!la(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=oa(t)){let n=t!==e,r=B(t)===`slot`;if(t.hasAttribute(`inert`)||n&&B(t)===`details`&&!t.open&&!ca(e,t)||t.hasAttribute(`hidden`)||!r&&!da(t,n))return!1}return!0}function da(e,t){let n=xe(e);return t?n.display!==`none`:ia(e,n)}function fa(e){let t=e.tabIndex;if(t<0){let t=B(e);if(t===`details`||t===`audio`||t===`video`||U(e)&&e.isContentEditable)return 0}return t}function pa(e){if(B(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function ma(e,t){let n=pa(e);if(!n)return!0;let r=t.find(e=>{let t=pa(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=pa(e);return t?.name===n.name&&t.form===n.form})===n}function ha(e){if(U(e)&&B(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return U(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ga(e,t){ha(e).forEach(e=>{la(e)&&t.push(e),ga(e,t)})}function _a(e,t,n){ha(e).forEach(e=>{U(e)&&e.matches(t)&&n.push(e),_a(e,t,n)})}function va(e){return ua(e)&&fa(e)>=0}function ya(e){let t=[];return ga(e,t),t.filter(ua)}function ba(e){let t=ya(e);return t.filter(e=>fa(e)>=0&&ma(e,t))}function xa(e,t){let n=ba(e),r=n.length;if(r===0)return;let i=si(q(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Sa(e){return xa(q(e).body,1)||e}function Ca(e){return xa(q(e).body,-1)||e}function wa(e,t){if(!e)return null;let n=ba(q(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Ta(e){return wa(e,1)}function Ea(e){return wa(e,-1)}function Da(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!ci(n,r)}function Oa(e){ba(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ka(e){let t=[];_a(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Aa(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function ja(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var Ma={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},Na=class extends Dr{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Aa(e.toasts)},{},Ma)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=ja(this.state.toasts,t);r.toasts=e,r.toastMetadata=Aa(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=Ma.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Rr(`toast`);if(e.id){let t=Ma.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(ja(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),Ma.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=Ma.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;if(!d&&f){this.clearTimer(e);return}d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),Ma.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=Ma.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=ja(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=zr(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=zr(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=zr(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Fr.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=li(e);ci(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=Ma.expandedOrOutOfFocus(this.state)?void 0:Fr.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:Aa(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=si(q(this.state.viewport));if(!this.state.viewport||!ci(this.state.viewport,t)||!gi(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=Ma.toasts(this.state),r=Ma.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},Pa=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=W(()=>new Na({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return ar(a.disposeEffect),o.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,D.jsxs)(or.Provider,{value:a,children:[(0,D.jsx)(Fa,{store:a,timeout:n,limit:r}),t]})};function Fa(e){let{store:t,timeout:n,limit:r}=e;return K(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var Ia={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},La={...Ia,position:`fixed`,top:0,left:0},Ra={...Ia,position:`absolute`},za=o.forwardRef(function(e,t){let[n,r]=o.useState();K(()=>{$r&&Zr&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,D.jsx)(`span`,{...e,ref:t,style:La,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),Ba=o.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...s}=e,c=sr(),l=Ir(),u=o.useRef(!1),d=o.useRef(!1),f=o.useRef(!1),p=c.useState(`isEmpty`),m=c.useState(`toasts`),h=c.useState(`focused`),g=c.useState(`expanded`),_=c.useState(`prevFocusElement`),v=m[0]?.height,y=m.some(e=>e.transitionStatus===`ending`),b=m.filter(e=>e.priority===`high`);o.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=V(e),n=q(e);function r(t){t.key===`F6`&&li(t)!==e&&(t.preventDefault(),c.set(`prevFocusElement`,si(n)),e?.focus({preventScroll:!0}),c.pauseTimers(),c.set(`focused`,!0))}function i(e){li(e)===t&&(c.set(`isWindowFocused`,!1),c.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=li(n),i=si(q(e));(r===t||!ci(e,r)||!gi(i))&&c.resumeTimers(),l.start(0,()=>c.set(`isWindowFocused`,!0))}return Or(kr(t,`keydown`,r),kr(t,`blur`,i,!0),kr(t,`focus`,a,!0),kr(n,`pointerdown`,c.handleDocumentPointerDown,!0))},[c,l,p]);function x(e){u.current=!0;let t=e.relatedTarget===c.state.viewport?m.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():c.restoreFocusToPrevElement()}function S(e){e.key===`Tab`&&e.shiftKey&&li(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement())}function C(){c.state.toasts.some(e=>e.transitionStatus===`ending`)||f.current||!d.current||(c.state.isWindowFocused&&c.resumeTimers(),c.set(`hovering`,!1),d.current=!1)}o.useEffect(C,[y,c]);function w(){c.pauseTimers(),c.set(`hovering`,!0),d.current=!1}function T(){c.state.isWindowFocused&&c.resumeTimers()}function E(){d.current=!0,C()}function O(e){e.pointerType===`touch`&&(f.current=!0)}function ee(e){e.pointerType===`touch`&&(f.current=!1,C())}function k(){if(u.current){u.current=!1;return}h||gi(si(q(c.state.viewport)))&&(c.set(`focused`,!0),c.pauseTimers())}function A(e){!h||ci(c.state.viewport,e.relatedTarget)||(c.set(`focused`,!1),T())}let j={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:E,onFocus:k,onBlur:A,onKeyDown:S,onClick:k,onPointerDown:O,onPointerUp:ee,onPointerCancel:ee,style:{"--toast-frontmost-height":v?`${v}px`:void 0}},M={expanded:g},N=!p&&_&&(0,D.jsx)(za,{onFocus:x}),P=vt(`div`,e,{ref:[t,c.setViewport],state:M,props:[j,s,{children:(0,D.jsxs)(o.Fragment,{children:[N,a,N]})}]});return(0,D.jsxs)(o.Fragment,{children:[N,P,!h&&b.length>0&&(0,D.jsx)(`div`,{style:La,children:b.map(e=>(0,D.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,D.jsx)(`div`,{children:e.title}),(0,D.jsx)(`div`,{children:e.description})]},e.id))})]})});function Va(e){return dt(19)?e:e?`true`:void 0}var Ha=o.createContext(void 0);function Ua(){let e=o.useContext(Ha);if(!e)throw Error(Xe(66));return e}var Wa=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Ga={"data-starting-style":``},Ka={"data-ending-style":``},qa={transitionStatus(e){return e===`starting`?Ga:e===`ending`?Ka:null}};function Ja(e){return e==null?e:`current`in e?e.current:e}function Ya(e,t=!1){let n=Nr();return G((r,i=null)=>{n.cancel();let a=Ja(e);if(a==null)return;let o=a,c=()=>{s.flushSync(r)};if(typeof o.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function l(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||c()},()=>{if(!i?.aborted){if(o.getAnimations().some(e=>e.pending||e.playState!==`finished`)){l();return}c()}})}if(t){let e=`data-starting-style`;if(!o.hasAttribute(e)){n.request(l);return}let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),l())});t.observe(o,{attributes:!0,attributeFilter:[e]}),i?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}n.request(l)})}function Xa(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=G(i),s=Ya(r,n);o.useEffect(()=>{if(!t)return;let e=new AbortController;return s(a,e.signal),()=>{e.abort()}},[t,n,a,s])}var Za={style:{transition:`none`}},Qa=`data-base-ui-click-trigger`,$a=`data-base-ui-swipe-ignore`,eo=`data-swipe-ignore`,to=`[${$a}]`,no=`[${eo}]`,ro={fallbackAxisSide:`none`},io={fallbackAxisSide:`end`},ao={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function oo(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function so(e){let t=V(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}var co={...qa,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},lo=40,uo=10,fo=.5,po=1,mo=`${to},${no}`,ho=o.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:c,...l}=e,u=n.positionerProps?.anchor!==void 0,d=[];u||(d=Array.isArray(a)?a:[a]);let f=d.length>0,p=sr(),[m,h]=o.useState(void 0),[g,_]=o.useState(!1),[v,y]=o.useState(!1),[b,x]=o.useState({x:0,y:0}),[S,C]=o.useState({x:0,y:0,scale:1}),[w,T]=o.useState(),[E,O]=o.useState(),[ee,k]=o.useState(null),A=o.useRef(null),j=o.useRef(void 0),M=o.useRef({x:0,y:0}),N=o.useRef({x:0,y:0,scale:1}),P=o.useRef(void 0),F=o.useRef(0),te=o.useRef(!1),I=o.useRef({x:0,y:0}),ne=o.useRef(!1),re=o.useRef({x:0,y:0}),L=o.useRef(null),R=o.useRef(null),ie=p.useState(`toastIndex`,n.id),ae=p.useState(`toastVisibleIndex`,n.id),z=p.useState(`toastOffsetY`,n.id),oe=p.useState(`focused`),B=p.useState(`expanded`);Xa({open:n.transitionStatus!==`ending`,ref:A,onComplete(){n.transitionStatus===`ending`&&p.removeToast(n.id)}});let V=G((e=!1)=>{let t=A.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){p.updateToastInternal(n.id,{ref:A,height:i,transitionStatus:void 0})}e?s.flushSync(a):a()});K(()=>{let e=j.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(h(void 0),C({x:0,y:0,scale:1}),H({x:0,y:0})),j.current=n.id,V())},[V,n.id,n.transitionStatus]);function H(e){re.current=e,x(e)}K(()=>()=>{R.current?.abort()},[]);function se(e,t){let n=e=>e>0?e**fo:-(Math.abs(e)**fo),r=e>0&&!d.includes(`right`)||e<0&&!d.includes(`left`),i=t>0&&!d.includes(`down`)||t<0&&!d.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let ce=G(e=>{if(e.pointerId!==L.current)return;L.current=null,R.current?.abort(),R.current=null,_(!1),y(!1),k(null);let t=N.current;if(e.type===`pointercancel`||te.current){H({x:t.x,y:t.y}),h(void 0);return}let r=re.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of d)if(oo(e,i,a)>lo){o=e;break}o?(h(o),p.closeToast(n.id)):(H({x:t.x,y:t.y}),h(void 0))});function U(e){if(e.button!==0||(e.pointerType===`touch`&&p.pauseTimers(),li(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${mo}`)))return;te.current=!1,P.current=void 0,F.current=0,L.current=e.pointerId,M.current={x:e.clientX,y:e.clientY},I.current=M.current;let t=e.currentTarget,n=so(t);N.current=n,C(n),H({x:n.x,y:n.y}),p.set(`hovering`,!0),_(!0),y(!1),k(null),ne.current=!0,R.current?.abort();let r=new AbortController;R.current=r;let i=q(t);i.addEventListener(`pointerup`,ce,{signal:r.signal}),i.addEventListener(`pointercancel`,ce,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function le(e){if(e.pointerId!==L.current)return;e.preventDefault(),ne.current&&=(M.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>I.current.y||i>0&&t<I.current.y)&&(I.current={x:I.current.x,y:t}),(r<0&&n>I.current.x||r>0&&n<I.current.x)&&(I.current={x:n,y:I.current.y});let a=n-M.current.x,o=t-M.current.y,s=t-I.current.y,c=n-I.current.x,l=ee;if(!v&&Math.sqrt(a*a+o*o)>=po){y(!0);let e=d.includes(`left`)||d.includes(`right`),t=d.includes(`up`)||d.includes(`down`);e&&t&&(l=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,k(l))}let u;if(!P.current)l===`vertical`?o>0?u=`down`:o<0&&(u=`up`):l===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&d.includes(u)&&(P.current=u,F.current=oo(u,a,o),h(u));else{let e=P.current,t=oo(e,c,s);t>lo?(te.current=!1,h(e)):!(d.includes(`left`)&&d.includes(`right`))&&!(d.includes(`up`)&&d.includes(`down`))&&F.current-t>=uo&&(te.current=!0)}let f=se(a,o),p=N.current.x,m=N.current.y,g=d.includes(`left`)||d.includes(`right`),_=d.includes(`up`)||d.includes(`down`);l!==`vertical`&&g&&(p+=f.x),l!==`horizontal`&&_&&(m+=f.y),H({x:p,y:m})}function ue(e){if(e.key===`Escape`){if(!A.current||!ci(A.current,si(q(A.current))))return;p.closeToast(n.id)}}o.useEffect(()=>{let e=A.current;if(!f||!e)return;function t(t){L.current===null||!ci(e,li(t))||t.preventDefault()}return kr(e,`touchmove`,t,{passive:!1})},[f]);function de(){let e=b.x-S.x,t=b.y-S.y;return{transition:g?`none`:void 0,transform:g?`translateX(${b.x}px) translateY(${b.y}px) scale(${S.scale})`:void 0,"--toast-swipe-movement-x":`${e}px`,"--toast-swipe-movement-y":`${t}px`}}let fe=n.priority===`high`,pe={role:fe?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":w,"aria-describedby":E,"aria-hidden":fe&&!oe?!0:void 0,onPointerDown:f?U:void 0,onPointerMove:f?le:void 0,onPointerUp:f?ce:void 0,onPointerCancel:f?ce:void 0,onKeyDown:ue,inert:Va(n.limited),style:{...de(),"--toast-index":n.transitionStatus===`ending`?ie:ae,"--toast-offset-y":`${z}px`,"--toast-height":n.height?`${n.height}px`:void 0}},me=o.useMemo(()=>({toast:n,setTitleId:T,setDescriptionId:O,recalculateHeight:V,visibleIndex:ae,expanded:B}),[n,T,O,V,ae,B]),he={transitionStatus:n.transitionStatus,expanded:B,limited:n.limited||!1,type:n.type,swiping:g,swipeDirection:m},ge=vt(`div`,e,{ref:[t,A],state:he,stateAttributesMapping:co,props:[pe,l]});return(0,D.jsx)(Ha.Provider,{value:me,children:ge})}),go=0;function _o(e,t=`mui`){let[n,r]=o.useState(e),i=e||n;return o.useEffect(()=>{n??(go+=1,r(`${t}-${go}`))},[n,t]),i}var vo=De.useId;function yo(e,t){if(vo!==void 0){let n=vo();return e??(t?`${t}-${n}`:n)}return _o(e,t)}function bo(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(bo)}function xo(e){return o.isValidElement(e)&&bo(e.props.children)}function So(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=Ua(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:yo(e),children:s,type:r.type,setId:o}}function Co(e,t,n){let r=xo(e);return K(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var wo=o.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=So(a,o,`description`);return Co(vt(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),To=o.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=So(a,o,`title`);return Co(vt(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Eo=o.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:s=!0,...c}=e,l=sr(),{toast:u,expanded:d}=Ua(),[f,p]=o.useState(!1),{getButtonProps:m,buttonRef:h}=tt({disabled:a,native:s}),g={type:u.type};return vt(`button`,e,{ref:[t,h],state:g,props:[{"aria-hidden":!d&&!f,onClick(){l.closeToast(u.id)},onFocus(){p(!0)},onBlur(){p(!1)}},c,m]})}),Do=`none`,Oo=`trigger-press`,ko=`trigger-hover`,Ao=`trigger-focus`,jo=`outside-press`,Mo=`item-press`,No=`close-press`,Po=`clear-press`,Fo=`input-change`,Io=`input-clear`,Lo=`input-press`,Ro=`focus-out`,zo=`escape-key`,Bo=`list-navigation`,Vo=`keyboard`,Ho=`pointer`,Uo=`cancel-open`,Wo=`sibling-open`,Go=`disabled`,Ko=`missing`,qo=`initial`,Jo=`imperative-action`,Yo=`window-resize`;function Xo(e,t,n,r){let i=!1,a=!1,o=r??mt;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Zo(e,t,n){let r=n??mt;return{reason:e,event:t??new Event(`base-ui`),...r}}function Qo(e){return`data-base-ui-${e}`}var $o=o.createContext(null),es=()=>o.useContext($o),ts=Qo(`portal`);function ns(e={}){let{ref:t,container:n,componentProps:r=mt,elementProps:i}=e,a=yo(),c=es()?.portalNode,[l,u]=o.useState(null),[d,f]=o.useState(null),p=G(e=>{e!==null&&f(e)}),m=o.useRef(null);K(()=>{if(n===null){m.current&&(m.current=null,f(null),u(null));return}let e=(n&&(se(n)?n:n.current))??c??document.body;if(e==null){m.current&&(m.current=null,f(null),u(null));return}m.current!==e&&(m.current=e,f(null),u(e))},[n,c]);let h=vt(`div`,r,{ref:[t,p],props:[{id:a,[ts]:``},i]}),g=l&&h?s.createPortal(h,l):null;return{node:d,nodeId:o.isValidElement(h)?h.props.id:void 0,subtree:g}}var rs=o.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:c,...l}=e,{node:u,nodeId:d,subtree:f}=ns({container:c,ref:t,componentProps:e,elementProps:l}),p=o.useRef(null),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[_,v]=o.useState(null),y=o.useRef(!1),b=_?.modal,x=_?.open,S=!!_&&!_.modal&&_.open&&!!u;o.useEffect(()=>{if(!u||b)return;function e(e){u&&e.relatedTarget&&Da(e)&&(e.type===`focusin`?y.current&&=(ka(u),!1):(Oa(u),y.current=!0))}return Or(kr(u,`focusin`,e,!0),kr(u,`focusout`,e,!0))},[u,b]),K(()=>{!u||x!==!0||!y.current||(ka(u),y.current=!1)},[x,u]);let C=o.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:u,setFocusManagerState:v}),[u]);return(0,D.jsxs)(o.Fragment,{children:[f,(0,D.jsxs)($o.Provider,{value:C,children:[S&&u&&(0,D.jsx)(za,{"data-type":`outside`,ref:p,onFocus:e=>{Da(e,u)?h.current?.focus():Ca(_?_.domReference:null)?.focus()}}),S&&u&&(0,D.jsx)(`span`,{"aria-owns":d,style:ao}),u&&s.createPortal(a,u),S&&u&&(0,D.jsx)(za,{"data-type":`outside`,ref:m,onFocus:e=>{Da(e,u)?g.current?.focus():(Sa(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,Xo(`focus-out`,e.nativeEvent)))}})]})]})}),is=o.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:c,...l}=e,{node:u,subtree:d}=ns({container:r,ref:t,componentProps:e,elementProps:l});return!d&&!u?null:(0,D.jsxs)(o.Fragment,{children:[d,u&&s.createPortal(n,u)]})}),as=o.forwardRef(function(e,t){return(0,D.jsx)(is,{ref:t,...e})});function os(){let e=sr(),t=e.useState(`toasts`);return o.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function ss(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Rr(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var cs=ss(),ls={error(e,t){cs.add({title:e,...t===void 0?{}:{description:t},type:`error`,timeout:8e3})},info(e,t){cs.add({title:e,...t===void 0?{}:{description:t},type:`info`})}};function us(){let{toasts:e}=os();return(0,D.jsx)(D.Fragment,{children:e.map(e=>(0,D.jsxs)(ho,{toast:e,className:`relative mb-2 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-lg`,style:{borderColor:e.type===`error`?`var(--destructive)`:void 0},children:[(0,D.jsx)(To,{className:`text-sm font-medium`}),(0,D.jsx)(wo,{className:`mt-1 text-sm break-words text-muted-foreground`}),(0,D.jsx)(Eo,{className:`absolute top-2 right-2 px-1 text-sm text-muted-foreground hover:text-foreground`,"aria-label":`Dismiss`,children:`×`})]},e.id))})}function ds(){return(0,D.jsx)(Pa,{toastManager:cs,children:(0,D.jsx)(as,{children:(0,D.jsx)(Ba,{className:`fixed right-4 bottom-4 z-50 flex w-72 flex-col items-end`,children:(0,D.jsx)(us,{})})})})}function fs({title:e,description:t,children:n}){return(0,D.jsxs)(`section`,{className:`flex flex-col gap-3`,children:[(0,D.jsxs)(`header`,{className:`flex flex-col gap-1`,children:[(0,D.jsx)(`h2`,{className:`text-sm font-semibold`,children:e}),t===void 0?null:(0,D.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:t})]}),n]})}function ps({label:e,children:t}){return(0,D.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b py-1.5 last:border-b-0`,children:[(0,D.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:e}),(0,D.jsx)(`span`,{className:`min-w-0 truncate text-right font-mono text-xs`,children:t})]})}function ms(){let{saveSettings:e}=R(),[t,n]=(0,o.useState)(!1);return{save:(0,o.useCallback)(async(t,r)=>{n(!0);try{return await e(t),ls.info(r),!0}catch(e){return ls.error(e instanceof Error?e.message:`Could not save the Settings`),!1}finally{n(!1)}},[e]),saving:t}}function hs({dirty:e,saving:t,saveDisabled:n=!1,onSave:r,onReset:i}){return(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsx)(ir,{size:`sm`,disabled:!e||t||n,onClick:r,children:t?`Saving…`:`Save`}),(0,D.jsx)(ir,{size:`sm`,variant:`ghost`,disabled:!e||t,onClick:i,children:`Discard`})]})}var gs={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},_s={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},vs={disabled:!1,..._s},ys={valid(e){return e===null?null:e?{"data-valid":``}:{"data-invalid":``}}},bs={invalid:void 0,name:void 0,validityData:{state:gs,errors:[],error:``,value:``,initialValue:null},setValidityData:J,disabled:void 0,setTouched:J,setDirty:J,setFilled:J,setFocused:J,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:vs,registerFieldControl:J,validation:{getValidationProps:(e,t=mt)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:J,getInputControl:()=>null,commit:async()=>{},change:J}},xs=o.createContext(bs);function Ss(e=!0){let t=o.useContext(xs);if(t.setValidityData===J&&!e)throw Error(Xe(28));return t}var Cs=o.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:J,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function ws(){return o.useContext(Cs)}function Ts(e){return yo(e,`base-ui`)}var Es=o.createContext({controlId:void 0,registerControlId:J,labelId:void 0,setLabelId:J,messageIds:[],setMessageIds:J,getDescriptionProps:e=>e});function Ds(){return o.useContext(Es)}function Os(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Ds(),s=Ts(t),c=n?i:void 0,l=W(()=>Symbol()),u=o.useRef(!1),d=o.useRef(t!=null),f=G(()=>{!u.current||a===J||(u.current=!1,a(l.current,void 0))});return K(()=>{if(a===J)return;let e;if(n){let n=r?.current;e=ce(n)&&n.closest(`label`)!=null?t??null:c??s}else if(t!=null)d.current=!0,e=t;else if(d.current)e=s;else{f();return}if(e===void 0){f();return}u.current=!0,a(l.current,e)},[t,r,c,a,n,s,l,f]),o.useEffect(()=>f,[f]),i??s}function ks({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=o.useRef(e!==void 0),[a,s]=o.useState(t);return[i?e:a,o.useCallback(e=>{i||s(e)},[])]}function As(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Ss(),s=W(()=>Symbol());K(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var js=o.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:s,disabled:c=!1,onValueChange:l,defaultValue:u,autoFocus:d=!1,style:f,...p}=e,{state:m,name:h,disabled:g,setTouched:_,setDirty:v,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=Ss(),{clearErrors:w}=ws(),T=g||c,E=h??a,D={...m,disabled:T},{labelId:O}=Ds(),ee=Os({id:i});K(()=>{let e=s!=null;C.inputRef.current?.value||e&&s!==``?x(!0):e&&s===``&&x(!1)},[C.inputRef,x,s]);let k=o.useRef(null);K(()=>{d&&k.current===si(q(k.current))&&b(!0)},[d,b]);let[A]=ks({controlled:s,default:u,name:`FieldControl`,state:`value`}),j=s!==void 0,M=j?A:void 0,N=G(()=>C.inputRef.current?.value);return As(C.inputRef,ee,M,N,!T,a),vt(`input`,e,{ref:[t,k],state:D,props:[{id:ee,disabled:T,name:E,ref:C.inputRef,"aria-labelledby":O,autoFocus:d,...j?{value:M}:{defaultValue:u},onChange(e){let t=e.currentTarget.value;l?.(t,Xo(Do,e.nativeEvent)),v(t!==(y.initialValue??``)),x(t!==``),e.nativeEvent.defaultPrevented||(w(E),C.change(t))},onFocus(){b(!0)},onBlur(e){_(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(_(!0),C.commit(e.currentTarget.value))}},p,e=>C.getValidationProps(T,e)],stateAttributesMapping:ys})}),Ms=o.forwardRef(function(e,t){return(0,D.jsx)(js,{ref:t,...e})});function Ns({className:e,type:t,...n}){return(0,D.jsx)(Ms,{type:t,"data-slot":`input`,className:tr(`h-8 w-full min-w-0 rounded-2xl border border-transparent bg-input/50 px-2.5 py-1 text-base transition-[color,box-shadow] duration-200 outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}async function Ps(e,t=`GET`,n,r){let i=await y(e,{method:t,signal:r,headers:n===void 0?void 0:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),a=await i.json();if(!i.ok)throw Error(a.error??`Request failed (${i.status})`);return a}async function Fs(e,t){let n=new AbortController,r,i,a=new Promise((e,a)=>{i=()=>{a(t.reason),n.abort()},t.addEventListener(`abort`,i,{once:!0}),r=setTimeout(()=>{a(Error(`MCP metadata request timed out after 15 seconds. Retry the request.`)),n.abort()},15e3),t.aborted&&i()});try{return await Promise.race([a,Ps(e,`GET`,void 0,n.signal)])}finally{clearTimeout(r),t.removeEventListener(`abort`,i)}}function Is(e,t=3e3){let[n,r]=(0,o.useState)(),[i,a]=(0,o.useState)(``);return(0,o.useEffect)(()=>{if(r(void 0),a(``),!e)return;let n=new AbortController,i,o=async()=>{try{let t=await Ps(e,`GET`,void 0,n.signal);n.signal.aborted||(r({path:e,data:t}),a(``))}catch(e){n.signal.aborted||a(String(e))}n.signal.aborted||(i=setTimeout(o,t))};return o(),()=>{n.abort(),clearTimeout(i)}},[e,t]),{data:n?.path===e?n?.data:void 0,error:i}}export{Za as $,W as $n,mi as $t,No as A,yr as An,Ni as At,Vo as B,pt as Bn,Ii as Bt,rs as C,Nr as Cn,k as Cr,ia as Ct,Zo as D,Er as Dn,S as Dr,Oi as Dt,Xo as E,Dr as En,y as Er,Ai as Et,qo as F,nr as Fn,Pi as Ft,Ho as G,et as Gn,Ci as Gt,Ko as H,J as Hn,wi as Ht,Fo as I,tr as In,Ki as It,ko as J,Qe as Jn,bi as Jt,Wo as K,q as Kn,Si as Kt,Io as L,kt as Ln,qi as Lt,zo as M,lr as Mn,Ri as Mt,Ro as N,ar as Nn,Fi as Nt,Uo as O,Sr as On,a as Or,ji as Ot,Jo as P,ir as Pn,zi as Pt,Qa as Q,G as Qn,di as Qt,Lo as R,vt as Rn,Yi as Rt,is as S,Mr as Sn,A as Sr,$i as St,Qo as T,Or as Tn,w as Tr,na as Tt,Do as U,it as Un,Xi as Ut,Bo as V,mt as Vn,Ti as Vt,jo as W,tt as Wn,Ei as Wt,Yo as X,Fe as Xn,vi as Xt,Oo as Y,Xe as Yn,xi as Yt,yo as Z,K as Zn,_i as Zt,ps as _,Jr as _n,ye as _r,va as _t,As as a,si as an,Se as ar,Wa as at,ds as b,Fr as bn,te as br,ta as bt,Ds as c,oi as cn,V as cr,za as ct,bs as d,ai as dn,U as dr,ya as dt,fi as en,xe as er,ro as et,xs as f,ti as fn,be as fr,Sa as ft,hs as g,Zr as gn,fe as gr,Da as gt,ys as h,Qr as hn,de as hr,Ea as ht,Ns as i,gi as in,B as ir,Ja as it,Go as j,dr as jn,Li as jt,Po as k,vr as kn,r as kr,Di as kt,Ts as l,ri as ln,_e as lr,La as lt,_s as m,$r as mn,le as mr,Ta as mt,Ps as n,hi as nn,H as nr,Xa as nt,ks as o,ci as on,Te as or,qa as ot,Ss as p,ei as pn,ue as pr,Ca as pt,Ao as q,Ze as qn,yi as qt,Fs as r,pi as rn,Ee as rr,Ya as rt,Os as s,li as sn,Ce as sr,Va as st,Is as t,ui as tn,ve as tr,io as tt,ws as u,ii as un,ce as ur,Ra as ut,fs as v,Kr as vn,ie as vr,ba as vt,es as w,kr as wn,E as wr,Qi as wt,ls as x,Ir as xn,ne as xr,ea as xt,ms as y,Yr as yn,R as yr,$ as yt,Mo as z,_t as zn,Mi as zt};
|